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 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, _modelItemTypeExtensionPoint, _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.protected StringRetrieves the identifier of extension point with available modelItem types for handled ametys objectvoidservice(ServiceManager serviceManager) Methods 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
-
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.
-
getModelItemTypeExtensionPointId
Description copied from class:SimpleAmetysObjectFactoryRetrieves the identifier of extension point with available modelItem types for handled ametys object- Overrides:
getModelItemTypeExtensionPointIdin classSimpleAmetysObjectFactory- Returns:
- the identifier of the model item type extension point
-
getActivityType
Retrieve anActivityType- Parameters:
activityTypeId- the type id- Returns:
- the activity type
-