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:
ModelAwareDataAwareAmetysObject
,ModifiableModelAwareDataAwareAmetysObject
,IndexableDataHolder
,ModifiableIndexableDataHolder
,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 an
Calendar
, backed by a JCR node.-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Attribute idstatic final String
Attribute iconstatic final String
Attribute instructionsstatic final String
Attribute titleFields 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
ConstructorDescriptionJCRCalendarResource
(javax.jcr.Node node, String parentPath, JCRCalendarResourceFactory factory) Creates anJCRCalendarResource
. -
Method Summary
Modifier and TypeMethodDescriptionGet the id of the resourceReturns theDataHolder
of thisAmetysObject
.getIcon()
Get the icon of the resourceGet the special instructions of the resourcegetTitle()
Get the title of the resourcevoid
set the id of the resourcevoid
set the icon of the resourcevoid
setInstructions
(String instructions) set the special instructions of the resourcevoid
set the title of the resourceMethods 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, copyTo, dataToJSON, dataToJSON, dataToSAX, dataToSAX
Methods inherited from interface org.ametys.cms.data.ametysobject.ModelAwareDataAwareAmetysObject
getSystemPropertyExtensionPoint, indexData, indexData
Methods inherited from interface org.ametys.plugins.repository.data.ametysobject.ModelAwareDataAwareAmetysObject
dataToJSON, dataToJSONForEdition, dataToMap, dataToSAX, dataToSAXForEdition, getComments, getDataNames, getDefinition, getDifferences, getDifferences, getDifferences, getDifferences, getExternalValue, getLocalValue, getModel, getStatus, getValue, getValue, hasComments, hasDefinition, hasDifferences, hasDifferences, hasDifferences, hasDifferences, hasExternalValue, hasExternalValueOrEmpty, hasLocalValue, hasLocalValueOrEmpty, hasValue, hasValueOrEmpty
Methods inherited from interface org.ametys.plugins.repository.data.holder.ModelAwareDataHolder
commentsToSAX, dataToJSON, dataToJSON, dataToJSON, dataToMap, dataToMap, dataToMap, dataToSAX, dataToSAX, dataToSAX, 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.holder.ModifiableDataHolder
getRepositoryData
Methods inherited from interface org.ametys.cms.data.ametysobject.ModifiableModelAwareDataAwareAmetysObject
getComposite, getComposite, getExternalComposite, getExternalComposite, getExternalRepeater, getExternalRepeater, getLocalComposite, getLocalComposite, getLocalRepeater, getLocalRepeater, getParentDataHolder, getRepeater, getRepeater, getRootDataHolder
Methods inherited from interface org.ametys.plugins.repository.data.ametysobject.ModifiableModelAwareDataAwareAmetysObject
getRepositoryData, removeExternalizableMetadataIfExists, removeExternalValue, removeLocalValue, removeValue, setComments, setExternalValue, setLocalValue, setStatus, setValue, synchronizeValues, synchronizeValues, synchronizeValues, synchronizeValues
Methods inherited from interface org.ametys.plugins.repository.RemovableAmetysObject
remove
-
Field Details
-
ATTRIBUTE_CALENDAR_RESOURCE_ID
Attribute id- See Also:
-
ATTRIBUTE_TITLE
Attribute title- See Also:
-
ATTRIBUTE_ICON
Attribute icon- See Also:
-
ATTRIBUTE_INSTRUCTIONS
Attribute instructions- See Also:
-
-
Constructor Details
-
JCRCalendarResource
public JCRCalendarResource(javax.jcr.Node node, String parentPath, JCRCalendarResourceFactory factory) Creates anJCRCalendarResource
.- Parameters:
node
- the node backing thisAmetysObject
parentPath
- the parentPath in the Ametys hierarchyfactory
- the DefaultAmetysObjectFactory which created the AmetysObject
-
-
Method Details
-
getTitle
Description copied from interface:CalendarResource
Get the title of the resource- Specified by:
getTitle
in interfaceCalendarResource
- Returns:
- the title of the resource
-
setTitle
Description copied from interface:CalendarResource
set the title of the resource- Specified by:
setTitle
in interfaceCalendarResource
- Parameters:
title
- The title
-
getInstructions
Description copied from interface:CalendarResource
Get the special instructions of the resource- Specified by:
getInstructions
in interfaceCalendarResource
- Returns:
- the special instructions of the resource
-
setInstructions
Description copied from interface:CalendarResource
set the special instructions of the resource- Specified by:
setInstructions
in interfaceCalendarResource
- Parameters:
instructions
- The special instructions
-
getIcon
Description copied from interface:CalendarResource
Get the icon of the resource- Specified by:
getIcon
in interfaceCalendarResource
- Returns:
- the icon of the resource
-
setIcon
Description copied from interface:CalendarResource
set the icon of the resource- Specified by:
setIcon
in interfaceCalendarResource
- Parameters:
icon
- The icon to set
-
getDataHolder
Description copied from interface:DataAwareAmetysObject
Returns theDataHolder
of thisAmetysObject
.- Specified by:
getDataHolder
in interfaceDataAwareAmetysObject
- Specified by:
getDataHolder
in interfaceModelAwareDataAwareAmetysObject
- Specified by:
getDataHolder
in interfaceModelAwareDataAwareAmetysObject
- Specified by:
getDataHolder
in interfaceModifiableModelAwareDataAwareAmetysObject
- Specified by:
getDataHolder
in interfaceModifiableModelAwareDataAwareAmetysObject
- Returns:
- the
DataHolder
of thisAmetysObject
-
getCalendarResourceId
Description copied from interface:CalendarResource
Get the id of the resource- Specified by:
getCalendarResourceId
in interfaceCalendarResource
- Returns:
- the id of the resource
-
setCalendarResourceId
Description copied from interface:CalendarResource
set the id of the resource- Specified by:
setCalendarResourceId
in interfaceCalendarResource
- Parameters:
id
- The id of the resource
-