|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lumis.portal.service.ServiceManager
public class ServiceManager
Manager for all operations on Services
Constructor Summary | |
---|---|
ServiceManager()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServiceManager()
Method Detail |
---|
public void register(SessionConfig sessionConfig, String serviceConfigPath, ITransaction transaction) throws ManagerException, 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 keys
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |