org.kuali.rice.kew.rule
Class TestRuleAttribute
java.lang.Object
   org.kuali.rice.kew.rule.TestRuleAttribute
org.kuali.rice.kew.rule.TestRuleAttribute
- All Implemented Interfaces: 
- Serializable, RoleAttribute, WorkflowAttributeXmlValidator, WorkflowRuleAttribute
- public class TestRuleAttribute 
- extends Object- implements WorkflowRuleAttribute, RoleAttribute, WorkflowAttributeXmlValidator
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
- See Also:
- Serialized Form
 
 
| Method Summary | 
| static void | addQualifiedRole(String roleName,
                                 String qualifiedRoleName)
 | 
| static void | addRole(String roleName)
 | 
|  String | getAttributeLabel()
 | 
|  String | getDocContent()
 | 
|  List<String> | getQualifiedRoleNames(String roleName,
                                           DocumentContent documentContent)
 | 
| static List<String> | getRecipientPrincipalIds(String roleName,
                                                 String qualifiedRoleName)
 | 
| static Map<String,List<String>> | getRole(String roleName)
 | 
|  List | getRoleNames()
 | 
|  List | getRoutingDataRows()
 | 
|  List | getRuleExtensionValues()
 | 
|  List | getRuleRows()
 | 
|  boolean | isMatch(DocumentContent documentContent,
               List ruleExtensions)
 | 
|  boolean | isRequired()
 | 
| static void | removeQualifiedRole(String roleName,
                                       String qualifiedRoleName)
 | 
| static void | removeRole(String roleName)
 | 
|  ResolvedQualifiedRole | resolveQualifiedRole(RouteContext routeContext,
                                         String roleName,
                                         String qualifiedRole)
 | 
| static void | setRecipientPrincipalIds(String roleName,
                                                 String qualifiedRoleName,
                                                 List<String> principalIds)All you need to call now.
 | 
|  void | setRequired(boolean required)
 | 
|  List<RemotableAttributeError> | validateClientRoutingData()
 | 
|  List | validateRoutingData(Map paramMap)
 | 
|  List<RemotableAttributeError> | validateRuleData(Map paramMap)
 | 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
VALID_CLIENT_ROUTING_DATA_CALLED
public static boolean VALID_CLIENT_ROUTING_DATA_CALLED
TestRuleAttribute
public TestRuleAttribute()
isMatch
public boolean isMatch(DocumentContent documentContent,
                       List ruleExtensions)
- 
- Specified by:
- isMatchin interface- WorkflowRuleAttribute
 
- 
 
getRoleNames
public List getRoleNames()
- 
- Specified by:
- getRoleNamesin interface- RoleAttribute
 
- 
 
getRuleRows
public List getRuleRows()
- 
- Specified by:
- getRuleRowsin interface- WorkflowRuleAttribute
 
- 
 
getRoutingDataRows
public List getRoutingDataRows()
- 
- Specified by:
- getRoutingDataRowsin interface- WorkflowRuleAttribute
 
- 
 
getDocContent
public String getDocContent()
- 
- Specified by:
- getDocContentin interface- WorkflowRuleAttribute
 
- 
 
getRuleExtensionValues
public List getRuleExtensionValues()
- 
- Specified by:
- getRuleExtensionValuesin interface- WorkflowRuleAttribute
 
- 
 
validateRoutingData
public List validateRoutingData(Map paramMap)
- 
- Specified by:
- validateRoutingDatain interface- WorkflowRuleAttribute
 
- 
 
getAttributeLabel
public String getAttributeLabel()
- 
 
- 
 
validateRuleData
public List<RemotableAttributeError> validateRuleData(Map paramMap)
- 
- Specified by:
- validateRuleDatain interface- WorkflowRuleAttribute
 
- 
 
setRequired
public void setRequired(boolean required)
- 
- Specified by:
- setRequiredin interface- WorkflowRuleAttribute
 
- 
 
isRequired
public boolean isRequired()
- 
- Specified by:
- isRequiredin interface- WorkflowRuleAttribute
 
- 
 
getQualifiedRoleNames
public List<String> getQualifiedRoleNames(String roleName,
                                          DocumentContent documentContent)
- 
- Specified by:
- getQualifiedRoleNamesin interface- RoleAttribute
 
- 
 
resolveQualifiedRole
public ResolvedQualifiedRole resolveQualifiedRole(RouteContext routeContext,
                                                  String roleName,
                                                  String qualifiedRole)
- 
- Specified by:
- resolveQualifiedRolein interface- RoleAttribute
 
- 
 
addRole
public static void addRole(String roleName)
- 
 
- 
 
removeRole
public static void removeRole(String roleName)
- 
 
- 
 
getRole
public static Map<String,List<String>> getRole(String roleName)
- 
 
- 
 
addQualifiedRole
public static void addQualifiedRole(String roleName,
                                    String qualifiedRoleName)
- 
 
- 
 
removeQualifiedRole
public static void removeQualifiedRole(String roleName,
                                       String qualifiedRoleName)
- 
 
- 
 
setRecipientPrincipalIds
public static void setRecipientPrincipalIds(String roleName,
                                            String qualifiedRoleName,
                                            List<String> principalIds)
- All you need to call now.  Simplies the previous 3 step process of adding role, qual role then recipients
 
- 
 
- 
- Parameters:
- roleName-
- qualifiedRoleName-
- recipients-
 
getRecipientPrincipalIds
public static List<String> getRecipientPrincipalIds(String roleName,
                                                    String qualifiedRoleName)
- 
 
- 
 
validateClientRoutingData
public List<RemotableAttributeError> validateClientRoutingData()
- 
- Specified by:
- validateClientRoutingDatain interface- WorkflowAttributeXmlValidator
 
- 
 
Copyright © 2005-2013 The Kuali Foundation. All Rights Reserved.