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


Constructor Summary
AgendaBoServiceImpl()
           
 
Method Summary
 void addAgendaItem(AgendaItem agendaItem, String parentId, Boolean position)
          This overridden method adds a new AgendaItem to the repository
 Set<AgendaDefinition> convertListOfBosToImmutables(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
 AgendaItem createAgendaItem(AgendaItem agendaItem)
          This overridden method creates a new Agenda in the repository
 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
 AgendaItem getAgendaItemById(String id)
          This overridden method retrieves an AgendaItem from the repository
 Set<AgendaDefinition> getAgendasByContextId(String contextId)
          This overridden method retrieves a set of agendas from the repository
protected  KrmsAttributeDefinitionService getAttributeDefinitionService()
           
protected  BusinessObjectService getBusinessObjectService()
           
protected  SequenceAccessorService getSequenceAccessorService()
           
 void setAttributeDefinitionService(KrmsAttributeDefinitionService attributeDefinitionService)
           
 void setBusinessObjectService(BusinessObjectService businessObjectService)
          Sets the businessObjectService attribute value.
 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(AgendaItem 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

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 Set<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 AgendaItem createAgendaItem(AgendaItem agendaItem)
This overridden method creates a new Agenda in the repository

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

updateAgendaItem

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

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

addAgendaItem

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

Specified by:
addAgendaItem in interface AgendaBoService
Parameters:
agendaItem - The AgendaItem to create
parentId - The id of the existing AgendaItem to be linked with the newly created AgendaItem

getAgendaItemById

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

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

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)

convertListOfBosToImmutables

public Set<AgendaDefinition> convertListOfBosToImmutables(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-2011 The Kuali Foundation. All Rights Reserved.