Package org.ametys.cms.repository
Class WorkflowAwareContentHelper
java.lang.Object
org.ametys.cms.repository.WorkflowAwareContentHelper
Provides helper methods to use the
WorkflowAwareContent API on JCRAmetysObjects.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringName of the metadata storing the proposal date. -
Method Summary
Modifier and TypeMethodDescriptionstatic ZonedDateTimegetProposalDate(WorkflowAwareContent content) Get a content's proposal date.static voidsetProposalDate(WorkflowAwareContent content, ZonedDateTime proposalDate) Set a content's proposal date.
-
Field Details
-
METADATA_LAST_PROPOSAL_DATE
Name of the metadata storing the proposal date.- See Also:
-
-
Method Details
-
getProposalDate
public static ZonedDateTime getProposalDate(WorkflowAwareContent content) throws AmetysRepositoryException Get a content's proposal date.- Parameters:
content- the content.- Returns:
- the content's proposal date.
- Throws:
AmetysRepositoryException- if an error occurs.
-
setProposalDate
public static void setProposalDate(WorkflowAwareContent content, ZonedDateTime proposalDate) throws AmetysRepositoryException Set a content's proposal date.- Parameters:
content- the content.proposalDate- the proposal date to set.- Throws:
AmetysRepositoryException- if an error occurs.
-