Class TaskCalendarEvent
java.lang.Object
org.ametys.plugins.workspaces.calendars.task.TaskCalendarEvent
- All Implemented Interfaces:
AmetysObject,TagAwareAmetysObject,TaggableAmetysObject,CalendarEvent
Object for a task calendar event
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the calendar holding the eventRetrieves the creation date.Retrieves the the creator.Get the description of the eventGet the date of the end of the eventRetrieves the list of excluded event date.Retrieves the start date of the first Event which end after the dateGet if the event last all the daygetId()Retrieves the unique identifier of this AmetysObject.
It must be unique in the whole repository and must never be null.
It must conform to the URI syntax:
<protocol>://<protocol-specific-part>Retrieves the last contributor.Retrieves the last modification date.Get the location of the eventgetName()Retrieves the name of the current object.getNextOccurrence(CalendarEventOccurrence occurrence) Retrieves the date of the next event after the dategetOccurrences(ZonedDateTime startDate, ZonedDateTime endDate) Retrieves the list of all event date between startDate and endDate.Retrieves the organiser.<A extends AmetysObject>
AReturns the parent object in the Ametys hierarchy.Returns the path of the parent object in the Ametys hierarchy.getPath()Retrieves the path of the current object.Retrieves the recurrence type.Retrieves the end date of the frequency.Retrieves the resource list.Get the date of the begin of the eventgetTags()Retrieves current tags.getTask()Return the task link to the calendar eventgetTitle()Get the title of the eventgetZone()Get the date zone of the eventRetrieves if the event is recurrent.voidTags.voidUntags.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ametys.plugins.repository.AmetysObject
equals, hashCode
-
Constructor Details
-
TaskCalendarEvent
The constructor- Parameters:
calendar- the calendartask- the task
-
-
Method Details
-
getTask
Return the task link to the calendar event- Returns:
- the task
-
tag
Description copied from interface:TaggableAmetysObjectTags.- Specified by:
tagin interfaceTaggableAmetysObject- Parameters:
tag- the tag to add.- Throws:
AmetysRepositoryException- if an error occurs.
-
untag
Description copied from interface:TaggableAmetysObjectUntags.- Specified by:
untagin interfaceTaggableAmetysObject- Parameters:
tag- the tag to remove.- Throws:
AmetysRepositoryException- if an error occurs.
-
getTags
Description copied from interface:TagAwareAmetysObjectRetrieves current tags.- Specified by:
getTagsin interfaceTagAwareAmetysObject- Returns:
- the current tags.
- Throws:
AmetysRepositoryException- if an error occurs.
-
getName
Description copied from interface:AmetysObjectRetrieves the name of the current object.- Specified by:
getNamein interfaceAmetysObject- Returns:
- the name.
- Throws:
AmetysRepositoryException- if an error occurs.
-
getPath
Description copied from interface:AmetysObjectRetrieves the path of the current object.- Specified by:
getPathin interfaceAmetysObject- Returns:
- the path.
- Throws:
AmetysRepositoryException- if an error occurs.
-
getId
Description copied from interface:AmetysObjectRetrieves the unique identifier of this AmetysObject.
It must be unique in the whole repository and must never be null.
It must conform to the URI syntax:
<protocol>://<protocol-specific-part>- Specified by:
getIdin interfaceAmetysObject- Returns:
- the unique identifier of this AmetysObject
- Throws:
AmetysRepositoryException- if an error occurs.
-
getParent
Description copied from interface:AmetysObjectReturns the parent object in the Ametys hierarchy.- Specified by:
getParentin interfaceAmetysObject- Type Parameters:
A- the type of the parentAmetysObject.- Returns:
- the parent object or
nullif current object is the root. - Throws:
AmetysRepositoryException- if an error occurs.
-
getParentPath
Description copied from interface:AmetysObjectReturns the path of the parent object in the Ametys hierarchy.- Specified by:
getParentPathin interfaceAmetysObject- Returns:
- the path of the parent object.
- Throws:
AmetysRepositoryException- if an error occurs.
-
getCalendar
Description copied from interface:CalendarEventGet the calendar holding the event- Specified by:
getCalendarin interfaceCalendarEvent- Returns:
- the calendar
-
getTitle
Description copied from interface:CalendarEventGet the title of the event- Specified by:
getTitlein interfaceCalendarEvent- Returns:
- the title of the event
-
getDescription
Description copied from interface:CalendarEventGet the description of the event- Specified by:
getDescriptionin interfaceCalendarEvent- Returns:
- the description of the event
-
getLocation
Description copied from interface:CalendarEventGet the location of the event- Specified by:
getLocationin interfaceCalendarEvent- Returns:
- the location of the event
-
getStartDate
Description copied from interface:CalendarEventGet the date of the begin of the event- Specified by:
getStartDatein interfaceCalendarEvent- Returns:
- the date of the event
-
getEndDate
Description copied from interface:CalendarEventGet the date of the end of the event- Specified by:
getEndDatein interfaceCalendarEvent- Returns:
- the date of the event
-
getZone
Description copied from interface:CalendarEventGet the date zone of the event- Specified by:
getZonein interfaceCalendarEvent- Returns:
- the date zone of the event
-
getFullDay
Description copied from interface:CalendarEventGet if the event last all the day- Specified by:
getFullDayin interfaceCalendarEvent- Returns:
- true if the event last all the day
-
getCreator
Description copied from interface:CalendarEventRetrieves the the creator.- Specified by:
getCreatorin interfaceCalendarEvent- Returns:
- the creator.
-
getCreationDate
Description copied from interface:CalendarEventRetrieves the creation date.- Specified by:
getCreationDatein interfaceCalendarEvent- Returns:
- the creation date.
-
getLastContributor
Description copied from interface:CalendarEventRetrieves the last contributor.- Specified by:
getLastContributorin interfaceCalendarEvent- Returns:
- the last contributor.
-
getLastModified
Description copied from interface:CalendarEventRetrieves the last modification date.- Specified by:
getLastModifiedin interfaceCalendarEvent- Returns:
- the last modification date.
-
getRecurrenceType
Description copied from interface:CalendarEventRetrieves the recurrence type.- Specified by:
getRecurrenceTypein interfaceCalendarEvent- Returns:
- the recurrence type.
-
isRecurrent
Description copied from interface:CalendarEventRetrieves if the event is recurrent.- Specified by:
isRecurrentin interfaceCalendarEvent- Returns:
- true if the event is recurrent.
-
getRepeatUntil
Description copied from interface:CalendarEventRetrieves the end date of the frequency.- Specified by:
getRepeatUntilin interfaceCalendarEvent- Returns:
- the end date of the frequency.
-
getExcludedOccurences
Description copied from interface:CalendarEventRetrieves the list of excluded event date.- Specified by:
getExcludedOccurencesin interfaceCalendarEvent- Returns:
- the list of excluded event date.
-
getOccurrences
Description copied from interface:CalendarEventRetrieves the list of all event date between startDate and endDate.- Specified by:
getOccurrencesin interfaceCalendarEvent- Parameters:
startDate- the start dateendDate- the end date- Returns:
- the list of all event date between startDate and endDate.
-
getFirstOccurrence
Description copied from interface:CalendarEventRetrieves the start date of the first Event which end after the date- Specified by:
getFirstOccurrencein interfaceCalendarEvent- Parameters:
date- the date- Returns:
- the start date of the first Event which end after the date
-
getNextOccurrence
Description copied from interface:CalendarEventRetrieves the date of the next event after the date- Specified by:
getNextOccurrencein interfaceCalendarEvent- Parameters:
occurrence- the current occurrence- Returns:
- the occurrence of the next event after the date
-
getOrganiser
Description copied from interface:CalendarEventRetrieves the organiser.- Specified by:
getOrganiserin interfaceCalendarEvent- Returns:
- the organiser.
-
getResources
Description copied from interface:CalendarEventRetrieves the resource list.- Specified by:
getResourcesin interfaceCalendarEvent- Returns:
- the resource list.
-