lumis.portal.servicecontainer
Class ServiceContainer

Package class diagram package ServiceContainer
java.lang.Object
  extended by lumis.portal.servicecontainer.ServiceContainer

public class ServiceContainer
extends Object

Container responsible for rendering all Lumis Services

Since:
4.0.0

Constructor Summary
ServiceContainer()
           
 
Method Summary
protected  String getAccessDeniedOutput(ServiceContainerRenderRequest renderRequest, ITransaction portalTransaction)
           
 void init()
           
 void processServiceInterfaceInstanceAction(ServiceContainerActionRequest actionRequest, ServiceContainerActionResponse actionResponse, ITransaction portalTransaction)
          Processes the action for a service interface instance.
static String removeNotConvertDynUrls(String outputHTML)
          Removes the marker that indicates that the dynamic urls are not to be converted (#lumDoNotConvertDynUrls- -lumDoNotConvertDynUrls#) if there are any.
 String renderServiceInterfaceInstance(ServiceContainerRenderRequest renderRequest, ServiceContainerRenderResponse renderResponse, ITransaction portalTransaction)
          Renders a single service interface instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceContainer

public ServiceContainer()
Method Detail

init

public void init()
          throws Exception
Throws:
Exception

renderServiceInterfaceInstance

public String renderServiceInterfaceInstance(ServiceContainerRenderRequest renderRequest,
                                             ServiceContainerRenderResponse renderResponse,
                                             ITransaction portalTransaction)
                                      throws ServiceException,
                                             PortalException
Renders a single service interface instance. If specified, a xsl transformation may be applied on the return value of the service interface instance.

Parameters:
renderRequest - the render request.
renderResponse - the render response.
portalTransaction - the transaction for persistence access.
Returns:
the rendered markup.
Throws:
PortalException - if the process action could not be executed. This exception will have been logged as an error by this method.
ServiceException

getAccessDeniedOutput

protected String getAccessDeniedOutput(ServiceContainerRenderRequest renderRequest,
                                       ITransaction portalTransaction)
                                throws ServiceException,
                                       PortalException
Throws:
ServiceException
PortalException

processServiceInterfaceInstanceAction

public void processServiceInterfaceInstanceAction(ServiceContainerActionRequest actionRequest,
                                                  ServiceContainerActionResponse actionResponse,
                                                  ITransaction portalTransaction)
                                           throws PortalException
Processes the action for a service interface instance.

Parameters:
actionRequest - the process action request.
actionResponse - the process action response.
portalTransaction - the transaction for persistence access.
Throws:
PortalException - if the process action could not be executed. This exception will have been logged as an error by this method.

removeNotConvertDynUrls

public static String removeNotConvertDynUrls(String outputHTML)
Removes the marker that indicates that the dynamic urls are not to be converted (#lumDoNotConvertDynUrls- -lumDoNotConvertDynUrls#) if there are any.

Parameters:
outputHTML - html string to be converted.
Returns:
html without #lumDoNotConvertDynUrls- -lumDoNotConvertDynUrls# tags.


Lumisportal  6.2.0.120405 - Copyright © 2006–2012 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.