F - the actual type of factory.public class DefaultWorkflowAwareContent<F extends DefaultWorkflowAwareContentFactory> extends DefaultContent<F> implements WorkflowAwareContent
Content, also versionable, lockable and workflow-aware.ReactionableObject.ReactionTypeATTACHMENTS_NODE_NAME, DEFAULT_CONTENT_LOCALE, METADATA_CONTENTTYPE, METADATA_CONTRIBUTOR, METADATA_CREATION, METADATA_CREATOR, METADATA_FIRST_VALIDATION, METADATA_LANGUAGE, METADATA_LAST_MAJORVALIDATION, METADATA_LAST_VALIDATION, METADATA_MIXINCONTENTTYPES, METADATA_MODIFIED, METADATA_OUTGOING_REFERENCE_NODETYPE, METADATA_OUTGOING_REFERENCE_PROPERTY, METADATA_OUTGOING_REFERENCES, METADATA_OUTGOING_REFERENCES_PATH_PROPERTY, METADATA_ROOT_OUTGOING_REFERENCESPROTECTED_PROPERTIESATTRIBUTE_TITLE, METADATA_TITLE| Constructor and Description |
|---|
DefaultWorkflowAwareContent(Node node,
String parentPath,
F factory)
Creates a JCR-based Content.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getCurrentStepId()
Retrieves the current step id of the Ametys object
|
Date |
getProposalDate()
Retrieves the date at which the content was proposed for validation,
i.e.
|
long |
getWorkflowId()
Retrieves the workflow id associated with the Ametys object.
|
void |
remove()
Removes this
AmetysObject from the Ametys tree. |
void |
setCurrentStepId(long stepId)
Set the current step id of the Ametys object
|
void |
setProposalDate(Date proposalDate)
Set the date at which the content was proposed for validation, i.e.
|
void |
setWorkflowId(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. |
_checkLock, addReaction, copyTo, copyTo, copyTo, copyTo, copyTo, createChild, getChild, getChildren, getCreationDate, getCreator, getDataHolder, getDCContributor, getDCCoverage, getDCCreator, getDCDate, getDCDescription, getDCFormat, getDCIdentifier, getDCLanguage, getDCPublisher, getDCRelation, getDCRights, getDCSource, getDCSubject, getDCTitle, getDCType, getDefinition, getFirstValidationDate, getLanguage, getLastContributor, getLastMajorValidationDate, getLastModified, getLastValidationDate, getMixinTypes, getModels, getOutgoingReferences, getReactionUsers, getReferencingContents, getRootAttachments, getTags, getTitle, getTitle, getTypes, hasChild, hasReferencingContents, removeReactionaddAllowedGroups, addAllowedProfilesForAnonymous, addAllowedProfilesForAnyConnectedUser, addAllowedUsers, addDeniedGroups, addDeniedProfilesForAnonymous, addDeniedProfilesForAnyConnectedUser, addDeniedUsers, addLabel, checkpoint, copyNode, getAllLabels, getAllowedGroups, getAllowedProfilesForAnonymous, getAllowedProfilesForAnyConnectedUser, getAllowedProfilesForGroups, getAllowedProfilesForUser, getAllowedProfilesForUsers, getAllowedUsers, getAllRevisions, getBaseNode, getBaseVersion, getDeniedGroups, getDeniedProfilesForAnonymous, getDeniedProfilesForAnyConnectedUser, getDeniedProfilesForGroups, getDeniedProfilesForUser, getDeniedProfilesForUsers, getDeniedUsers, getLabels, getLabels, getNode, getRevision, getRevisionTimestamp, getRevisionTimestamp, getUnversionedMetadataHolder, getVersionHistory, removeAllowedGroups, removeAllowedGroups, removeAllowedProfilesForAnonymous, removeAllowedProfilesForAnyConnectedUser, removeAllowedUsers, removeAllowedUsers, removeDeniedGroups, removeDeniedGroups, removeDeniedProfilesForAnonymous, removeDeniedProfilesForAnyConnectedUser, removeDeniedUsers, removeDeniedUsers, removeLabel, restoreFromLabel, restoreFromNode, restoreFromRevision, switchToLabel, switchToRevision_getFactory, _invalidateName, _invalidateParentPath, getId, getMetadataHolder, getName, getParent, getParentPath, getPath, needsSave, rename, revertChanges, saveChangesequals, hashCode, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetCreationDate, getCreator, getDefinition, getFirstValidationDate, getLanguage, getLastContributor, getLastMajorValidationDate, getLastModified, getLastValidationDate, getMixinTypes, getOutgoingReferences, getReferencingContents, getRootAttachments, getTitle, getTitle, getTypes, hasReferencingContentsgetComposite, getDataHolder, getRepeater, getType, getValue, getValue, hasValue, isMultiplecopyTo, getDataNamestoSAX, toSAXdataToSAX, dataToSAX, dataToSAX, dataToSAXgetDCContributor, getDCCoverage, getDCCreator, getDCDate, getDCDescription, getDCFormat, getDCIdentifier, getDCLanguage, getDCPublisher, getDCRelation, getDCRights, getDCSource, getDCSubject, getDCTitle, getDCTypegetTagsaddAllowedGroups, addAllowedProfilesForAnonymous, addAllowedProfilesForAnyConnectedUser, addAllowedUsers, addDeniedGroups, addDeniedProfilesForAnonymous, addDeniedProfilesForAnyConnectedUser, addDeniedUsers, removeAllowedGroups, removeAllowedGroups, removeAllowedProfilesForAnonymous, removeAllowedProfilesForAnyConnectedUser, removeAllowedUsers, removeAllowedUsers, removeDeniedGroups, removeDeniedGroups, removeDeniedProfilesForAnonymous, removeDeniedProfilesForAnyConnectedUser, removeDeniedUsers, removeDeniedUsersgetAllowedGroups, getAllowedProfilesForAnonymous, getAllowedProfilesForAnyConnectedUser, getAllowedProfilesForGroups, getAllowedProfilesForUser, getAllowedProfilesForUsers, getAllowedUsers, getDeniedGroups, getDeniedProfilesForAnonymous, getDeniedProfilesForAnyConnectedUser, getDeniedProfilesForGroups, getDeniedProfilesForUser, getDeniedProfilesForUsers, getDeniedUsersgetNodeneedsSave, rename, revertChanges, saveChangesequals, getId, getName, getParent, getParentPath, getPath, hashCodegetChildAt, getChildPositionpublic DefaultWorkflowAwareContent(Node node, String parentPath, F factory)
node - the JCR Node backing this Content.parentPath - the parent path in the Ametys hierarchy.factory - the corresponding ContentFactory.public long getWorkflowId() throws AmetysRepositoryException
WorkflowAwareAmetysObjectgetWorkflowId in interface WorkflowAwareAmetysObjectAmetysRepositoryException - if an error occurs.public void setWorkflowId(long workflowId) throws AmetysRepositoryException
WorkflowAwareAmetysObjectsetWorkflowId in interface WorkflowAwareAmetysObjectworkflowId - the workflow id of the object.AmetysRepositoryException - if an error occurs.public long getCurrentStepId() throws AmetysRepositoryException
WorkflowAwareAmetysObjectgetCurrentStepId in interface WorkflowAwareAmetysObjectAmetysRepositoryException - if an error occurs.public void setCurrentStepId(long stepId) throws AmetysRepositoryException
WorkflowAwareAmetysObjectsetCurrentStepId in interface WorkflowAwareAmetysObjectstepId - the step id to setAmetysRepositoryException - if an error occurs.public Date getProposalDate() throws AmetysRepositoryException
WorkflowAwareContentgetProposalDate in interface WorkflowAwareContentAmetysRepositoryException - if an error occurs.public void setProposalDate(Date proposalDate) throws AmetysRepositoryException
WorkflowAwareContentsetProposalDate in interface WorkflowAwareContentproposalDate - the date at which the content was proposed for validation, or null to remove it.AmetysRepositoryException - if an error occurs.public void remove() throws AmetysRepositoryException, RepositoryIntegrityViolationException
RemovableAmetysObjectAmetysObject from the Ametys tree.remove in interface RemovableAmetysObjectremove in class SimpleAmetysObject<F extends DefaultWorkflowAwareContentFactory>AmetysRepositoryException - if an error occurs.RepositoryIntegrityViolationException - if this AmetysObject is referenced by another objects.