org.kuali.rice.kew.validation
Class RuleValidationAttributeExporterServiceImpl

java.lang.Object
  extended by 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)

Constructor Summary
RuleValidationAttributeExporterServiceImpl()
           
 
Method Summary
protected  RuleValidationAttribute loadAttribute(String attributeName)
          Loads RuleValidationAttribute implementation class via ExtensionRepositoryService
 void setExtensionRepositoryService(ExtensionRepositoryService extensionRepositoryService)
           
 ValidationResults validate(String attributeName, RuleValidationContext validationContext)
          Validates the rule within the given RuleValidationContext.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RuleValidationAttributeExporterServiceImpl

public RuleValidationAttributeExporterServiceImpl()
Method Detail

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-2013 The Kuali Foundation. All Rights Reserved.