Package org.exoplatform.services.jcr.ext
Class ActivityTypeUtils
- java.lang.Object
-
- org.exoplatform.services.jcr.ext.ActivityTypeUtils
-
public class ActivityTypeUtils extends Object
Created by The eXo Platform SAS Author : Vu Duy Tu tuvd@exoplatform.com Dec 24, 2012
-
-
Field Summary
Fields Modifier and Type Field Description static StringEXO_ACTIVITY_IDstatic StringEXO_ACTIVITY_INFO
-
Constructor Summary
Constructors Constructor Description ActivityTypeUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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.
-
-
-
Method Detail
-
attachActivityId
public static void attachActivityId(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.- Parameters:
ownerNode- - the node's attachment.activityId- - the activity's id.
-
getActivityId
public static String getActivityId(javax.jcr.Node ownerNode)
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-
-
-