|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.kew.rule.AbstractWorkflowAttribute org.kuali.rice.kew.rule.GenericWorkflowAttribute org.kuali.rice.kew.rule.GenericRoleAttribute
public abstract class GenericRoleAttribute
Generic base class that implements common functionality to simplify implementing a RoleAttribute. This includes a standard qualified role name String format and simplified template methods, as well as a generic attribute content model.
Control flow:
Field Summary |
---|
Fields inherited from class org.kuali.rice.kew.rule.GenericWorkflowAttribute |
---|
attributeName, content, log |
Fields inherited from class org.kuali.rice.kew.rule.AbstractWorkflowAttribute |
---|
required |
Constructor Summary | |
---|---|
GenericRoleAttribute()
|
|
GenericRoleAttribute(String uniqueName)
|
Method Summary | |
---|---|
protected List<QualifiedRoleName> |
generateQualifiedRoleNames(String roleName,
DocumentContent documentContent)
Template method responsible for producing a list of QualifiedRoleName objects. |
protected String |
getLabelForQualifiedRoleName(QualifiedRoleName qualifiedRoleName)
|
List<String> |
getQualifiedRoleNames(String roleName,
DocumentContent documentContent)
Returns a String which represent the qualified role name of this role for the given roleName and docContent. |
protected List<String> |
getRoleNameQualifiers(String roleName,
DocumentContent documentContent)
Template method responsible for producing qualifiers for a role name |
boolean |
isMatch(DocumentContent docContent,
List<RuleExtension> ruleExtensions)
Returns true if this Attribute finds a match in the given DocContent. |
protected ResolvedQualifiedRole |
resolveQualifiedRole(RouteContext routeContext,
QualifiedRoleName qualifiedRoleName)
Template method that delegates to resolveRecipients(RouteContext, QualifiedRoleName) and
{@link #getLabelForQualifiedRoleName(QualifiedRoleName) |
ResolvedQualifiedRole |
resolveQualifiedRole(RouteContext routeContext,
String roleName,
String qualifiedRoleName)
Returns a List of Workflow Users which are members of the given qualified role. |
protected List<Id> |
resolveRecipients(RouteContext routeContext,
QualifiedRoleName qualifiedRoleName)
Template method for subclasses to implement |
Methods inherited from class org.kuali.rice.kew.rule.GenericWorkflowAttribute |
---|
getDocContent, getProperties, getRuleExtensionValues, isMatch, isMatch, validateRoutingData, validateRuleData |
Methods inherited from class org.kuali.rice.kew.rule.AbstractWorkflowAttribute |
---|
getIdFieldName, getLockFieldName, getRoutingDataRows, getRuleRows, isRequired, setRequired |
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.RoleAttribute |
---|
getRoleNames |
Methods inherited from interface org.kuali.rice.kew.rule.WorkflowRuleAttribute |
---|
getDocContent, getRoutingDataRows, getRuleExtensionValues, getRuleRows, isRequired, setRequired, validateRoutingData, validateRuleData |
Constructor Detail |
---|
public GenericRoleAttribute()
public GenericRoleAttribute(String uniqueName)
Method Detail |
---|
public boolean isMatch(DocumentContent docContent, List<RuleExtension> ruleExtensions)
WorkflowRuleAttribute
isMatch
in interface WorkflowRuleAttribute
isMatch
in class GenericWorkflowAttribute
public List<String> getQualifiedRoleNames(String roleName, DocumentContent documentContent)
RoleAttribute
getQualifiedRoleNames
in interface RoleAttribute
roleName
- the role name (without class prefix)documentContent
- the document contentprotected List<QualifiedRoleName> generateQualifiedRoleNames(String roleName, DocumentContent documentContent)
getRoleNameQualifiers(String, DocumentContent)
protected List<String> getRoleNameQualifiers(String roleName, DocumentContent documentContent)
public ResolvedQualifiedRole resolveQualifiedRole(RouteContext routeContext, String roleName, String qualifiedRoleName)
RoleAttribute
resolveQualifiedRole
in interface RoleAttribute
routeContext
- the RouteContextroleName
- the roleName (without class prefix)qualifiedRoleName
- one of the the qualified role names returned from the RoleAttribute.getQualifiedRoleNames(String, DocumentContent)
method
protected ResolvedQualifiedRole resolveQualifiedRole(RouteContext routeContext, QualifiedRoleName qualifiedRoleName)
resolveRecipients(RouteContext, QualifiedRoleName)
and
{@link #getLabelForQualifiedRoleName(QualifiedRoleName)
protected String getLabelForQualifiedRoleName(QualifiedRoleName qualifiedRoleName)
protected List<Id> resolveRecipients(RouteContext routeContext, QualifiedRoleName qualifiedRoleName)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |