Class MailXSLTHelper
java.lang.Object
org.ametys.plugins.workspaces.project.helper.MailXSLTHelper
- All Implemented Interfaces:
Serviceable
Helper providing information required for mail notification
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getCalendarColor
(String calendarId) Get the color of aCalendar
from its idstatic String
getCalendarEventEndDate
(String eventId) Get the end date of a calendar event from its idstatic String
getCalendarEventRecurrence
(String eventId) Get the recurrence of a calendar event from its idstatic String
getCalendarEventRepeatUntil
(String eventId) Get the date of end of recurrence of a calendar event from its idstatic String
getCalendarEventStartDate
(String eventId) Get the start date of a calendar event from its idstatic String
getFileType
(String mimeType) Get a file type from a mime type.static String
getFileTypeFromId
(String resourceId) Get a file type from a resourceId.static String
getThreadAuthorFullname
(String threadId) Get the author's fullname of a thread by its idstatic String
getThreadCreationDate
(String threadId) Get the creation date of a thread by its idstatic boolean
isCalendarEventFullDay
(String eventId) Test if a calendar event last all day from its idvoid
service
(ServiceManager manager)
-
Constructor Details
-
MailXSLTHelper
public MailXSLTHelper()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
getFileTypeFromId
Get a file type from a resourceId.- Parameters:
resourceId
- the id of the resource we want to get the file type- Returns:
- the name of the file type
-
getFileType
Get a file type from a mime type.- Parameters:
mimeType
- the mime type to transform- Returns:
- the name of the file type
-
getCalendarColor
Get the color of aCalendar
from its id- Parameters:
calendarId
- the calendar's id- Returns:
- the color of the calendar
-
getCalendarEventStartDate
Get the start date of a calendar event from its id- Parameters:
eventId
- the event's id- Returns:
- the
String
representation of the date
-
getCalendarEventEndDate
Get the end date of a calendar event from its id- Parameters:
eventId
- the event's id- Returns:
- the
String
representation of the date
-
isCalendarEventFullDay
Test if a calendar event last all day from its id- Parameters:
eventId
- the event's id- Returns:
- true if the calendar event last all day
-
getCalendarEventRecurrence
Get the recurrence of a calendar event from its id- Parameters:
eventId
- the event's id- Returns:
- the recurrence of the calendar event
-
getCalendarEventRepeatUntil
Get the date of end of recurrence of a calendar event from its id- Parameters:
eventId
- the event's id- Returns:
- the
String
representation of the date of end of recurrence
-
getThreadCreationDate
Get the creation date of a thread by its id- Parameters:
threadId
- the thread's id- Returns:
- the
String
representation of the creation date of the thread
-
getThreadAuthorFullname
Get the author's fullname of a thread by its id- Parameters:
threadId
- the thread's id- Returns:
- the author fullname
-