Interface AgendaBoService
- All Known Implementing Classes:
AgendaBoServiceImpl
public interface AgendaBoService
This is the interface for accessing KRMS repository Agenda related
business objects.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddAgendaItem(org.kuali.rice.krms.api.repository.agenda.AgendaItemDefinition agendaItem, String parentId, Boolean position) This will create anAgendaItemDefinitionin the repository exactly like the parameter passed in.org.kuali.rice.krms.api.repository.agenda.AgendaDefinitioncreateAgenda(org.kuali.rice.krms.api.repository.agenda.AgendaDefinition agenda) This will create aAgendaDefinitionexactly like the parameter passed in.org.kuali.rice.krms.api.repository.agenda.AgendaItemDefinitioncreateAgendaItem(org.kuali.rice.krms.api.repository.agenda.AgendaItemDefinition agendaItem) This will create anAgendaItemDefinitionin the repository exactly like the parameter passed in.voiddeleteAgenda(String agendaId) Delete theAgendaDefinitionwith the given id.voidfrom(org.kuali.rice.krms.api.repository.agenda.AgendaDefinition im) Converts a immutable object to it's mutable bo counterpartorg.kuali.rice.krms.api.repository.agenda.AgendaDefinitiongetAgendaByAgendaId(String agendaId) Retrieves an Agenda from the repository based on the given agenda id.org.kuali.rice.krms.api.repository.agenda.AgendaDefinitiongetAgendaByNameAndContextId(String name, String contextId) Retrieves an Agenda from the repository based on the provided agenda name and context id.org.kuali.rice.krms.api.repository.agenda.AgendaItemDefinitionRetrieves an AgendaItemDefinition from the repository based on the given agenda id.List<org.kuali.rice.krms.api.repository.agenda.AgendaItemDefinition> List<org.kuali.rice.krms.api.repository.agenda.AgendaItemDefinition> getAgendaItemsByContext(String contextId) List<org.kuali.rice.krms.api.repository.agenda.AgendaItemDefinition> getAgendaItemsByType(String typeId) List<org.kuali.rice.krms.api.repository.agenda.AgendaItemDefinition> getAgendaItemsByTypeAndContext(String typeId, String contextId) List<org.kuali.rice.krms.api.repository.agenda.AgendaDefinition> getAgendasByContextId(String contextId) Retrieves a set of Agendas associated with a context.List<org.kuali.rice.krms.api.repository.agenda.AgendaDefinition> getAgendasByType(String typeId) List<org.kuali.rice.krms.api.repository.agenda.AgendaDefinition> getAgendasByTypeAndContext(String typeId, String contextId) org.kuali.rice.krms.api.repository.agenda.AgendaDefinitionConverts a mutable bo to it's immutable counterpartorg.kuali.rice.krms.api.repository.agenda.AgendaDefinitionupdateAgenda(org.kuali.rice.krms.api.repository.agenda.AgendaDefinition agenda) This will update an existingAgendaDefinition.org.kuali.rice.krms.api.repository.agenda.AgendaItemDefinitionupdateAgendaItem(org.kuali.rice.krms.api.repository.agenda.AgendaItemDefinition agendaItem) This will update an existingAgendaItemDefinition.
-
Method Details
-
createAgenda
@CacheEvict(value={"http://rice.kuali.org/krms/v2_0/AgendaTreeDefinition","http://rice.kuali.org/krms/v2_0/AgendaType","http://rice.kuali.org/krms/v2_0/AgendaItemType","http://rice.kuali.org/krms/v2_0/ContextDefinitionType"}, allEntries=true) org.kuali.rice.krms.api.repository.agenda.AgendaDefinition createAgenda(org.kuali.rice.krms.api.repository.agenda.AgendaDefinition agenda) This will create aAgendaDefinitionexactly like the parameter passed in.- Parameters:
agenda- The Agenda to create- Throws:
IllegalArgumentException- if the Agenda is nullIllegalStateException- if the Agenda already exists in the system
-
updateAgenda
@CacheEvict(value={"http://rice.kuali.org/krms/v2_0/AgendaTreeDefinition","http://rice.kuali.org/krms/v2_0/AgendaType","http://rice.kuali.org/krms/v2_0/AgendaItemType","http://rice.kuali.org/krms/v2_0/ContextDefinitionType"}, allEntries=true) org.kuali.rice.krms.api.repository.agenda.AgendaDefinition updateAgenda(org.kuali.rice.krms.api.repository.agenda.AgendaDefinition agenda) This will update an existingAgendaDefinition.- Parameters:
agenda- The Agenda to update- Throws:
IllegalArgumentException- if the Agenda is nullIllegalStateException- if the Agenda does not exists in the system
-
deleteAgenda
@CacheEvict(value={"http://rice.kuali.org/krms/v2_0/AgendaTreeDefinition","http://rice.kuali.org/krms/v2_0/AgendaType","http://rice.kuali.org/krms/v2_0/AgendaItemType","http://rice.kuali.org/krms/v2_0/ContextDefinitionType"}, allEntries=true) void deleteAgenda(String agendaId) Delete theAgendaDefinitionwith the given id.- Parameters:
agendaId- to delete.- Throws:
IllegalArgumentException- if the Agenda is null.IllegalStateException- if the Agenda does not exists in the system
-
getAgendaByAgendaId
@Cacheable(value="http://rice.kuali.org/krms/v2_0/AgendaType", key="\'agendaId=\' + #p0") org.kuali.rice.krms.api.repository.agenda.AgendaDefinition getAgendaByAgendaId(String agendaId) Retrieves an Agenda from the repository based on the given agenda id.- Parameters:
agendaId- the id of the Agenda to retrieve- Returns:
- an
AgendaDefinitionidentified by the given agendaId. A null reference is returned if an invalid or non-existent id is supplied.
-
getAgendaByNameAndContextId
@Cacheable(value="http://rice.kuali.org/krms/v2_0/AgendaType", key="\'name=\' + #p0 + \'|\' + \'contextId=\' + #p1") org.kuali.rice.krms.api.repository.agenda.AgendaDefinition getAgendaByNameAndContextId(String name, String contextId) Retrieves an Agenda from the repository based on the provided agenda name and context id.- Parameters:
name- the name of the Agenda to retrieve.contextId- the id of the context that the agenda belongs to.- Returns:
- an
AgendaDefinitionidentified by the given name and namespace. A null reference is returned if an invalid or non-existent name and namespace combination is supplied.
-
getAgendasByContextId
@Cacheable(value="http://rice.kuali.org/krms/v2_0/AgendaType", key="\'contextId=\' + #p0") List<org.kuali.rice.krms.api.repository.agenda.AgendaDefinition> getAgendasByContextId(String contextId) Retrieves a set of Agendas associated with a context.- Parameters:
contextId- the id of the context- Returns:
- a set of
AgendaDefinitionassociated with the given context. A null reference is returned if an invalid or contextId is supplied.
-
createAgendaItem
@CacheEvict(value={"http://rice.kuali.org/krms/v2_0/AgendaTreeDefinition","http://rice.kuali.org/krms/v2_0/AgendaType","http://rice.kuali.org/krms/v2_0/AgendaItemType","http://rice.kuali.org/krms/v2_0/ContextDefinitionType"}, allEntries=true) org.kuali.rice.krms.api.repository.agenda.AgendaItemDefinition createAgendaItem(org.kuali.rice.krms.api.repository.agenda.AgendaItemDefinition agendaItem) This will create anAgendaItemDefinitionin the repository exactly like the parameter passed in.- Parameters:
agendaItem- The AgendaItemDefinition to create- Throws:
IllegalArgumentException- if the AgendaItemDefinition is nullIllegalStateException- if the AgendaItemDefinition already exists in the system
-
updateAgendaItem
@CacheEvict(value={"http://rice.kuali.org/krms/v2_0/AgendaTreeDefinition","http://rice.kuali.org/krms/v2_0/AgendaType","http://rice.kuali.org/krms/v2_0/AgendaItemType","http://rice.kuali.org/krms/v2_0/ContextDefinitionType"}, allEntries=true) org.kuali.rice.krms.api.repository.agenda.AgendaItemDefinition updateAgendaItem(org.kuali.rice.krms.api.repository.agenda.AgendaItemDefinition agendaItem) This will update an existingAgendaItemDefinition.- Parameters:
agendaItem- The AgendaItemDefinition to update- Throws:
IllegalArgumentException- if the AgendaItemDefinition is nullIllegalStateException- if the AgendaItemDefinition does not exists in the system
-
addAgendaItem
@CacheEvict(value={"http://rice.kuali.org/krms/v2_0/AgendaTreeDefinition","http://rice.kuali.org/krms/v2_0/AgendaType","http://rice.kuali.org/krms/v2_0/AgendaItemType","http://rice.kuali.org/krms/v2_0/ContextDefinitionType"}, allEntries=true) void addAgendaItem(org.kuali.rice.krms.api.repository.agenda.AgendaItemDefinition agendaItem, String parentId, Boolean position) This will create anAgendaItemDefinitionin the repository exactly like the parameter passed in. The AgendaItemDefinition will be linked to an existing AgendaItemDefinition in the relationship provided. Linking the AgendaItems effectively builds a tree of AgendaItems that may be traversed by the engine.- Parameters:
agendaItem- The AgendaItemDefinition to createparentId- The id of the existing AgendaItemDefinition to be linked with the newly created AgendaItemDefinitionposition- 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.
- Throws:
IllegalArgumentException- if the AgendaItemDefinition is nullIllegalStateException- if the parent AgendaItemDefinition does not already exists in the system
-
getAgendaItemById
@Cacheable(value="http://rice.kuali.org/krms/v2_0/AgendaItemType", key="\'id=\' + #p0") org.kuali.rice.krms.api.repository.agenda.AgendaItemDefinition getAgendaItemById(String id) Retrieves an AgendaItemDefinition from the repository based on the given agenda id.- Parameters:
id- the id of the AgendaItemDefinition to retrieve- Returns:
- an
AgendaItemDefinitionidentified by the given id. A null reference is returned if an invalid or non-existent id is supplied.
-
getAgendaItemsByAgendaId
-
getAgendasByType
List<org.kuali.rice.krms.api.repository.agenda.AgendaDefinition> getAgendasByType(String typeId) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException - Throws:
org.kuali.rice.core.api.exception.RiceIllegalArgumentException
-
getAgendasByTypeAndContext
List<org.kuali.rice.krms.api.repository.agenda.AgendaDefinition> getAgendasByTypeAndContext(String typeId, String contextId) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException - Throws:
org.kuali.rice.core.api.exception.RiceIllegalArgumentException
-
getAgendaItemsByType
List<org.kuali.rice.krms.api.repository.agenda.AgendaItemDefinition> getAgendaItemsByType(String typeId) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException - Throws:
org.kuali.rice.core.api.exception.RiceIllegalArgumentException
-
getAgendaItemsByContext
List<org.kuali.rice.krms.api.repository.agenda.AgendaItemDefinition> getAgendaItemsByContext(String contextId) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException - Throws:
org.kuali.rice.core.api.exception.RiceIllegalArgumentException
-
getAgendaItemsByTypeAndContext
List<org.kuali.rice.krms.api.repository.agenda.AgendaItemDefinition> getAgendaItemsByTypeAndContext(String typeId, String contextId) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException - Throws:
org.kuali.rice.core.api.exception.RiceIllegalArgumentException
-
deleteAgendaItem
@CacheEvict(value={"http://rice.kuali.org/krms/v2_0/AgendaTreeDefinition","http://rice.kuali.org/krms/v2_0/AgendaType","http://rice.kuali.org/krms/v2_0/AgendaItemType","http://rice.kuali.org/krms/v2_0/ContextDefinitionType"}, allEntries=true) void deleteAgendaItem(String id) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException - Throws:
org.kuali.rice.core.api.exception.RiceIllegalArgumentException
-
to
Converts a mutable bo to it's immutable counterpart- Parameters:
bo- the mutable business object- Returns:
- the immutable object
-
from
Converts a immutable object to it's mutable bo counterpart- Parameters:
im- immutable object- Returns:
- the mutable bo
-