Class Form

All Implemented Interfaces:
EditableData, JcmsConstants, ImportConstants, MashupConstants, Searchable, Storable, JaliosConstants, LangPropertyArgument, TreeNode, Cloneable, Comparable<BasicStorable>

public abstract class Form extends Publication
Form is the mother class of all form types.
Since:
jcms-4.0
Author:
Olivier Dedieu
  • Field Details

  • Constructor Details

    • Form

      public Form()
    • Form

      public Form(Publication other)
    • Form

      public Form(Form other)
  • Method Details

    • getSubmitMember

      public Member getSubmitMember()
      Get the value of submitMember.
      Returns:
      Value of submitMember.
      Since:
      jcms-4.0
    • setSubmitMember

      public void setSubmitMember(Member v)
      Set the value of submitMember.
      Parameters:
      v - Value to assign to submitMember.
      Since:
      jcms-4.0
    • getSubmitMemberId

      public String getSubmitMemberId()
      Returns the submitMember id (only for DBData)
      Returns:
      the submitMember id (only for DBData)
      Since:
      jcms-6.0.0
    • setSubmitMemberId

      public void setSubmitMemberId(String v)
      Sets the submitMember id (only for DBData)
      Parameters:
      v - the submitMember id
      Since:
      jcms-6.0.0
    • getSubmitRemoteAddr

      public String getSubmitRemoteAddr()
      Get the value of submitRemoteAddr.
      Returns:
      Value of submitRemoteAddr.
      Since:
      jcms-4.0
    • setSubmitRemoteAddr

      public void setSubmitRemoteAddr(String v)
      Set the value of submitRemoteAddr.
      Parameters:
      v - Value to assign to submitRemoteAddr.
      Since:
      jcms-4.0
    • exportXmlField

      public void exportXmlField(StringBuffer sb, int indentLevel)
      Adds the submitMemberId to the XML.
      Overrides:
      exportXmlField in class Publication
      Parameters:
      sb - the StringBuffer
      indentLevel - the indent level
      Since:
      jcms-10.0.8 - JCMS-10913
    • getSubmitMemberSelector

      public static Form.SubmitMemberSelector getSubmitMemberSelector(Member member)
      Return a DataSelector which selects all the forms the given member has submitted
      Parameters:
      member - the submitMember
      Returns:
      a DataSelector which selects all the forms the given member has submitted
      Since:
      jcms-4.1
    • getSubmitMemberSelector

      public static Form.SubmitMemberSelector getSubmitMemberSelector(Member member, int pstatus)
      Return a DataSelector which selects all the forms the given member has submitted which are in a given state
      Parameters:
      member - the submitMember
      pstatus - the pstatus
      Returns:
      a DataSelector which selects all the forms the given member has submitted which are in a given state
      Since:
      jcms-4.1
    • toCSV

      public String toCSV(String lang)
      Returns a CSV view of this object
      Overrides:
      toCSV in class Publication
      Parameters:
      lang - the output language
      Returns:
      a CSV view of this object
      Since:
      jcms-5.0.0
    • getCSVHeader

      public static String getCSVHeader(String lang)
      Returns the CSV header of this object
      Parameters:
      lang - the output language
      Returns:
      the CSV header of this object
      Since:
      jcms-5.0.0
    • isVotable

      public boolean isVotable()
      Overrides:
      isVotable in class Publication
      Returns:
      true if this Publication is votable
    • getDataIcon

      public String getDataIcon()
      Description copied from class: Data
      Returns source information for the icon associated to this Data, either a relative path or sprite classes name.

      If this method behavior has not been overriden by subclass, the default icon can be declared using property types.{Type}.icon, where {Type} is the short class name of the type concerned.

      • Either by specifying a relative image path :
        types.Article.icon: images/jalios/icon/abstract.gif 
      • or else by using a sprite icon :
        types.Article.icon: ss_sprite ss_date
      Overrides:
      getDataIcon in class Publication
      Returns:
      a relative path (eg images/jalios/icon/abstract.gif) or sprite classes name (eg ss_sprite ss_date).
      See Also: