Class JCRCalendarResource
java.lang.Object
org.ametys.plugins.repository.AbstractAmetysObject
org.ametys.plugins.repository.jcr.SimpleAmetysObject<JCRCalendarResourceFactory>
org.ametys.plugins.repository.jcr.SimpleModelAwareAmetysObject<JCRCalendarResourceFactory>
org.ametys.plugins.repository.jcr.DefaultAmetysObject<JCRCalendarResourceFactory>
org.ametys.cms.repository.DefaultIndexableAmetysObject<JCRCalendarResourceFactory>
org.ametys.plugins.workspaces.calendars.jcr.JCRCalendarResource
- All Implemented Interfaces:
IndexableAmetysObject,ModifiableIndexableAmetysObject,IndexableDataHolder,ModifiableIndexableDataHolder,IndexableJCRAmetysObject,ACLAmetysObject,AmetysObject,ModelAwareAmetysObject,ModifiableModelAwareAmetysObject,DataHolder,ModelAwareDataHolder,ModifiableDataHolder,ModifiableModelAwareDataHolder,JCRAmetysObject,ModelAwareJCRAmetysObject,MetadataAwareAmetysObject,ModifiableMetadataAwareAmetysObject,ModifiableACLAmetysObject,ModifiableAmetysObject,RemovableAmetysObject,DataAndVersionAwareAmetysObject,ModifiableDataAwareVersionableAmetysObject,VersionableAmetysObject,VersionAwareAmetysObject,CalendarResource
public class JCRCalendarResource
extends DefaultIndexableAmetysObject<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
__VERSION_COMPARATOR, PROTECTED_PROPERTIESFields inherited from interface org.ametys.plugins.repository.data.holder.ModelAwareDataHolder
ALTERNATIVE_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 resourcegetIcon()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.cms.repository.DefaultIndexableAmetysObject
getComposite, getComposite, getDataHolder, getExternalComposite, getExternalComposite, getExternalRepeater, getExternalRepeater, getLocalComposite, getLocalComposite, getLocalRepeater, getLocalRepeater, getParentDataHolder, getRepeater, getRepeater, getRootDataHolder, indexDataMethods 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.SimpleModelAwareAmetysObject
dataToJSON, dataToJSON, dataToJSONForEdition, dataToMap, dataToSAX, dataToSAX, dataToSAXForEdition, getDefinition, getDifferences, getDifferences, getDifferences, getDifferences, getExternalValue, getLocalValue, getModel, getModelItemTypeExtensionPoint, getRepositoryData, getStatus, getType, getValueOfType, getValueOfTypeOrDefault, getValueOrDefault, getValueWithMultiValuedPathSegments, hasDefinition, hasDifferences, hasDifferences, hasDifferences, hasDifferences, hasExternalValue, hasExternalValueOrEmpty, hasLocalValue, hasLocalValueOrEmpty, hasValue, hasValue, hasValueOrEmpty, isMultiple, isMultiple, removeExternalizableMetadataIfExists, removeExternalValue, removeLocalValue, removeValue, setExternalValue, setLocalValue, setStatus, setValue, setValue, synchronizeValues, synchronizeValues, synchronizeValues, synchronizeValuesMethods 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
dataToJSON, dataToSAX, equals, getDataNames, getValue, getValueOrDefault, 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.holder.DataHolder
copyTo, copyTo, dataToJSON, dataToJSON, dataToSAX, dataToSAX, getValue, getValueOrDefault, hasValue, hasValueOrEmptyMethods inherited from interface org.ametys.cms.data.ametysobject.IndexableAmetysObject
getSystemPropertyExtensionPoint, indexData, indexDataMethods inherited from interface org.ametys.plugins.repository.jcr.JCRAmetysObject
getNodeMethods inherited from interface org.ametys.plugins.repository.data.ametysobject.ModelAwareAmetysObject
getModelMethods inherited from interface org.ametys.plugins.repository.data.holder.ModelAwareDataHolder
dataToJSON, dataToJSON, dataToJSON, dataToJSON, dataToJSONForEdition, dataToMap, dataToMap, dataToMap, dataToMap, dataToSAX, dataToSAX, dataToSAX, dataToSAX, dataToSAXForEdition, getDataNames, getDefinition, getDifferences, getDifferences, getDifferences, getDifferences, getExternalValue, getLocalValue, getModelItemTypeExtensionPoint, getStatus, getType, getValueOfType, getValueOfTypeOrDefault, getValueOrDefault, getValueWithMultiValuedPathSegments, hasDefinition, hasDifferences, hasDifferences, hasDifferences, hasDifferences, hasExternalValue, hasExternalValueOrEmpty, hasLocalValue, hasLocalValueOrEmpty, hasValue, isMultiple, isMultipleMethods inherited from interface org.ametys.plugins.repository.ModifiableAmetysObject
needsSave, rename, revertChanges, saveChangesMethods inherited from interface org.ametys.plugins.repository.data.holder.ModifiableDataHolder
getRepositoryData, removeValue, synchronizeValuesMethods inherited from interface org.ametys.cms.data.holder.ModifiableIndexableDataHolder
getComposite, getComposite, getExternalComposite, getExternalComposite, getExternalRepeater, getExternalRepeater, getLocalComposite, getLocalComposite, getLocalRepeater, getLocalRepeater, getParentDataHolder, getRepeater, getRepeater, getRootDataHolderMethods inherited from interface org.ametys.plugins.repository.metadata.ModifiableMetadataAwareAmetysObject
getMetadataHolderMethods inherited from interface org.ametys.plugins.repository.data.holder.ModifiableModelAwareDataHolder
getComposite, getExternalComposite, getExternalRepeater, getLocalComposite, getLocalRepeater, getParentDataHolder, getRepeater, getRootDataHolder, removeExternalizableMetadataIfExists, removeExternalValue, removeLocalValue, setExternalValue, setLocalValue, setStatus, setValue, setValue, 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
-
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
-