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 String
ATTRIBUTE_CALENDAR_RESOURCE_ID
Attribute idstatic String
ATTRIBUTE_ICON
Attribute iconstatic String
ATTRIBUTE_INSTRUCTIONS
Attribute instructionsstatic String
ATTRIBUTE_TITLE
Attribute 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 String
getCalendarResourceId()
Get the id of the resourceModifiableModelAwareDataHolder
getDataHolder()
Returns theDataHolder
of thisAmetysObject
.String
getIcon()
Get the icon of the resourceString
getInstructions()
Get the special instructions of the resourceString
getTitle()
Get the title of the resourcevoid
setCalendarResourceId(String id)
set the id of the resourcevoid
setIcon(String icon)
set the icon of the resourcevoid
setInstructions(String instructions)
set the special instructions of the resourcevoid
setTitle(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 thisAmetysObject
parentPath
- the parentPath in the Ametys hierarchyfactory
- the DefaultAmetysObjectFactory which created the AmetysObject
-
-
Method Detail
-
getTitle
public String getTitle()
Description copied from interface:CalendarResource
Get the title of the resource- Specified by:
getTitle
in interfaceCalendarResource
- Returns:
- the title of the resource
-
setTitle
public void setTitle(String title)
Description copied from interface:CalendarResource
set the title of the resource- Specified by:
setTitle
in interfaceCalendarResource
- Parameters:
title
- The title
-
getInstructions
public String 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
public void setInstructions(String instructions)
Description copied from interface:CalendarResource
set the special instructions of the resource- Specified by:
setInstructions
in interfaceCalendarResource
- Parameters:
instructions
- The special instructions
-
getIcon
public String getIcon()
Description copied from interface:CalendarResource
Get the icon of the resource- Specified by:
getIcon
in interfaceCalendarResource
- Returns:
- the icon of the resource
-
setIcon
public void setIcon(String icon)
Description copied from interface:CalendarResource
set the icon of the resource- Specified by:
setIcon
in interfaceCalendarResource
- Parameters:
icon
- The icon to set
-
getDataHolder
public ModifiableModelAwareDataHolder getDataHolder()
Description copied from interface:DataAwareAmetysObject
Returns theDataHolder
of thisAmetysObject
.- Specified by:
getDataHolder
in interfaceDataAwareAmetysObject
- Specified by:
getDataHolder
in interfaceModelAwareDataAwareAmetysObject
- Specified by:
getDataHolder
in interfaceModifiableModelAwareDataAwareAmetysObject
- Returns:
- the
DataHolder
of thisAmetysObject
-
getCalendarResourceId
public String getCalendarResourceId()
Description copied from interface:CalendarResource
Get the id of the resource- Specified by:
getCalendarResourceId
in interfaceCalendarResource
- Returns:
- the id of the resource
-
setCalendarResourceId
public void setCalendarResourceId(String id)
Description copied from interface:CalendarResource
set the id of the resource- Specified by:
setCalendarResourceId
in interfaceCalendarResource
- Parameters:
id
- The id of the resource
-
-