edu.sampleu.krms.impl
Class CampusAgendaTypeService
java.lang.Object
org.kuali.rice.kns.datadictionary.validation.AttributeValidatingTypeServiceBase
org.kuali.rice.krms.impl.type.KrmsTypeServiceBase
org.kuali.rice.krms.impl.type.AgendaTypeServiceBase
edu.sampleu.krms.impl.CampusAgendaTypeService
- All Implemented Interfaces:
- AgendaTypeService, RemotableAttributeOwner
public class CampusAgendaTypeService
- extends AgendaTypeServiceBase
Sample AgendaTypeService that creates a RemotableAttributeField for specifying the campus
Methods inherited from class org.kuali.rice.kns.datadictionary.validation.AttributeValidatingTypeServiceBase |
createErrorString, extractErrorsFromGlobalVariablesErrorMap, getAttributeErrorLabel, getAttributeFormatter, getAttributeValidatingExpression, getConfigurationService, getDataDictionaryService, getDictionaryValidationService, validateAttributeFormat, validateAttributeRequired, validateDataDictionaryAttribute, validatePrimitiveAttributeFromDescriptor, validateReferencesExistAndActive |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CampusAgendaTypeService
public CampusAgendaTypeService()
translateTypeAttribute
public RemotableAttributeField translateTypeAttribute(KrmsTypeAttribute inputAttribute,
KrmsAttributeDefinition attributeDefinition)
- Description copied from class:
KrmsTypeServiceBase
- Translate a
KrmsTypeAttribute
into a RemotableAttributeField
.
Override this method to provide custom translation of certain attributes.
- Overrides:
translateTypeAttribute
in class KrmsTypeServiceBase
- Parameters:
inputAttribute
- the KrmsTypeAttribute
to translateattributeDefinition
- the KrmsAttributeDefinition
for the given inputAttribute
- Returns:
- a
RemotableAttributeField
for the given inputAttribute
setConfigurationService
public void setConfigurationService(ConfigurationService configurationService)
validateAttributes
public List<RemotableAttributeError> validateAttributes(String krmsTypeId,
Map<String,String> attributes)
throws RiceIllegalArgumentException
- Description copied from class:
AttributeValidatingTypeServiceBase
This is the default implementation. It calls into the service for each attribute to
validate it there. No combination validation is done. That should be done
by overriding this method.
This implementation calls AttributeValidatingTypeServiceBase.getTypeAttributeDefinitions(String)
to retrieve module-agnostic
representations. It then iterates through the entry set of attributes, and calls
AttributeValidatingTypeServiceBase.validateNonDataDictionaryAttribute(org.kuali.rice.core.api.uif.RemotableAttributeField, String, String)
or AttributeValidatingTypeServiceBase.validateDataDictionaryAttribute(org.kuali.rice.kns.datadictionary.validation.AttributeValidatingTypeServiceBase.TypeAttributeDefinition, String, String)
as appropriate. Lastly it calls AttributeValidatingTypeServiceBase.validateReferencesExistAndActive(java.util.Map, java.util.Map, java.util.List)
.
- Specified by:
validateAttributes
in interface RemotableAttributeOwner
- Overrides:
validateAttributes
in class KrmsTypeServiceBase
- Parameters:
krmsTypeId
- the identifier for the typeattributes
- the Map of attribute names to values
- Returns:
- the List of errors (
RemotableAttributeError
s) encountered during validation.
- Throws:
RiceIllegalArgumentException
Copyright © 2005-2014 The Kuali Foundation. All Rights Reserved.