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.void
Tags.void
Untags.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:TaggableAmetysObject
Tags.- Specified by:
tag
in interfaceTaggableAmetysObject
- Parameters:
tag
- the tag to add.- Throws:
AmetysRepositoryException
- if an error occurs.
-
untag
Description copied from interface:TaggableAmetysObject
Untags.- Specified by:
untag
in interfaceTaggableAmetysObject
- Parameters:
tag
- the tag to remove.- Throws:
AmetysRepositoryException
- if an error occurs.
-
getTags
Description copied from interface:TagAwareAmetysObject
Retrieves current tags.- Specified by:
getTags
in interfaceTagAwareAmetysObject
- Returns:
- the current tags.
- Throws:
AmetysRepositoryException
- if an error occurs.
-
getName
Description copied from interface:AmetysObject
Retrieves the name of the current object.- Specified by:
getName
in interfaceAmetysObject
- Returns:
- the name.
- Throws:
AmetysRepositoryException
- if an error occurs.
-
getPath
Description copied from interface:AmetysObject
Retrieves the path of the current object.- Specified by:
getPath
in interfaceAmetysObject
- Returns:
- the path.
- Throws:
AmetysRepositoryException
- if an error occurs.
-
getId
Description copied from interface:AmetysObject
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>
- Specified by:
getId
in interfaceAmetysObject
- Returns:
- the unique identifier of this AmetysObject
- Throws:
AmetysRepositoryException
- if an error occurs.
-
getParent
Description copied from interface:AmetysObject
Returns the parent object in the Ametys hierarchy.- Specified by:
getParent
in interfaceAmetysObject
- Type Parameters:
A
- the type of the parentAmetysObject
.- Returns:
- the parent object or
null
if current object is the root. - Throws:
AmetysRepositoryException
- if an error occurs.
-
getParentPath
Description copied from interface:AmetysObject
Returns the path of the parent object in the Ametys hierarchy.- Specified by:
getParentPath
in interfaceAmetysObject
- Returns:
- the path of the parent object.
- Throws:
AmetysRepositoryException
- if an error occurs.
-
getCalendar
Description copied from interface:CalendarEvent
Get the calendar holding the event- Specified by:
getCalendar
in interfaceCalendarEvent
- Returns:
- the calendar
-
getTitle
Description copied from interface:CalendarEvent
Get the title of the event- Specified by:
getTitle
in interfaceCalendarEvent
- Returns:
- the title of the event
-
getDescription
Description copied from interface:CalendarEvent
Get the description of the event- Specified by:
getDescription
in interfaceCalendarEvent
- Returns:
- the description of the event
-
getLocation
Description copied from interface:CalendarEvent
Get the location of the event- Specified by:
getLocation
in interfaceCalendarEvent
- Returns:
- the location of the event
-
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
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
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
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
Description copied from interface:CalendarEvent
Retrieves the the creator.- Specified by:
getCreator
in interfaceCalendarEvent
- Returns:
- the creator.
-
getCreationDate
Description copied from interface:CalendarEvent
Retrieves the creation date.- Specified by:
getCreationDate
in interfaceCalendarEvent
- Returns:
- the creation date.
-
getLastContributor
Description copied from interface:CalendarEvent
Retrieves the last contributor.- Specified by:
getLastContributor
in interfaceCalendarEvent
- Returns:
- the last contributor.
-
getLastModified
Description copied from interface:CalendarEvent
Retrieves the last modification date.- Specified by:
getLastModified
in interfaceCalendarEvent
- Returns:
- the last modification date.
-
getRecurrenceType
Description copied from interface:CalendarEvent
Retrieves the recurrence type.- Specified by:
getRecurrenceType
in interfaceCalendarEvent
- Returns:
- the recurrence type.
-
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
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
Description copied from interface:CalendarEvent
Retrieves the list of excluded event date.- Specified by:
getExcludedOccurences
in interfaceCalendarEvent
- Returns:
- the list of excluded event date.
-
getOccurrences
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
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
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
-
getOrganiser
Description copied from interface:CalendarEvent
Retrieves the organiser.- Specified by:
getOrganiser
in interfaceCalendarEvent
- Returns:
- the organiser.
-
getResources
Description copied from interface:CalendarEvent
Retrieves the resource list.- Specified by:
getResources
in interfaceCalendarEvent
- Returns:
- the resource list.
-