|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 | |
|---|---|
private static Role |
DIRECTOR_ROLE
|
private static Role |
EMPLOYEE_ROLE
|
private static List<Role> |
ROLES
|
private static Role |
SUPERVISOR_ROLE
|
private String |
traveler
Traveler to be set by client application so that doc content can be generated appropriately |
private static String |
USERID_FORM_FIELDNAME
|
| 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<Role> |
getRoleNames()
List of Roles 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 |
| Field Detail |
|---|
private static final Role EMPLOYEE_ROLE
private static final Role SUPERVISOR_ROLE
private static final Role DIRECTOR_ROLE
private static final List<Role> ROLES
private static String USERID_FORM_FIELDNAME
private String traveler
| Constructor Detail |
|---|
public EmployeeAttribute()
public EmployeeAttribute(String traveler)
| Method Detail |
|---|
public void setTraveler(String traveler)
public List<Role> getRoleNames()
RoleAttributeRoles this RoleAttribute supports
Roles 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)
GenericRoleAttributeGenericRoleAttribute.resolveRecipients(RouteContext, QualifiedRoleName) and
{@link #getLabelForQualifiedRoleName(QualifiedRoleName)
resolveQualifiedRole in class GenericRoleAttribute
protected List<Id> resolveRecipients(RouteContext routeContext,
QualifiedRoleName qualifiedRoleName)
GenericRoleAttribute
resolveRecipients in class GenericRoleAttributepublic Map<String,String> getProperties()
GenericWorkflowAttribute
getProperties in class GenericWorkflowAttributepublic List getFieldConversions()
org.kuali.rice.kew.rule.WorkflowAttribute#getFieldConversions()public List<Row> getRoutingDataRows()
WorkflowAttributeThe 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 WorkflowAttributegetRoutingDataRows in class AbstractWorkflowAttributepublic List validateRoutingData(Map paramMap)
GenericWorkflowAttribute
validateRoutingData in interface WorkflowAttributevalidateRoutingData in class GenericWorkflowAttributeTODO: implement me!
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||