Class AttachPublicationHandler

All Implemented Interfaces:
JcmsConstants, JaliosConstants

public class AttachPublicationHandler extends EditDataHandler
  • Field Details

  • Constructor Details

    • AttachPublicationHandler

      public AttachPublicationHandler()
  • Method Details

    • processAction

      public boolean processAction() throws IOException
      Description copied from class: JcmsFormHandler
      Method to be implemented to check/validate action to be performed and process them.

      Default implementation is to return false. No need to call super method.

      This method may NOT be invoked at all if security validation are not met.

      You must ensure your handler and JSP can work properly without any code invoked in this method.

      Overrides:
      processAction in class EditDataHandler
      Returns:
      false if no redirection is needed, true otherwise
      Throws:
      IOException - IO Exception
    • validateMember

      public boolean validateMember()
    • validateNext

      protected boolean validateNext() throws IOException
      Overrides:
      validateNext in class JcmsFormHandler
      Throws:
      IOException
    • performFinish

      protected boolean performFinish() throws IOException
      Overrides:
      performFinish in class JcmsFormHandler
      Throws:
      IOException
    • validateAttach

      protected boolean validateAttach()
    • performAttach

      protected boolean performAttach() throws IOException
      Throws:
      IOException
    • getTypeFieldEntrySet

      public Set<TypeFieldEntry> getTypeFieldEntrySet()
    • getCurrentValueCollection

      public Collection getCurrentValueCollection()
    • getFormStepHiddenFields

      public String getFormStepHiddenFields()
      Overrides:
      getFormStepHiddenFields in class JcmsFormHandler
    • getFormStepCount

      public int getFormStepCount()
      Description copied from class: JcmsFormHandler
      Retrieve the total number of steps used for edition when invoking this form handler.

      The default implementation of this method is to return 1, corresponding to one step (which means only 1 screen being displayed).

      You can provide a custom FormHandler to override this behavior.

      See jcore/doSteps.jspf for use of this method.

      Overrides:
      getFormStepCount in class JcmsFormHandler
      Returns:
      the total number of steps in this formhandler
    • getFormStepPrefixProp

      public String getFormStepPrefixProp()
      Overrides:
      getFormStepPrefixProp in class JcmsFormHandler
      Returns:
      the prefix prop for the steps
    • getFormStepFinishLabel

      public String getFormStepFinishLabel()
      Overrides:
      getFormStepFinishLabel in class JcmsFormHandler
      Returns:
      the label of the Finish button
    • isStepPublication

      public boolean isStepPublication()
    • isStepField

      public boolean isStepField()
    • getDataClass

      public Class<? extends Publication> getDataClass()
      Specified by:
      getDataClass in class EditDataHandler
    • setTarget

      public void setTarget(String v)
    • getAvailableTarget

      public Publication getAvailableTarget()
    • setAttachment

      public void setAttachment(String v)
    • getAvailableAttachment

      public Publication getAvailableAttachment()
    • setFieldName

      public void setFieldName(String v)
    • getAvailableFieldName

      public String getAvailableFieldName()