public class WorkflowRuleAttributeMediatorImpl extends Object implements WorkflowRuleAttributeMediator
WorkflowRuleAttributeMediator.| Constructor and Description |
|---|
WorkflowRuleAttributeMediatorImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected WorkflowRuleAttributeHandlerService |
getHandler(ExtensionDefinition extensionDefinition)
Retrieves the WorkflowRuleAttributeHandlerService which can be used to handle the given ExtensionDefinition.
|
List<RoleName> |
getRoleNames(RuleTemplateAttributeBo ruleTemplateAttribute)
Returns the list of role names as defined on the
RoleAttribute defined by the given rule template
attribute. |
WorkflowRuleAttributeRows |
getRoutingDataRows(Map<String,String> parameters,
RuleTemplateAttribute ruleTemplateAttribute)
Returns rule attribute row configuration for the workflow rule attribute defined on the given RuleTemplateAttribute.
|
WorkflowRuleAttributeRows |
getRoutingDataRows(Map<String,String> parameters,
RuleTemplateAttributeBo ruleTemplateAttribute)
Equivalent to
WorkflowRuleAttributeMediator.getRoutingDataRows(java.util.Map, org.kuali.rice.kew.rule.bo.RuleTemplateAttributeBo) but takes
a RuleTemplateAttributeBo instead of a RuleTemplateAttribute. |
WorkflowRuleAttributeRows |
getRuleRows(Map<String,String> parameters,
RuleTemplateAttribute ruleTemplateAttribute)
Returns rule row configuration for the workflow rule attribute defined on the given RuleTemplateAttribute.
|
WorkflowRuleAttributeRows |
getRuleRows(Map<String,String> parameters,
RuleTemplateAttributeBo ruleTemplateAttribute)
Equivalent to
WorkflowRuleAttributeMediator.getRuleRows(java.util.Map, org.kuali.rice.kew.rule.bo.RuleTemplateAttributeBo) but takes
a RuleTemplateAttributeBo instead of a RuleTemplateAttribute. |
WorkflowRuleAttributeRows |
getSearchRows(Map<String,String> parameters,
RuleTemplateAttribute ruleTemplateAttribute)
Returns rule search row configuration for the workflow rule attribute defined on the given RuleTemplateAttribute.
|
WorkflowRuleAttributeRows |
getSearchRows(Map<String,String> parameters,
RuleTemplateAttribute ruleTemplateAttribute,
boolean required)
Equivalent to call
WorkflowRuleAttributeMediator.getSearchRows(java.util.Map, org.kuali.rice.kew.api.rule.RuleTemplateAttribute) but
passes a custom value for the required flag that is passed to the attribute instead of using the one defined by
the given RuleTemplateAttribute.isRequired(). |
public WorkflowRuleAttributeMediatorImpl()
public WorkflowRuleAttributeRows getRuleRows(Map<String,String> parameters, RuleTemplateAttributeBo ruleTemplateAttribute)
WorkflowRuleAttributeMediatorWorkflowRuleAttributeMediator.getRuleRows(java.util.Map, org.kuali.rice.kew.rule.bo.RuleTemplateAttributeBo) but takes
a RuleTemplateAttributeBo instead of a RuleTemplateAttribute. Exists primarily for convenience of
the calling code.getRuleRows in interface WorkflowRuleAttributeMediatorpublic WorkflowRuleAttributeRows getRuleRows(Map<String,String> parameters, RuleTemplateAttribute ruleTemplateAttribute)
WorkflowRuleAttributeMediatorWill use the supplied parameters to populate the WorkflowRuleAttribute by running the validateRuleData method on that attribute. The result of this call contains any validation errors, the Row objects as constructed by the attribute, and the final values for the rule extensions after validation and processing has been executed.
getRuleRows in interface WorkflowRuleAttributeMediatorparameters - a map of parameters to pass to the backend WorkflowRuleAttribute for validation, may be null or
an empty mapruleTemplateAttribute - the RuleTemplateAttribute which defines the ExtensionDefinition for the
WorkflowRuleAttribute against which to validate and retrieve the rows, as well as
the required flag which should be passed to the attributepublic WorkflowRuleAttributeRows getRoutingDataRows(Map<String,String> parameters, RuleTemplateAttributeBo ruleTemplateAttribute)
WorkflowRuleAttributeMediatorWorkflowRuleAttributeMediator.getRoutingDataRows(java.util.Map, org.kuali.rice.kew.rule.bo.RuleTemplateAttributeBo) but takes
a RuleTemplateAttributeBo instead of a RuleTemplateAttribute. Exists primarily for convenience of
the calling code.getRoutingDataRows in interface WorkflowRuleAttributeMediatorpublic WorkflowRuleAttributeRows getRoutingDataRows(Map<String,String> parameters, RuleTemplateAttribute ruleTemplateAttribute)
WorkflowRuleAttributeMediatorWill use the supplied parameters to populate the WorkflowRuleAttribute by running the validateRoutingData method on that attribute. The result of this call contains any validation errors, the Row objects as constructed by the attribute, and the final values for the rule extensions after validation and processing has been executed.
getRoutingDataRows in interface WorkflowRuleAttributeMediatorparameters - a map of parameters to pass to the backend WorkflowRuleAttribute for validation, may be null or
an empty mapruleTemplateAttribute - the RuleTemplateAttribute which defines the ExtensionDefinition for the
WorkflowRuleAttribute against which to validate and retrieve the search rows, as
well as the required flag which should be passed to the attributepublic WorkflowRuleAttributeRows getSearchRows(Map<String,String> parameters, RuleTemplateAttribute ruleTemplateAttribute)
WorkflowRuleAttributeMediatorWill use the supplied parameters to populate the WorkflowRuleAttribute by running the validateRuleData method on that attribute (or if the attribute implements WorkflowRuleSearchAttribute, will execute validateSearchData). The result of this call contains any validation errors, the Row objects as constructed by the attribute, and the final values for the rule extensions after validation and processing has been executed.
getSearchRows in interface WorkflowRuleAttributeMediatorparameters - a map of parameters to pass to the backend WorkflowRuleAttribute for validation, may be null or
an empty mapruleTemplateAttribute - the RuleTemplateAttribute which defines the ExtensionDefinition for the
WorkflowRuleAttribute against which to validate and retrieve the search rows, as
well as the required flag which should be passed to the attributepublic WorkflowRuleAttributeRows getSearchRows(Map<String,String> parameters, RuleTemplateAttribute ruleTemplateAttribute, boolean required)
WorkflowRuleAttributeMediatorWorkflowRuleAttributeMediator.getSearchRows(java.util.Map, org.kuali.rice.kew.api.rule.RuleTemplateAttribute) but
passes a custom value for the required flag that is passed to the attribute instead of using the one defined by
the given RuleTemplateAttribute.isRequired(). The main use case for this
is in the case of a lookup where it's desirable to disable required validation for search fields that have not
been filled in (in that case a value of "false" would be passed as the last argument to this method).getSearchRows in interface WorkflowRuleAttributeMediatorpublic List<RoleName> getRoleNames(RuleTemplateAttributeBo ruleTemplateAttribute)
WorkflowRuleAttributeMediatorRoleAttribute defined by the given rule template
attribute. In this case that the defined rule template attribute does not represent a role attribute or does
not return any role names, this method will return an empty list.getRoleNames in interface WorkflowRuleAttributeMediatorruleTemplateAttribute - the RuleTemplateAttribute which defines the ExtensionDefinition for the
RoleAttribute from which to fetch the role namesprotected WorkflowRuleAttributeHandlerService getHandler(ExtensionDefinition extensionDefinition)
extensionDefinition - the definition of the extension which will be accessed through the handler serviceIllegalStateException - if the handler cannot be foundCopyright © 2005–2015 The Kuali Foundation. All rights reserved.