org.kuali.kfs.sec.document.validation.impl
Class SecurityValidationUtil
java.lang.Object
org.kuali.kfs.sec.document.validation.impl.SecurityValidationUtil
public class SecurityValidationUtil
- extends Object
Contains some common validation logic
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SecurityValidationUtil
public SecurityValidationUtil()
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 valueattributeValue
- the value to validateerrorKeyPrefix
- 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.