public final class RuleTestUtils extends Object
Modifier and Type | Method and Description |
---|---|
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
|
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.
delegateUser
- the user who will be the delegatepublic 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.
delegateUser
- the user who will be the delegatepublic static RuleBaseValues getRule(String docType, String ruleTemplate)
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.
parentRule
- parentResponsibility
- delegatePrincipal
- 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.
parentRule
- parentResponsibility
- delegateGroup
- Copyright © 2005–2015 The Kuali Foundation. All rights reserved.