Class ServiceInterfaceInstanceControllerHtml
- java.lang.Object
-
- lumis.portal.controller.ControllerHtml
-
- lumis.portal.serviceinterfaceinstance.ServiceInterfaceInstanceControllerHtml
-
- Direct Known Subclasses:
BannerController
public class ServiceInterfaceInstanceControllerHtml extends ControllerHtml
This class renders and returns the HTML for a single service interface. It is used by the client side service interfaces when you drag and drop an interface, or refresh an interface in Administration (F12) Mode.- Since:
- 4.0.0
- Version:
- $Revision: 25475 $ $Date: 2023-02-27 17:42:56 -0300 (Mon, 27 Feb 2023) $
-
-
Field Summary
Fields Modifier and Type Field Description protected int
debugLevel
protected int
mode
protected ServiceContainer
serviceContainer
-
Fields inherited from class lumis.portal.controller.ControllerHtml
out, request, response, sessionConfig, userConfig
-
-
Constructor Summary
Constructors Constructor Description ServiceInterfaceInstanceControllerHtml(HttpServletRequest request, HttpServletResponse response, PageContext pageContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
clearServiceInterfaceInstanceCache()
Clears the HTML cache of the specified interface, if any, and clears the XSL Transformer cache for the XSL file used by the interface.protected void
getServiceInterfaceInstanceXmlData()
void
handleRequest()
protected java.lang.String
processHTML(ServiceContainerRenderRequest renderRequest, java.lang.String outputHTML)
Processes the HTML generated by the service interface instance, for proper rendering in the final page.protected void
renderOutput(ServiceContainerRenderRequest renderRequest, ServiceContainerRenderResponse renderResponse, java.util.Map<java.lang.String,java.lang.String> originalMap, ITransaction portalTransaction)
protected void
renderServiceInterfaceInstance()
Returns the HTML for a single service interface instance.protected void
setRequestMode()
Sets the Request Mode.-
Methods inherited from class lumis.portal.controller.ControllerHtml
checkRequestIsPost, deleteCookie, getCookie, getRequestMode, getSessionConfig, loadUserInfo, setCookie
-
-
-
-
Field Detail
-
serviceContainer
protected ServiceContainer serviceContainer
-
mode
protected int mode
-
debugLevel
protected int debugLevel
-
-
Constructor Detail
-
ServiceInterfaceInstanceControllerHtml
public ServiceInterfaceInstanceControllerHtml(HttpServletRequest request, HttpServletResponse response, PageContext pageContext) throws ControllerException, PortalException
- Parameters:
request
-response
-pageContext
-- Throws:
ControllerException
PortalException
-
-
Method Detail
-
handleRequest
public void handleRequest() throws java.lang.Exception
- Throws:
java.lang.Exception
-
setRequestMode
protected void setRequestMode() throws ControllerException, PortalException
Sets the Request Mode. This could either bePortalContext.MODE_ADMIN
, orPortalContext.MODE_USER
.If mode is not
PortalContext.MODE_USER
, theIMonitorContext
is disabled.- Throws:
ControllerException
PortalException
- See Also:
IMonitorContext#setEnabled(boolean)
-
clearServiceInterfaceInstanceCache
protected void clearServiceInterfaceInstanceCache() throws ControllerException, PortalException
Clears the HTML cache of the specified interface, if any, and clears the XSL Transformer cache for the XSL file used by the interface.- Throws:
ControllerException
PortalException
- Since:
- 4.0.4
-
renderServiceInterfaceInstance
protected void renderServiceInterfaceInstance() throws ControllerException, PortalException
Returns the HTML for a single service interface instance.- Throws:
ControllerException
PortalException
-
renderOutput
protected void renderOutput(ServiceContainerRenderRequest renderRequest, ServiceContainerRenderResponse renderResponse, java.util.Map<java.lang.String,java.lang.String> originalMap, ITransaction portalTransaction) throws ServiceException, java.io.IOException, PortalException
- Throws:
ServiceException
java.io.IOException
PortalException
-
processHTML
protected java.lang.String processHTML(ServiceContainerRenderRequest renderRequest, java.lang.String outputHTML) throws PortalException
Processes the HTML generated by the service interface instance, for proper rendering in the final page.- Parameters:
renderRequest
- the renderization request.outputHTML
- the HTML generated by the service interface instance.- Returns:
- the processed HTML.
- Throws:
PortalException
- Since:
- 8.0.0
-
getServiceInterfaceInstanceXmlData
protected void getServiceInterfaceInstanceXmlData() throws ControllerException, PortalException
- Throws:
ControllerException
PortalException
-
-