public abstract class GenericRoleAttribute extends GenericWorkflowAttribute implements RoleAttribute
Control flow:
attributeName, content, log
required
Constructor and Description |
---|
GenericRoleAttribute() |
GenericRoleAttribute(String uniqueName) |
Modifier and Type | Method and Description |
---|---|
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
|
getDocContent, getProperties, getRuleExtensionValues, isMatch, isMatch, validateRoutingData, validateRuleData
getIdFieldName, getLockFieldName, getRoutingDataRows, getRuleRows, isRequired, setRequired
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRoleNames
getDocContent, getRoutingDataRows, getRuleExtensionValues, getRuleRows, isRequired, setRequired, validateRoutingData, validateRuleData
public GenericRoleAttribute()
public GenericRoleAttribute(String uniqueName)
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)
methodprotected 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)
Copyright © 2005–2015 The Kuali Foundation. All rights reserved.