|
||||||||||
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
public abstract class GenericWorkflowAttribute
Generic base class that implements common functionality to simplify implementing a WorkflowAttribute. This includes simplified template methods, as well as a generic attribute content model.
Control flow (for isMatch):
The default matching algorithm will match:if any single attribute's properties are a match for all rule extension valuesThis implementation does not (yet!) implement a generic internal map of properties, so it is up to subclasses to expose specific named getters/setters to set data on an attribute of this ancestry.
Field Summary | |
---|---|
protected String |
attributeName
|
protected GenericAttributeContent |
content
|
protected org.apache.log4j.Logger |
log
|
Fields inherited from class org.kuali.rice.kew.rule.AbstractWorkflowAttribute |
---|
required |
Constructor Summary | |
---|---|
GenericWorkflowAttribute()
|
|
GenericWorkflowAttribute(String uniqueName)
|
Method Summary | |
---|---|
String |
getDocContent()
Simply defers to GenericAttributeContent to generate suitable XML content in a standard fashion |
abstract Map<String,String> |
getProperties()
Template method for subclasses to override to expose attribute state |
List<RuleExtensionValue> |
getRuleExtensionValues()
I think the job of this method is to marshal the current state of the attribute into a representative list of rule extension values. |
boolean |
isMatch(DocumentContent docContent,
List<RuleExtension> ruleExtensions)
Returns true if this Attribute finds a match in the given DocContent. |
protected boolean |
isMatch(List<Map<String,String>> propertiesList,
List<RuleExtension> ruleExtensions)
Returns true if any single incoming attribute's properties are a match for all rule extension values |
protected boolean |
isMatch(Map<String,String> properties,
List<RuleExtension> ruleExtensions)
Returns true if all key/value pairs defined by the specified rule extensions are present in the incoming attribute's properties |
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. |
List |
validateRuleData(Map paramMap)
Validates ruleExtension values in the incoming map. |
Methods inherited from class org.kuali.rice.kew.rule.AbstractWorkflowAttribute |
---|
getIdFieldName, getLockFieldName, getRoutingDataRows, getRuleRows, isRequired, setRequired |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final org.apache.log4j.Logger log
protected final String attributeName
protected final GenericAttributeContent content
Constructor Detail |
---|
public GenericWorkflowAttribute()
public GenericWorkflowAttribute(String uniqueName)
Method Detail |
---|
public abstract Map<String,String> getProperties()
public String getDocContent()
getDocContent
in interface WorkflowRuleAttribute
getDocContent
in class AbstractWorkflowAttribute
public boolean isMatch(DocumentContent docContent, List<RuleExtension> ruleExtensions)
WorkflowRuleAttribute
protected boolean isMatch(List<Map<String,String>> propertiesList, List<RuleExtension> ruleExtensions)
propertiesList
- the list of incoming attributes' propertiesruleExtensions
- the rule extensions
protected boolean isMatch(Map<String,String> properties, List<RuleExtension> ruleExtensions)
properties
- incoming attribute's propertiesruleExtensions
- list of rule extensions
public List validateRoutingData(Map paramMap)
validateRoutingData
in interface WorkflowRuleAttribute
validateRoutingData
in class AbstractWorkflowAttribute
paramMap
- Map containing the names and values of the routing data for this AttributeTODO: implement me!
public List validateRuleData(Map paramMap)
WorkflowRuleAttribute
validateRuleData
in interface WorkflowRuleAttribute
validateRuleData
in class AbstractWorkflowAttribute
paramMap
- Map containing the names and values of the rule extensions for this Attributepublic List<RuleExtensionValue> getRuleExtensionValues()
getRuleExtensionValues
in interface WorkflowRuleAttribute
getRuleExtensionValues
in class AbstractWorkflowAttribute
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |