public final class WorkflowAwareContentHelper extends Object
WorkflowAwareContent
API on JCRAmetysObject
s.Modifier and Type | Field and Description |
---|---|
static String |
METADATA_CURRENT_STEP_ID
Constants for currentStepId Metadata*
|
static String |
METADATA_LAST_PROPOSAL_DATE
Name of the metadata storing the proposal date.
|
static String |
METADATA_WORKFLOW_ID
Constants for workflowId Metadata*
|
Modifier | Constructor and Description |
---|---|
private |
WorkflowAwareContentHelper() |
Modifier and Type | Method and Description |
---|---|
static long |
getCurrentStepId(JCRAmetysObject object)
Get an object's current step ID.
|
static Date |
getProposalDate(ModifiableMetadataAwareVersionableAmetysObject object)
Get an object's proposal date.
|
static long |
getWorkflowId(JCRAmetysObject object)
Get an object's workflow ID.
|
static void |
removeWorkflowId(JCRAmetysObject object)
Remove the workflow ID property if exists on an object
|
static void |
setCurrentStepId(JCRAmetysObject object,
long stepId)
Set an object's current step ID.
|
static void |
setProposalDate(ModifiableMetadataAwareVersionableAmetysObject object,
Date proposalDate)
Set an object's proposal date.
|
static void |
setWorkflowId(JCRAmetysObject object,
long workflowId)
Set an object's workflow ID.
|
public static final String METADATA_WORKFLOW_ID
public static final String METADATA_CURRENT_STEP_ID
public static final String METADATA_LAST_PROPOSAL_DATE
private WorkflowAwareContentHelper()
public static long getWorkflowId(JCRAmetysObject object) throws AmetysRepositoryException
object
- the object.AmetysRepositoryException
- if an error occurs.public static void setWorkflowId(JCRAmetysObject object, long workflowId) throws AmetysRepositoryException
object
- the object.workflowId
- the workflow ID to set.AmetysRepositoryException
- if an error occurs.public static void removeWorkflowId(JCRAmetysObject object)
object
- The Ametys objectpublic static long getCurrentStepId(JCRAmetysObject object) throws AmetysRepositoryException
object
- the object.AmetysRepositoryException
- if an error occurs.public static void setCurrentStepId(JCRAmetysObject object, long stepId) throws AmetysRepositoryException
object
- the object.stepId
- the current step ID to set.AmetysRepositoryException
- if an error occurs.public static Date getProposalDate(ModifiableMetadataAwareVersionableAmetysObject object) throws AmetysRepositoryException
object
- the object.AmetysRepositoryException
- if an error occurs.public static void setProposalDate(ModifiableMetadataAwareVersionableAmetysObject object, Date proposalDate) throws AmetysRepositoryException
object
- the object.proposalDate
- the proposal date to set.AmetysRepositoryException
- if an error occurs.