Class AttributeValidatingTypeServiceBase

java.lang.Object
org.kuali.rice.krad.datadictionary.validation.AttributeValidatingTypeServiceBase

public abstract class AttributeValidatingTypeServiceBase extends Object

An abstract base class for type service implementations which provides default validation of attributes from the Data Dictionary. It attempts to remain module independent by requiring the translation of the attribute definitions to a generic format that includes the required RemotableAttributeFields as an unimplemented template method, seegetTypeAttributeDefinitions(String).

Note that any RemotableAttributeErrors returned from here should be fully resolved to the messages to be displayed to the user (in other words, they should not contain error keys). The same approach should be taken by subclasses since the message resources may not be present on the remote server that is invoking this service. There is a createErrorString(String, String...) utility method that can be used to resolve errorKeys and format them appropriately.

Author:
Kuali Rice Team (rice.collab@kuali.org)