Class FormEntry
java.lang.Object
org.ametys.plugins.repository.AbstractAmetysObject
org.ametys.plugins.repository.jcr.SimpleAmetysObject<FormEntryFactory>
org.ametys.plugins.repository.jcr.SimpleModelAwareAmetysObject<FormEntryFactory>
org.ametys.cms.repository.SimpleIndexableAmetysObject<FormEntryFactory>
org.ametys.plugins.forms.repository.FormEntry
- All Implemented Interfaces:
IndexableAmetysObject,ModifiableIndexableAmetysObject,IndexableDataHolder,ModifiableIndexableDataHolder,IndexableJCRAmetysObject,AmetysObject,ModelAwareAmetysObject,ModifiableModelAwareAmetysObject,DataHolder,ModelAwareDataHolder,ModifiableDataHolder,ModifiableModelAwareDataHolder,JCRAmetysObject,ModelAwareJCRAmetysObject,MetadataAwareAmetysObject,ModifiableMetadataAwareAmetysObject,ModifiableAmetysObject,RemovableAmetysObject,WorkflowAwareAmetysObject
public class FormEntry
extends SimpleIndexableAmetysObject<FormEntryFactory>
implements WorkflowAwareAmetysObject
Class representing a form entry, backed by a JCR node.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringConstant for active status of entry.static final StringConstant for anonymization date of an entrystatic 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.static final StringConstant for any connected workflow actors system property of an entrystatic final StringConstant for last update system property of an entrystatic final StringConstant for workflow allowed actors system property of an entrystatic final StringConstant for workflow denied actors system property of an entrystatic final StringConstant for workflow name system property of an entrystatic final StringConstant for workflow step system property of an entryFields inherited from interface org.ametys.plugins.repository.data.holder.ModelAwareDataHolder
ALTERNATIVE_SUFFIX, STATUS_SUFFIX -
Constructor Summary
ConstructorsConstructorDescriptionFormEntry(javax.jcr.Node node, String parentPath, FormEntryFactory factory) Creates anFormEntry. -
Method Summary
Modifier and TypeMethodDescriptionvoidEdit answers to confidential questions with generic valueRetrieves the id.getForm()Get formgetIP()Retrieves the ip.Retrieves the submitDate.Retrieves the system properties extension point of thisAmetysObject, or an emptyOptionalif this object does not support system propertiesgetUser()Get the identity of the user answering the formRetrieves theDataHoldercontaining the workflow metadata of the Ametys object.isActive()Get active status of the entryvoidSet active status of the entryvoidsetEntryId(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 formMethods inherited from class org.ametys.cms.repository.SimpleIndexableAmetysObject
getComposite, getComposite, getDataHolder, getExternalComposite, getExternalComposite, getExternalRepeater, getExternalRepeater, getLocalComposite, getLocalComposite, getLocalRepeater, getLocalRepeater, getParentDataHolder, getRepeater, getRepeater, getRootDataHolder, indexDataMethods inherited from class org.ametys.plugins.repository.jcr.SimpleModelAwareAmetysObject
dataToJSON, dataToJSON, dataToJSONForEdition, dataToMap, dataToSAX, dataToSAX, dataToSAXForEdition, getDefinition, getDifferences, getDifferences, getDifferences, getDifferences, getExternalValue, getLocalValue, getModel, getModelItemTypeExtensionPoint, getRepositoryData, getStatus, getType, getValueOfType, getValueOfTypeOrDefault, getValueOrDefault, getValueWithMultiValuedPathSegments, hasDefinition, hasDifferences, hasDifferences, hasDifferences, hasDifferences, hasExternalValue, hasExternalValueOrEmpty, hasLocalValue, hasLocalValueOrEmpty, hasValue, hasValue, hasValueOrEmpty, isMultiple, isMultiple, removeExternalizableMetadataIfExists, removeExternalValue, removeLocalValue, removeValue, setExternalValue, setLocalValue, setStatus, setValue, setValue, synchronizeValues, synchronizeValues, synchronizeValues, synchronizeValuesMethods 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.AbstractAmetysObject
dataToJSON, dataToSAX, equals, getDataNames, getValue, getValueOrDefault, hashCode, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.ametys.plugins.repository.AmetysObject
equals, getId, getName, getParent, getParentPath, getPath, hashCodeMethods inherited from interface org.ametys.plugins.repository.data.holder.DataHolder
copyTo, copyTo, dataToJSON, dataToJSON, dataToSAX, dataToSAX, getValue, getValueOrDefault, hasValue, hasValueOrEmptyMethods inherited from interface org.ametys.cms.data.ametysobject.IndexableAmetysObject
indexDataMethods inherited from interface org.ametys.plugins.repository.jcr.JCRAmetysObject
getNodeMethods inherited from interface org.ametys.plugins.repository.data.ametysobject.ModelAwareAmetysObject
getModelMethods inherited from interface org.ametys.plugins.repository.data.holder.ModelAwareDataHolder
dataToJSON, dataToJSON, dataToJSON, dataToJSON, dataToJSONForEdition, dataToMap, dataToMap, dataToMap, dataToMap, dataToSAX, dataToSAX, dataToSAX, dataToSAX, dataToSAXForEdition, getDataNames, getDefinition, getDifferences, getDifferences, getDifferences, getDifferences, getExternalValue, getLocalValue, getModelItemTypeExtensionPoint, getStatus, getType, getValueOfType, getValueOfTypeOrDefault, getValueOrDefault, getValueWithMultiValuedPathSegments, hasDefinition, hasDifferences, hasDifferences, hasDifferences, hasDifferences, hasExternalValue, hasExternalValueOrEmpty, hasLocalValue, hasLocalValueOrEmpty, hasValue, isMultiple, isMultipleMethods inherited from interface org.ametys.plugins.repository.ModifiableAmetysObject
needsSave, rename, revertChanges, saveChangesMethods inherited from interface org.ametys.plugins.repository.data.holder.ModifiableDataHolder
getRepositoryData, removeValue, synchronizeValuesMethods inherited from interface org.ametys.plugins.repository.metadata.ModifiableMetadataAwareAmetysObject
getMetadataHolderMethods inherited from interface org.ametys.plugins.repository.data.holder.ModifiableModelAwareDataHolder
removeExternalizableMetadataIfExists, removeExternalValue, removeLocalValue, setExternalValue, setLocalValue, setStatus, setValue, setValue, synchronizeValues, synchronizeValues, synchronizeValuesMethods inherited from interface org.ametys.plugins.repository.RemovableAmetysObject
removeMethods inherited from interface org.ametys.plugins.workflow.repository.WorkflowAwareAmetysObject
getCurrentStepId, getWorkflowId, setCurrentStepId, setWorkflowId
-
Field Details
-
SYSTEM_ATTRIBUTE_PREFIX
Constant for entry attribute prefix.- See Also:
-
ATTRIBUTE_ID
Constant for id of an entry.- See Also:
-
ATTRIBUTE_SUBMIT_DATE
Constant for the date and time of submission attribute.- See Also:
-
ATTRIBUTE_IP
The IP address of the person who answered the form.- See Also:
-
ATTRIBUTE_USER
The id of the user who answered the form.- See Also:
-
ATTRIBUTE_ACTIVE
Constant for active status of entry. Default is true- See Also:
-
ATTRIBUTE_ANONYMIZATION_DATE
Constant for anonymization date of an entry- See Also:
-
SYSTEM_PROPERTY_WORKFLOW_ALLOWED_ACTORS
Constant for workflow allowed actors system property of an entry- See Also:
-
SYSTEM_PROPERTY_WORKFLOW_DENIED_ACTORS
Constant for workflow denied actors system property of an entry- See Also:
-
SYSTEM_PROPERTY_ANY_CONNECTED_WORKFLOW_ACTORS
Constant for any connected workflow actors system property of an entry- See Also:
-
SYSTEM_PROPERTY_LAST_UPDATE
Constant for last update system property of an entry- See Also:
-
SYSTEM_PROPERTY_WORKFLOW_STEP
Constant for workflow step system property of an entry- See Also:
-
SYSTEM_PROPERTY_WORKFLOW_NAME
Constant for workflow name system property of an entry- See Also:
-
-
Constructor Details
-
FormEntry
Creates anFormEntry.- Parameters:
node- the node backing thisAmetysObjectparentPath- the parentPath in the Ametys hierarchyfactory- the DefaultAmetysObjectFactory which created the AmetysObject
-
-
Method Details
-
getForm
Get form- Returns:
- the form
-
getEntryId
Retrieves the id.- Returns:
- the id.
-
setEntryId
Set the id.- Parameters:
id- the id.
-
getIP
Retrieves the ip.- Returns:
- the ip.
-
setIP
Set the ip.- Parameters:
ip- the ip.
-
getSubmitDate
Retrieves the submitDate.- Returns:
- the submitDate.
-
setSubmitDate
Set the submitDate.- Parameters:
submitDate- the submitDate.
-
setUser
Set the identity of the user answering the form- Parameters:
user- the user identity
-
isActive
Get active status of the entry- Returns:
- the active status
-
setActive
Set active status of the entry- Parameters:
isActive- the active status
-
getUser
Get the identity of the user answering the form- Returns:
- the user identity
-
anonymize
Edit answers to confidential questions with generic value -
getSystemPropertyExtensionPoint
Description copied from interface:IndexableAmetysObjectRetrieves the system properties extension point of thisAmetysObject, or an emptyOptionalif this object does not support system properties- Specified by:
getSystemPropertyExtensionPointin interfaceIndexableAmetysObject- Returns:
- the system properties extension point of this
AmetysObject
-
getWorkflowMetadataHolder
Description copied from interface:WorkflowAwareAmetysObjectRetrieves theDataHoldercontaining the workflow metadata of the Ametys object.- Specified by:
getWorkflowMetadataHolderin interfaceWorkflowAwareAmetysObject- Returns:
- the
DataHoldercontaining the workflow metadata of the Ametys object.
-