public class JCRCalendar extends DefaultTraversableAmetysObject<JCRCalendarFactory> implements ModifiableCalendar
Calendar, backed by a JCR node.Calendar.CalendarVisibility| Modifier and Type | Field and Description |
|---|---|
static String |
APPLICATION_ID
application id for resources collections.
|
static String |
CALENDAR_COLOR
Constants for color Calendar*
|
static String |
CALENDAR_DESC
Constants for description Calendar*
|
static String |
CALENDAR_ICS_TOKEN
Constants for Calendar ICS token
|
static String |
CALENDAR_TEMPLATE_DESC
Constants for template description Calendar*
|
static String |
CALENDAR_TITLE
Constants for title Calendar*
|
static String |
CALENDAR_VISIBILITY
Constants for color Visibility*
|
static String |
CALENDAR_WORKFLOW_NAME
Constants for workflowName Calendar*
|
| Constructor and Description |
|---|
JCRCalendar(Node node,
String parentPath,
JCRCalendarFactory factory)
Creates an
JCRCalendar. |
| Modifier and Type | Method and Description |
|---|---|
String |
getApplicationId()
Returns the application id corresponding to this Node.
|
String |
getColor()
Get the color of the calendar
|
String |
getDescription()
Get the description of the application
|
Map<CalendarEvent,List<Date>> |
getEvents(Date startDate,
Date endDate)
Get the events and its occurrences of the calendar between two dates
|
String |
getExplorerPath()
Returns the path of this explorer node in the explorer hierarchy (which is a subset of the whole repository).
If this collection is the root explorer node, "" is returned. |
String |
getIconCls()
Returns the icon css class for this Node.
|
String |
getIcsUrlToken()
Get the token used by the ICS public URL
|
String |
getTemplateDescription()
Get the template description of the calendar
|
Calendar.CalendarVisibility |
getVisibility()
Get the calendar visibility
|
String |
getWorkflowName()
Get the name of the workflow of the calendar
|
boolean |
hasChildExplorerNodes()
Returns true if this explorer node contains child explorer nodes.
|
void |
setColor(String color)
set the color of the calendar
|
void |
setDescription(String desc)
set the description of the calendar
|
void |
setIcsUrlToken(String token)
Set the token used by the ICS public URL
|
void |
setTemplateDescription(String templateDesc)
set the template description of the calendar
|
void |
setVisibility(Calendar.CalendarVisibility visibility)
Set the visibility of the calendar
|
void |
setWorkflowName(String workflowName)
set the name of the workflow of the calendar
|
addAllowedGroups, addAllowedProfilesForAnonymous, addAllowedProfilesForAnyConnectedUser, addAllowedUsers, addDeniedGroups, addDeniedProfilesForAnonymous, addDeniedProfilesForAnyConnectedUser, addDeniedUsers, createChild, getAllowedGroups, getAllowedProfilesForAnonymous, getAllowedProfilesForAnyConnectedUser, getAllowedProfilesForGroups, getAllowedProfilesForUser, getAllowedProfilesForUsers, getAllowedUsers, getChild, getChildren, getDeniedGroups, getDeniedProfilesForAnonymous, getDeniedProfilesForAnyConnectedUser, getDeniedProfilesForGroups, getDeniedProfilesForUser, getDeniedProfilesForUsers, getDeniedUsers, hasChild, removeAllowedGroups, removeAllowedGroups, removeAllowedProfilesForAnonymous, removeAllowedProfilesForAnyConnectedUser, removeAllowedUsers, removeAllowedUsers, removeDeniedGroups, removeDeniedGroups, removeDeniedProfilesForAnonymous, removeDeniedProfilesForAnyConnectedUser, removeDeniedUsers, removeDeniedUsers_getFactory, _invalidateName, _invalidateParentPath, getId, getMetadataHolder, getName, getNode, getParent, getParentPath, getPath, needsSave, remove, rename, revertChanges, saveChangesequals, hashCode, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitcreateChildgetChild, getChildAt, getChildPosition, getChildren, hasChildremoveneedsSave, rename, revertChanges, saveChangesequals, getId, getName, getParent, getParentPath, getPath, hashCodegetNodegetMetadataHolderpublic static final String APPLICATION_ID
public static final String CALENDAR_TITLE
public static final String CALENDAR_DESC
public static final String CALENDAR_COLOR
public static final String CALENDAR_VISIBILITY
public static final String CALENDAR_WORKFLOW_NAME
public static final String CALENDAR_TEMPLATE_DESC
public static final String CALENDAR_ICS_TOKEN
public JCRCalendar(Node node, String parentPath, JCRCalendarFactory factory)
JCRCalendar.node - the node backing this AmetysObjectparentPath - the parentPath in the Ametys hierarchyfactory - the DefaultAmetysObjectFactory which created the AmetysObjectpublic String getIconCls()
ExplorerNodegetIconCls in interface ExplorerNodepublic String getApplicationId()
ExplorerNodegetApplicationId in interface ExplorerNodepublic String getExplorerPath()
ExplorerNodegetExplorerPath in interface ExplorerNodepublic String getDescription()
ExplorerNodegetDescription in interface ExplorerNodepublic String getColor()
Calendarpublic Calendar.CalendarVisibility getVisibility()
CalendargetVisibility in interface Calendarpublic String getWorkflowName()
CalendargetWorkflowName in interface Calendarpublic String getTemplateDescription()
CalendargetTemplateDescription in interface Calendarpublic Map<CalendarEvent,List<Date>> getEvents(Date startDate, Date endDate)
Calendarpublic void setDescription(String desc)
ModifiableCalendarsetDescription in interface ModifiableCalendarsetDescription in interface ModifiableExplorerNodedesc - The descriptionpublic void setColor(String color)
ModifiableCalendarsetColor in interface ModifiableCalendarcolor - The color to setpublic void setVisibility(Calendar.CalendarVisibility visibility)
ModifiableCalendarsetVisibility in interface ModifiableCalendarvisibility - The visibilitypublic void setWorkflowName(String workflowName)
ModifiableCalendarsetWorkflowName in interface ModifiableCalendarworkflowName - The workflow namepublic void setTemplateDescription(String templateDesc)
ModifiableCalendarsetTemplateDescription in interface ModifiableCalendartemplateDesc - The template descriptionpublic boolean hasChildExplorerNodes() throws AmetysRepositoryException
ExplorerNodehasChildExplorerNodes in interface ExplorerNodeAmetysRepositoryException - if an error occurs.public String getIcsUrlToken()
CalendargetIcsUrlToken in interface Calendarpublic void setIcsUrlToken(String token)
ModifiableCalendarsetIcsUrlToken in interface ModifiableCalendartoken - The token, or null to delete the existing token