public class CampusAgendaTypeService extends AgendaTypeServiceBase
AttributeValidatingTypeServiceBase.TypeAttributeDefinition, AttributeValidatingTypeServiceBase.TypeAttributeValidationException
defaultAgendaTypeService
Constructor and Description |
---|
CampusAgendaTypeService() |
Modifier and Type | Method and Description |
---|---|
void |
setConfigurationService(ConfigurationService configurationService) |
RemotableAttributeField |
translateTypeAttribute(KrmsTypeAttribute inputAttribute,
KrmsAttributeDefinition attributeDefinition)
Translate a
KrmsTypeAttribute into a RemotableAttributeField . |
List<RemotableAttributeError> |
validateAttributes(String krmsTypeId,
Map<String,String> attributes)
This is the default implementation.
|
loadAgenda
getAttributeFields, getDataDictionaryRemoteFieldService, getTypeAttributeDefinitions, sortFields, validateAttributesAgainstExisting, validateNonDataDictionaryAttribute
createErrorString, extractErrorsFromGlobalVariablesErrorMap, getAttributeErrorLabel, getAttributeFormatter, getAttributeValidatingExpression, getConfigurationService, getDataDictionaryService, getDictionaryValidationService, validateAttributeFormat, validateAttributeRequired, validateDataDictionaryAttribute, validatePrimitiveAttributeFromDescriptor, validateReferencesExistAndActive
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAttributeFields, validateAttributesAgainstExisting
public CampusAgendaTypeService()
public RemotableAttributeField translateTypeAttribute(KrmsTypeAttribute inputAttribute, KrmsAttributeDefinition attributeDefinition)
KrmsTypeServiceBase
KrmsTypeAttribute
into a RemotableAttributeField
.
Override this method to provide custom translation of certain attributes.translateTypeAttribute
in class KrmsTypeServiceBase
inputAttribute
- the KrmsTypeAttribute
to translateattributeDefinition
- the KrmsAttributeDefinition
for the given inputAttributeRemotableAttributeField
for the given inputAttributepublic void setConfigurationService(ConfigurationService configurationService)
public List<RemotableAttributeError> validateAttributes(String krmsTypeId, Map<String,String> attributes) throws RiceIllegalArgumentException
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(AttributeValidatingTypeServiceBase.TypeAttributeDefinition, String, String)
as appropriate. Lastly it calls AttributeValidatingTypeServiceBase.validateReferencesExistAndActive(java.util.Map, java.util.Map, java.util.List)
.
validateAttributes
in interface RemotableAttributeOwner
validateAttributes
in class KrmsTypeServiceBase
krmsTypeId
- the identifier for the typeattributes
- the Map of attribute names to valuesRemotableAttributeError
s) encountered during validation.RiceIllegalArgumentException
Copyright © 2005–2014 The Kuali Foundation. All rights reserved.