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, getDataDictionaryService, getDictionaryValidationService, validateAttributeFormat, validateAttributeRequired, validateDataDictionaryAttribute, validateDataDictionaryAttribute, validatePrimitiveFromDescriptor, 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.
- Specified by:
validateAttributes
in interface RemotableAttributeOwner
- Overrides:
validateAttributes
in class KrmsTypeServiceBase
- 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:
RiceIllegalArgumentException
Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.