Interface CalendarEvent
-
- All Superinterfaces:
AmetysObject
,JCRAmetysObject
,MetadataAwareAmetysObject
,ModifiableAmetysObject
,ModifiableMetadataAwareAmetysObject
,RemovableAmetysObject
,TagAwareAmetysObject
,TaggableAmetysObject
,WorkflowAwareAmetysObject
- All Known Subinterfaces:
ModifiableCalendarEvent
- All Known Implementing Classes:
JCRCalendarEvent
public interface CalendarEvent extends WorkflowAwareAmetysObject, TaggableAmetysObject
Calendar event interface
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ZonedDateTime
getCreationDate()
Retrieves the creation date.UserIdentity
getCreator()
Retrieves the the creator.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 eventString
getTitle()
Get the title of the eventZoneId
getZone()
Get the date zone of the eventBoolean
isRecurrent()
Retrieves if the event is recurrent.-
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
-
Methods inherited from interface org.ametys.plugins.repository.tag.TagAwareAmetysObject
getTags
-
Methods inherited from interface org.ametys.plugins.repository.tag.TaggableAmetysObject
tag, untag
-
Methods inherited from interface org.ametys.plugins.workflow.repository.WorkflowAwareAmetysObject
getCurrentStepId, getWorkflowId, setCurrentStepId, setWorkflowId
-
-
-
-
Method Detail
-
getDescription
String getDescription()
Get the description of the event- Returns:
- the description of the event
-
getLocation
String getLocation()
Get the location of the event- Returns:
- the location of the event
-
getStartDate
ZonedDateTime getStartDate()
Get the date of the begin of the event- Returns:
- the date of the event
-
getEndDate
ZonedDateTime getEndDate()
Get the date of the end of the event- Returns:
- the date of the event
-
getFullDay
Boolean getFullDay()
Get if the event last all the day- Returns:
- true if the event last all the day
-
getCreator
UserIdentity getCreator()
Retrieves the the creator.- Returns:
- the creator.
- Throws:
AmetysRepositoryException
- if an error occurs.
-
getCreationDate
ZonedDateTime getCreationDate()
Retrieves the creation date.- Returns:
- the creation date.
- Throws:
AmetysRepositoryException
- if an error occurs.
-
getLastContributor
UserIdentity getLastContributor()
Retrieves the last contributor.- Returns:
- the last contributor.
- Throws:
AmetysRepositoryException
- if an error occurs.
-
getLastModified
ZonedDateTime getLastModified()
Retrieves the last modification date.- Returns:
- the last modification date.
- Throws:
AmetysRepositoryException
- if an error occurs.
-
getRecurrenceType
EventRecurrenceTypeEnum getRecurrenceType()
Retrieves the recurrence type.- Returns:
- the recurrence type.
-
isRecurrent
Boolean isRecurrent()
Retrieves if the event is recurrent.- Returns:
- true if the event is recurrent.
-
getRepeatUntil
ZonedDateTime getRepeatUntil()
Retrieves the end date of the frequency.- Returns:
- the end date of the frequency.
-
getExcludedOccurences
List<ZonedDateTime> getExcludedOccurences()
Retrieves the list of excluded event date.- Returns:
- the list of excluded event date.
-
getOccurrences
List<CalendarEventOccurrence> getOccurrences(ZonedDateTime startDate, ZonedDateTime endDate)
Retrieves the list of all event date between startDate and endDate.- Parameters:
startDate
- the start dateendDate
- the end date- Returns:
- the list of all event date between startDate and endDate.
-
getFirstOccurrence
Optional<CalendarEventOccurrence> getFirstOccurrence(ZonedDateTime date)
Retrieves the start date of the first Event which end after the date- Parameters:
date
- the date- Returns:
- the start date of the first Event which end after the date
-
getNextOccurrence
Optional<CalendarEventOccurrence> getNextOccurrence(CalendarEventOccurrence occurrence)
Retrieves the date of the next event after the date- Parameters:
occurrence
- the current occurrence- Returns:
- the occurrence of the next event after the date
-
getOrganiser
UserIdentity getOrganiser()
Retrieves the organiser.- Returns:
- the organiser.
- Throws:
AmetysRepositoryException
- if an error occurs.
-
getResources
List<String> getResources()
Retrieves the resource list.- Returns:
- the resource list.
-
-