|
||||||||||
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.AbstractRoleAttribute org.kuali.rice.kew.rule.UnqualifiedRoleAttribute
public abstract class UnqualifiedRoleAttribute
A simple base RoleAttribute implementation for roles that do not need to be qualified prior to resolution.
Field Summary | |
---|---|
protected List<Role> |
roles
|
private static long |
serialVersionUID
|
Fields inherited from class org.kuali.rice.kew.rule.AbstractWorkflowAttribute |
---|
required |
Constructor Summary | |
---|---|
UnqualifiedRoleAttribute()
No-arg constructor for subclasses that will override getRoleNames() to provide their own roles list |
|
UnqualifiedRoleAttribute(List<Role> roles)
Constructor for subclasses that can provide a role list at construction time |
Method Summary | |
---|---|
List<String> |
getQualifiedRoleNames(String roleName,
DocumentContent documentContent)
Returns a List |
List<Role> |
getRoleNames()
List of Role 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 |
Methods inherited from class org.kuali.rice.kew.rule.AbstractRoleAttribute |
---|
isMatch |
Methods inherited from class org.kuali.rice.kew.rule.AbstractWorkflowAttribute |
---|
getDocContent, getIdFieldName, getLockFieldName, getRoutingDataRows, getRuleExtensionValues, getRuleRows, isRequired, setRequired, validateRoutingData, validateRuleData |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
protected List<Role> roles
Constructor Detail |
---|
public UnqualifiedRoleAttribute()
getRoleNames()
to provide their own roles list
public UnqualifiedRoleAttribute(List<Role> roles)
Method Detail |
---|
public List<Role> getRoleNames()
RoleAttribute
Role
s this RoleAttribute supports
Role
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 test
public 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)
method
protected abstract ResolvedQualifiedRole resolveRole(RouteContext routeContext, String roleName)
routeContext
- the RouteContextroleName
- the role name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |