org.kuali.rice.kew.rule
Class RuleTestUtils

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

public final 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)

Method Summary
static RuleDelegationBo 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 RuleDelegationBo 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.
static RuleDelegationBo createRuleDelegationToGroup(RuleBaseValues parentRule, RuleResponsibilityBo parentResponsibility, Group delegateGroup)
          This method creates and saves a rule delegation
static RuleDelegationBo createRuleDelegationToUser(RuleBaseValues parentRule, RuleResponsibilityBo parentResponsibility, PrincipalContract 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
 

Method Detail

createDelegationToUser

public static RuleDelegationBo 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 RuleDelegationBo 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 RuleDelegationBo createRuleDelegationToUser(RuleBaseValues parentRule,
                                                          RuleResponsibilityBo parentResponsibility,
                                                          PrincipalContract 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 RuleDelegationBo createRuleDelegationToGroup(RuleBaseValues parentRule,
                                                           RuleResponsibilityBo 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 -


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