public abstract class UnqualifiedRoleAttribute extends AbstractRoleAttribute
Modifier and Type | Field and Description |
---|---|
protected List<RoleName> |
roles |
required
Constructor and Description |
---|
UnqualifiedRoleAttribute()
No-arg constructor for subclasses that will override
getRoleNames() to provide their own roles list |
UnqualifiedRoleAttribute(List<RoleName> roles)
Constructor for subclasses that can provide a role list at construction time
|
Modifier and Type | Method and Description |
---|---|
List<String> |
getQualifiedRoleNames(String roleName,
DocumentContent documentContent)
Returns a List
|
List<RoleName> |
getRoleNames()
List of
RoleName s this RoleAttribute supports |
protected boolean |
isValidRoleName(String roleName) |
protected String |
parseRoleNameFromClassAndRole(String classAndRole)
Helper method for parsing the actual role name out from the class/rolename combination
as Role class combines the two and does expose the original role name
|
ResolvedQualifiedRole |
resolveQualifiedRole(RouteContext routeContext,
String roleName,
String qualifiedRole)
Returns a List of Workflow Users which are members of the given qualified role.
|
protected abstract ResolvedQualifiedRole |
resolveRole(RouteContext routeContext,
String roleName)
Template method for subclasses to implement
|
isMatch
getDocContent, getIdFieldName, getLockFieldName, getRoutingDataRows, getRuleExtensionValues, getRuleRows, isRequired, setRequired, validateRoutingData, validateRuleData
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDocContent, getRoutingDataRows, getRuleExtensionValues, getRuleRows, isRequired, setRequired, validateRoutingData, validateRuleData
public UnqualifiedRoleAttribute()
getRoleNames()
to provide their own roles listpublic UnqualifiedRoleAttribute(List<RoleName> roles)
public List<RoleName> getRoleNames()
RoleAttribute
RoleName
s this RoleAttribute supportsRoleName
s this RoleAttribute supportspublic List<String> getQualifiedRoleNames(String roleName, DocumentContent documentContent)
roleName
- the role name (without class prefix)documentContent
- the document contentprotected String parseRoleNameFromClassAndRole(String classAndRole)
classAndRole
- the class and role string (e.g. org.blah.MyRoleAttribute!SOME_ROLE_NAME)protected boolean isValidRoleName(String roleName)
roleName
- roleName to testpublic ResolvedQualifiedRole resolveQualifiedRole(RouteContext routeContext, String roleName, String qualifiedRole)
RoleAttribute
routeContext
- the RouteContextroleName
- the roleName (without class prefix)qualifiedRole
- one of the the qualified role names returned from the RoleAttribute.getQualifiedRoleNames(String, DocumentContent)
methodprotected abstract ResolvedQualifiedRole resolveRole(RouteContext routeContext, String roleName)
routeContext
- the RouteContextroleName
- the role nameCopyright © 2005–2015 The Kuali Foundation. All rights reserved.