public class ServiceManager extends Object implements IServiceManager
Constructor and Description |
---|
ServiceManager() |
Modifier and Type | Method and Description |
---|---|
void |
clearCache()
Clear the manager cache entries for Services, Service Configs and Service Types.
|
ServiceConfig |
get(SessionConfig sessionConfig,
String serviceId,
ITransaction transaction)
Get the configuration of the service.
|
Collection<String> |
getPreBuiltChannelFiles(SessionConfig sessionConfig,
String serviceId,
ITransaction transaction)
Returns a collection of paths to the pre built channel files for the
specified service.
|
IService |
getService(SessionConfig sessionConfig,
String serviceId,
ITransaction transaction)
Get the service.
|
Collection<ServiceConfig> |
getServices(SessionConfig sessionConfig,
boolean getInstantiableServicesOnly,
ITransaction transaction)
Get services.
|
ServiceTypeConfig |
getServiceTypeConfig(SessionConfig sessionConfig,
String serviceType,
ITransaction transaction) |
boolean |
keyExists(SessionConfig sessionConfig,
Object configKey,
Object config,
ITransaction transaction)
Checks if configId matches an already persisted object
|
void |
register(SessionConfig sessionConfig,
String serviceConfigPath,
ITransaction transaction)
Service
|
void |
registerServiceTypes(SessionConfig sessionConfig,
String serviceTypesConfigPath,
ITransaction transaction)
Register the types of service.
|
void |
unregister(SessionConfig sessionConfig,
String serviceId,
ITransaction transaction)
Unregister a service.
|
void |
unregisterServiceType(SessionConfig sessionConfig,
String typeId,
ITransaction transaction)
Unregister the service´s type.
|
public void register(SessionConfig sessionConfig, String serviceConfigPath, ITransaction transaction) throws PortalException
register
in interface IServiceManager
ManagerException
PortalException
public void unregister(SessionConfig sessionConfig, String serviceId, ITransaction transaction) throws ManagerException, PortalException
IServiceManager
unregister
in interface IServiceManager
sessionConfig
- identifier for the session.serviceId
- the id of the service.transaction
- the transaction for persistence access.ManagerException
PortalException
public ServiceConfig get(SessionConfig sessionConfig, String serviceId, ITransaction transaction) throws ManagerException, PortalException
IServiceManager
get
in interface IServiceManager
ManagerException
PortalException
public IService getService(SessionConfig sessionConfig, String serviceId, ITransaction transaction) throws ManagerException, PortalException
IServiceManager
getService
in interface IServiceManager
ManagerException
PortalException
public Collection<ServiceConfig> getServices(SessionConfig sessionConfig, boolean getInstantiableServicesOnly, ITransaction transaction) throws ManagerException, PortalException
IServiceManager
getServices
in interface IServiceManager
ManagerException
PortalException
public void registerServiceTypes(SessionConfig sessionConfig, String serviceTypesConfigPath, ITransaction transaction) throws ManagerException, PortalException
IServiceManager
registerServiceTypes
in interface IServiceManager
ManagerException
PortalException
public void unregisterServiceType(SessionConfig sessionConfig, String typeId, ITransaction transaction) throws ManagerException, PortalException
IServiceManager
unregisterServiceType
in interface IServiceManager
ManagerException
PortalException
public ServiceTypeConfig getServiceTypeConfig(SessionConfig sessionConfig, String serviceType, ITransaction transaction) throws ManagerException, PortalException
ManagerException
PortalException
public Collection<String> getPreBuiltChannelFiles(SessionConfig sessionConfig, String serviceId, ITransaction transaction) throws PortalException
IServiceManager
getPreBuiltChannelFiles
in interface IServiceManager
sessionConfig
- the user session information.serviceId
- the service id.transaction
- the transaction for persistence access.PortalException
PortalContext#getDefinitionPath(String)}
public void clearCache() throws PortalException
IServiceManager
clearCache
in interface IServiceManager
PortalException
public boolean keyExists(SessionConfig sessionConfig, Object configKey, Object config, ITransaction transaction)
IConfigKeyChecker
keyExists
in interface IConfigKeyChecker
config
- Optional, allows a checker to read aditional fields to check composed keysLumisXP 12.0.0.190809 - Copyright © 2006–2019 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.