Class TaskProviderUtils

java.lang.Object
com.webmethods.caf.faces.data.task.TaskProviderUtils

public class TaskProviderUtils extends Object
  • Field Details

  • Constructor Details

    • TaskProviderUtils

      public TaskProviderUtils()
  • Method Details

    • getTaskResource

      public static String getTaskResource(String key)
    • getTaskResource

      public static String getTaskResource(String key, Object[] args)
    • getTaskService

      public static ITaskServiceProvider getTaskService()
    • removeAllDelegations

      public static void removeAllDelegations(String taskID)
    • removeUserFromDelegation

      public static void removeUserFromDelegation(String taskID, String fromUserID)
    • delegateTasks

      public static void delegateTasks(List<String> taskIDs, String fromUserID, String toUserID)
    • undelegateTasks

      public static void undelegateTasks(List<String> taskIDs, String fromUserID)
    • getTaskContentProvider

      protected static TaskContentProviderExtended getTaskContentProvider(String taskID)
    • getCurrentUserID

      public static String getCurrentUserID()
    • getUserDisplayName

      public static String getUserDisplayName(String userID)
    • getPrincipalDnFromID

      public static String getPrincipalDnFromID(String principalID)
    • formatScheduleDate

      public static String formatScheduleDate(Date date)
      Format a date value to a string in Schedule format
      Parameters:
      date - - the date to represent as string
      Returns:
      - a formatted String
    • createDelegationRuleXML

      public static String createDelegationRuleXML(String taskTypeID, String fromPrincipalID, String toPrincipalID, DateRange dateRange)
    • createTaskTypeDelegationRule

      public static IThingID createTaskTypeDelegationRule(String taskTypeID, String fromPrincipalID, String toPrincipalID, DateRange dateRange)
      Create a rule instance for delegating a task type from one userID to another userID for a specified range of time
      Parameters:
      taskTypeID -
      fromPrincipalID -
      toPrincipalID -
      dateRange -
      Returns:
      thingID of the created rule
    • createAllTaskDelegationRule

      public static List<IThingID> createAllTaskDelegationRule(String fromPrincipalID, String toPrincipalID, DateRange dateRange)
      Create a set of rule instances for delegating all task types from one userID to another userID for a specified range of time
      Parameters:
      fromPrincipalID -
      toPrincipalID -
      dateRange -
      Returns:
      list of created rules
    • getContainerMechanics

      protected static IContainerMechanics getContainerMechanics(IThingID folderID) throws PortalException
      Throws:
      PortalException
    • getBasicMechanics

      protected static IBasicMechanics getBasicMechanics(IThingID thingID) throws PortalException
      Throws:
      PortalException
    • getRuleMechanics

      protected static IRuleMechanics getRuleMechanics(IThingID ruleID) throws PortalException
      Throws:
      PortalException
    • getDelegationRulesForUser

      public static List<com.webmethods.caf.rules.IRule> getDelegationRulesForUser(String userID)
      Retrieve a list of IRule instances for the specified user
      Parameters:
      userID - - user to retrieve delegation rules for (null=all rules)
      Returns:
      list of IRule instances for the specified user
    • getDelegationRulesForUserPerTaskType

      public static List<com.webmethods.caf.rules.IRule> getDelegationRulesForUserPerTaskType(String userID, String taskTypeID)
      Retrieve a list of IRule instances for the specified user and TaskType
      Parameters:
      userID - - user to retrieve delegation rules for (null=all rules)
      Returns:
      list of IRule instances for the specified user
    • getDelegationRule

      protected static IThingIDList getDelegationRule(String userDN, IThingID delegationRulesFolderURIThingID) throws PortalException
      Throws:
      PortalException
    • deleteDelegationRules

      public static void deleteDelegationRules(List<String> ruleURIs)