|
||||||||||
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.GenericWorkflowAttribute org.kuali.rice.kew.rule.GenericRoleAttribute edu.sampleu.travel.workflow.EmployeeAttribute
public class EmployeeAttribute
An attribute implementation that can resolve organizational roles
Field Summary |
---|
Fields inherited from class org.kuali.rice.kew.rule.GenericWorkflowAttribute |
---|
attributeName, content, log |
Fields inherited from class org.kuali.rice.kew.rule.AbstractWorkflowAttribute |
---|
required |
Constructor Summary | |
---|---|
EmployeeAttribute()
|
|
EmployeeAttribute(String traveler)
|
Method Summary | |
---|---|
List |
getFieldConversions()
Required to support flex routing report |
Map<String,String> |
getProperties()
Template method for subclasses to override to expose attribute state |
protected List<String> |
getRoleNameQualifiers(String roleName,
DocumentContent documentContent)
Template method responsible for producing qualifiers for a role name |
List<RoleName> |
getRoleNames()
List of RoleName s this RoleAttribute supports |
List<Row> |
getRoutingDataRows()
RoutingDataRows contain Rows describing the UI-level presentation of the ruleData fields used to determine where a given document would be routed according to the associated rule. |
protected boolean |
isValidRole(String roleName)
|
protected ResolvedQualifiedRole |
resolveQualifiedRole(RouteContext routeContext,
QualifiedRoleName qualifiedRoleName)
Template method that delegates to GenericRoleAttribute.resolveRecipients(RouteContext, QualifiedRoleName) and
{@link #getLabelForQualifiedRoleName(QualifiedRoleName) |
protected List<Id> |
resolveRecipients(RouteContext routeContext,
QualifiedRoleName qualifiedRoleName)
Template method for subclasses to implement |
void |
setTraveler(String traveler)
for edoclite?? |
List |
validateRoutingData(Map paramMap)
These guys should probably be implemented to set the parameters on an internal member property map this attribute should use to contain all properties set on it, like StandardGenericXmlAttribute. |
Methods inherited from class org.kuali.rice.kew.rule.GenericRoleAttribute |
---|
generateQualifiedRoleNames, getLabelForQualifiedRoleName, getQualifiedRoleNames, isMatch, resolveQualifiedRole |
Methods inherited from class org.kuali.rice.kew.rule.GenericWorkflowAttribute |
---|
getDocContent, getRuleExtensionValues, isMatch, isMatch, validateRuleData |
Methods inherited from class org.kuali.rice.kew.rule.AbstractWorkflowAttribute |
---|
getIdFieldName, getLockFieldName, getRuleRows, isRequired, setRequired |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.kuali.rice.kew.rule.WorkflowRuleAttribute |
---|
getDocContent, getRuleExtensionValues, getRuleRows, isRequired, setRequired, validateRuleData |
Constructor Detail |
---|
public EmployeeAttribute()
public EmployeeAttribute(String traveler)
Method Detail |
---|
public void setTraveler(String traveler)
public List<RoleName> getRoleNames()
RoleAttribute
RoleName
s this RoleAttribute supports
RoleName
s this RoleAttribute supportsprotected boolean isValidRole(String roleName)
protected List<String> getRoleNameQualifiers(String roleName, DocumentContent documentContent)
GenericRoleAttribute
getRoleNameQualifiers
in class GenericRoleAttribute
protected ResolvedQualifiedRole resolveQualifiedRole(RouteContext routeContext, QualifiedRoleName qualifiedRoleName)
GenericRoleAttribute
GenericRoleAttribute.resolveRecipients(RouteContext, QualifiedRoleName)
and
{@link #getLabelForQualifiedRoleName(QualifiedRoleName)
resolveQualifiedRole
in class GenericRoleAttribute
protected List<Id> resolveRecipients(RouteContext routeContext, QualifiedRoleName qualifiedRoleName)
GenericRoleAttribute
resolveRecipients
in class GenericRoleAttribute
public Map<String,String> getProperties()
GenericWorkflowAttribute
getProperties
in class GenericWorkflowAttribute
public List getFieldConversions()
org.kuali.rice.kew.rule.WorkflowRuleAttribute#getFieldConversions()
public List<Row> getRoutingDataRows()
WorkflowRuleAttribute
The getRoutingDataRows method returns a list of rows that contain Fields describing the UI-level presentation of a single RuleExtensionValue for the routing report feature. These rows are used to determine where an eDoc would route if these values were entered. They are constructed the same way rule rows are described above and a lot of times are identical.
Additionally, it is very important that the List of Row objects is reconstructed every time getRoutingDataRows is called. This is because the code which processes these Rows will set the propertyValue directly on the Field objects contained within. Essentially, this means the Rows and Fields should not be constructed once inside of the attribute and cached statically, but instead be recreated each time this method is called.
getRoutingDataRows
in interface WorkflowRuleAttribute
getRoutingDataRows
in class AbstractWorkflowAttribute
public List validateRoutingData(Map paramMap)
GenericWorkflowAttribute
validateRoutingData
in interface WorkflowRuleAttribute
validateRoutingData
in class GenericWorkflowAttribute
paramMap
- Map containing the names and values of the routing data for this AttributeTODO: implement me!
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |