edu.sampleu.krms.impl
Class CampusAgendaTypeService

java.lang.Object
  extended by org.kuali.rice.krms.impl.type.KrmsTypeServiceBase
      extended by org.kuali.rice.krms.impl.type.AgendaTypeServiceBase
          extended by 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


Field Summary
 
Fields inherited from class org.kuali.rice.krms.impl.type.AgendaTypeServiceBase
defaultAgendaTypeService
 
Constructor Summary
CampusAgendaTypeService()
           
 
Method Summary
 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 method validates the passed in attributes for a krmsTypeId generating a List of RemotableAttributeErrors.
 
Methods inherited from class org.kuali.rice.krms.impl.type.AgendaTypeServiceBase
loadAgenda
 
Methods inherited from class org.kuali.rice.krms.impl.type.KrmsTypeServiceBase
getAttributeFields, getDataDictionaryRemoteFieldService, sortFields, validateAttributesAgainstExisting
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.kuali.rice.krms.framework.type.RemotableAttributeOwner
getAttributeFields, validateAttributesAgainstExisting
 

Constructor Detail

CampusAgendaTypeService

public CampusAgendaTypeService()
Method Detail

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 translate
attributeDefinition - 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 interface: RemotableAttributeOwner

This method validates the passed in attributes for a krmsTypeId generating a List of RemotableAttributeErrors.

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-2011 The Kuali Foundation. All Rights Reserved.