Class ActivityFactory
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.ametys.plugins.repository.jcr.SimpleAmetysObjectFactory
org.ametys.plugins.repository.activities.ActivityFactory
- All Implemented Interfaces:
AmetysObjectFactory<SimpleAmetysObject>,JCRAmetysObjectFactory<SimpleAmetysObject>,Component,Configurable,LogEnabled,Serviceable
AmetysObject factory associated with
Activity-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdata name for the activity type idstatic final Stringdata name for the author of the activitystatic final Stringdata name for the date of the activitystatic final StringAvalon Role for activity data typesstatic final Stringactivity node type name.static final Stringdata name for the type of the event represented by the activityFields inherited from class org.ametys.plugins.repository.jcr.SimpleAmetysObjectFactory
_ametysFactoryExtensionPoint, _manager, _nodetype, _repository, _resolver, _scheme -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetActivityType(String activityTypeId) Retrieve anActivityTypegetAmetysObject(javax.jcr.Node node, String parentPath) Creates aAmetysObjectfrom a persistent JCR node.Retrieves the extension point with available modelItem types forActivityvoidservice(ServiceManager serviceManager) Methods inherited from class org.ametys.plugins.repository.jcr.SimpleAmetysObjectFactory
configure, getAmetysObjectById, getAmetysObjectById, getNode, getNodetypes, getParent, getScheme, getWorkspaceNode, hasAmetysObjectForIdMethods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Field Details
-
MODEL_ITEM_TYPE_EXTENSION_ROLE
Avalon Role for activity data types -
NODE_TYPE
activity node type name.- See Also:
-
ACTIVITY_TYPE_ID
data name for the activity type id- See Also:
-
DATE
data name for the date of the activity- See Also:
-
TYPE
data name for the type of the event represented by the activity- See Also:
-
AUTHOR
data name for the author of the activity- See Also:
-
-
Constructor Details
-
ActivityFactory
public ActivityFactory()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classSimpleAmetysObjectFactory- Throws:
ServiceException
-
getAmetysObject
public Activity getAmetysObject(javax.jcr.Node node, String parentPath) throws AmetysRepositoryException, javax.jcr.RepositoryException Description copied from interface:JCRAmetysObjectFactoryCreates aAmetysObjectfrom a persistent JCR node.- Specified by:
getAmetysObjectin interfaceJCRAmetysObjectFactory<SimpleAmetysObject>- Overrides:
getAmetysObjectin classSimpleAmetysObjectFactory- 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.javax.jcr.RepositoryException- if a JCR error occurs.
-
getElementTypesExtensionPoint
Retrieves the extension point with available modelItem types forActivity- Returns:
- the extension point with available modelItem types for
Activity
-
getActivityType
Retrieve anActivityType- Parameters:
activityTypeId- the type id- Returns:
- the activity type
-