org.kuali.kfs.sec.document.validation.impl
Class SecurityValidationUtil

java.lang.Object
  extended by org.kuali.kfs.sec.document.validation.impl.SecurityValidationUtil

public class SecurityValidationUtil
extends Object

Contains some common validation logic


Constructor Summary
SecurityValidationUtil()
           
 
Method Summary
static boolean validateAttributeValue(String attributeName, String attributeValue, String errorKeyPrefix)
          Validates the given value exist for the attribute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecurityValidationUtil

public SecurityValidationUtil()
Method Detail

validateAttributeValue

public static boolean validateAttributeValue(String attributeName,
                                             String attributeValue,
                                             String errorKeyPrefix)
Validates the given value exist for the attribute. SECURITY_ATTRIBUTE_METADATA_MAP maps the attribute to the business object class and primitive key field need to do the existence search.

Parameters:
attributeName - name of attribute for value
attributeValue - the value to validate
errorKeyPrefix - prefix for error key if the value does not exist
Returns:
boolean true if the value exist, false if it does not


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.