Package org.exoplatform.services.jcr.ext
Class ActivityTypeUtils
java.lang.Object
org.exoplatform.services.jcr.ext.ActivityTypeUtils
Created by The eXo Platform SAS
Author : Vu Duy Tu
tuvd@exoplatform.com
Dec 24, 2012
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidattachActivityId(javax.jcr.Node ownerNode, String activityId) Defines Mixin type exo:activityInfo for node that means to add exo:activityId property into Node what is owner created activity.static StringgetActivityId(javax.jcr.Node ownerNode) Get value of exo:activityId property in specified node.static voidremoveAttchAtivityId(javax.jcr.Node ownerNode) Remove value of attach activityId in node.
-
Field Details
-
EXO_ACTIVITY_INFO
-
EXO_ACTIVITY_ID
-
-
Constructor Details
-
ActivityTypeUtils
public ActivityTypeUtils()
-
-
Method Details
-
attachActivityId
Defines Mixin type exo:activityInfo for node that means to add exo:activityId property into Node what is owner created activity.- Parameters:
ownerNode- - the node's attachment.activityId- - the activity's id.
-
getActivityId
Get value of exo:activityId property in specified node. If property is not existing then return null.- Parameters:
ownerNode-- Returns:
- the value of activity's id.
-
removeAttchAtivityId
public static void removeAttchAtivityId(javax.jcr.Node ownerNode) Remove value of attach activityId in node. If node has not Mixin type exo:activityInfo, auto added Mixin type exo:activityInfo- Parameters:
ownerNode-
-