Class JCRCalendarEvent
- java.lang.Object
-
- org.ametys.plugins.repository.AbstractAmetysObject
-
- org.ametys.plugins.repository.jcr.SimpleAmetysObject<F>
-
- org.ametys.plugins.repository.jcr.DefaultTraversableAmetysObject<JCRCalendarEventFactory>
-
- org.ametys.plugins.workspaces.calendars.jcr.JCRCalendarEvent
-
- All Implemented Interfaces:
ACLAmetysObject
,AmetysObject
,DataAwareAmetysObject
,ModelAwareDataAwareAmetysObject
,ModifiableModelAwareDataAwareAmetysObject
,DataHolder
,ModelAwareDataHolder
,ModifiableDataHolder
,ModifiableModelAwareDataHolder
,JCRAmetysObject
,JCRTraversableAmetysObject
,MetadataAwareAmetysObject
,ModifiableMetadataAwareAmetysObject
,ModifiableACLAmetysObject
,ModifiableAmetysObject
,ModifiableTraversableAmetysObject
,RemovableAmetysObject
,TagAwareAmetysObject
,TaggableAmetysObject
,TraversableAmetysObject
,WorkflowAwareAmetysObject
,CalendarEvent
,ModifiableCalendarEvent
public class JCRCalendarEvent extends DefaultTraversableAmetysObject<JCRCalendarEventFactory> implements ModifiableCalendarEvent
Default implementation of anCalendarEvent
, backed by a JCR node.
-
-
Field Summary
Fields Modifier and Type Field Description static String
ATTRIBUTE_CONTRIBUTOR
Attribute name for event last contributorstatic String
ATTRIBUTE_CREATION
Attribute name for event lastModifiedstatic String
ATTRIBUTE_CREATOR
Attribute name for event authorstatic String
ATTRIBUTE_DATE_ZONE
Attribute name for event date sonestatic String
ATTRIBUTE_DESC
Attribute name for event descriptionstatic String
ATTRIBUTE_END_DATE
Attribute name for event endDatestatic String
ATTRIBUTE_EXCLUDED_DATE
Attribute name for event excluded datestatic String
ATTRIBUTE_FULL_DAY
Attribute name for event fullDaystatic String
ATTRIBUTE_KEYWORDS
Attribute name for event keywords'static String
ATTRIBUTE_LOCATION
Attribute name for event locationstatic String
ATTRIBUTE_MODIFIED
Attribute name for event lastModifiedstatic String
ATTRIBUTE_ORGANISER
Attribute name for event organiserstatic String
ATTRIBUTE_RECURRENCE_TYPE
Attribute name for event recurrence typestatic String
ATTRIBUTE_RESOURCES
Property's name for resourcesstatic String
ATTRIBUTE_START_DATE
Attribute name for event startDatestatic String
ATTRIBUTE_TITLE
Attribute name for event titlestatic String
ATTRIBUTE_UNTIL_DATE
Attribute name for event until datestatic String
NODE_ATTENDEE_NAME
Name of the node for attendee *static String
NODE_ATTENDEES_NAME
Name of the node for attendees *static String
PROPERTY_ATTENDEE_EMAIL
Property name for attendee email *static String
PROPERTY_ATTENDEE_EXTERNAL
Property name for attendee external *static String
PROPERTY_ATTENDEE_LOGIN
Property name for attendee login *static String
PROPERTY_ATTENDEE_MANDATORY
Property name for attendee mandatory *static String
PROPERTY_ATTENDEE_POPULATION
Property name for attendee population *static String
PROPERTY_WORKFLOW_ID
Property's name for workflow id-
Fields inherited from interface org.ametys.plugins.repository.data.holder.ModelAwareDataHolder
ALTERNATIVE_SUFFIX, COMMENTS_SUFFIX, STATUS_SUFFIX
-
-
Constructor Summary
Constructors Constructor Description JCRCalendarEvent(Node node, String parentPath, JCRCalendarEventFactory factory)
Creates anJCRCalendarEvent
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<CalendarEventAttendee>
getAttendees()
Get attendees to the eventZonedDateTime
getCreationDate()
Retrieves the creation date.UserIdentity
getCreator()
Retrieves the the creator.long
getCurrentStepId()
Retrieves the current step id of the Ametys objectModifiableModelAwareDataHolder
getDataHolder()
Returns theDataHolder
of thisAmetysObject
.String
getDescription()
Get the description of the eventZonedDateTime
getEndDate()
Get the date of the end of the eventList<ZonedDateTime>
getExcludedOccurences()
Retrieves the list of excluded event date.Optional<CalendarEventOccurrence>
getFirstOccurrence(ZonedDateTime date)
Retrieves the start date of the first Event which end after the dateBoolean
getFullDay()
Get if the event last all the dayUserIdentity
getLastContributor()
Retrieves the last contributor.ZonedDateTime
getLastModified()
Retrieves the last modification date.String
getLocation()
Get the location of the eventOptional<CalendarEventOccurrence>
getNextOccurrence(CalendarEventOccurrence occurrence)
Retrieves the date of the next event after the dateList<CalendarEventOccurrence>
getOccurrences(ZonedDateTime startDate, ZonedDateTime endDate)
Retrieves the list of all event date between startDate and endDate.UserIdentity
getOrganiser()
Retrieves the organiser.EventRecurrenceTypeEnum
getRecurrenceType()
Retrieves the recurrence type.ZonedDateTime
getRepeatUntil()
Retrieves the end date of the frequency.List<String>
getResources()
Retrieves the resource list.ZonedDateTime
getStartDate()
Get the date of the begin of the eventSet<String>
getTags()
Retrieves current tags.String
getTitle()
Get the title of the eventlong
getWorkflowId()
Retrieves the workflow id associated with the Ametys object.ZoneId
getZone()
Get the date zone of the eventBoolean
isRecurrent()
Retrieves if the event is recurrent.void
setAttendees(List<CalendarEventAttendee> attendees)
Set attendees to the eventvoid
setCreationDate(ZonedDateTime date)
Set the creation datevoid
setCreator(UserIdentity user)
Set the creatorvoid
setCurrentStepId(long stepId)
Set the current step id of the Ametys objectvoid
setDescription(String desc)
Set the description of the eventvoid
setEndDate(ZonedDateTime endDate)
Set the endDate of the eventvoid
setExcludedOccurrences(List<ZonedDateTime> excludedOccurrences)
Set the list of excluded event date.void
setFullDay(Boolean fullDay)
Set if the event last all the dayvoid
setLastContributor(UserIdentity user)
Set the last contributorvoid
setLastModified(ZonedDateTime date)
Set the last modified datevoid
setLocation(String location)
Set the location of the eventvoid
setOrganiser(UserIdentity user)
Set the oragniservoid
setRecurrenceType(String recurrenceType)
Set the recurrence type.void
setRepeatUntil(ZonedDateTime untilDate)
Set the end date of the frequency.void
setResources(List<String> resources)
Set the resourcesvoid
setStartDate(ZonedDateTime startDate)
Set the startDate of the eventvoid
setTitle(String title)
Set the title of the eventvoid
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.void
setZone(ZoneId dateZone)
Set the date zone of the eventvoid
tag(String tag)
Tags.void
untag(String tag)
Untags.-
Methods inherited from class org.ametys.plugins.repository.jcr.DefaultTraversableAmetysObject
addAllowedGroups, addAllowedProfilesForAnonymous, addAllowedProfilesForAnyConnectedUser, addAllowedUsers, addDeniedGroups, addDeniedProfilesForAnonymous, addDeniedProfilesForAnyConnectedUser, addDeniedUsers, createChild, disallowInheritance, getChild, getChildren, getProfilesForAnonymousAndAnyConnectedUser, getProfilesForGroups, getProfilesForUsers, hasChild, isInheritanceDisallowed, removeAllowedGroups, removeAllowedGroups, removeAllowedProfilesForAnonymous, removeAllowedProfilesForAnyConnectedUser, removeAllowedUsers, removeAllowedUsers, removeDeniedGroups, removeDeniedGroups, removeDeniedProfilesForAnonymous, removeDeniedProfilesForAnyConnectedUser, removeDeniedUsers, removeDeniedUsers
-
Methods inherited from class org.ametys.plugins.repository.jcr.SimpleAmetysObject
_getFactory, _invalidateName, _invalidateParentPath, getId, getMetadataHolder, getName, getNode, getParent, getParentPath, getPath, needsSave, remove, rename, revertChanges, saveChanges
-
Methods inherited from class org.ametys.plugins.repository.AbstractAmetysObject
equals, hashCode, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.ametys.plugins.repository.AmetysObject
equals, getId, getName, getParent, getParentPath, getPath, hashCode
-
Methods inherited from interface org.ametys.plugins.repository.data.ametysobject.DataAwareAmetysObject
copyTo, dataToSAX, dataToSAX
-
Methods inherited from interface org.ametys.plugins.repository.jcr.JCRAmetysObject
getNode
-
Methods inherited from interface org.ametys.plugins.repository.data.ametysobject.ModelAwareDataAwareAmetysObject
getComments, getDataNames, getDefinition, getExternalValue, getLocalValue, getModel, getStatus, getValue, getValue, hasComments, hasDefinition, hasExternalValue, hasExternalValueOrEmpty, hasLocalValue, hasLocalValueOrEmpty, hasValue, hasValueOrEmpty
-
Methods inherited from interface org.ametys.plugins.repository.data.holder.ModelAwareDataHolder
commentsToSAX, dataToMap, dataToMap, dataToMap, dataToMap, dataToSAX, dataToSAX, dataToSAX, dataToSAX, dataToSAXForEdition, getDataNames, getType, getValue, hasValue, hasValueOrEmpty, isMultiple
-
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.data.ametysobject.ModifiableModelAwareDataAwareAmetysObject
getComposite, getComposite, getExternalComposite, getExternalComposite, getExternalRepeater, getExternalRepeater, getLocalComposite, getLocalComposite, getLocalRepeater, getLocalRepeater, getParentDataHolder, getRepeater, getRepeater, getRepositoryData, getRootDataHolder, removeExternalizableMetadataIfExists, removeExternalValue, removeLocalValue, removeValue, setComments, setExternalValue, setLocalValue, setStatus, setValue, synchronizeValues, synchronizeValues, synchronizeValues, synchronizeValues
-
Methods inherited from interface org.ametys.plugins.repository.RemovableAmetysObject
remove
-
Methods inherited from interface org.ametys.plugins.repository.TraversableAmetysObject
getChildAt, getChildPosition
-
-
-
-
Field Detail
-
ATTRIBUTE_CREATOR
public static final String ATTRIBUTE_CREATOR
Attribute name for event author- See Also:
- Constant Field Values
-
ATTRIBUTE_CREATION
public static final String ATTRIBUTE_CREATION
Attribute name for event lastModified- See Also:
- Constant Field Values
-
ATTRIBUTE_CONTRIBUTOR
public static final String ATTRIBUTE_CONTRIBUTOR
Attribute name for event last contributor- See Also:
- Constant Field Values
-
ATTRIBUTE_MODIFIED
public static final String ATTRIBUTE_MODIFIED
Attribute name for event lastModified- See Also:
- Constant Field Values
-
ATTRIBUTE_TITLE
public static final String ATTRIBUTE_TITLE
Attribute name for event title- See Also:
- Constant Field Values
-
ATTRIBUTE_DESC
public static final String ATTRIBUTE_DESC
Attribute name for event description- See Also:
- Constant Field Values
-
ATTRIBUTE_KEYWORDS
public static final String ATTRIBUTE_KEYWORDS
Attribute name for event keywords'- See Also:
- Constant Field Values
-
ATTRIBUTE_LOCATION
public static final String ATTRIBUTE_LOCATION
Attribute name for event location- See Also:
- Constant Field Values
-
ATTRIBUTE_START_DATE
public static final String ATTRIBUTE_START_DATE
Attribute name for event startDate- See Also:
- Constant Field Values
-
ATTRIBUTE_END_DATE
public static final String ATTRIBUTE_END_DATE
Attribute name for event endDate- See Also:
- Constant Field Values
-
ATTRIBUTE_DATE_ZONE
public static final String ATTRIBUTE_DATE_ZONE
Attribute name for event date sone- See Also:
- Constant Field Values
-
ATTRIBUTE_FULL_DAY
public static final String ATTRIBUTE_FULL_DAY
Attribute name for event fullDay- See Also:
- Constant Field Values
-
ATTRIBUTE_RECURRENCE_TYPE
public static final String ATTRIBUTE_RECURRENCE_TYPE
Attribute name for event recurrence type- See Also:
- Constant Field Values
-
ATTRIBUTE_UNTIL_DATE
public static final String ATTRIBUTE_UNTIL_DATE
Attribute name for event until date- See Also:
- Constant Field Values
-
ATTRIBUTE_EXCLUDED_DATE
public static final String ATTRIBUTE_EXCLUDED_DATE
Attribute name for event excluded date- See Also:
- Constant Field Values
-
ATTRIBUTE_ORGANISER
public static final String ATTRIBUTE_ORGANISER
Attribute name for event organiser- See Also:
- Constant Field Values
-
PROPERTY_ATTENDEE_POPULATION
public static final String PROPERTY_ATTENDEE_POPULATION
Property name for attendee population *- See Also:
- Constant Field Values
-
PROPERTY_ATTENDEE_LOGIN
public static final String PROPERTY_ATTENDEE_LOGIN
Property name for attendee login *- See Also:
- Constant Field Values
-
PROPERTY_ATTENDEE_EMAIL
public static final String PROPERTY_ATTENDEE_EMAIL
Property name for attendee email *- See Also:
- Constant Field Values
-
PROPERTY_ATTENDEE_EXTERNAL
public static final String PROPERTY_ATTENDEE_EXTERNAL
Property name for attendee external *- See Also:
- Constant Field Values
-
PROPERTY_ATTENDEE_MANDATORY
public static final String PROPERTY_ATTENDEE_MANDATORY
Property name for attendee mandatory *- See Also:
- Constant Field Values
-
NODE_ATTENDEES_NAME
public static final String NODE_ATTENDEES_NAME
Name of the node for attendees *- See Also:
- Constant Field Values
-
NODE_ATTENDEE_NAME
public static final String NODE_ATTENDEE_NAME
Name of the node for attendee *- See Also:
- Constant Field Values
-
PROPERTY_WORKFLOW_ID
public static final String PROPERTY_WORKFLOW_ID
Property's name for workflow id- See Also:
- Constant Field Values
-
ATTRIBUTE_RESOURCES
public static final String ATTRIBUTE_RESOURCES
Property's name for resources- See Also:
- Constant Field Values
-
-
Constructor Detail
-
JCRCalendarEvent
public JCRCalendarEvent(Node node, String parentPath, JCRCalendarEventFactory factory)
Creates anJCRCalendarEvent
.- Parameters:
node
- the node backing thisAmetysObject
parentPath
- the parentPath in the Ametys hierarchyfactory
- the DefaultAmetysObjectFactory which created the AmetysObject
-
-
Method Detail
-
getTitle
public String getTitle()
Description copied from interface:CalendarEvent
Get the title of the event- Specified by:
getTitle
in interfaceCalendarEvent
- Returns:
- the title of the event
-
getDescription
public String getDescription()
Description copied from interface:CalendarEvent
Get the description of the event- Specified by:
getDescription
in interfaceCalendarEvent
- Returns:
- the description of the event
-
getLocation
public String getLocation()
Description copied from interface:CalendarEvent
Get the location of the event- Specified by:
getLocation
in interfaceCalendarEvent
- Returns:
- the location of the event
-
tag
public void tag(String tag) throws AmetysRepositoryException
Description copied from interface:TaggableAmetysObject
Tags.- Specified by:
tag
in interfaceTaggableAmetysObject
- Parameters:
tag
- the tag to add.- Throws:
AmetysRepositoryException
- if an error occurs.
-
untag
public void untag(String tag) throws AmetysRepositoryException
Description copied from interface:TaggableAmetysObject
Untags.- Specified by:
untag
in interfaceTaggableAmetysObject
- Parameters:
tag
- the tag to remove.- Throws:
AmetysRepositoryException
- if an error occurs.
-
getTags
public Set<String> getTags() throws AmetysRepositoryException
Description copied from interface:TagAwareAmetysObject
Retrieves current tags.- Specified by:
getTags
in interfaceTagAwareAmetysObject
- Returns:
- the current tags.
- Throws:
AmetysRepositoryException
- if an error occurs.
-
getStartDate
public ZonedDateTime getStartDate()
Description copied from interface:CalendarEvent
Get the date of the begin of the event- Specified by:
getStartDate
in interfaceCalendarEvent
- Returns:
- the date of the event
-
getEndDate
public ZonedDateTime getEndDate()
Description copied from interface:CalendarEvent
Get the date of the end of the event- Specified by:
getEndDate
in interfaceCalendarEvent
- Returns:
- the date of the event
-
getZone
public ZoneId getZone()
Description copied from interface:CalendarEvent
Get the date zone of the event- Specified by:
getZone
in interfaceCalendarEvent
- Returns:
- the date zone of the event
-
getFullDay
public Boolean getFullDay()
Description copied from interface:CalendarEvent
Get if the event last all the day- Specified by:
getFullDay
in interfaceCalendarEvent
- Returns:
- true if the event last all the day
-
getCreator
public UserIdentity getCreator()
Description copied from interface:CalendarEvent
Retrieves the the creator.- Specified by:
getCreator
in interfaceCalendarEvent
- Returns:
- the creator.
-
getCreationDate
public ZonedDateTime getCreationDate()
Description copied from interface:CalendarEvent
Retrieves the creation date.- Specified by:
getCreationDate
in interfaceCalendarEvent
- Returns:
- the creation date.
-
getLastContributor
public UserIdentity getLastContributor()
Description copied from interface:CalendarEvent
Retrieves the last contributor.- Specified by:
getLastContributor
in interfaceCalendarEvent
- Returns:
- the last contributor.
-
getLastModified
public ZonedDateTime getLastModified()
Description copied from interface:CalendarEvent
Retrieves the last modification date.- Specified by:
getLastModified
in interfaceCalendarEvent
- Returns:
- the last modification date.
-
getRecurrenceType
public EventRecurrenceTypeEnum getRecurrenceType()
Description copied from interface:CalendarEvent
Retrieves the recurrence type.- Specified by:
getRecurrenceType
in interfaceCalendarEvent
- Returns:
- the recurrence type.
-
isRecurrent
public Boolean isRecurrent()
Description copied from interface:CalendarEvent
Retrieves if the event is recurrent.- Specified by:
isRecurrent
in interfaceCalendarEvent
- Returns:
- true if the event is recurrent.
-
getRepeatUntil
public ZonedDateTime getRepeatUntil()
Description copied from interface:CalendarEvent
Retrieves the end date of the frequency.- Specified by:
getRepeatUntil
in interfaceCalendarEvent
- Returns:
- the end date of the frequency.
-
getExcludedOccurences
public List<ZonedDateTime> getExcludedOccurences()
Description copied from interface:CalendarEvent
Retrieves the list of excluded event date.- Specified by:
getExcludedOccurences
in interfaceCalendarEvent
- Returns:
- the list of excluded event date.
-
getOrganiser
public UserIdentity getOrganiser()
Description copied from interface:CalendarEvent
Retrieves the organiser.- Specified by:
getOrganiser
in interfaceCalendarEvent
- Returns:
- the organiser.
-
getResources
public List<String> getResources()
Description copied from interface:CalendarEvent
Retrieves the resource list.- Specified by:
getResources
in interfaceCalendarEvent
- Returns:
- the resource list.
-
setTitle
public void setTitle(String title)
Description copied from interface:ModifiableCalendarEvent
Set the title of the event- Specified by:
setTitle
in interfaceModifiableCalendarEvent
- Parameters:
title
- the title
-
setDescription
public void setDescription(String desc)
Description copied from interface:ModifiableCalendarEvent
Set the description of the event- Specified by:
setDescription
in interfaceModifiableCalendarEvent
- Parameters:
desc
- the description
-
setLocation
public void setLocation(String location)
Description copied from interface:ModifiableCalendarEvent
Set the location of the event- Specified by:
setLocation
in interfaceModifiableCalendarEvent
- Parameters:
location
- the location
-
setStartDate
public void setStartDate(ZonedDateTime startDate)
Description copied from interface:ModifiableCalendarEvent
Set the startDate of the event- Specified by:
setStartDate
in interfaceModifiableCalendarEvent
- Parameters:
startDate
- the start date
-
setEndDate
public void setEndDate(ZonedDateTime endDate)
Description copied from interface:ModifiableCalendarEvent
Set the endDate of the event- Specified by:
setEndDate
in interfaceModifiableCalendarEvent
- Parameters:
endDate
- the end date
-
setZone
public void setZone(ZoneId dateZone)
Description copied from interface:ModifiableCalendarEvent
Set the date zone of the event- Specified by:
setZone
in interfaceModifiableCalendarEvent
- Parameters:
dateZone
- the date zone
-
setFullDay
public void setFullDay(Boolean fullDay)
Description copied from interface:ModifiableCalendarEvent
Set if the event last all the day- Specified by:
setFullDay
in interfaceModifiableCalendarEvent
- Parameters:
fullDay
- is a fullday event
-
setCreator
public void setCreator(UserIdentity user)
Description copied from interface:ModifiableCalendarEvent
Set the creator- Specified by:
setCreator
in interfaceModifiableCalendarEvent
- Parameters:
user
- The creator
-
setCreationDate
public void setCreationDate(ZonedDateTime date)
Description copied from interface:ModifiableCalendarEvent
Set the creation date- Specified by:
setCreationDate
in interfaceModifiableCalendarEvent
- Parameters:
date
- The creation date
-
setLastContributor
public void setLastContributor(UserIdentity user)
Description copied from interface:ModifiableCalendarEvent
Set the last contributor- Specified by:
setLastContributor
in interfaceModifiableCalendarEvent
- Parameters:
user
- The last contributor
-
setLastModified
public void setLastModified(ZonedDateTime date)
Description copied from interface:ModifiableCalendarEvent
Set the last modified date- Specified by:
setLastModified
in interfaceModifiableCalendarEvent
- Parameters:
date
- The last modified date
-
setRecurrenceType
public void setRecurrenceType(String recurrenceType)
Description copied from interface:ModifiableCalendarEvent
Set the recurrence type.- Specified by:
setRecurrenceType
in interfaceModifiableCalendarEvent
- Parameters:
recurrenceType
- the recurrence type
-
setRepeatUntil
public void setRepeatUntil(ZonedDateTime untilDate)
Description copied from interface:ModifiableCalendarEvent
Set the end date of the frequency.- Specified by:
setRepeatUntil
in interfaceModifiableCalendarEvent
- Parameters:
untilDate
- the end date of the recurrence
-
setExcludedOccurrences
public void setExcludedOccurrences(List<ZonedDateTime> excludedOccurrences)
Description copied from interface:ModifiableCalendarEvent
Set the list of excluded event date.- Specified by:
setExcludedOccurrences
in interfaceModifiableCalendarEvent
- Parameters:
excludedOccurrences
- excluded date
-
getOccurrences
public List<CalendarEventOccurrence> getOccurrences(ZonedDateTime startDate, ZonedDateTime endDate)
Description copied from interface:CalendarEvent
Retrieves the list of all event date between startDate and endDate.- Specified by:
getOccurrences
in interfaceCalendarEvent
- Parameters:
startDate
- the start dateendDate
- the end date- Returns:
- the list of all event date between startDate and endDate.
-
getFirstOccurrence
public Optional<CalendarEventOccurrence> getFirstOccurrence(ZonedDateTime date)
Description copied from interface:CalendarEvent
Retrieves the start date of the first Event which end after the date- Specified by:
getFirstOccurrence
in interfaceCalendarEvent
- Parameters:
date
- the date- Returns:
- the start date of the first Event which end after the date
-
getNextOccurrence
public Optional<CalendarEventOccurrence> getNextOccurrence(CalendarEventOccurrence occurrence)
Description copied from interface:CalendarEvent
Retrieves the date of the next event after the date- Specified by:
getNextOccurrence
in interfaceCalendarEvent
- Parameters:
occurrence
- the current occurrence- Returns:
- the occurrence of the next event after the date
-
getWorkflowId
public long getWorkflowId() throws AmetysRepositoryException
Description copied from interface:WorkflowAwareAmetysObject
Retrieves the workflow id associated with the Ametys object.- Specified by:
getWorkflowId
in interfaceWorkflowAwareAmetysObject
- Returns:
- the workflow id.
- Throws:
AmetysRepositoryException
- if an error occurs.
-
setWorkflowId
public void setWorkflowId(long workflowId) throws AmetysRepositoryException
Description copied from interface:WorkflowAwareAmetysObject
Set the workflow id of this Ametys object.
This method will throw Exception if the workflow id was already set on this Ametys object.- Specified by:
setWorkflowId
in interfaceWorkflowAwareAmetysObject
- Parameters:
workflowId
- the workflow id of the object.- Throws:
AmetysRepositoryException
- if an error occurs.
-
getCurrentStepId
public long getCurrentStepId()
Description copied from interface:WorkflowAwareAmetysObject
Retrieves the current step id of the Ametys object- Specified by:
getCurrentStepId
in interfaceWorkflowAwareAmetysObject
- Returns:
- the current step id
-
setCurrentStepId
public void setCurrentStepId(long stepId)
Description copied from interface:WorkflowAwareAmetysObject
Set the current step id of the Ametys object- Specified by:
setCurrentStepId
in interfaceWorkflowAwareAmetysObject
- Parameters:
stepId
- the step id to set
-
setOrganiser
public void setOrganiser(UserIdentity user)
Description copied from interface:ModifiableCalendarEvent
Set the oragniser- Specified by:
setOrganiser
in interfaceModifiableCalendarEvent
- Parameters:
user
- The oragniser
-
getAttendees
public List<CalendarEventAttendee> getAttendees() throws RepositoryException
Get attendees to the event- Returns:
- the attendees
- Throws:
RepositoryException
- if an error occurred
-
setAttendees
public void setAttendees(List<CalendarEventAttendee> attendees) throws RepositoryException
Set attendees to the event- Parameters:
attendees
- the list of attendees- Throws:
RepositoryException
- if an error occurred
-
setResources
public void setResources(List<String> resources)
Description copied from interface:ModifiableCalendarEvent
Set the resources- Specified by:
setResources
in interfaceModifiableCalendarEvent
- Parameters:
resources
- The resources
-
getDataHolder
public ModifiableModelAwareDataHolder getDataHolder()
Description copied from interface:DataAwareAmetysObject
Returns theDataHolder
of thisAmetysObject
.- Specified by:
getDataHolder
in interfaceDataAwareAmetysObject
- Specified by:
getDataHolder
in interfaceModelAwareDataAwareAmetysObject
- Specified by:
getDataHolder
in interfaceModifiableModelAwareDataAwareAmetysObject
- Returns:
- the
DataHolder
of thisAmetysObject
-
-