Class JCRCalendarResource
- java.lang.Object
-
- org.ametys.plugins.repository.AbstractAmetysObject
-
- org.ametys.plugins.repository.jcr.SimpleAmetysObject<F>
-
- org.ametys.plugins.repository.jcr.DefaultAmetysObject<JCRCalendarResourceFactory>
-
- org.ametys.plugins.workspaces.calendars.jcr.JCRCalendarResource
-
- All Implemented Interfaces:
ACLAmetysObject,AmetysObject,DataAwareAmetysObject,ModelAwareDataAwareAmetysObject,ModifiableModelAwareDataAwareAmetysObject,DataHolder,ModelAwareDataHolder,ModifiableDataHolder,ModifiableModelAwareDataHolder,JCRAmetysObject,MetadataAwareAmetysObject,ModifiableMetadataAwareAmetysObject,ModifiableACLAmetysObject,ModifiableAmetysObject,RemovableAmetysObject,DataAndVersionAwareAmetysObject,ModifiableDataAwareVersionableAmetysObject,VersionableAmetysObject,VersionAwareAmetysObject,CalendarResource
public class JCRCalendarResource extends DefaultAmetysObject<JCRCalendarResourceFactory> implements CalendarResource
Default implementation of anCalendar, backed by a JCR node.
-
-
Field Summary
Fields Modifier and Type Field Description static StringATTRIBUTE_CALENDAR_RESOURCE_IDAttribute idstatic StringATTRIBUTE_ICONAttribute iconstatic StringATTRIBUTE_INSTRUCTIONSAttribute instructionsstatic StringATTRIBUTE_TITLEAttribute title-
Fields inherited from class org.ametys.plugins.repository.jcr.DefaultAmetysObject
PROTECTED_PROPERTIES
-
Fields inherited from interface org.ametys.plugins.repository.data.holder.ModelAwareDataHolder
ALTERNATIVE_SUFFIX, COMMENTS_SUFFIX, STATUS_SUFFIX
-
-
Constructor Summary
Constructors Constructor Description JCRCalendarResource(Node node, String parentPath, JCRCalendarResourceFactory factory)Creates anJCRCalendarResource.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCalendarResourceId()Get the id of the resourceModifiableModelAwareDataHoldergetDataHolder()Returns theDataHolderof thisAmetysObject.StringgetIcon()Get the icon of the resourceStringgetInstructions()Get the special instructions of the resourceStringgetTitle()Get the title of the resourcevoidsetCalendarResourceId(String id)set the id of the resourcevoidsetIcon(String icon)set the icon of the resourcevoidsetInstructions(String instructions)set the special instructions of the resourcevoidsetTitle(String title)set the title of the resource-
Methods inherited from class org.ametys.plugins.repository.jcr.DefaultAmetysObject
addAllowedGroups, addAllowedProfilesForAnonymous, addAllowedProfilesForAnyConnectedUser, addAllowedUsers, addDeniedGroups, addDeniedProfilesForAnonymous, addDeniedProfilesForAnyConnectedUser, addDeniedUsers, addLabel, checkpoint, copyNode, disallowInheritance, getAllLabels, getAllRevisions, getBaseNode, getBaseVersion, getLabels, getLabels, getNode, getProfilesForAnonymousAndAnyConnectedUser, getProfilesForGroups, getProfilesForUsers, getRevision, getRevisionTimestamp, getRevisionTimestamp, getUnversionedDataHolder, getVersionHistory, isInheritanceDisallowed, removeAllowedGroups, removeAllowedGroups, removeAllowedProfilesForAnonymous, removeAllowedProfilesForAnyConnectedUser, removeAllowedUsers, removeAllowedUsers, removeDeniedGroups, removeDeniedGroups, removeDeniedProfilesForAnonymous, removeDeniedProfilesForAnyConnectedUser, removeDeniedUsers, removeDeniedUsers, removeLabel, restoreFromLabel, restoreFromNode, restoreFromRevision, switchToLabel, switchToRevision
-
Methods inherited from class org.ametys.plugins.repository.jcr.SimpleAmetysObject
_getFactory, _invalidateName, _invalidateParentPath, getId, getMetadataHolder, getName, getParent, getParentPath, getPath, needsSave, remove, rename, revertChanges, saveChanges
-
Methods inherited from class org.ametys.plugins.repository.AbstractAmetysObject
equals, hashCode, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.ametys.plugins.repository.AmetysObject
equals, getId, getName, getParent, getParentPath, getPath, hashCode
-
Methods inherited from interface org.ametys.plugins.repository.data.ametysobject.DataAwareAmetysObject
copyTo, dataToSAX, dataToSAX
-
Methods inherited from interface org.ametys.plugins.repository.data.ametysobject.ModelAwareDataAwareAmetysObject
getComments, getDataNames, getDefinition, getExternalValue, getLocalValue, getModel, getStatus, getValue, getValue, hasComments, hasDefinition, hasExternalValue, hasExternalValueOrEmpty, hasLocalValue, hasLocalValueOrEmpty, hasValue, hasValueOrEmpty
-
Methods inherited from interface org.ametys.plugins.repository.data.holder.ModelAwareDataHolder
commentsToSAX, dataToMap, dataToMap, dataToMap, dataToMap, dataToSAX, dataToSAX, dataToSAX, dataToSAX, dataToSAXForEdition, getDataNames, getType, getValue, hasValue, hasValueOrEmpty, isMultiple
-
Methods inherited from interface org.ametys.plugins.repository.ModifiableAmetysObject
needsSave, rename, revertChanges, saveChanges
-
Methods inherited from interface org.ametys.plugins.repository.data.ametysobject.ModifiableModelAwareDataAwareAmetysObject
getComposite, getComposite, getExternalComposite, getExternalComposite, getExternalRepeater, getExternalRepeater, getLocalComposite, getLocalComposite, getLocalRepeater, getLocalRepeater, getParentDataHolder, getRepeater, getRepeater, getRepositoryData, getRootDataHolder, removeExternalizableMetadataIfExists, removeExternalValue, removeLocalValue, removeValue, setComments, setExternalValue, setLocalValue, setStatus, setValue, synchronizeValues, synchronizeValues, synchronizeValues, synchronizeValues
-
Methods inherited from interface org.ametys.plugins.repository.RemovableAmetysObject
remove
-
-
-
-
Field Detail
-
ATTRIBUTE_CALENDAR_RESOURCE_ID
public static final String ATTRIBUTE_CALENDAR_RESOURCE_ID
Attribute id- See Also:
- Constant Field Values
-
ATTRIBUTE_TITLE
public static final String ATTRIBUTE_TITLE
Attribute title- See Also:
- Constant Field Values
-
ATTRIBUTE_ICON
public static final String ATTRIBUTE_ICON
Attribute icon- See Also:
- Constant Field Values
-
ATTRIBUTE_INSTRUCTIONS
public static final String ATTRIBUTE_INSTRUCTIONS
Attribute instructions- See Also:
- Constant Field Values
-
-
Constructor Detail
-
JCRCalendarResource
public JCRCalendarResource(Node node, String parentPath, JCRCalendarResourceFactory factory)
Creates anJCRCalendarResource.- Parameters:
node- the node backing thisAmetysObjectparentPath- the parentPath in the Ametys hierarchyfactory- the DefaultAmetysObjectFactory which created the AmetysObject
-
-
Method Detail
-
getTitle
public String getTitle()
Description copied from interface:CalendarResourceGet the title of the resource- Specified by:
getTitlein interfaceCalendarResource- Returns:
- the title of the resource
-
setTitle
public void setTitle(String title)
Description copied from interface:CalendarResourceset the title of the resource- Specified by:
setTitlein interfaceCalendarResource- Parameters:
title- The title
-
getInstructions
public String getInstructions()
Description copied from interface:CalendarResourceGet the special instructions of the resource- Specified by:
getInstructionsin interfaceCalendarResource- Returns:
- the special instructions of the resource
-
setInstructions
public void setInstructions(String instructions)
Description copied from interface:CalendarResourceset the special instructions of the resource- Specified by:
setInstructionsin interfaceCalendarResource- Parameters:
instructions- The special instructions
-
getIcon
public String getIcon()
Description copied from interface:CalendarResourceGet the icon of the resource- Specified by:
getIconin interfaceCalendarResource- Returns:
- the icon of the resource
-
setIcon
public void setIcon(String icon)
Description copied from interface:CalendarResourceset the icon of the resource- Specified by:
setIconin interfaceCalendarResource- Parameters:
icon- The icon to set
-
getDataHolder
public ModifiableModelAwareDataHolder getDataHolder()
Description copied from interface:DataAwareAmetysObjectReturns theDataHolderof thisAmetysObject.- Specified by:
getDataHolderin interfaceDataAwareAmetysObject- Specified by:
getDataHolderin interfaceModelAwareDataAwareAmetysObject- Specified by:
getDataHolderin interfaceModifiableModelAwareDataAwareAmetysObject- Returns:
- the
DataHolderof thisAmetysObject
-
getCalendarResourceId
public String getCalendarResourceId()
Description copied from interface:CalendarResourceGet the id of the resource- Specified by:
getCalendarResourceIdin interfaceCalendarResource- Returns:
- the id of the resource
-
setCalendarResourceId
public void setCalendarResourceId(String id)
Description copied from interface:CalendarResourceset the id of the resource- Specified by:
setCalendarResourceIdin interfaceCalendarResource- Parameters:
id- The id of the resource
-
-