org.kuali.rice.kew.validation
Class RuleValidationAttributeExporterServiceImpl
java.lang.Object
org.kuali.rice.kew.validation.RuleValidationAttributeExporterServiceImpl
- All Implemented Interfaces:
- RuleValidationAttributeExporterService
public class RuleValidationAttributeExporterServiceImpl
- extends Object
- implements RuleValidationAttributeExporterService
RuleValidationAttributeExporterService reference impl. Delegates to the ExtensionRepositoryService
to load the custom RuleValidationAttribute.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RuleValidationAttributeExporterServiceImpl
public RuleValidationAttributeExporterServiceImpl()
setExtensionRepositoryService
public void setExtensionRepositoryService(ExtensionRepositoryService extensionRepositoryService)
validate
public ValidationResults validate(String attributeName,
RuleValidationContext validationContext)
- Description copied from interface:
RuleValidationAttributeExporterService
- Validates the rule within the given RuleValidationContext.
- Specified by:
validate
in interface RuleValidationAttributeExporterService
- Returns:
- a ValidationResults object representing the results of the validation, if this is
empty or
null
this signifies that validation was successful.
loadAttribute
protected RuleValidationAttribute loadAttribute(String attributeName)
- Loads RuleValidationAttribute implementation class via
ExtensionRepositoryService
- Parameters:
attributeName
- the RuleValidationAttribute name
- Returns:
- instance of the RuleValidationAttribute implementation class
- Throws:
RiceIllegalArgumentException
- if specified attribute name cannot be found or loaded
Copyright © 2005-2011 The Kuali Foundation. All Rights Reserved.