org.exoplatform.commons.utils
Class ActivityTypeUtils
java.lang.Object
org.exoplatform.commons.utils.ActivityTypeUtils
public class ActivityTypeUtils
- extends Object
Created by The eXo Platform SAS
Author : Vu Duy Tu
tuvd@exoplatform.com
Dec 24, 2012
|
Method Summary |
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. |
static String |
getActivityId(javax.jcr.Node ownerNode)
Get value of exo:activityId property in specified node. |
static void |
removeAttchAtivityId(javax.jcr.Node ownerNode)
Remove value of attach activityId in node. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EXO_ACTIVITY_INFO
public static String EXO_ACTIVITY_INFO
EXO_ACTIVITY_ID
public static String EXO_ACTIVITY_ID
ActivityTypeUtils
public ActivityTypeUtils()
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 -
Copyright © 2003–2014 eXo Platform SAS. All rights reserved.