- All Superinterfaces:
AmetysObject, DataHolder, JCRAmetysObject, MetadataAwareAmetysObject, ModifiableAmetysObject, ModifiableDataHolder, ModifiableMetadataAwareAmetysObject, RemovableAmetysObject
- All Known Subinterfaces:
ModifiableWorkflowAwareContent, WorkflowAwareContent
- All Known Implementing Classes:
AbstractProgram, AbstractProgramPart, AbstractTraversableProgramPart, Container, Course, CourseList, CoursePart, DefaultWorkflowAwareContent, FormEntry, JCRCalendarEvent, 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
default long
Retrieves the current step id of the Ametys object
default long
Retrieves the workflow id associated with the Ametys object.
Retrieves the
DataHolder containing the workflow metadata of the Ametys object.
default void
Set the current step id of the Ametys object
default 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.
Methods inherited from interface org.ametys.plugins.repository.data.holder.DataHolder
copyTo, copyTo, dataToJSON, dataToJSON, dataToJSON, dataToJSON, dataToSAX, dataToSAX, dataToSAX, dataToSAX, getDataNames, getModelItemTypeExtensionPoint, getType, getValue, getValueOfType, getValueOfTypeOrDefault, getValueOrDefault, hasDifferences, hasValue, hasValue, hasValueOrEmpty, isMultiple, isMultiple
-
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.
-