Package lumis.content.service
Class ContentServiceInterface
- java.lang.Object
-
- lumis.portal.serviceinterface.GenericServiceInterface
-
- lumis.doui.service.DouiServiceInterface
-
- lumis.content.service.ContentServiceInterface
-
- All Implemented Interfaces:
IDouiServiceInterface
,IServiceInterface
,IServiceInterfaceMenu
- Direct Known Subclasses:
ChatRoomParticipateInterface
,ContentAdministrationPropertyPageServiceInterface
,ContentDetailsServiceInterface
,ContentGenericListServiceInterface
@StableMinor(version="14.2", sinceVersion="4.0") public class ContentServiceInterface extends DouiServiceInterface
Interface for content service interfaces- Since:
- 4.0.0
- Version:
- $Revision: 24985 $ $Date: 2022-05-02 23:04:30 -0300 (Mon, 02 May 2022) $
-
-
Field Summary
-
Fields inherited from class lumis.doui.service.DouiServiceInterface
VALIDATE_RENDER_PARAMETER
-
-
Constructor Summary
Constructors Constructor Description ContentServiceInterface()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
addDefaultOrderBy(Node serviceInterfaceSourceNode, Node serviceDouiDefinitionNode, Node serviceInterfaceXmlNode)
protected String
getCustomMenu(SessionConfig sessionConfig, ServiceInterfaceInstanceConfig config, ITransaction transaction)
protected String
getDefaultStyle()
String
getRepositoryMenus(SessionConfig sessionConfig, ServiceInterfaceInstanceConfig config, ITransaction transaction)
void
load(ServiceInterfaceConfig config)
Called by the service interface container to indicate to a service interface that the service interface is being placed into service.void
render(IServiceInterfaceRenderRequest request, IServiceInterfaceRenderResponse response)
Called by the service interface container to allow the service interface to generate the content of the response based on its current state.-
Methods inherited from class lumis.doui.service.DouiServiceInterface
addDefaultControls, addDefaultDouiDefinitionValues, addDefaultFields, addDefaultFilters, addDefaultHyperLinks, addDefaultInterfaceDouiDefinitionNode, addDefaultMaxRows, addDefaultPostLoadProcessors, addDefaultProcessActions, addDefaultSources, addDetailsHyperLink, addPrimaryKeyFilter, getContext, getInterfaceSourceFieldsNode, getMenu, initDouiContext, loadFromRequest, loadSources, processAction, processActions, register, renderBefore, renderData, validate
-
Methods inherited from class lumis.portal.serviceinterface.GenericServiceInterface
instanceAdded, instanceDeleted, instanceLoaded, instanceUnLoaded, unload
-
-
-
-
Method Detail
-
load
public void load(ServiceInterfaceConfig config) throws ServiceInterfaceException, PortalException
Description copied from interface:IServiceInterface
Called by the service interface container to indicate to a service interface that the service interface is being placed into service.The service interface container calls the
init
method exactly once after instantiating the service interface. Theinit
method must complete successfully before the service interface can receive any requests.The service interface container cannot place the service interface into service if the
init
method- Throws a
ServiceInterfaceException
- Does not return within a time period defined by the service interface container.
- Specified by:
load
in interfaceIServiceInterface
- Overrides:
load
in classGenericServiceInterface
- Parameters:
config
- aServiceInterfaceConfig
object containing the service interface's configuration and initialization parameters- Throws:
ServiceInterfaceException
- if an exception has occurred that interferes with the service interface's normal operation.PortalException
- if the service interface cannot perform the initialization at this time.
- Throws a
-
getDefaultStyle
protected String getDefaultStyle()
- Overrides:
getDefaultStyle
in classDouiServiceInterface
-
getCustomMenu
protected String getCustomMenu(SessionConfig sessionConfig, ServiceInterfaceInstanceConfig config, ITransaction transaction) throws PortalException
- Overrides:
getCustomMenu
in classDouiServiceInterface
- Throws:
PortalException
-
getRepositoryMenus
public String getRepositoryMenus(SessionConfig sessionConfig, ServiceInterfaceInstanceConfig config, ITransaction transaction) throws PortalException
- Overrides:
getRepositoryMenus
in classDouiServiceInterface
- Throws:
PortalException
-
addDefaultOrderBy
protected boolean addDefaultOrderBy(Node serviceInterfaceSourceNode, Node serviceDouiDefinitionNode, Node serviceInterfaceXmlNode) throws PortalException
- Overrides:
addDefaultOrderBy
in classDouiServiceInterface
- Throws:
PortalException
-
render
public void render(IServiceInterfaceRenderRequest request, IServiceInterfaceRenderResponse response) throws ServiceInterfaceException, PortalException
Description copied from class:DouiServiceInterface
Called by the service interface container to allow the service interface to generate the content of the response based on its current state.Executes the following steps (implemented by the referenced methods):
- Create the Doui context:
DouiServiceInterface.getContext(IServiceInterfaceRequest, IServiceInterfaceResponse, ITransaction)
- Initialize the Doui context:
DouiServiceInterface.initDouiContext(DouiContext)
- Load information from request:
DouiServiceInterface.loadFromRequest(DouiContext)
- Perform validations:
DouiServiceInterface.validate(DouiContext)
- Load sources:
DouiServiceInterface.loadSources(DouiContext)
- Render data:
DouiServiceInterface.renderData(IServiceInterfaceRenderResponse, DouiContext)
- Specified by:
render
in interfaceIServiceInterface
- Overrides:
render
in classDouiServiceInterface
- Parameters:
request
- the render requestresponse
- the render response- Throws:
ServiceInterfaceException
- if the service interface has problems fulfilling the rendering requestPortalException
- if the service interface is unavailable to perform render at this time
- Create the Doui context:
-
-