Interface WorkflowAwareAmetysObject
-
- All Superinterfaces:
AmetysObject
,JCRAmetysObject
,MetadataAwareAmetysObject
,ModifiableAmetysObject
,ModifiableMetadataAwareAmetysObject
,RemovableAmetysObject
- All Known Subinterfaces:
CalendarEvent
,ModifiableCalendarEvent
,ModifiableWorkflowAwareContent
,WorkflowAwareContent
- All Known Implementing Classes:
AbstractProgram
,AbstractProgramPart
,AbstractTraversableProgramPart
,Container
,Course
,CourseList
,CoursePart
,DefaultWorkflowAwareContent
,JCRCalendarEvent
,JCRWorkflowProcess
,ModifiableDefaultContent
,ModifiableDefaultWebContent
,OrgUnit
,Person
,Program
,SubProgram
public interface WorkflowAwareAmetysObject extends JCRAmetysObject
AmetysObject
abstraction defined by the following additional property:- workflowId
- the id of the workflow instance associated with the ametys object
- currentStepId
- the id of the current step associated with the ametys object
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description long
getCurrentStepId()
Retrieves the current step id of the Ametys objectlong
getWorkflowId()
Retrieves the workflow id associated with the Ametys object.void
setCurrentStepId(long stepId)
Set the current step id of the Ametys objectvoid
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.-
Methods inherited from interface org.ametys.plugins.repository.AmetysObject
equals, getId, getName, getParent, getParentPath, getPath, hashCode
-
Methods inherited from interface org.ametys.plugins.repository.jcr.JCRAmetysObject
getNode
-
Methods inherited from interface org.ametys.plugins.repository.ModifiableAmetysObject
needsSave, rename, revertChanges, saveChanges
-
Methods inherited from interface org.ametys.plugins.repository.metadata.ModifiableMetadataAwareAmetysObject
getMetadataHolder
-
Methods inherited from interface org.ametys.plugins.repository.RemovableAmetysObject
remove
-
-
-
-
Method Detail
-
getWorkflowId
long getWorkflowId() throws AmetysRepositoryException
Retrieves the workflow id associated with the Ametys object.- Returns:
- the workflow id.
- Throws:
AmetysRepositoryException
- if an error occurs.
-
setWorkflowId
void setWorkflowId(long workflowId) throws AmetysRepositoryException
Set the workflow id of this Ametys object.
This method will throw Exception if the workflow id was already set on this Ametys object.- Parameters:
workflowId
- the workflow id of the object.- Throws:
AmetysRepositoryException
- if an error occurs.
-
getCurrentStepId
long getCurrentStepId() throws AmetysRepositoryException
Retrieves the current step id of the Ametys object- Returns:
- the current step id
- Throws:
AmetysRepositoryException
- if an error occurs.
-
setCurrentStepId
void setCurrentStepId(long stepId) throws AmetysRepositoryException
Set the current step id of the Ametys object- Parameters:
stepId
- the step id to set- Throws:
AmetysRepositoryException
- if an error occurs.
-
-