Interface ValidationRuleTypeService
- All Superinterfaces:
RemotableAttributeOwner,RuleTypeService
invalid reference
ValidationRule
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringVALIDATIONS_RULE_TYPE_CODE_ATTRIBUTE - Database krms_attr_defn_t NM value -
Method Summary
Modifier and TypeMethodDescriptionList<org.kuali.rice.core.api.uif.RemotableAttributeField> getAttributeFields(String krmsTypeId) get the attributes supported by the type with the given krmsTypeId.loadRule(org.kuali.rice.krms.api.repository.rule.RuleDefinition validationRuleDefinition) Load theRulegiven theRuleDefinitionList<org.kuali.rice.core.api.uif.RemotableAttributeError> validateAttributes(String krmsTypeId, Map<String, String> attributes) This method validates the passed in attributes for a krmsTypeId generating a List ofRemotableAttributeErrors.List<org.kuali.rice.core.api.uif.RemotableAttributeError> validateAttributesAgainstExisting(String krmsTypeId, Map<String, String> newAttributes, Map<String, String> oldAttributes) This method validates the passed in attributes for a krmsTypeId generating a List ofRemotableAttributeErrors.
-
Field Details
-
VALIDATIONS_RULE_TYPE_CODE_ATTRIBUTE
VALIDATIONS_RULE_TYPE_CODE_ATTRIBUTE - Database krms_attr_defn_t NM value- See Also:
-
-
Method Details
-
loadRule
Description copied from interface:RuleTypeServiceLoad theRulegiven theRuleDefinition- Specified by:
loadRulein interfaceRuleTypeService- Parameters:
validationRuleDefinition-RuleDefinitionto create aRulefrom- Returns:
Rulecreated from the givenRuleDefinition
-
getAttributeFields
List<org.kuali.rice.core.api.uif.RemotableAttributeField> getAttributeFields(String krmsTypeId) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException Description copied from interface:RemotableAttributeOwnerget the attributes supported by the type with the given krmsTypeId.
- Specified by:
getAttributeFieldsin interfaceRemotableAttributeOwner- Parameters:
krmsTypeId- the people flow type identifier. Must not be null or blank.- Returns:
- the
RemotableAttributeFields that the PeopleFlow type with the given id supports. Will not return null. - Throws:
org.kuali.rice.core.api.exception.RiceIllegalArgumentException
-
validateAttributesAgainstExisting
List<org.kuali.rice.core.api.uif.RemotableAttributeError> validateAttributesAgainstExisting(String krmsTypeId, Map<String, String> newAttributes, Map<String, throws org.kuali.rice.core.api.exception.RiceIllegalArgumentExceptionString> oldAttributes) Description copied from interface:RemotableAttributeOwnerThis method validates the passed in attributes for a krmsTypeId generating a List of
RemotableAttributeErrors. This method used the oldAttributes to aid in validation. This is useful for validating "new" or "updated" attributes.- Specified by:
validateAttributesAgainstExistingin interfaceRemotableAttributeOwner- Parameters:
krmsTypeId- the people flow type identifier. Must not be null or blank.newAttributes- the kim type attributes to validate. Cannot be null.oldAttributes- the old attributes to use for validation. Cannot be null.- Returns:
- any errors that are discovered during validation. Will not return null.
- Throws:
org.kuali.rice.core.api.exception.RiceIllegalArgumentException
-
validateAttributes
List<org.kuali.rice.core.api.uif.RemotableAttributeError> validateAttributes(String krmsTypeId, Map<String, String> attributes) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentExceptionDescription copied from interface:RemotableAttributeOwnerThis method validates the passed in attributes for a krmsTypeId generating a List of
RemotableAttributeErrors.- Specified by:
validateAttributesin interfaceRemotableAttributeOwner- Parameters:
krmsTypeId- the people flow type identifier. Must not be null or blank.attributes- the attributes to validate. Cannot be null.- Returns:
- any errors that are discovered during validation. Will not return null.
- Throws:
org.kuali.rice.core.api.exception.RiceIllegalArgumentException
-