org.kuali.rice.kew.rule
Class TestRuleAttribute

java.lang.Object
  extended by 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

Field Summary
static boolean VALID_CLIENT_ROUTING_DATA_CALLED
           
 
Constructor Summary
TestRuleAttribute()
           
 
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
 

Field Detail

VALID_CLIENT_ROUTING_DATA_CALLED

public static boolean VALID_CLIENT_ROUTING_DATA_CALLED
Constructor Detail

TestRuleAttribute

public TestRuleAttribute()
Method Detail

isMatch

public boolean isMatch(DocumentContent documentContent,
                       List ruleExtensions)
Specified by:
isMatch in interface WorkflowRuleAttribute

getRoleNames

public List getRoleNames()
Specified by:
getRoleNames in interface RoleAttribute

getRuleRows

public List getRuleRows()
Specified by:
getRuleRows in interface WorkflowRuleAttribute

getRoutingDataRows

public List getRoutingDataRows()
Specified by:
getRoutingDataRows in interface WorkflowRuleAttribute

getDocContent

public String getDocContent()
Specified by:
getDocContent in interface WorkflowRuleAttribute

getRuleExtensionValues

public List getRuleExtensionValues()
Specified by:
getRuleExtensionValues in interface WorkflowRuleAttribute

validateRoutingData

public List validateRoutingData(Map paramMap)
Specified by:
validateRoutingData in interface WorkflowRuleAttribute

getAttributeLabel

public String getAttributeLabel()

validateRuleData

public List<RemotableAttributeError> validateRuleData(Map paramMap)
Specified by:
validateRuleData in interface WorkflowRuleAttribute

setRequired

public void setRequired(boolean required)
Specified by:
setRequired in interface WorkflowRuleAttribute

isRequired

public boolean isRequired()
Specified by:
isRequired in interface WorkflowRuleAttribute

getQualifiedRoleNames

public List<String> getQualifiedRoleNames(String roleName,
                                          DocumentContent documentContent)
Specified by:
getQualifiedRoleNames in interface RoleAttribute

resolveQualifiedRole

public ResolvedQualifiedRole resolveQualifiedRole(RouteContext routeContext,
                                                  String roleName,
                                                  String qualifiedRole)
Specified by:
resolveQualifiedRole in 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:
validateClientRoutingData in interface WorkflowAttributeXmlValidator


Copyright © 2005-2014 The Kuali Foundation. All Rights Reserved.