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

java.lang.Object
  extended by com.stratelia.silverpeas.peasCore.servlets.WebComponentRequestContext<CONTROLLER>
Type Parameters:
CONTROLLER -

public class WebComponentRequestContext<CONTROLLER extends WebComponentController>
extends Object

Author:
Yohann Chastagnier

Constructor Summary
WebComponentRequestContext()
           
 
Method Summary
 void addRedirectVariable(String variableName, String variableValue)
           
 void beforeRequestProcessing()
          This methods permits to perform initializations before the HTTP method (and associated method invokation) aimed is performed.
 String getComponentInstanceId()
           
 String getComponentInstanceLabel()
           
 String getComponentName()
           
 String getComponentUriBase()
           
 SilverpeasRole getGreaterUserRole()
           
 Class<? extends Annotation> getHttpMethodClass()
           
 WebMessager getMessager()
           
 ResourceLocator getMultilang()
           
 NavigationContext getNavigationContext()
           
 Map<String,String> getPathVariables()
           
 HttpRequest getRequest()
           
 javax.servlet.http.HttpServletResponse getResponse()
           
 String getSpaceId()
           
 String getSpaceLabel()
           
 UserDetail getUser()
           
 AlertUser getUserManualNotificationForParameterization()
          Gets an alert user object in order to parameterized it before asking the user to select users or groups to be manually alerted.
 Collection<SilverpeasRole> getUserRoles()
           
 boolean isComingFromRedirect()
           
 Navigation redirectToHtmlEditor(String objectId, String returnPath, boolean indexIt)
          Handled the navigation to the html editor.
 Navigation redirectToHtmlEditor(SubscriptionManagementContext subscriptionManagementContext, String objectId, String returnPath, boolean indexIt)
          Handled the navigation to the html editor.
 Navigation redirectToNotifyManuallyUsers()
          Gets the navigation to the centralized mechanism that permits to alert manually users and/or groups about a contribution.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebComponentRequestContext

public WebComponentRequestContext()
Method Detail

beforeRequestProcessing

public void beforeRequestProcessing()
This methods permits to perform initializations before the HTTP method (and associated method invokation) aimed is performed.


getHttpMethodClass

public Class<? extends Annotation> getHttpMethodClass()

getRequest

public HttpRequest getRequest()

getResponse

public javax.servlet.http.HttpServletResponse getResponse()

getNavigationContext

public NavigationContext getNavigationContext()
Returns:
the navigation context associated to the current instancied component.
See Also:
NavigationContext

getPathVariables

public Map<String,String> getPathVariables()

addRedirectVariable

public void addRedirectVariable(String variableName,
                                String variableValue)

getMultilang

public ResourceLocator getMultilang()

getMessager

public WebMessager getMessager()

getComponentUriBase

public String getComponentUriBase()

getComponentInstanceId

public String getComponentInstanceId()

getComponentInstanceLabel

public String getComponentInstanceLabel()

getComponentName

public String getComponentName()

getSpaceId

public String getSpaceId()

getSpaceLabel

public String getSpaceLabel()

getUser

public UserDetail getUser()

getUserRoles

public Collection<SilverpeasRole> getUserRoles()

getGreaterUserRole

public SilverpeasRole getGreaterUserRole()

isComingFromRedirect

public boolean isComingFromRedirect()

redirectToHtmlEditor

public Navigation redirectToHtmlEditor(String objectId,
                                       String returnPath,
                                       boolean indexIt)
Handled the navigation to the html editor.

Parameters:
objectId -
returnPath -
indexIt -
Returns:

redirectToHtmlEditor

public Navigation redirectToHtmlEditor(SubscriptionManagementContext subscriptionManagementContext,
                                       String objectId,
                                       String returnPath,
                                       boolean indexIt)
Handled the navigation to the html editor.

Parameters:
subscriptionManagementContext -
objectId -
returnPath -
indexIt -
Returns:

getUserManualNotificationForParameterization

public AlertUser getUserManualNotificationForParameterization()
Gets an alert user object in order to parameterized it before asking the user to select users or groups to be manually alerted.

Returns:
the alert user object instance.

redirectToNotifyManuallyUsers

public Navigation redirectToNotifyManuallyUsers()
Gets the navigation to the centralized mechanism that permits to alert manually users and/or groups about a contribution.

Returns:
the navigation object to permform the asked navigation.


Copyright © 2016 Silverpeas. All Rights Reserved.