Class JCRCalendarEventFactory
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.ametys.plugins.repository.jcr.SimpleAmetysObjectFactory
org.ametys.plugins.repository.jcr.SimpleModelAwareAmetysObjectFactory
org.ametys.cms.repository.SimpleIndexableAmetysObjectFactory
org.ametys.cms.repository.DefaultIndexableTraversableAmetysObjectFactory
org.ametys.plugins.workspaces.calendars.jcr.JCRCalendarEventFactory
- All Implemented Interfaces:
AmetysObjectFactory<SimpleAmetysObject>,JCRAmetysObjectFactory<SimpleAmetysObject>,Component,Configurable,LogEnabled,Serviceable
AmetysObjectFactory for handling JCRCalendarEvents.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ModelItemTypeExtensionPointThe model item types extension point for internal data holderstatic final StringJCR nodetype for resources collectionFields inherited from class org.ametys.plugins.repository.jcr.SimpleAmetysObjectFactory
_ametysFactoryExtensionPoint, _manager, _modelItemTypeExtensionPoint, _nodetype, _repository, _resolver, _scheme -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ModelCreates the calendar event modelgetAmetysObject(javax.jcr.Node node, String parentPath) Creates aAmetysObjectfrom a persistent JCR node.Retrieves the extension point with available data types for internal dataCollection<? extends Model> getModel(SimpleModelAwareAmetysObject ametysObject) retrieves the model of the handled ametys object.voidservice(ServiceManager manager) Methods inherited from class org.ametys.cms.repository.DefaultIndexableTraversableAmetysObjectFactory
createChild, getChild, getChildren, hasChildMethods inherited from class org.ametys.plugins.repository.jcr.SimpleModelAwareAmetysObjectFactory
getModelItemTypeExtensionPointIdMethods inherited from class org.ametys.plugins.repository.jcr.SimpleAmetysObjectFactory
configure, getAmetysObjectById, getAmetysObjectById, getModelItemTypeExtensionPoint, getNode, getNodetypes, getParent, getScheme, getWorkspaceNode, hasAmetysObjectForIdMethods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Field Details
-
CALENDAR_EVENT_NODETYPE
JCR nodetype for resources collection- See Also:
-
_basicTypesExtensionPoint
The model item types extension point for internal data holder
-
-
Constructor Details
-
JCRCalendarEventFactory
public JCRCalendarEventFactory()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classSimpleAmetysObjectFactory- Throws:
ServiceException
-
getAmetysObject
public JCRCalendarEvent getAmetysObject(javax.jcr.Node node, String parentPath) throws AmetysRepositoryException Description copied from interface:JCRAmetysObjectFactoryCreates aAmetysObjectfrom a persistent JCR node.- Specified by:
getAmetysObjectin interfaceJCRAmetysObjectFactory<SimpleAmetysObject>- Overrides:
getAmetysObjectin classDefaultIndexableTraversableAmetysObjectFactory- Parameters:
node- the JCR node to use.parentPath- the parent Path in the Ametys hierarchy, may benullif not known yet.- Returns:
- the object.
- Throws:
AmetysRepositoryException- if an error occurs.
-
getModel
Description copied from class:SimpleModelAwareAmetysObjectFactoryretrieves the model of the handled ametys object.- Overrides:
getModelin classSimpleModelAwareAmetysObjectFactory- Parameters:
ametysObject- the handled ametys object- Returns:
- the model of the handled ametys object
-
createCalendarEventModel
Creates the calendar event model- Returns:
- the created calendar event model
-
getInternalDataTypesExtensionPoint
Retrieves the extension point with available data types for internal data- Returns:
- the extension point with available data types for internal data
-