Class TaskProviderUtils
java.lang.Object
com.webmethods.caf.faces.data.task.TaskProviderUtils
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateAllTaskDelegationRule
(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 timestatic 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 timestatic 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 formatprotected static IBasicMechanics
getBasicMechanics
(IThingID thingID) protected static IContainerMechanics
getContainerMechanics
(IThingID folderID) static String
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 userstatic List<com.webmethods.caf.rules.IRule>
getDelegationRulesForUserPerTaskType
(String userID, String taskTypeID) Retrieve a list of IRule instances for the specified user and TaskTypestatic 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
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)
-
Field Details
-
ALL_USERS
- See Also:
-
-
Constructor Details
-
TaskProviderUtils
public TaskProviderUtils()
-
-
Method Details
-
getTaskResource
-
getTaskResource
-
getTaskService
-
removeAllDelegations
-
removeUserFromDelegation
-
delegateTasks
-
undelegateTasks
-
getTaskContentProvider
-
getCurrentUserID
-
getUserDisplayName
-
getPrincipalDnFromID
-
formatScheduleDate
Format a date value to a string in Schedule format- Parameters:
date
- - the date to represent as string- Returns:
- - a formatted String
-
createDelegationRuleXML
-
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
- Throws:
PortalException
-
getRuleMechanics
- Throws:
PortalException
-
getDelegationRulesForUser
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
-