java.lang.Object
fr.paris.lutece.plugins.genericattributes.business.Entry
All Implemented Interfaces:
Serializable, Cloneable

public class Entry extends Object implements Serializable, Cloneable
class Entry
See Also:
  • Constructor Details

    • Entry

      public Entry()
  • Method Details

    • getChildren

      public List<Entry> getChildren()
      Get the list of children of this entry
      Returns:
      the list of entry who are insert in the group
    • getComment

      public String getComment()
      Get the comment of this entry
      Returns:
      the entry comment
    • getEntryType

      public EntryType getEntryType()
      Get the type of the entry
      Returns:
      the type of the entry
    • getFields

      public List<Field> getFields()
      Get the list of fields of this entry
      Returns:
      the list of field who are associate to the entry
    • getHelpMessage

      public String getHelpMessage()
      Get the help message of this entry
      Returns:
      The help message of this entry
    • getIdEntry

      public int getIdEntry()
      Get the id of this entry
      Returns:
      the id of entry
    • getParent

      public Entry getParent()
      Returns:
      parent entry if the entry is insert in a group
    • getPosition

      public int getPosition()
      Get the position of the entry
      Returns:
      position entry
    • getTitle

      public String getTitle()
      Get the title of this entry
      Returns:
      The title of this entry
    • isFieldInLine

      public boolean isFieldInLine()
      Check if generated fields must be displayed in line
      Returns:
      true if the field associate must be display in line
    • isMandatory

      public boolean isMandatory()
      Check if this entry is mandatory or not
      Returns:
      true if the question is mandatory
    • setChildren

      public void setChildren(List<Entry> children)
      Set the list of entry who are insert in the group
      Parameters:
      children - the list of entry
    • setComment

      public void setComment(String strComment)
      Set entry comment
      Parameters:
      strComment - entry comment
    • setEntryType

      public void setEntryType(EntryType entryType)
      Set the type of the entry
      Parameters:
      entryType - the type of the entry
    • setFieldInLine

      public void setFieldInLine(boolean bFieldInLine)
      Set true if the field associate must be display in line
      Parameters:
      bFieldInLine - true if the field associate must be display in line
    • setFields

      public void setFields(List<Field> fields)
      Set the list of field who are associate to the entry
      Parameters:
      fields - the list of field
    • setHelpMessage

      public void setHelpMessage(String strHelpMessage)
      Set the entry help message
      Parameters:
      strHelpMessage - the entry help message
    • setIdEntry

      public void setIdEntry(int nIdEntry)
      Set the id of the entry
      Parameters:
      nIdEntry - the id of the entry
    • setMandatory

      public void setMandatory(boolean bMandatory)
      Set true if the question is mandatory
      Parameters:
      bMandatory - true if the question is mandatory
    • setParent

      public void setParent(Entry parent)
      Set parent entry if the entry is insert in a group
      Parameters:
      parent - parent entry
    • setPosition

      public void setPosition(int position)
      Set position entry
      Parameters:
      position - position entry
    • setTitle

      public void setTitle(String strTitle)
      Set title entry
      Parameters:
      strTitle - title
    • getIdResource

      public int getIdResource()
      Get the id of the resource associated with this entry
      Returns:
      The id of the resource associated with this entry
    • setIdResource

      public void setIdResource(int nIdResource)
      Set the id of the resource associated with this entry
      Parameters:
      nIdResource - The id of the resource associated with this entry
    • getResourceType

      public String getResourceType()
      Get the type of the resource associated with this entry
      Returns:
      The type of the resource associated with this entry
    • setResourceType

      public void setResourceType(String strResourceType)
      Set the type of the resource associated with this entry
      Parameters:
      strResourceType - The type of the resource associated with this entry
    • getFieldDepend

      public Field getFieldDepend()
      Get the field depend of this entry
      Returns:
      the field if the entry is a conditional question
    • setFieldDepend

      public void setFieldDepend(Field depend)
      Set the field if the entry is a conditional question
      Parameters:
      depend - depend the field if the entry is a conditional question
    • getNumberConditionalQuestion

      public int getNumberConditionalQuestion()
      Get the number of conditional questions associated with the entry
      Returns:
      the number of conditional questions associated with the entry
    • setNumberConditionalQuestion

      public void setNumberConditionalQuestion(int numberConditionalQuestion)
      Set the number of conditional questions who are associated with the entry
      Parameters:
      numberConditionalQuestion - the number of conditional questions which are associated with the entry
    • setUnique

      public void setUnique(boolean bUnique)
      Set to true if the value of the response to this question must be unique
      Parameters:
      bUnique - true if the value of the response to this question must be unique, false otherwise
    • isUnique

      public boolean isUnique()
      Check if the value of the response must be unique
      Returns:
      true if the value of the response to this question must be unique
    • getError

      public GenericAttributeError getError()
      Get the error associated to the entry
      Returns:
      the error
    • setError

      public void setError(GenericAttributeError error)
      Set the error associated to the entry
      Parameters:
      error - the error
    • setCSSClass

      public void setCSSClass(String strCSSClass)
      Set the CSS class of the generated fields
      Parameters:
      strCSSClass - The CSS class to set
    • getCSSClass

      public String getCSSClass()
      Get the CSS class of the generated fields
      Returns:
      The CSS class
    • getErrorMessage

      public String getErrorMessage()
      Get the error message associated with this entry. This error message should be used by the right entry type. For example, EntryTypeCheckBox use it as a message to indicates that this field is mandatory.
      Returns:
      The error message of this entry
    • setErrorMessage

      public void setErrorMessage(String strErrorMessage)
      Set the error message associated with this entry. This error message should be used by the right entry type. For example, EntryTypeCheckBox use it as a message to indicates that this field is mandatory.
      Parameters:
      strErrorMessage - The error message of this entry
    • getCode

      public String getCode()
      Returns:
      the _strCode
    • setCode

      public void setCode(String strCode)
      Parameters:
      strCode - the code to set
    • clone

      public Object clone()
      Creates and returns a copy of this object.
      Returns:
      a clone of this instance.
      See Also:
    • isOnlyDisplayInBack

      public boolean isOnlyDisplayInBack()
    • setOnlyDisplayInBack

      public void setOnlyDisplayInBack(boolean onlyDisplayInBack)
    • isIndexed

      public boolean isIndexed()
    • setIndexed

      public void setIndexed(boolean bIndexed)
    • isExportable

      public boolean isExportable()
      Returns:
      true if the field exportable is present and set to true
    • isExportablePdf

      public boolean isExportablePdf()
      Returns:
      true if the field exportable_pdf is present and set to true
    • isPublished

      public boolean isPublished()
      Returns:
      true if the field published is present and set to true
    • isDisabled

      public boolean isDisabled()
      Returns:
      true if the field disabled is present and set to true
    • getMapProvider

      public IMapProvider getMapProvider()
      Get the selected map provider
      Returns:
      the select map provider
      See Also:
    • getFieldByCode

      public Field getFieldByCode(String strCode)
      Get the field by its code.
      Parameters:
      strCode -
      Returns: