org.kuali.rice.kew.rule
Class RuleTestUtils

java.lang.Object
  extended by org.kuali.rice.kew.rule.RuleTestUtils

public class RuleTestUtils
extends Object

This is a description of what this class does - gilesp don't forget to fill this in.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Constructor Summary
RuleTestUtils()
           
 
Method Summary
static RuleDelegation createDelegationToGroup(String docType, String ruleTemplate, String delegateGroupId)
          This method will create a delegate rule for the rule (assumed to be cardinality of 1) specified by the given docType and ruleTemplate.
static RuleDelegation createDelegationToUser(String docType, String ruleTemplate, String delegateUser)
          This method will create a delegate rule for the rule (assumed to be cardinality of 1) specified by the given docType and ruleTemplate.
private static RuleDelegation createRuleDelegation(RuleBaseValues parentRule, RuleResponsibility parentResponsibility, String delegateId, String groupTypeCode)
          This method creates and saves a rule delegation
static RuleDelegation createRuleDelegationToGroup(RuleBaseValues parentRule, RuleResponsibility parentResponsibility, Group delegateGroup)
          This method creates and saves a rule delegation
static RuleDelegation createRuleDelegationToUser(RuleBaseValues parentRule, RuleResponsibility parentResponsibility, KimPrincipal delegatePrincipal)
          This method creates and saves a rule delegation
static RuleBaseValues getRule(String docType, String ruleTemplate)
          This method gets a rule from a docType / ruleTemplate combo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RuleTestUtils

public RuleTestUtils()
Method Detail

createDelegationToUser

public static RuleDelegation createDelegationToUser(String docType,
                                                    String ruleTemplate,
                                                    String delegateUser)

This method will create a delegate rule for the rule (assumed to be cardinality of 1) specified by the given docType and ruleTemplate.

As a side effect, active documents of this type will be requeued for workflow processing.

Parameters:
delegateUser - the user who will be the delegate

createDelegationToGroup

public static RuleDelegation createDelegationToGroup(String docType,
                                                     String ruleTemplate,
                                                     String delegateGroupId)

This method will create a delegate rule for the rule (assumed to be cardinality of 1) specified by the given docType and ruleTemplate.

As a side effect, active documents of this type will be requeued for workflow processing.

Parameters:
delegateUser - the user who will be the delegate

getRule

public static RuleBaseValues getRule(String docType,
                                     String ruleTemplate)
This method gets a rule from a docType / ruleTemplate combo


createRuleDelegationToUser

public static RuleDelegation createRuleDelegationToUser(RuleBaseValues parentRule,
                                                        RuleResponsibility parentResponsibility,
                                                        KimPrincipal delegatePrincipal)

This method creates and saves a rule delegation

As a side effect, active documents of this type will be requeued for workflow processing.

Parameters:
parentRule -
parentResponsibility -
delegatePrincipal -

createRuleDelegationToGroup

public static RuleDelegation createRuleDelegationToGroup(RuleBaseValues parentRule,
                                                         RuleResponsibility parentResponsibility,
                                                         Group delegateGroup)

This method creates and saves a rule delegation

As a side effect, active documents of this type will be requeued for workflow processing.

Parameters:
parentRule -
parentResponsibility -
delegateGroup -

createRuleDelegation

private static RuleDelegation createRuleDelegation(RuleBaseValues parentRule,
                                                   RuleResponsibility parentResponsibility,
                                                   String delegateId,
                                                   String groupTypeCode)

This method creates and saves a rule delegation

As a side effect, active documents of this type will be requeued for workflow processing.



Copyright © 2007-2011 The Kuali Foundation. All Rights Reserved.