|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@StableMinor(version="4.1", sinceVersion="4.0") public interface IService
Defines methods all portal services must implement.
GenericService
Method Summary | |
---|---|
void |
autoAddDependencies(SessionConfig sessionConfig,
ServiceInstanceConfig config,
ITransaction transaction)
Adds service specific dependencies. |
void |
instanceAdded(SessionConfig sessionConfig,
ServiceInstanceConfig config,
ITransaction transaction)
Called by the service container to indicate that a service instance has been added. |
void |
instanceDeleted(SessionConfig sessionConfig,
ServiceInstanceConfig config,
ITransaction transaction)
Called by the service container to indicate that a service instance is about to be deleted. |
void |
instanceDeserialized(ServiceInstanceDeserializationContext serviceInstanceDeserializationContext)
Called after an service instance is deserialized. |
void |
instanceDeserialized(SessionConfig sessionConfig,
String serviceInstanceId,
DeserializationConfig deserializationConfig,
Node accessControlListNode,
ITransaction transaction)
Called after an service instance is deserialized. |
void |
instanceLoaded(ServiceInstanceConfig config)
Called by the service container to indicate that a service instance has been loaded |
void |
instanceSerialized(ServiceInstanceSerializationContext serviceInstanceSerializationContext)
Called after the serialization of a service instance. |
void |
instanceSerialized(SessionConfig sessionConfig,
String serviceInstanceId,
OutputStream outputStream,
ITransaction transaction)
Called after the serialization of a service instance. |
void |
instanceUnloaded(ServiceInstanceConfig config)
Called by the service container to indicate that a service instance is about to be unloaded |
void |
load(ServiceConfig config)
Called by the service container to indicate to a service that the service is being activated. |
void |
postRegister(SessionConfig sessionConfig,
ServiceConfig serviceConfig,
ITransaction transaction)
Called by the service manager after a service definition is registered. |
void |
postUnregister(SessionConfig sessionConfig,
ITransaction transaction)
Called by the service manager after a service has been unregistered. |
void |
preRegister(SessionConfig sessionConfig,
Node serviceXmlNode,
ITransaction transaction)
Called by the service manager when a service definition is about to be registered. |
void |
preUnregister(SessionConfig sessionConfig,
ITransaction transaction)
Called by the service manager when a service is about to be unregistered. |
void |
unload(ServiceConfig config)
Called by the service container to indicate to a service that the it is being de-activated. |
Method Detail |
---|
void preRegister(SessionConfig sessionConfig, Node serviceXmlNode, ITransaction transaction) throws PortalException
sessionConfig
- TODOserviceXmlNode
- transaction
- TODO
PortalException
void postRegister(SessionConfig sessionConfig, ServiceConfig serviceConfig, ITransaction transaction) throws PortalException
serviceXmlNode
-
PortalException
void preUnregister(SessionConfig sessionConfig, ITransaction transaction) throws PortalException
sessionConfig
- the user session information.transaction
- transaction for persistence access.
PortalException
void postUnregister(SessionConfig sessionConfig, ITransaction transaction) throws PortalException
sessionConfig
- the user session information.transaction
- transaction for persistence access.
PortalException
void load(ServiceConfig config) throws ServiceException, PortalException
The service container calls the init
method exactly once
after instantiating the service. The init
method must
complete successfully before any interfaces are created.
The service container cannot place the service into service if the
init
method
ServiceException
config
- a ServiceConfig
object containing the service's
configuration and initialization parameters
ServiceException
- if an exception has occurred that interferes with the
service interface's normal operation.
PortalException
void unload(ServiceConfig config) throws ServiceException, PortalException
Before the service container calls the destroy method, it should allow any threads that are currently processing requests within the service object to complete execution. To avoid waiting forever, the service container can optionally wait for a predefined time before destroying the service object.
This method enables the service to do the following:
config
- a ServiceConfig
object containing the service's
configuration
ServiceException
PortalException
void instanceLoaded(ServiceInstanceConfig config) throws ServiceException, PortalException
config
- a ServiceInstanceConfig
object containing the
service's configuration
ServiceException
PortalException
void instanceUnloaded(ServiceInstanceConfig config) throws ServiceException, PortalException
config
- a ServiceInstanceConfig
object containing the
service's configuration
ServiceException
PortalException
void instanceAdded(SessionConfig sessionConfig, ServiceInstanceConfig config, ITransaction transaction) throws ServiceException, PortalException
autoAddDependencies(lumis.portal.authentication.SessionConfig, lumis.portal.serviceinstance.ServiceInstanceConfig, lumis.util.ITransaction)
method.
config
- a ServiceInstanceConfig
object containing the
service's configuration
ServiceException
PortalException
void instanceDeleted(SessionConfig sessionConfig, ServiceInstanceConfig config, ITransaction transaction) throws ServiceException, PortalException
config
- a ServiceInstanceConfig
object containing the
service's configuration
ServiceException
PortalException
void autoAddDependencies(SessionConfig sessionConfig, ServiceInstanceConfig config, ITransaction transaction) throws ServiceException, PortalException
sessionConfig
- config
- transaction
-
ServiceException
PortalException
void instanceSerialized(SessionConfig sessionConfig, String serviceInstanceId, OutputStream outputStream, ITransaction transaction) throws PortalException
#aclDeserialized
.
sessionConfig
- user session information.serviceInstanceId
- the service instance id.outputStream
- the serialization outputStream.transaction
- the transaction for persistence access.
PortalException
instanceDeserialized(SessionConfig, String, DeserializationConfig, Node, ITransaction)
void instanceDeserialized(SessionConfig sessionConfig, String serviceInstanceId, DeserializationConfig deserializationConfig, Node accessControlListNode, ITransaction transaction) throws PortalException
sessionConfig
- user session information.serviceInstanceId
- the service instance id.deserializationConfig
- the deserialization configuration.accessControlListNode
- the deserialized acl node.transaction
- the transaction for persistence access.
PortalException
instanceSerialized(SessionConfig, String, OutputStream, ITransaction)
void instanceSerialized(ServiceInstanceSerializationContext serviceInstanceSerializationContext) throws PortalException
sessionConfig
- serviceInstanceSerializationContext
- transaction
-
PortalException
void instanceDeserialized(ServiceInstanceDeserializationContext serviceInstanceDeserializationContext) throws PortalException
sessionConfig
- serviceInstanceDeserializationContext
- transaction
-
PortalException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |