- 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
, FormEntry
, JCRCalendarEvent
, JCRWorkflowProcess
, ModifiableDefaultContent
, ModifiableDefaultWebContent
, OrgUnit
, Person
, Program
, SubProgram
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
long
Retrieves the current step id of the Ametys object
long
Retrieves the workflow id associated with the Ametys object.
void
Set the current step id of the Ametys object
void
Set the workflow id of this Ametys object.
This method will throw Exception if the workflow id was already set on this Ametys object.
-
Method Details
-
getWorkflowId
Retrieves the workflow id associated with the Ametys object.
- Returns:
- the workflow id.
- Throws:
AmetysRepositoryException
- if an error occurs.
-
setWorkflowId
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
Retrieves the current step id of the Ametys object
- Returns:
- the current step id
- Throws:
AmetysRepositoryException
- if an error occurs.
-
setCurrentStepId
Set the current step id of the Ametys object
- Parameters:
stepId
- the step id to set
- Throws:
AmetysRepositoryException
- if an error occurs.