|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AgendaBoService
This is the interface for accessing KRMS repository Agenda related business objects.
Method Summary | |
---|---|
void |
addAgendaItem(AgendaItem agendaItem,
String parentId,
Boolean position)
This will create an AgendaItem in the repository exactly like
the parameter passed in. |
AgendaDefinition |
createAgenda(AgendaDefinition agenda)
This will create a AgendaDefinition exactly like the parameter passed in. |
AgendaItem |
createAgendaItem(AgendaItem agendaItem)
This will create an AgendaItem in the repository exactly like
the parameter passed in. |
org.kuali.rice.krms.impl.repository.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. |
AgendaItem |
getAgendaItemById(String id)
Retrieves an AgendaItem from the repository based on the given agenda id. |
Set<AgendaDefinition> |
getAgendasByContextId(String contextId)
Retrieves a set of Agendas associated with a context. |
AgendaDefinition |
to(org.kuali.rice.krms.impl.repository.AgendaBo bo)
Converts a mutable bo to it's immutable counterpart |
void |
updateAgenda(AgendaDefinition agenda)
This will update an existing AgendaDefinition . |
void |
updateAgendaItem(AgendaItem agendaItem)
This will update an existing AgendaItem . |
Method Detail |
---|
AgendaDefinition createAgenda(AgendaDefinition agenda)
AgendaDefinition
exactly like the parameter passed in.
agenda
- The Agenda to create
IllegalArgumentException
- if the Agenda is null
IllegalStateException
- if the Agenda already exists in the systemvoid updateAgenda(AgendaDefinition agenda)
AgendaDefinition
.
agenda
- The Agenda to update
IllegalArgumentException
- if the Agenda is null
IllegalStateException
- if the Agenda does not exists in the systemAgendaDefinition getAgendaByAgendaId(String agendaId)
agendaId
- the id of the Agenda to retrieve
AgendaDefinition
identified by the given agendaId.
A null reference is returned if an invalid or non-existent id is supplied.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.Set<AgendaDefinition> getAgendasByContextId(String contextId)
contextId
- the id of the context
AgendaDefinition
associated with the given context.
A null reference is returned if an invalid or contextId is supplied.AgendaItem createAgendaItem(AgendaItem agendaItem)
AgendaItem
in the repository exactly like
the parameter passed in.
agendaItem
- The AgendaItem to create
IllegalArgumentException
- if the AgendaItem is null
IllegalStateException
- if the AgendaItem already exists in the systemvoid updateAgendaItem(AgendaItem agendaItem)
AgendaItem
.
agendaItem
- The AgendaItem to update
IllegalArgumentException
- if the AgendaItem is null
IllegalStateException
- if the AgendaItem does not exists in the systemvoid addAgendaItem(AgendaItem agendaItem, String parentId, Boolean position)
AgendaItem
in the repository exactly like
the parameter passed in. The AgendaItem will be linked to an existing
AgendaItem in the relationship provided. Linking the AgendaItems effectively
builds a tree of AgendaItems that may be traversed by the engine.
agendaItem
- The AgendaItem to createparentId
- The id of the existing AgendaItem to be linked with the
newly created AgendaItemposition.
- A boolean used to specify the relationship between the
linked AgendaItems.
If the position parameter is true, the new AgendaItem is linked as the next AgendaItem to be evaluated if the parent AgendaItem evaluates to TRUE.
If the position parameter is false, the new AgendaItem is linked as the next AgendaItem to be evaluated if the parent AgendaItem evaluates to FALSE.
If the position parameter is null, the new AgendaItem is linked as the next AgendaItem to be evaluated after any true or false branches of the tree have been traversed.
IllegalArgumentException
- if the AgendaItem is null
IllegalStateException
- if the parent AgendaItem does not already exists in the systemAgendaItem getAgendaItemById(String id)
id
- the id of the AgendaItem to retrieve
AgendaItem
identified by the given id.
A null reference is returned if an invalid or non-existent id is supplied.AgendaDefinition to(org.kuali.rice.krms.impl.repository.AgendaBo bo)
bo
- the mutable business object
org.kuali.rice.krms.impl.repository.AgendaBo from(AgendaDefinition im)
im
- immutable object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |