org.kuali.rice.kew.rule
Class AbstractIdRoleAttribute
java.lang.Object
   org.kuali.rice.kew.rule.AbstractWorkflowAttribute
org.kuali.rice.kew.rule.AbstractWorkflowAttribute
       org.kuali.rice.kew.rule.AbstractRoleAttribute
org.kuali.rice.kew.rule.AbstractRoleAttribute
           org.kuali.rice.kew.rule.AbstractIdRoleAttribute
org.kuali.rice.kew.rule.AbstractIdRoleAttribute
- All Implemented Interfaces: 
- Serializable, RoleAttribute, WorkflowRuleAttribute, XmlConfiguredAttribute, GenericXMLRuleAttribute
- Direct Known Subclasses: 
- NetworkIdRoleAttribute, PrincipalIdRoleAttribute, UniversityIdRoleAttribute, WorkgroupRoleAttribute
- public abstract class AbstractIdRoleAttribute 
- extends AbstractRoleAttribute- implements GenericXMLRuleAttribute
A generic Role Attribute superclass that can be used to route to an ID. Can
 take as configuration the label to use for the element name in the XML. This
 allows for re-use of this component in different contexts.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
- See Also:
- Serialized Form
 
 
 
 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
 
 
AbstractIdRoleAttribute
public AbstractIdRoleAttribute()
getAttributeElementName
protected abstract String getAttributeElementName()
- 
 
- 
 
resolveId
protected abstract Id resolveId(String id)
- 
 
- 
 
getIdName
protected abstract String getIdName()
- 
 
- 
 
getQualifiedRoleNames
public List<String> getQualifiedRoleNames(String roleName,
                                          DocumentContent documentContent)
- Returns qualified role names based on IDs in the XML. Each returned
 qualified Role contains a single ID.
 
- 
- Specified by:
- getQualifiedRoleNamesin interface- RoleAttribute
 
- 
- Parameters:
- roleName- the role name (without class prefix)
- documentContent- the document content
- See Also:
- RoleAttribute.getQualifiedRoleNames(java.lang.String,
      org.kuali.rice.kew.routeheader.DocumentContent)
 
resolveQualifiedRole
public ResolvedQualifiedRole resolveQualifiedRole(RouteContext routeContext,
                                                  String roleName,
                                                  String qualifiedRole)
- Takes the given qualified role which contains an ID and returns a
 resolved role for the entity with that id.
 
- 
- Specified by:
- resolveQualifiedRolein interface- RoleAttribute
 
- 
- Parameters:
- routeContext- the RouteContext
- roleName- the roleName (without class prefix)
- qualifiedRole- one of the the qualified role names returned from the- RoleAttribute.getQualifiedRoleNames(String, DocumentContent)method
- Returns:
- ResolvedQualifiedRole containing recipients, role label (most likely the roleName), and an annotation
- See Also:
- RoleAttribute.resolveQualifiedRole(org.kuali.rice.kew.engine.RouteContext,
      java.lang.String, java.lang.String)
 
getDocContent
public String getDocContent()
- Generates XML containing the ID on this attribute.
 
- 
- Specified by:
- getDocContentin interface- WorkflowRuleAttribute
- Overrides:
- getDocContentin class- AbstractWorkflowAttribute
 
- 
- See Also:
- AbstractWorkflowAttribute.getDocContent()
 
readConfiguration
protected void readConfiguration()
- Reads any configured values in the XML of the RuleAttribute and adds them
 to the paramMap.
 
- 
 
- 
 
getIdValue
public String getIdValue()
- 
 
- 
 
setIdValue
public void setIdValue(String idValue)
- 
 
- 
 
getParamMap
public Map getParamMap()
- 
- Specified by:
- getParamMapin interface- GenericXMLRuleAttribute
 
- 
 
setParamMap
public void setParamMap(Map paramMap)
- 
- Specified by:
- setParamMapin interface- GenericXMLRuleAttribute
 
- 
 
setExtensionDefinition
public void setExtensionDefinition(ExtensionDefinition extensionDefinition)
- 
- Specified by:
- setExtensionDefinitionin interface- XmlConfiguredAttribute
 
- 
 
Copyright © 2005-2013 The Kuali Foundation. All Rights Reserved.