org.kuali.rice.kew.rule
Class MockRole

java.lang.Object
  extended by org.kuali.rice.kew.rule.AbstractWorkflowAttribute
      extended by org.kuali.rice.kew.rule.AbstractRoleAttribute
          extended by org.kuali.rice.kew.rule.UnqualifiedRoleAttribute
              extended by org.kuali.rice.kew.rule.MockRole
All Implemented Interfaces:
Serializable, RoleAttribute, WorkflowRuleAttribute

public class MockRole
extends UnqualifiedRoleAttribute

A RoleAttribute implementation that can be used in tests to easily provide canned/pre-configured recipients. The role name should be a comma-delimited list of user authentication ids:

 
   
     org.kuali.rice.kew.rule.MockRole!user1,user2,user3
   
 
 

Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.kuali.rice.kew.rule.UnqualifiedRoleAttribute
roles
 
Fields inherited from class org.kuali.rice.kew.rule.AbstractWorkflowAttribute
required
 
Constructor Summary
MockRole()
           
 
Method Summary
protected  boolean isValidRoleName(String roleName)
          Overridden to accept any role name
protected  ResolvedQualifiedRole resolveRole(RouteContext routeContext, String roleName)
           
 
Methods inherited from class org.kuali.rice.kew.rule.UnqualifiedRoleAttribute
getQualifiedRoleNames, getRoleNames, parseRoleNameFromClassAndRole, resolveQualifiedRole
 
Methods inherited from class org.kuali.rice.kew.rule.AbstractRoleAttribute
isMatch
 
Methods inherited from class org.kuali.rice.kew.rule.AbstractWorkflowAttribute
getDocContent, getIdFieldName, getLockFieldName, getRoutingDataRows, getRuleExtensionValues, getRuleRows, isRequired, setRequired, validateRoutingData, validateRuleData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.kuali.rice.kew.rule.WorkflowRuleAttribute
getDocContent, getRoutingDataRows, getRuleExtensionValues, getRuleRows, isRequired, setRequired, validateRoutingData, validateRuleData
 

Constructor Detail

MockRole

public MockRole()
Method Detail

isValidRoleName

protected boolean isValidRoleName(String roleName)
Overridden to accept any role name

Overrides:
isValidRoleName in class UnqualifiedRoleAttribute
See Also:
UnqualifiedRoleAttribute.isValidRoleName(java.lang.String)

resolveRole

protected ResolvedQualifiedRole resolveRole(RouteContext routeContext,
                                            String roleName)
Specified by:
resolveRole in class UnqualifiedRoleAttribute


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