com.silverpeas.classifieds.servlets
Class FunctionHandler

java.lang.Object
  extended by com.silverpeas.classifieds.servlets.FunctionHandler
Direct Known Subclasses:
ClassifiedCreationFormHandler, ClassifiedCreationHandler, ClassifiedDeleteHandler, ClassifiedRefuseHandler, ClassifiedUpdateFormHandler, ClassifiedUpdateHandler, ClassifiedValidateHandler, DefaultHandler, DraftInHandler, DraftOutHandler, ListToValidateHandler, MyClassifiedsHandler, PaginationHandler, SearchHandler, SearchResultsHandler, SubscriptionCreateFormHandler, SubscriptionCreateHandler, SubscriptionDeleteHandler, SubscriptionListHandler, ToWysiwygHeaderHandler, ViewClassifiedHandler

public abstract class FunctionHandler
extends Object

A functio handler is associated to a peas function and is called by the request router when this function has to be processed.


Field Summary
protected static String ROOT_DESTINATION
           
 
Constructor Summary
FunctionHandler()
           
 
Method Summary
 String computeDestination(ClassifiedsSessionController session, org.silverpeas.servlet.HttpRequest request)
           
abstract  String getDestination(ClassifiedsSessionController session, org.silverpeas.servlet.HttpRequest request)
          Process the request and returns the response url.
protected  com.silverpeas.publicationTemplate.PublicationTemplate getPublicationTemplate(ClassifiedsSessionController classifiedsSC)
          Gets the template of the publication based on the classified XML form.
protected  boolean isAnonymousAccess(org.silverpeas.servlet.HttpRequest request)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ROOT_DESTINATION

protected static final String ROOT_DESTINATION
See Also:
Constant Field Values
Constructor Detail

FunctionHandler

public FunctionHandler()
Method Detail

computeDestination

public String computeDestination(ClassifiedsSessionController session,
                                 org.silverpeas.servlet.HttpRequest request)

getDestination

public abstract String getDestination(ClassifiedsSessionController session,
                                      org.silverpeas.servlet.HttpRequest request)
                               throws Exception
Process the request and returns the response url.

Parameters:
request - the user request params
session - the user request context
Throws:
Exception

getPublicationTemplate

protected com.silverpeas.publicationTemplate.PublicationTemplate getPublicationTemplate(ClassifiedsSessionController classifiedsSC)
                                                                                 throws com.silverpeas.publicationTemplate.PublicationTemplateException
Gets the template of the publication based on the classified XML form.

Parameters:
classifiedsSC - the session controller.
Returns:
the publication template for classifieds.
Throws:
com.silverpeas.publicationTemplate.PublicationTemplateException - if an error occurs while getting the publication template.

isAnonymousAccess

protected boolean isAnonymousAccess(org.silverpeas.servlet.HttpRequest request)


Copyright © 2016 Silverpeas. All Rights Reserved.