Class AgendaBoServiceImpl

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

public 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 Details

    • AgendaBoServiceImpl

      public AgendaBoServiceImpl()
  • Method Details

    • createAgenda

      public org.kuali.rice.krms.api.repository.agenda.AgendaDefinition createAgenda(org.kuali.rice.krms.api.repository.agenda.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 org.kuali.rice.krms.api.repository.agenda.AgendaDefinition updateAgenda(org.kuali.rice.krms.api.repository.agenda.AgendaDefinition agendaDefinition)
      This overridden method updates an existing Agenda in the repository
      Specified by:
      updateAgenda in interface AgendaBoService
      Parameters:
      agendaDefinition - 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 org.kuali.rice.krms.api.repository.agenda.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 org.kuali.rice.krms.api.repository.agenda.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<org.kuali.rice.krms.api.repository.agenda.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 org.kuali.rice.krms.api.repository.agenda.AgendaItemDefinition createAgendaItem(org.kuali.rice.krms.api.repository.agenda.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 org.kuali.rice.krms.api.repository.agenda.AgendaItemDefinition updateAgendaItem(org.kuali.rice.krms.api.repository.agenda.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(org.kuali.rice.krms.api.repository.agenda.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 org.kuali.rice.krms.api.repository.agenda.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<org.kuali.rice.krms.api.repository.agenda.AgendaItemDefinition> getAgendaItemsByAgendaId(String agendaId)
      Specified by:
      getAgendaItemsByAgendaId in interface AgendaBoService
    • getAgendasByType

      public List<org.kuali.rice.krms.api.repository.agenda.AgendaDefinition> getAgendasByType(String typeId) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException
      Specified by:
      getAgendasByType in interface AgendaBoService
      Throws:
      org.kuali.rice.core.api.exception.RiceIllegalArgumentException
    • getAgendasByTypeAndContext

      public List<org.kuali.rice.krms.api.repository.agenda.AgendaDefinition> getAgendasByTypeAndContext(String typeId, String contextId) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException
      Specified by:
      getAgendasByTypeAndContext in interface AgendaBoService
      Throws:
      org.kuali.rice.core.api.exception.RiceIllegalArgumentException
    • getAgendaItemsByType

      public List<org.kuali.rice.krms.api.repository.agenda.AgendaItemDefinition> getAgendaItemsByType(String typeId) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException
      Specified by:
      getAgendaItemsByType in interface AgendaBoService
      Throws:
      org.kuali.rice.core.api.exception.RiceIllegalArgumentException
    • getAgendaItemsByContext

      public List<org.kuali.rice.krms.api.repository.agenda.AgendaItemDefinition> getAgendaItemsByContext(String contextId) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException
      Specified by:
      getAgendaItemsByContext in interface AgendaBoService
      Throws:
      org.kuali.rice.core.api.exception.RiceIllegalArgumentException
    • getAgendaItemsByTypeAndContext

      public List<org.kuali.rice.krms.api.repository.agenda.AgendaItemDefinition> getAgendaItemsByTypeAndContext(String typeId, String contextId) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException
      Specified by:
      getAgendaItemsByTypeAndContext in interface AgendaBoService
      Throws:
      org.kuali.rice.core.api.exception.RiceIllegalArgumentException
    • deleteAgendaItem

      public void deleteAgendaItem(String agendaItemId) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException
      Specified by:
      deleteAgendaItem in interface AgendaBoService
      Throws:
      org.kuali.rice.core.api.exception.RiceIllegalArgumentException
    • convertAgendaBosToImmutables

      public List<org.kuali.rice.krms.api.repository.agenda.AgendaDefinition> convertAgendaBosToImmutables(Collection<AgendaBo> agendaBos)
      Converts a Set to an Unmodifiable Set
      Parameters:
      agendaBos - a mutable Set to made completely immutable.
      Returns:
      An unmodifiable Set
    • to

      public org.kuali.rice.krms.api.repository.agenda.AgendaDefinition to(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 AgendaBo from(org.kuali.rice.krms.api.repository.agenda.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
    • getDataObjectService

      public org.kuali.rice.krad.data.DataObjectService getDataObjectService()
      Gets the DataObjectService.
      Returns:
      the DataObjectService
    • setDataObjectService

      public void setDataObjectService(org.kuali.rice.krad.data.DataObjectService dataObjectService)
      Sets the DataObjectService.
      Parameters:
      dataObjectService - the DataObjectService to set
    • getAttributeDefinitionService

      public KrmsAttributeDefinitionService getAttributeDefinitionService()
      Returns:
      the KrmsAttributeDefinitionService
    • setAttributeDefinitionService

      public void setAttributeDefinitionService(KrmsAttributeDefinitionService attributeDefinitionService)
      Parameters:
      attributeDefinitionService - the KrmsAttributeDefinitionService to set