|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RoleAttribute
A special type of attribute that is used exclusively for resolving abstract roles
to concrete responsibilities (users and groups). A RoleAttribute provides resolution
for a set of abstract "role" names. These are published via the getRoleNames()
method, which returns a list of RoleName
, which is a combination of class name (attribute implementation class),
abstract role name, and optional label and return url (DOCME: what is return url used for?).
RoleAttribute lifecycle:
role
element, with the syntax:
fully qualified class name!abstract role name. E.g.:<role>edu.whatever.attribute.SomeAttribute!RoleName</role>
<role>
element is parsed, the Rule's "responsibility" is set to the role element value
and the responsibility is marked to indicate that it is a role ("R", KewApiConstants.RULE_RESPONSIBILITY_ROLE_ID
)getQualifiedRoleNames(String, DocumentContent)
is called to return a list of "qualified" role names. Qualified role names are role names which have been qualified
with some relevant contextual information (e.g. from the document) that is useful for subsequent responsibility
resolution.resolveQualifiedRole(RouteContext, String, String)
is immediately called for each of the qualified role names
returned in the previous step, and it returns a ResolvedQualifiedRole
containing the
list of concrete recipients (Id
s).UnqualifiedRoleAttribute
base class can be used to simplify this
two-step process)Relationship to WorkflowAttribute: all RoleAttribute implementations are also WorkflowAttribute implementations (is this true? should RoleAttribute extend WorkflowAttribute in that case?)
Methods of WorkflowAttribute interface fulfilled by RoleAttribute:
WorkflowRuleAttribute
Method Summary | |
---|---|
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. |
List<RoleName> |
getRoleNames()
List of RoleName s this RoleAttribute supports |
ResolvedQualifiedRole |
resolveQualifiedRole(RouteContext routeContext,
String roleName,
String qualifiedRole)
Returns a List of Workflow Users which are members of the given qualified role. |
Methods inherited from interface org.kuali.rice.kew.rule.WorkflowRuleAttribute |
---|
getDocContent, getRoutingDataRows, getRuleExtensionValues, getRuleRows, isMatch, isRequired, setRequired, validateRoutingData, validateRuleData |
Method Detail |
---|
List<RoleName> getRoleNames()
RoleName
s this RoleAttribute supports
RoleName
s this RoleAttribute supportsList<String> getQualifiedRoleNames(String roleName, DocumentContent documentContent)
roleName
- the role name (without class prefix)documentContent
- the document contentResolvedQualifiedRole resolveQualifiedRole(RouteContext routeContext, String roleName, String qualifiedRole)
routeContext
- the RouteContextroleName
- the roleName (without class prefix)qualifiedRole
- one of the the qualified role names returned from the getQualifiedRoleNames(String, DocumentContent)
method
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |