public interface AgendaBoService
Modifier and Type | Method and Description |
---|---|
void |
addAgendaItem(AgendaItemDefinition agendaItem,
String parentId,
Boolean position)
This will create an
AgendaItemDefinition in the repository exactly like
the parameter passed in. |
AgendaDefinition |
createAgenda(AgendaDefinition agenda)
This will create a
AgendaDefinition exactly like the parameter passed in. |
AgendaItemDefinition |
createAgendaItem(AgendaItemDefinition agendaItem)
This will create an
AgendaItemDefinition in the repository exactly like
the parameter passed in. |
void |
deleteAgenda(String agendaId)
Delete the
AgendaDefinition with the given id. |
void |
deleteAgendaItem(String id) |
AgendaBo |
from(AgendaDefinition im)
Converts a immutable object to it's mutable bo counterpart
|
AgendaDefinition |
getAgendaByAgendaId(String agendaId)
Retrieves an Agenda from the repository based on the given agenda id.
|
AgendaDefinition |
getAgendaByNameAndContextId(String name,
String contextId)
Retrieves an Agenda from the repository based on the provided agenda name
and context id.
|
AgendaItemDefinition |
getAgendaItemById(String id)
Retrieves an AgendaItemDefinition from the repository based on the given agenda id.
|
List<AgendaItemDefinition> |
getAgendaItemsByAgendaId(String id) |
List<AgendaItemDefinition> |
getAgendaItemsByContext(String contextId) |
List<AgendaItemDefinition> |
getAgendaItemsByType(String typeId) |
List<AgendaItemDefinition> |
getAgendaItemsByTypeAndContext(String typeId,
String contextId) |
List<AgendaDefinition> |
getAgendasByContextId(String contextId)
Retrieves a set of Agendas associated with a context.
|
List<AgendaDefinition> |
getAgendasByType(String typeId) |
List<AgendaDefinition> |
getAgendasByTypeAndContext(String typeId,
String contextId) |
AgendaDefinition |
to(AgendaBo bo)
Converts a mutable bo to it's immutable counterpart
|
AgendaDefinition |
updateAgenda(AgendaDefinition agenda)
This will update an existing
AgendaDefinition . |
AgendaItemDefinition |
updateAgendaItem(AgendaItemDefinition agendaItem)
This will update an existing
AgendaItemDefinition . |
@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) AgendaDefinition createAgenda(AgendaDefinition agenda)
AgendaDefinition
exactly like the parameter passed in.agenda
- The Agenda to createIllegalArgumentException
- if the Agenda is nullIllegalStateException
- if the Agenda already exists in the system@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) AgendaDefinition updateAgenda(AgendaDefinition agenda)
AgendaDefinition
.agenda
- The Agenda to updateIllegalArgumentException
- if the Agenda is nullIllegalStateException
- if the Agenda does not exists in the system@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)
AgendaDefinition
with the given id.agendaId
- to delete.IllegalArgumentException
- if the Agenda is null.IllegalStateException
- if the Agenda does not exists in the system@Cacheable(value="http://rice.kuali.org/krms/v2_0/AgendaType", key="\'agendaId=\' + #p0") AgendaDefinition getAgendaByAgendaId(String agendaId)
agendaId
- the id of the Agenda to retrieveAgendaDefinition
identified by the given agendaId.
A null reference is returned if an invalid or non-existent id is supplied.@Cacheable(value="http://rice.kuali.org/krms/v2_0/AgendaType", key="\'name=\' + #p0 + \'|\' + \'contextId=\' + #p1") AgendaDefinition getAgendaByNameAndContextId(String name, String contextId)
name
- the name of the Agenda to retrieve.contextId
- the id of the context that the agenda belongs to.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.@Cacheable(value="http://rice.kuali.org/krms/v2_0/AgendaType", key="\'contextId=\' + #p0") List<AgendaDefinition> getAgendasByContextId(String contextId)
contextId
- the id of the contextAgendaDefinition
associated with the given context.
A null reference is returned if an invalid or contextId is supplied.@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) AgendaItemDefinition createAgendaItem(AgendaItemDefinition agendaItem)
AgendaItemDefinition
in the repository exactly like
the parameter passed in.agendaItem
- The AgendaItemDefinition to createIllegalArgumentException
- if the AgendaItemDefinition is nullIllegalStateException
- if the AgendaItemDefinition already exists in the system@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) AgendaItemDefinition updateAgendaItem(AgendaItemDefinition agendaItem)
AgendaItemDefinition
.agendaItem
- The AgendaItemDefinition to updateIllegalArgumentException
- if the AgendaItemDefinition is nullIllegalStateException
- if the AgendaItemDefinition does not exists in the system@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(AgendaItemDefinition agendaItem, String parentId, Boolean position)
AgendaItemDefinition
in 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.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.
IllegalArgumentException
- if the AgendaItemDefinition is nullIllegalStateException
- if the parent AgendaItemDefinition does not already exists in the system@Cacheable(value="http://rice.kuali.org/krms/v2_0/AgendaItemType", key="\'id=\' + #p0") AgendaItemDefinition getAgendaItemById(String id)
id
- the id of the AgendaItemDefinition to retrieveAgendaItemDefinition
identified by the given id.
A null reference is returned if an invalid or non-existent id is supplied.List<AgendaItemDefinition> getAgendaItemsByAgendaId(String id)
List<AgendaDefinition> getAgendasByType(String typeId) throws RiceIllegalArgumentException
RiceIllegalArgumentException
List<AgendaDefinition> getAgendasByTypeAndContext(String typeId, String contextId) throws RiceIllegalArgumentException
RiceIllegalArgumentException
List<AgendaItemDefinition> getAgendaItemsByType(String typeId) throws RiceIllegalArgumentException
RiceIllegalArgumentException
List<AgendaItemDefinition> getAgendaItemsByContext(String contextId) throws RiceIllegalArgumentException
RiceIllegalArgumentException
List<AgendaItemDefinition> getAgendaItemsByTypeAndContext(String typeId, String contextId) throws RiceIllegalArgumentException
RiceIllegalArgumentException
@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 RiceIllegalArgumentException
RiceIllegalArgumentException
AgendaDefinition to(AgendaBo bo)
bo
- the mutable business objectAgendaBo from(AgendaDefinition im)
im
- immutable objectCopyright © 2005–2014 The Kuali Foundation. All rights reserved.