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 Details

    • EXO_ACTIVITY_INFO

      public static String EXO_ACTIVITY_INFO
    • EXO_ACTIVITY_ID

      public static String EXO_ACTIVITY_ID
  • Constructor Details

    • ActivityTypeUtils

      public ActivityTypeUtils()
  • Method Details

    • 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 -