org.kuali.rice.krms.impl.repository
Class AgendaBoServiceImpl

java.lang.Object
  extended by org.kuali.rice.krms.impl.repository.AgendaBoServiceImpl
All Implemented Interfaces:
AgendaBoService

public final class AgendaBoServiceImpl
extends Object
implements AgendaBoService

Implementation of the interface for accessing KRMS repository Agenda related business objects.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Constructor Summary
AgendaBoServiceImpl()
           
 
Method Summary
 void addAgendaItem(AgendaItemDefinition agendaItem, String parentId, Boolean position)
          This overridden method adds a new AgendaItemDefinition to the repository
 List<AgendaDefinition> convertAgendaBosToImmutables(Collection<org.kuali.rice.krms.impl.repository.AgendaBo> agendaBos)
          Converts a Set to an Unmodifiable Set
 AgendaDefinition createAgenda(AgendaDefinition agenda)
          This overridden method creates a KRMS Agenda in the repository
 AgendaItemDefinition createAgendaItem(AgendaItemDefinition agendaItem)
          This overridden method creates a new Agenda in the repository
 void deleteAgenda(String agendaId)
          Delete the AgendaDefinition with the given id.
 void deleteAgendaItem(String agendaItemId)
           
 org.kuali.rice.krms.impl.repository.AgendaBo from(AgendaDefinition im)
          Converts a immutable object to it's mutable bo counterpart
 AgendaDefinition getAgendaByAgendaId(String agendaId)
          This overridden method retrieves an Agenda from the repository
 AgendaDefinition getAgendaByNameAndContextId(String name, String contextId)
          This overridden method retrieves an agenda from the repository
 AgendaItemDefinition getAgendaItemById(String id)
          This overridden method retrieves an AgendaItemDefinition from the repository
 List<AgendaItemDefinition> getAgendaItemsByAgendaId(String agendaId)
           
 List<AgendaItemDefinition> getAgendaItemsByContext(String contextId)
           
 List<AgendaItemDefinition> getAgendaItemsByType(String typeId)
           
 List<AgendaItemDefinition> getAgendaItemsByTypeAndContext(String typeId, String contextId)
           
 List<AgendaDefinition> getAgendasByContextId(String contextId)
          This overridden method retrieves a set of agendas from the repository
 List<AgendaDefinition> getAgendasByType(String typeId)
           
 List<AgendaDefinition> getAgendasByTypeAndContext(String typeId, String contextId)
           
protected  KrmsAttributeDefinitionService getAttributeDefinitionService()
           
protected  BusinessObjectService getBusinessObjectService()
           
 CriteriaLookupService getCriteriaLookupService()
           
protected  SequenceAccessorService getSequenceAccessorService()
           
 void setAttributeDefinitionService(KrmsAttributeDefinitionService attributeDefinitionService)
           
 void setBusinessObjectService(BusinessObjectService businessObjectService)
          Sets the businessObjectService attribute value.
 void setCriteriaLookupService(CriteriaLookupService criteriaLookupService)
           
 void setSequenceAccessorService(SequenceAccessorService sequenceAccessorService)
          Sets the sequenceAccessorService attribute value.
 AgendaDefinition to(org.kuali.rice.krms.impl.repository.AgendaBo bo)
          Converts a mutable bo to it's immutable counterpart
 void updateAgenda(AgendaDefinition agenda)
          This overridden method updates an existing Agenda in the repository
 void updateAgendaItem(AgendaItemDefinition agendaItem)
          This overridden method updates an existing Agenda in the repository
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AgendaBoServiceImpl

public AgendaBoServiceImpl()
Method Detail

createAgenda

public AgendaDefinition createAgenda(AgendaDefinition agenda)
This overridden method creates a KRMS Agenda in the repository

Specified by:
createAgenda in interface AgendaBoService
Parameters:
agenda - The Agenda to create

updateAgenda

public void updateAgenda(AgendaDefinition agenda)
This overridden method updates an existing Agenda in the repository

Specified by:
updateAgenda in interface AgendaBoService
Parameters:
agenda - The Agenda to update

deleteAgenda

public void deleteAgenda(String agendaId)
Description copied from interface: AgendaBoService
Delete the AgendaDefinition with the given id.

Specified by:
deleteAgenda in interface AgendaBoService
Parameters:
agendaId - to delete.

getAgendaByAgendaId

public AgendaDefinition getAgendaByAgendaId(String agendaId)
This overridden method retrieves an Agenda from the repository

Specified by:
getAgendaByAgendaId in interface AgendaBoService
Parameters:
agendaId - the id of the Agenda to retrieve
Returns:
an AgendaDefinition identified by the given agendaId. A null reference is returned if an invalid or non-existent id is supplied.

getAgendaByNameAndContextId

public AgendaDefinition getAgendaByNameAndContextId(String name,
                                                    String contextId)
This overridden method retrieves an agenda from the repository

Specified by:
getAgendaByNameAndContextId in interface AgendaBoService
Parameters:
name - the name of the Agenda to retrieve.
contextId - the id of the context that the agenda belongs to.
Returns:
an AgendaDefinition identified by the given name and namespace. A null reference is returned if an invalid or non-existent name and namespace combination is supplied.

getAgendasByContextId

public List<AgendaDefinition> getAgendasByContextId(String contextId)
This overridden method retrieves a set of agendas from the repository

Specified by:
getAgendasByContextId in interface AgendaBoService
Parameters:
contextId - the id of the context
Returns:
a set of AgendaDefinition associated with the given context. A null reference is returned if an invalid or contextId is supplied.

createAgendaItem

public AgendaItemDefinition createAgendaItem(AgendaItemDefinition agendaItem)
This overridden method creates a new Agenda in the repository

Specified by:
createAgendaItem in interface AgendaBoService
Parameters:
agendaItem - The AgendaItemDefinition to create

updateAgendaItem

public void updateAgendaItem(AgendaItemDefinition agendaItem)
This overridden method updates an existing Agenda in the repository

Specified by:
updateAgendaItem in interface AgendaBoService
Parameters:
agendaItem - The AgendaItemDefinition to update

addAgendaItem

public void addAgendaItem(AgendaItemDefinition agendaItem,
                          String parentId,
                          Boolean position)
This overridden method adds a new AgendaItemDefinition to the repository

Specified by:
addAgendaItem in interface AgendaBoService
Parameters:
agendaItem - The AgendaItemDefinition to create
parentId - The id of the existing AgendaItemDefinition to be linked with the newly created AgendaItemDefinition
position - A boolean used to specify the relationship between the linked AgendaItems.

If the position parameter is true, the new AgendaItemDefinition is linked as the next AgendaItemDefinition to be evaluated if the parent AgendaItemDefinition evaluates to TRUE.

If the position parameter is false, the new AgendaItemDefinition is linked as the next AgendaItemDefinition to be evaluated if the parent AgendaItemDefinition evaluates to FALSE.

If the position parameter is null, the new AgendaItemDefinition is linked as the next AgendaItemDefinition to be evaluated after any true or false branches of the tree have been traversed.


getAgendaItemById

public AgendaItemDefinition getAgendaItemById(String id)
This overridden method retrieves an AgendaItemDefinition from the repository

Specified by:
getAgendaItemById in interface AgendaBoService
Parameters:
id - the id of the AgendaItemDefinition to retrieve
Returns:
an AgendaItemDefinition identified by the given id. A null reference is returned if an invalid or non-existent id is supplied.

getAgendaItemsByAgendaId

public List<AgendaItemDefinition> getAgendaItemsByAgendaId(String agendaId)
Specified by:
getAgendaItemsByAgendaId in interface AgendaBoService

getAgendasByType

public List<AgendaDefinition> getAgendasByType(String typeId)
                                        throws RiceIllegalArgumentException
Specified by:
getAgendasByType in interface AgendaBoService
Throws:
RiceIllegalArgumentException

getAgendasByTypeAndContext

public List<AgendaDefinition> getAgendasByTypeAndContext(String typeId,
                                                         String contextId)
                                                  throws RiceIllegalArgumentException
Specified by:
getAgendasByTypeAndContext in interface AgendaBoService
Throws:
RiceIllegalArgumentException

getAgendaItemsByType

public List<AgendaItemDefinition> getAgendaItemsByType(String typeId)
                                                throws RiceIllegalArgumentException
Specified by:
getAgendaItemsByType in interface AgendaBoService
Throws:
RiceIllegalArgumentException

getAgendaItemsByContext

public List<AgendaItemDefinition> getAgendaItemsByContext(String contextId)
                                                   throws RiceIllegalArgumentException
Specified by:
getAgendaItemsByContext in interface AgendaBoService
Throws:
RiceIllegalArgumentException

getAgendaItemsByTypeAndContext

public List<AgendaItemDefinition> getAgendaItemsByTypeAndContext(String typeId,
                                                                 String contextId)
                                                          throws RiceIllegalArgumentException
Specified by:
getAgendaItemsByTypeAndContext in interface AgendaBoService
Throws:
RiceIllegalArgumentException

deleteAgendaItem

public void deleteAgendaItem(String agendaItemId)
                      throws RiceIllegalArgumentException
Specified by:
deleteAgendaItem in interface AgendaBoService
Throws:
RiceIllegalArgumentException

getCriteriaLookupService

public CriteriaLookupService getCriteriaLookupService()

setCriteriaLookupService

public void setCriteriaLookupService(CriteriaLookupService criteriaLookupService)

setBusinessObjectService

public void setBusinessObjectService(BusinessObjectService businessObjectService)
Sets the businessObjectService attribute value.

Parameters:
businessObjectService - The businessObjectService to set.

getBusinessObjectService

protected BusinessObjectService getBusinessObjectService()

setSequenceAccessorService

public void setSequenceAccessorService(SequenceAccessorService sequenceAccessorService)
Sets the sequenceAccessorService attribute value.

Parameters:
sequenceAccessorService - The sequenceAccessorService to set.

getSequenceAccessorService

protected SequenceAccessorService getSequenceAccessorService()

getAttributeDefinitionService

protected KrmsAttributeDefinitionService getAttributeDefinitionService()

setAttributeDefinitionService

public void setAttributeDefinitionService(KrmsAttributeDefinitionService attributeDefinitionService)

convertAgendaBosToImmutables

public List<AgendaDefinition> convertAgendaBosToImmutables(Collection<org.kuali.rice.krms.impl.repository.AgendaBo> agendaBos)
Converts a Set to an Unmodifiable Set

Parameters:
agendaBos - a mutable Set to made completely immutable.
Returns:
An unmodifiable Set

to

public AgendaDefinition to(org.kuali.rice.krms.impl.repository.AgendaBo bo)
Converts a mutable bo to it's immutable counterpart

Specified by:
to in interface AgendaBoService
Parameters:
bo - the mutable business object
Returns:
the immutable object

from

public org.kuali.rice.krms.impl.repository.AgendaBo from(AgendaDefinition im)
Converts a immutable object to it's mutable bo counterpart

Specified by:
from in interface AgendaBoService
Parameters:
im - immutable object
Returns:
the mutable bo


Copyright © 2005-2014 The Kuali Foundation. All Rights Reserved.