com.stratelia.silverpeas.peasCore.servlets
Class WebComponentController<WEB_COMPONENT_REQUEST_CONTEXT extends WebComponentRequestContext>

java.lang.Object
  extended by com.stratelia.silverpeas.peasCore.AbstractComponentSessionController
      extended by com.stratelia.silverpeas.peasCore.servlets.WebComponentController<WEB_COMPONENT_REQUEST_CONTEXT>
Type Parameters:
WEB_COMPONENT_REQUEST_CONTEXT -
All Implemented Interfaces:
ComponentSessionController

public abstract class WebComponentController<WEB_COMPONENT_REQUEST_CONTEXT extends WebComponentRequestContext>
extends AbstractComponentSessionController

Base class for all web component controller. Each implementation must be specified in web component servlet declaration into the linked web.xml.

Author:
Yohann Chastagnier

Field Summary
 
Fields inherited from class com.stratelia.silverpeas.peasCore.AbstractComponentSessionController
CHARACTER_ENCODING, context
 
Constructor Summary
WebComponentController(MainSessionController controller, ComponentContext context)
           
WebComponentController(MainSessionController controller, ComponentContext context, String resourceFileName)
           
WebComponentController(MainSessionController controller, ComponentContext context, String multilangFileName, String iconFileName)
           
WebComponentController(MainSessionController controller, ComponentContext context, String multilangFileName, String iconFileName, String settingsFileName)
           
WebComponentController(MainSessionController controller, String spaceId, String componentId)
           
 
Method Summary
protected  void beforeRequestProcessing(WEB_COMPONENT_REQUEST_CONTEXT context)
          Permits to perform some common initializations.
protected abstract  void onInstantiation(WEB_COMPONENT_REQUEST_CONTEXT context)
          This method is called one times just after the web controller is instancied and just before the call of the HTTP web controller method.
 
Methods inherited from class com.stratelia.silverpeas.peasCore.AbstractComponentSessionController
addClipboardSelection, clipboardPasteDone, close, getAlertUser, getClipboardCount, getClipboardErrorMessage, getClipboardExceptionError, getClipboardName, getClipboardObjects, getClipboardSelectedObjects, getClipboardSize, getComponentAccessController, getComponentId, getComponentLabel, getComponentName, getComponentParameters, getComponentParameterValue, getComponentParameterValue, getComponentRootName, getComponentUrl, getFavoriteSpace, getGenericPanel, getHighestSilverpeasUserRole, getIcon, getLanguage, getLastResults, getLook, getMultilang, getOrganisationController, getPersonalization, getRSSUrl, getSelection, getServerNameAndPort, getSettings, getSilverpeasUserRoles, getSpaceId, getSpaceLabel, getString, getSubscriptionContext, getUrlEncodedParameter, getUserAccessLevel, getUserAvailComponentIds, getUserAvailSpaceIds, getUserDetail, getUserDetail, getUserId, getUserManageableGroupIds, getUserManageableSpaceIds, getUserRoleLevel, getUserRoles, isAppInMaintenance, isGroupManager, isPasswordChangeAllowed, isSpaceInMaintenance, removeClipboardElement, setAppModeMaintenance, setClipboardError, setClipboardSelectedElement, setComponentRootName, setFavoriteSpaceToMainSessionController, setGenericPanel, setIconFileName, setLastResults, setMultilangFileName, setResourceFileName, setSpaceModeMaintenance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebComponentController

public WebComponentController(MainSessionController controller,
                              String spaceId,
                              String componentId)

WebComponentController

public WebComponentController(MainSessionController controller,
                              ComponentContext context)

WebComponentController

public WebComponentController(MainSessionController controller,
                              ComponentContext context,
                              String resourceFileName)

WebComponentController

public WebComponentController(MainSessionController controller,
                              ComponentContext context,
                              String multilangFileName,
                              String iconFileName)

WebComponentController

public WebComponentController(MainSessionController controller,
                              ComponentContext context,
                              String multilangFileName,
                              String iconFileName,
                              String settingsFileName)
Method Detail

onInstantiation

protected abstract void onInstantiation(WEB_COMPONENT_REQUEST_CONTEXT context)
This method is called one times just after the web controller is instancied and just before the call of the HTTP web controller method.

Parameters:
context - the web request context.

beforeRequestProcessing

protected void beforeRequestProcessing(WEB_COMPONENT_REQUEST_CONTEXT context)
Permits to perform some common initializations. The method is called just before the method behing the identified path is invoked.

Parameters:
context - the context of the request in relation with the web controller


Copyright © 2016 Silverpeas. All Rights Reserved.