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
FieldsModifier and TypeFieldDescriptionstatic final StringAttribute idstatic final StringAttribute iconstatic final StringAttribute instructionsstatic final StringAttribute titleFields inherited from class org.ametys.plugins.repository.jcr.DefaultAmetysObject
PROTECTED_PROPERTIESFields inherited from interface org.ametys.plugins.repository.data.holder.ModelAwareDataHolder
ALTERNATIVE_SUFFIX, COMMENTS_SUFFIX, STATUS_SUFFIX -
Constructor Summary
ConstructorsConstructorDescriptionJCRCalendarResource(javax.jcr.Node node, String parentPath, JCRCalendarResourceFactory factory) Creates anJCRCalendarResource. -
Method Summary
Modifier and TypeMethodDescriptionGet the id of the resourceReturns theDataHolderof thisAmetysObject.getIcon()Get the icon of the resourceGet the special instructions of the resourcegetTitle()Get the title of the resourcevoidset the id of the resourcevoidset the icon of the resourcevoidsetInstructions(String instructions) set the special instructions of the resourcevoidset 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, switchToRevisionMethods inherited from class org.ametys.plugins.repository.jcr.SimpleAmetysObject
_getFactory, _invalidateName, _invalidateParentPath, getId, getMetadataHolder, getName, getParent, getParentPath, getPath, needsSave, remove, rename, revertChanges, saveChangesMethods inherited from class org.ametys.plugins.repository.AbstractAmetysObject
equals, hashCode, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.ametys.plugins.repository.AmetysObject
equals, getId, getName, getParent, getParentPath, getPath, hashCodeMethods inherited from interface org.ametys.plugins.repository.data.ametysobject.DataAwareAmetysObject
copyTo, dataToJSON, dataToJSON, dataToSAX, dataToSAXMethods inherited from interface org.ametys.cms.data.ametysobject.ModelAwareDataAwareAmetysObject
getSystemPropertyExtensionPoint, indexData, indexDataMethods inherited from interface org.ametys.plugins.repository.data.ametysobject.ModelAwareDataAwareAmetysObject
dataToJSON, dataToJSONForEdition, dataToMap, dataToSAX, dataToSAXForEdition, getComments, getDataNames, getDefinition, getExternalValue, getLocalValue, getModel, getStatus, getValue, getValue, hasComments, hasDefinition, hasExternalValue, hasExternalValueOrEmpty, hasLocalValue, hasLocalValueOrEmpty, hasValue, hasValueOrEmptyMethods 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, isMultipleMethods inherited from interface org.ametys.plugins.repository.ModifiableAmetysObject
needsSave, rename, revertChanges, saveChangesMethods inherited from interface org.ametys.plugins.repository.data.holder.ModifiableDataHolder
getRepositoryDataMethods inherited from interface org.ametys.cms.data.ametysobject.ModifiableModelAwareDataAwareAmetysObject
getComposite, getComposite, getExternalComposite, getExternalComposite, getExternalRepeater, getExternalRepeater, getLocalComposite, getLocalComposite, getLocalRepeater, getLocalRepeater, getParentDataHolder, getRepeater, getRepeater, getRootDataHolderMethods inherited from interface org.ametys.plugins.repository.data.ametysobject.ModifiableModelAwareDataAwareAmetysObject
getRepositoryData, removeExternalizableMetadataIfExists, removeExternalValue, removeLocalValue, removeValue, setComments, setExternalValue, setLocalValue, setStatus, setValue, synchronizeValues, synchronizeValues, synchronizeValues, synchronizeValuesMethods 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 thisAmetysObjectparentPath- the parentPath in the Ametys hierarchyfactory- the DefaultAmetysObjectFactory which created the AmetysObject
-
-
Method Details
-
getTitle
Description copied from interface:CalendarResourceGet the title of the resource- Specified by:
getTitlein interfaceCalendarResource- Returns:
- the title of the resource
-
setTitle
Description copied from interface:CalendarResourceset the title of the resource- Specified by:
setTitlein interfaceCalendarResource- Parameters:
title- The title
-
getInstructions
Description copied from interface:CalendarResourceGet the special instructions of the resource- Specified by:
getInstructionsin interfaceCalendarResource- Returns:
- the special instructions of the resource
-
setInstructions
Description copied from interface:CalendarResourceset the special instructions of the resource- Specified by:
setInstructionsin interfaceCalendarResource- Parameters:
instructions- The special instructions
-
getIcon
Description copied from interface:CalendarResourceGet the icon of the resource- Specified by:
getIconin interfaceCalendarResource- Returns:
- the icon of the resource
-
setIcon
Description copied from interface:CalendarResourceset the icon of the resource- Specified by:
setIconin interfaceCalendarResource- Parameters:
icon- The icon to set
-
getDataHolder
Description copied from interface:DataAwareAmetysObjectReturns theDataHolderof thisAmetysObject.- Specified by:
getDataHolderin interfaceDataAwareAmetysObject- Specified by:
getDataHolderin interfaceModelAwareDataAwareAmetysObject- Specified by:
getDataHolderin interfaceModelAwareDataAwareAmetysObject- Specified by:
getDataHolderin interfaceModifiableModelAwareDataAwareAmetysObject- Specified by:
getDataHolderin interfaceModifiableModelAwareDataAwareAmetysObject- Returns:
- the
DataHolderof thisAmetysObject
-
getCalendarResourceId
Description copied from interface:CalendarResourceGet the id of the resource- Specified by:
getCalendarResourceIdin interfaceCalendarResource- Returns:
- the id of the resource
-
setCalendarResourceId
Description copied from interface:CalendarResourceset the id of the resource- Specified by:
setCalendarResourceIdin interfaceCalendarResource- Parameters:
id- The id of the resource
-