Class Entry
java.lang.Object
fr.paris.lutece.plugins.genericattributes.business.Entry
- All Implemented Interfaces:
Serializable,Cloneable
class Entry
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates and returns a copy of this object.Get the list of children of this entrygetCode()Get the comment of this entryGet the CSS class of the generated fieldsGet the type of the entrygetError()Get the error associated to the entryGet the error message associated with this entry.getFieldByCode(String strCode) Get the field by its code.Get the field depend of this entryGet the list of fields of this entryGet the help message of this entryintGet the id of this entryintGet the id of the resource associated with this entryGet the selected map providerintGet the number of conditional questions associated with the entryintGet the position of the entryGet the type of the resource associated with this entrygetTitle()Get the title of this entrybooleanbooleanbooleanbooleanCheck if generated fields must be displayed in linebooleanbooleanCheck if this entry is mandatory or notbooleanbooleanbooleanisUnique()Check if the value of the response must be uniquevoidsetChildren(List<Entry> children) Set the list of entry who are insert in the groupvoidvoidsetComment(String strComment) Set entry commentvoidsetCSSClass(String strCSSClass) Set the CSS class of the generated fieldsvoidsetEntryType(EntryType entryType) Set the type of the entryvoidsetError(GenericAttributeError error) Set the error associated to the entryvoidsetErrorMessage(String strErrorMessage) Set the error message associated with this entry.voidsetFieldDepend(Field depend) Set the field if the entry is a conditional questionvoidsetFieldInLine(boolean bFieldInLine) Set true if the field associate must be display in linevoidSet the list of field who are associate to the entryvoidsetHelpMessage(String strHelpMessage) Set the entry help messagevoidsetIdEntry(int nIdEntry) Set the id of the entryvoidsetIdResource(int nIdResource) Set the id of the resource associated with this entryvoidsetIndexed(boolean bIndexed) voidsetMandatory(boolean bMandatory) Set true if the question is mandatoryvoidsetNumberConditionalQuestion(int numberConditionalQuestion) Set the number of conditional questions who are associated with the entryvoidsetOnlyDisplayInBack(boolean onlyDisplayInBack) voidSet parent entry if the entry is insert in a groupvoidsetPosition(int position) Set position entryvoidsetResourceType(String strResourceType) Set the type of the resource associated with this entryvoidSet title entryvoidsetUnique(boolean bUnique) Set to true if the value of the response to this question must be unique
-
Constructor Details
-
Entry
public Entry()
-
-
Method Details
-
getChildren
Get the list of children of this entry- Returns:
- the list of entry who are insert in the group
-
getComment
Get the comment of this entry- Returns:
- the entry comment
-
getEntryType
Get the type of the entry- Returns:
- the type of the entry
-
getFields
Get the list of fields of this entry- Returns:
- the list of field who are associate to the entry
-
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
- 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
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
Set the list of entry who are insert in the group- Parameters:
children- the list of entry
-
setComment
Set entry comment- Parameters:
strComment- entry comment
-
setEntryType
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
Set the list of field who are associate to the entry- Parameters:
fields- the list of field
-
setHelpMessage
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
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
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
Get the type of the resource associated with this entry- Returns:
- The type of the resource associated with this entry
-
setResourceType
Set the type of the resource associated with this entry- Parameters:
strResourceType- The type of the resource associated with this entry
-
getFieldDepend
Get the field depend of this entry- Returns:
- the field if the entry is a conditional question
-
setFieldDepend
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
Get the error associated to the entry- Returns:
- the error
-
setError
Set the error associated to the entry- Parameters:
error- the error
-
setCSSClass
Set the CSS class of the generated fields- Parameters:
strCSSClass- The CSS class to set
-
getCSSClass
Get the CSS class of the generated fields- Returns:
- The CSS class
-
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
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
- Returns:
- the _strCode
-
setCode
- Parameters:
strCode- the code to set
-
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
Get the selected map provider- Returns:
- the select map provider
- See Also:
-
getFieldByCode
Get the field by its code.- Parameters:
strCode-- Returns:
-