|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lumis.portal.service.GenericService lumis.doui.service.DouiService
@StableMinor(version="4.1", sinceVersion="4.0") public class DouiService
Implements a DOUI Service.
Field Summary |
---|
Fields inherited from class lumis.portal.service.GenericService |
---|
serviceConfig |
Constructor Summary | |
---|---|
DouiService()
|
Method Summary | |
---|---|
void |
addDefaultDouiDefinitionValues(SessionConfig sessionConfig,
ServiceConfig serviceConfig,
Node douiDefinitionNode,
ITransaction transaction)
|
void |
autoAddDependencies(SessionConfig sessionConfig,
ServiceInstanceConfig config,
ITransaction transaction)
Adds service specific dependencies. |
protected String |
getResourceClassName()
|
void |
instanceAdded(SessionConfig sessionConfig,
ServiceInstanceConfig config,
ITransaction transaction)
Called by the service container to indicate that a service instance has been added. |
void |
postRegister(SessionConfig sessionConfig,
ServiceConfig serviceConfig,
ITransaction transaction)
Called by the service manager after a service definition is registered. |
void |
preUnregister(SessionConfig sessionConfig,
ITransaction transaction)
Called by the service manager when a service is about to be unregistered. |
IServiceInterfaceUrl |
resolveHyperLink(SessionConfig sessionConfig,
HyperLinkConfig hyperLinkConfig,
ITransaction transaction)
Resolves an hyperlink to the corresponding URL. DouiService delegates this resolution to a DouiHyperLinkResolver . |
protected void |
setDataTypeAttributes(Node douiDefinitionNode,
ITransaction transaction)
Replace number data type for integer data type, for backward compatibility. |
protected void |
setDisplayAttributes(Node douiDefinitionNode,
ITransaction transaction)
|
protected void |
setIncludeAlwaysAttributes(Node douiDefinitionNode,
ITransaction transaction)
|
protected void |
setLookupAttributes(Node douiDefinitionNode,
ITransaction transaction)
|
protected void |
setPriorityOptions(Node douiDefinitionNode,
ITransaction transaction)
|
protected void |
setSourceFieldAttributes(SessionConfig sessionConfig,
ServiceConfig serviceConfig,
Node douiDefinitionNode,
ITransaction transaction)
|
protected void |
setValidationAttributes(Node douiDefinitionNode,
ITransaction transaction)
|
boolean |
usesDocumentService(ITransaction transaction)
Indicates if this service uses a document service (as repository, for example). |
boolean |
usesFileManager(ITransaction transaction)
Indicates if this service uses the FileManager file storage API. |
boolean |
usesImageService(ITransaction transaction)
Indicates if this service uses an image service (as repository, for example). |
Methods inherited from class lumis.portal.service.GenericService |
---|
instanceDeleted, instanceDeserialized, instanceDeserialized, instanceLoaded, instanceSerialized, instanceSerialized, instanceUnloaded, load, postUnregister, preRegister, unload |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface lumis.portal.service.IService |
---|
instanceDeleted, instanceDeserialized, instanceDeserialized, instanceLoaded, instanceSerialized, instanceSerialized, instanceUnloaded, load, postUnregister, preRegister, unload |
Constructor Detail |
---|
public DouiService()
Method Detail |
---|
public void preUnregister(SessionConfig sessionConfig, ITransaction transaction) throws PortalException
IService
preUnregister
in interface IService
preUnregister
in class GenericService
sessionConfig
- the user session information.transaction
- transaction for persistence access.
PortalException
public void postRegister(SessionConfig sessionConfig, ServiceConfig serviceConfig, ITransaction transaction) throws PortalException
IService
postRegister
in interface IService
postRegister
in class GenericService
PortalException
protected String getResourceClassName()
getResourceClassName
in class GenericService
public boolean usesFileManager(ITransaction transaction) throws PortalException
IDouiService
FileManager
file storage API.
usesFileManager
in interface IDouiService
transaction
- the transaction for persistence access.
PortalException
public boolean usesImageService(ITransaction transaction) throws PortalException
IDouiService
usesImageService
in interface IDouiService
transaction
- the transaction for persistence access.
PortalException
public boolean usesDocumentService(ITransaction transaction) throws PortalException
IDouiService
usesDocumentService
in interface IDouiService
transaction
- the transaction for persistence access.
PortalException
public void instanceAdded(SessionConfig sessionConfig, ServiceInstanceConfig config, ITransaction transaction) throws ServiceException, PortalException
IService
IService.autoAddDependencies(lumis.portal.authentication.SessionConfig, lumis.portal.serviceinstance.ServiceInstanceConfig, lumis.util.ITransaction)
method.
instanceAdded
in interface IService
instanceAdded
in class GenericService
config
- a ServiceInstanceConfig
object containing the
service's configuration
ServiceException
PortalException
public void addDefaultDouiDefinitionValues(SessionConfig sessionConfig, ServiceConfig serviceConfig, Node douiDefinitionNode, ITransaction transaction) throws PortalException
addDefaultDouiDefinitionValues
in interface IDouiService
PortalException
protected void setSourceFieldAttributes(SessionConfig sessionConfig, ServiceConfig serviceConfig, Node douiDefinitionNode, ITransaction transaction) throws PortalException
PortalException
protected void setDataTypeAttributes(Node douiDefinitionNode, ITransaction transaction) throws PortalException
douiDefinitionNode
- the doui definition to adjust.transaction
- the transaction for persistence access.
PortalException
protected void setPriorityOptions(Node douiDefinitionNode, ITransaction transaction) throws PortalException
PortalException
protected void setIncludeAlwaysAttributes(Node douiDefinitionNode, ITransaction transaction) throws PortalException
PortalException
protected void setDisplayAttributes(Node douiDefinitionNode, ITransaction transaction) throws PortalException
PortalException
protected void setLookupAttributes(Node douiDefinitionNode, ITransaction transaction) throws PortalException
PortalException
protected void setValidationAttributes(Node douiDefinitionNode, ITransaction transaction) throws PortalException
PortalException
public void autoAddDependencies(SessionConfig sessionConfig, ServiceInstanceConfig config, ITransaction transaction) throws ServiceException, PortalException
IService
autoAddDependencies
in interface IService
autoAddDependencies
in class GenericService
ServiceException
PortalException
public IServiceInterfaceUrl resolveHyperLink(SessionConfig sessionConfig, HyperLinkConfig hyperLinkConfig, ITransaction transaction) throws PortalException
DouiService delegates this resolution to a DouiHyperLinkResolver
.
resolveHyperLink
in interface IHyperLinkResolver
sessionConfig
- the user session information.hyperLinkConfig
- hyperlink informationtransaction
- the transaction for persistence access.
PortalException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |