public abstract class AbstractIdRoleAttribute extends AbstractRoleAttribute implements GenericXMLRuleAttribute
required
Constructor and Description |
---|
AbstractIdRoleAttribute() |
Modifier and Type | Method and Description |
---|---|
protected abstract String |
getAttributeElementName() |
String |
getDocContent()
Generates XML containing the ID on this attribute.
|
protected abstract String |
getIdName() |
String |
getIdValue() |
Map |
getParamMap() |
List<String> |
getQualifiedRoleNames(String roleName,
DocumentContent documentContent)
Returns qualified role names based on IDs in the XML.
|
protected void |
readConfiguration()
Reads any configured values in the XML of the RuleAttribute and adds them
to the paramMap.
|
protected abstract Id |
resolveId(String id) |
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.
|
void |
setExtensionDefinition(ExtensionDefinition extensionDefinition) |
void |
setIdValue(String idValue) |
void |
setParamMap(Map paramMap) |
isMatch
getIdFieldName, getLockFieldName, getRoutingDataRows, getRuleExtensionValues, getRuleRows, isRequired, setRequired, validateRoutingData, validateRuleData
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRoutingDataRows, getRuleExtensionValues, getRuleRows, isMatch, isRequired, setRequired, validateRoutingData, validateRuleData
getRoleNames
public AbstractIdRoleAttribute()
protected abstract String getAttributeElementName()
public List<String> getQualifiedRoleNames(String roleName, DocumentContent documentContent)
getQualifiedRoleNames
in interface RoleAttribute
roleName
- the role name (without class prefix)documentContent
- the document contentRoleAttribute.getQualifiedRoleNames(java.lang.String,
org.kuali.rice.kew.routeheader.DocumentContent)
public ResolvedQualifiedRole resolveQualifiedRole(RouteContext routeContext, String roleName, String qualifiedRole)
resolveQualifiedRole
in interface RoleAttribute
routeContext
- the RouteContextroleName
- the roleName (without class prefix)qualifiedRole
- one of the the qualified role names returned from the RoleAttribute.getQualifiedRoleNames(String, DocumentContent)
methodRoleAttribute.resolveQualifiedRole(org.kuali.rice.kew.engine.RouteContext,
java.lang.String, java.lang.String)
public String getDocContent()
getDocContent
in interface WorkflowRuleAttribute
getDocContent
in class AbstractWorkflowAttribute
AbstractWorkflowAttribute.getDocContent()
protected void readConfiguration()
public String getIdValue()
public void setIdValue(String idValue)
public Map getParamMap()
getParamMap
in interface GenericXMLRuleAttribute
public void setParamMap(Map paramMap)
setParamMap
in interface GenericXMLRuleAttribute
public void setExtensionDefinition(ExtensionDefinition extensionDefinition)
setExtensionDefinition
in interface XmlConfiguredAttribute
Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.