Class FormEntry
java.lang.Object
org.ametys.plugins.repository.AbstractAmetysObject
org.ametys.plugins.repository.jcr.SimpleAmetysObject<FormEntryFactory>
org.ametys.plugins.forms.repository.FormEntry
- All Implemented Interfaces:
- ModelAwareDataAwareAmetysObject,- ModifiableModelAwareDataAwareAmetysObject,- IndexableDataHolder,- ModifiableIndexableDataHolder,- AmetysObject,- DataAwareAmetysObject,- ModelAwareDataAwareAmetysObject,- ModifiableModelAwareDataAwareAmetysObject,- DataHolder,- ModelAwareDataHolder,- ModifiableDataHolder,- ModifiableModelAwareDataHolder,- JCRAmetysObject,- MetadataAwareAmetysObject,- ModifiableMetadataAwareAmetysObject,- ModifiableAmetysObject,- RemovableAmetysObject,- WorkflowAwareAmetysObject
public class FormEntry
extends SimpleAmetysObject<FormEntryFactory>
implements ModifiableModelAwareDataAwareAmetysObject, WorkflowAwareAmetysObject
Class representing a form entry, backed by a JCR node.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final StringConstant for active status of entry.static final StringConstant for id of an entry.static final StringThe IP address of the person who answered the form.static final StringConstant for the date and time of submission attribute.static final StringThe id of the user who answered the form.static final StringConstant for entry attribute prefix.Fields inherited from interface org.ametys.plugins.repository.data.holder.ModelAwareDataHolderALTERNATIVE_SUFFIX, COMMENTS_SUFFIX, STATUS_SUFFIX
- 
Constructor SummaryConstructorsConstructorDescriptionFormEntry(javax.jcr.Node node, String parentPath, FormEntryFactory factory) Creates anFormEntry.
- 
Method SummaryModifier and TypeMethodDescriptionlongRetrieves the current step id of the Ametys objectReturns theDataHolderof thisAmetysObject.Retrieves the id.getForm()Get formgetIP()Retrieves the ip.Retrieves the submitDate.getUser()Get the identity of the user answering the formlongRetrieves the workflow id associated with the Ametys object.isActive()Get active status of the entryvoidSet active status of the entryvoidsetCurrentStepId(long stepId) Set the current step id of the Ametys objectvoidsetEntryId(Long id) Set the id.voidSet the ip.voidsetSubmitDate(ZonedDateTime submitDate) Set the submitDate.voidsetUser(UserIdentity user) Set the identity of the user answering the formvoidsetWorkflowId(long workflowId) Set the workflow id of this Ametys object.
 This method will throw Exception if the workflow id was already set on this Ametys object.Methods inherited from class org.ametys.plugins.repository.jcr.SimpleAmetysObject_getFactory, _invalidateName, _invalidateParentPath, getId, getMetadataHolder, getName, getNode, getParent, getParentPath, getPath, needsSave, remove, rename, revertChanges, saveChangesMethods inherited from class org.ametys.plugins.repository.AbstractAmetysObjectequals, hashCode, toStringMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.ametys.plugins.repository.AmetysObjectequals, getId, getName, getParent, getParentPath, getPath, hashCodeMethods inherited from interface org.ametys.plugins.repository.data.ametysobject.DataAwareAmetysObjectcopyTo, copyTo, dataToJSON, dataToJSON, dataToSAX, dataToSAXMethods inherited from interface org.ametys.plugins.repository.jcr.JCRAmetysObjectgetNodeMethods inherited from interface org.ametys.cms.data.ametysobject.ModelAwareDataAwareAmetysObjectgetSystemPropertyExtensionPoint, indexData, indexDataMethods inherited from interface org.ametys.plugins.repository.data.ametysobject.ModelAwareDataAwareAmetysObjectdataToJSON, dataToJSONForEdition, dataToMap, dataToSAX, dataToSAXForEdition, getComments, getDataNames, getDefinition, getDifferences, getDifferences, getDifferences, getDifferences, getExternalValue, getLocalValue, getModel, getStatus, getValue, getValue, hasComments, hasDefinition, hasDifferences, hasDifferences, hasDifferences, hasDifferences, hasExternalValue, hasExternalValueOrEmpty, hasLocalValue, hasLocalValueOrEmpty, hasValue, hasValueOrEmptyMethods inherited from interface org.ametys.plugins.repository.data.holder.ModelAwareDataHoldercommentsToSAX, dataToJSON, dataToJSON, dataToJSON, dataToMap, dataToMap, dataToMap, dataToSAX, dataToSAX, dataToSAX, getDataNames, getType, getValue, hasValue, hasValueOrEmpty, isMultipleMethods inherited from interface org.ametys.plugins.repository.ModifiableAmetysObjectneedsSave, rename, revertChanges, saveChangesMethods inherited from interface org.ametys.plugins.repository.data.holder.ModifiableDataHoldergetRepositoryDataMethods inherited from interface org.ametys.plugins.repository.metadata.ModifiableMetadataAwareAmetysObjectgetMetadataHolderMethods inherited from interface org.ametys.cms.data.ametysobject.ModifiableModelAwareDataAwareAmetysObjectgetComposite, getComposite, getExternalComposite, getExternalComposite, getExternalRepeater, getExternalRepeater, getLocalComposite, getLocalComposite, getLocalRepeater, getLocalRepeater, getParentDataHolder, getRepeater, getRepeater, getRootDataHolderMethods inherited from interface org.ametys.plugins.repository.data.ametysobject.ModifiableModelAwareDataAwareAmetysObjectgetRepositoryData, removeExternalizableMetadataIfExists, removeExternalValue, removeLocalValue, removeValue, setComments, setExternalValue, setLocalValue, setStatus, setValue, synchronizeValues, synchronizeValues, synchronizeValues, synchronizeValuesMethods inherited from interface org.ametys.plugins.repository.RemovableAmetysObjectremove
- 
Field Details- 
SYSTEM_ATTRIBUTE_PREFIXConstant for entry attribute prefix.- See Also:
 
- 
ATTRIBUTE_IDConstant for id of an entry.- See Also:
 
- 
ATTRIBUTE_SUBMIT_DATEConstant for the date and time of submission attribute.- See Also:
 
- 
ATTRIBUTE_IPThe IP address of the person who answered the form.- See Also:
 
- 
ATTRIBUTE_USERThe id of the user who answered the form.- See Also:
 
- 
ATTRIBUTE_ACTIVEConstant for active status of entry. Default is true- See Also:
 
 
- 
- 
Constructor Details- 
FormEntryCreates anFormEntry.- Parameters:
- node- the node backing this- AmetysObject
- parentPath- the parentPath in the Ametys hierarchy
- factory- the DefaultAmetysObjectFactory which created the AmetysObject
 
 
- 
- 
Method Details- 
getFormGet form- Returns:
- the form
 
- 
getEntryIdRetrieves the id.- Returns:
- the id.
 
- 
setEntryIdSet the id.- Parameters:
- id- the id.
 
- 
getIPRetrieves the ip.- Returns:
- the ip.
 
- 
setIPSet the ip.- Parameters:
- ip- the ip.
 
- 
getSubmitDateRetrieves the submitDate.- Returns:
- the submitDate.
 
- 
setSubmitDateSet the submitDate.- Parameters:
- submitDate- the submitDate.
 
- 
setUserSet the identity of the user answering the form- Parameters:
- user- the user identity
 
- 
isActiveGet active status of the entry- Returns:
- the active status
 
- 
setActiveSet active status of the entry- Parameters:
- isActive- the active status
 
- 
getUserGet the identity of the user answering the form- Returns:
- the user identity
 
- 
getWorkflowIdDescription copied from interface:WorkflowAwareAmetysObjectRetrieves the workflow id associated with the Ametys object.- Specified by:
- getWorkflowIdin interface- WorkflowAwareAmetysObject
- Returns:
- the workflow id.
- Throws:
- AmetysRepositoryException- if an error occurs.
 
- 
setWorkflowIdDescription copied from interface:WorkflowAwareAmetysObjectSet the workflow id of this Ametys object.
 This method will throw Exception if the workflow id was already set on this Ametys object.- Specified by:
- setWorkflowIdin interface- WorkflowAwareAmetysObject
- Parameters:
- workflowId- the workflow id of the object.
- Throws:
- AmetysRepositoryException- if an error occurs.
 
- 
getCurrentStepIdDescription copied from interface:WorkflowAwareAmetysObjectRetrieves the current step id of the Ametys object- Specified by:
- getCurrentStepIdin interface- WorkflowAwareAmetysObject
- Returns:
- the current step id
- Throws:
- AmetysRepositoryException- if an error occurs.
 
- 
setCurrentStepIdDescription copied from interface:WorkflowAwareAmetysObjectSet the current step id of the Ametys object- Specified by:
- setCurrentStepIdin interface- WorkflowAwareAmetysObject
- Parameters:
- stepId- the step id to set
- Throws:
- AmetysRepositoryException- if an error occurs.
 
- 
getDataHolderDescription copied from interface:DataAwareAmetysObjectReturns theDataHolderof thisAmetysObject.- Specified by:
- getDataHolderin interface- DataAwareAmetysObject
- Specified by:
- getDataHolderin interface- ModelAwareDataAwareAmetysObject
- Specified by:
- getDataHolderin interface- ModelAwareDataAwareAmetysObject
- Specified by:
- getDataHolderin interface- ModifiableModelAwareDataAwareAmetysObject
- Specified by:
- getDataHolderin interface- ModifiableModelAwareDataAwareAmetysObject
- Returns:
- the DataHolderof thisAmetysObject
 
 
-