|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lumis.portal.serviceinterface.GenericServiceInterface lumis.doui.service.DouiServiceInterface
@StableMinor(version="4.1", sinceVersion="4.0") public class DouiServiceInterface
Base service interface implementation for the doui framework.
Field Summary | |
---|---|
protected IServiceInterfaceRequest |
request
|
protected IServiceInterfaceResponse |
response
|
static String |
VALIDATE_RENDER_PARAMETER
|
Constructor Summary | |
---|---|
DouiServiceInterface()
|
Method Summary | |
---|---|
protected boolean |
addDefaultControls(Node serviceInterfaceDouiDefinitionNode,
Node serviceDouiDefinitionNode,
Node serviceInterfaceXmlNode)
|
void |
addDefaultDouiDefinitionValues(SessionConfig sessionConfig,
ServiceInterfaceConfig serviceInterfaceConfig,
Node douiDefinitionNode,
ITransaction transaction)
|
protected boolean |
addDefaultFields(Node serviceInterfaceSourceNode,
Node serviceDouiDefinitionNode,
Node serviceInterfaceXmlNode)
|
protected boolean |
addDefaultFilters(Node serviceInterfaceSourceNode,
Node serviceDouiDefinitionNode,
Node serviceInterfaceXmlNode)
|
protected boolean |
addDefaultHyperLinks(Node serviceInterfaceDouiDefinitionNode,
Node serviceDouiDefinitionNode,
ITransaction transaction)
|
protected Node |
addDefaultInterfaceDouiDefinitionNode(String serviceInterfaceId,
Node serviceDouiDefinitionNode)
|
protected boolean |
addDefaultMaxRows(Node serviceInterfaceSourceNode,
Node serviceDouiDefinitionNode,
Node serviceInterfaceXmlNode)
|
protected boolean |
addDefaultOrderBy(Node serviceInterfaceSourceNode,
Node serviceDouiDefinitionNode,
Node serviceInterfaceXmlNode)
|
protected boolean |
addDefaultProcessActions(Node serviceInterfaceDouiDefinitionNode,
Node serviceDouiDefinitionNode,
Node serviceInterfaceXmlNode)
|
protected boolean |
addDefaultSources(Node serviceInterfaceDouiDefinitionNode,
Node serviceDouiDefinitionNode,
Node serviceInterfaceXmlNode)
|
protected boolean |
addDetailsHyperLink(Node serviceInterfaceDouiDefinitionNode,
Node serviceDouiDefinitionNode,
ITransaction transaction)
|
protected boolean |
addPrimaryKeyFilter(Node serviceInterfaceSourceNode,
Node serviceDouiDefinitionNode,
Node serviceInterfaceXmlNode)
|
protected DouiContext |
getContext(IServiceInterfaceRequest request,
IServiceInterfaceResponse response,
ITransaction transaction)
|
protected String |
getCustomMenu(SessionConfig sessionConfig,
ServiceInterfaceInstanceConfig config,
ITransaction transaction)
|
protected String |
getDefaultStyle()
|
protected Node |
getInterfaceSourceFieldsNode(Node serviceDouiDefinitionNode,
Node serviceInterfaceSourceNode)
Utility method that merges the fields in the given nodes and returns the merged resultant node. |
Node |
getMenu(SessionConfig sessionConfig,
ServiceInterfaceInstanceConfig config,
ITransaction transaction)
|
String |
getRepositoryMenus(SessionConfig sessionConfig,
ServiceInterfaceInstanceConfig config,
ITransaction transaction)
|
void |
processAction(IServiceInterfaceActionRequest request,
IServiceInterfaceActionResponse response)
Called by the service interface container to allow the service interface to process an action request. |
void |
register(SessionConfig sessionConfig,
Node serviceInterfaceXmlNode,
ITransaction transaction)
Called by the service interface manager when a service interface definition is registered. |
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. |
void |
renderBefore(IServiceInterfaceRenderRequest request,
IServiceInterfaceRenderResponse response)
Called by the service interface container before rendering the interface client side. |
protected void |
renderData(IServiceInterfaceRenderResponse response,
DouiContext douiContext)
|
Methods inherited from class lumis.portal.serviceinterface.GenericServiceInterface |
---|
instanceAdded, instanceDeleted, instanceLoaded, instanceUnLoaded, load, unload |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String VALIDATE_RENDER_PARAMETER
protected IServiceInterfaceRequest request
protected IServiceInterfaceResponse response
Constructor Detail |
---|
public DouiServiceInterface()
Method Detail |
---|
public void render(IServiceInterfaceRenderRequest request, IServiceInterfaceRenderResponse response) throws ServiceInterfaceException, PortalException
IServiceInterface
render
in interface IServiceInterface
render
in class GenericServiceInterface
request
- the render requestresponse
- the render response
ServiceInterfaceException
- if the service interface has problems fulfilling the rendering request
PortalException
- if the service interface is unavailable to perform render at this timepublic void processAction(IServiceInterfaceActionRequest request, IServiceInterfaceActionResponse response) throws ServiceInterfaceException, PortalException
IServiceInterface
RenderResponse.createActionURL()
method.
Typically, in response to an action request, a service interface updates state based on the information sent in the action request parameters. In an action the service interface may:
A client request triggered by an action URL translates into one action request and many render requests, one per service interface in the portal page. The action processing must be finished before the render requests can be issued.
processAction
in interface IServiceInterface
processAction
in class GenericServiceInterface
request
- the action requestresponse
- the action response
ServiceInterfaceException
- if the service interface has problems fulfilling the request
PortalException
- if the service interface is unavailable to process the action at this timepublic void renderBefore(IServiceInterfaceRenderRequest request, IServiceInterfaceRenderResponse response) throws ServiceInterfaceException, PortalException
IServiceInterface
renderBefore
in interface IServiceInterface
renderBefore
in class GenericServiceInterface
request
- the render requestresponse
- the render response
ServiceInterfaceException
- if the service interface has problems fulfilling the rendering request
PortalException
- if the service interface is unavailable to perform render at this timeprotected DouiContext getContext(IServiceInterfaceRequest request, IServiceInterfaceResponse response, ITransaction transaction) throws PortalException
PortalException
protected void renderData(IServiceInterfaceRenderResponse response, DouiContext douiContext) throws PortalException
PortalException
protected String getDefaultStyle()
public Node getMenu(SessionConfig sessionConfig, ServiceInterfaceInstanceConfig config, ITransaction transaction) throws PortalException
getMenu
in interface IServiceInterfaceMenu
PortalException
protected String getCustomMenu(SessionConfig sessionConfig, ServiceInterfaceInstanceConfig config, ITransaction transaction) throws PortalException
PortalException
public String getRepositoryMenus(SessionConfig sessionConfig, ServiceInterfaceInstanceConfig config, ITransaction transaction) throws PortalException
PortalException
public void register(SessionConfig sessionConfig, Node serviceInterfaceXmlNode, ITransaction transaction) throws PortalException
IServiceInterface
register
in interface IServiceInterface
register
in class GenericServiceInterface
sessionConfig
- TODOtransaction
- TODO
PortalException
public void addDefaultDouiDefinitionValues(SessionConfig sessionConfig, ServiceInterfaceConfig serviceInterfaceConfig, Node douiDefinitionNode, ITransaction transaction) throws PortalException
addDefaultDouiDefinitionValues
in interface IDouiServiceInterface
PortalException
protected Node getInterfaceSourceFieldsNode(Node serviceDouiDefinitionNode, Node serviceInterfaceSourceNode) throws PortalException
serviceDouiDefinitionNode
- the service doui definition node.serviceInterfaceSourceNode
- the service interface source node.
PortalException
protected Node addDefaultInterfaceDouiDefinitionNode(String serviceInterfaceId, Node serviceDouiDefinitionNode) throws PortalException
PortalException
protected boolean addDefaultSources(Node serviceInterfaceDouiDefinitionNode, Node serviceDouiDefinitionNode, Node serviceInterfaceXmlNode) throws PortalException
PortalException
protected boolean addDefaultFields(Node serviceInterfaceSourceNode, Node serviceDouiDefinitionNode, Node serviceInterfaceXmlNode) throws PortalException
PortalException
protected boolean addDefaultFilters(Node serviceInterfaceSourceNode, Node serviceDouiDefinitionNode, Node serviceInterfaceXmlNode) throws PortalException
PortalException
protected boolean addDefaultOrderBy(Node serviceInterfaceSourceNode, Node serviceDouiDefinitionNode, Node serviceInterfaceXmlNode) throws PortalException
PortalException
protected boolean addDefaultMaxRows(Node serviceInterfaceSourceNode, Node serviceDouiDefinitionNode, Node serviceInterfaceXmlNode) throws PortalException
PortalException
protected boolean addDefaultControls(Node serviceInterfaceDouiDefinitionNode, Node serviceDouiDefinitionNode, Node serviceInterfaceXmlNode) throws PortalException
PortalException
protected boolean addDefaultHyperLinks(Node serviceInterfaceDouiDefinitionNode, Node serviceDouiDefinitionNode, ITransaction transaction) throws PortalException
PortalException
protected boolean addDefaultProcessActions(Node serviceInterfaceDouiDefinitionNode, Node serviceDouiDefinitionNode, Node serviceInterfaceXmlNode) throws PortalException
PortalException
protected boolean addDetailsHyperLink(Node serviceInterfaceDouiDefinitionNode, Node serviceDouiDefinitionNode, ITransaction transaction) throws PortalException
PortalException
protected boolean addPrimaryKeyFilter(Node serviceInterfaceSourceNode, Node serviceDouiDefinitionNode, Node serviceInterfaceXmlNode) throws PortalException
PortalException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |