Class FunctionHandler

    • Constructor Detail

      • FunctionHandler

        public FunctionHandler()
    • Method Detail

      • getDestination

        public abstract String getDestination​(ClassifiedsSessionController session,
                                              org.silverpeas.core.web.http.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 org.silverpeas.core.contribution.template.publication.PublicationTemplate getPublicationTemplate​(ClassifiedsSessionController classifiedsSC)
                                                                                                            throws org.silverpeas.core.contribution.template.publication.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:
        org.silverpeas.core.contribution.template.publication.PublicationTemplateException - if an error occurs while getting the publication template.
      • getSubscriptionFields

        protected List<SubscriptionField> getSubscriptionFields​(org.silverpeas.core.contribution.template.publication.PublicationTemplate template,
                                                                String language)
                                                         throws org.silverpeas.core.contribution.template.publication.PublicationTemplateException,
                                                                org.silverpeas.core.contribution.content.form.FormException
        Throws:
        org.silverpeas.core.contribution.template.publication.PublicationTemplateException
        org.silverpeas.core.contribution.content.form.FormException
      • setDataRecord

        protected static void setDataRecord​(ClassifiedsSessionController classifiedsSC,
                                            org.silverpeas.core.contribution.template.publication.PublicationTemplate pubTemplate,
                                            String classifiedId,
                                            List<org.apache.commons.fileupload.FileItem> items)
                                     throws org.silverpeas.core.contribution.template.publication.PublicationTemplateException,
                                            org.silverpeas.core.contribution.content.form.FormException
        Throws:
        org.silverpeas.core.contribution.template.publication.PublicationTemplateException
        org.silverpeas.core.contribution.content.form.FormException
      • isAnonymousAccess

        protected boolean isAnonymousAccess​(org.silverpeas.core.web.http.HttpRequest request)