public class TaskProviderUtils extends Object
Constructor and Description |
---|
TaskProviderUtils() |
Modifier and Type | Method and Description |
---|---|
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
|
static String |
createDelegationRuleXML(String taskTypeID,
String fromPrincipalID,
String toPrincipalID,
DateRange dateRange) |
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
|
static void |
delegateTasks(List<String> taskIDs,
String fromUserID,
String toUserID) |
static void |
deleteDelegationRules(List<String> ruleURIs) |
static String |
formatScheduleDate(Date date)
Format a date value to a string in Schedule format
|
protected static IBasicMechanics |
getBasicMechanics(IThingID thingID) |
protected static IContainerMechanics |
getContainerMechanics(IThingID folderID) |
static String |
getCurrentUserID() |
protected static IThingIDList |
getDelegationRule(String userDN,
IThingID delegationRulesFolderURIThingID) |
static List<com.webmethods.caf.rules.IRule> |
getDelegationRulesForUser(String userID)
Retrieve a list of IRule instances for the specified user
|
static List<com.webmethods.caf.rules.IRule> |
getDelegationRulesForUserPerTaskType(String userID,
String taskTypeID)
Retrieve a list of IRule instances for the specified user and TaskType
|
static String |
getPrincipalDnFromID(String principalID) |
protected static IRuleMechanics |
getRuleMechanics(IThingID ruleID) |
protected static TaskContentProviderExtended |
getTaskContentProvider(String taskID) |
static String |
getTaskResource(String key) |
static String |
getTaskResource(String key,
Object[] args) |
static ITaskServiceProvider |
getTaskService() |
static String |
getUserDisplayName(String userID) |
static void |
removeAllDelegations(String taskID) |
static void |
removeUserFromDelegation(String taskID,
String fromUserID) |
static void |
undelegateTasks(List<String> taskIDs,
String fromUserID) |
public static final String ALL_USERS
public static ITaskServiceProvider getTaskService()
public static void removeAllDelegations(String taskID)
public static void removeUserFromDelegation(String taskID, String fromUserID)
public static void delegateTasks(List<String> taskIDs, String fromUserID, String toUserID)
protected static TaskContentProviderExtended getTaskContentProvider(String taskID)
public static String getCurrentUserID()
public static String formatScheduleDate(Date date)
date
- - the date to represent as stringpublic static String createDelegationRuleXML(String taskTypeID, String fromPrincipalID, String toPrincipalID, DateRange dateRange)
public static IThingID createTaskTypeDelegationRule(String taskTypeID, String fromPrincipalID, String toPrincipalID, DateRange dateRange)
taskTypeID
- fromPrincipalID
- toPrincipalID
- dateRange
- public static List<IThingID> createAllTaskDelegationRule(String fromPrincipalID, String toPrincipalID, DateRange dateRange)
fromPrincipalID
- toPrincipalID
- dateRange
- protected static IContainerMechanics getContainerMechanics(IThingID folderID) throws PortalException
PortalException
protected static IBasicMechanics getBasicMechanics(IThingID thingID) throws PortalException
PortalException
protected static IRuleMechanics getRuleMechanics(IThingID ruleID) throws PortalException
PortalException
public static List<com.webmethods.caf.rules.IRule> getDelegationRulesForUser(String userID)
userID
- - user to retrieve delegation rules for (null=all rules)public static List<com.webmethods.caf.rules.IRule> getDelegationRulesForUserPerTaskType(String userID, String taskTypeID)
userID
- - user to retrieve delegation rules for (null=all rules)protected static IThingIDList getDelegationRule(String userDN, IThingID delegationRulesFolderURIThingID) throws PortalException
PortalException