public class AgendaBoServiceImpl extends Object implements AgendaBoService
Constructor and Description |
---|
AgendaBoServiceImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addAgendaItem(AgendaItemDefinition agendaItem,
String parentId,
Boolean position)
This overridden method adds a new AgendaItemDefinition to the repository
|
List<AgendaDefinition> |
convertAgendaBosToImmutables(Collection<AgendaBo> agendaBos)
Converts a Set
|
AgendaDefinition |
createAgenda(AgendaDefinition agenda)
This overridden method creates a KRMS Agenda in the repository
|
AgendaItemDefinition |
createAgendaItem(AgendaItemDefinition agendaItem)
This overridden method creates a new Agenda in the repository
|
void |
deleteAgenda(String agendaId)
Delete the
AgendaDefinition with the given id. |
void |
deleteAgendaItem(String agendaItemId) |
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
|
AgendaItemDefinition |
getAgendaItemById(String id)
This overridden method retrieves an AgendaItemDefinition from the repository
|
List<AgendaItemDefinition> |
getAgendaItemsByAgendaId(String agendaId) |
List<AgendaItemDefinition> |
getAgendaItemsByContext(String contextId) |
List<AgendaItemDefinition> |
getAgendaItemsByType(String typeId) |
List<AgendaItemDefinition> |
getAgendaItemsByTypeAndContext(String typeId,
String contextId) |
List<AgendaDefinition> |
getAgendasByContextId(String contextId)
This overridden method retrieves a set of agendas from the repository
|
List<AgendaDefinition> |
getAgendasByType(String typeId) |
List<AgendaDefinition> |
getAgendasByTypeAndContext(String typeId,
String contextId) |
KrmsAttributeDefinitionService |
getAttributeDefinitionService()
Gets the
KrmsAttributeDefinitionService . |
DataObjectService |
getDataObjectService()
Gets the
DataObjectService . |
void |
setAttributeDefinitionService(KrmsAttributeDefinitionService attributeDefinitionService)
Sets the
KrmsAttributeDefinitionService . |
void |
setDataObjectService(DataObjectService dataObjectService)
Sets the
DataObjectService . |
AgendaDefinition |
to(AgendaBo bo)
Converts a mutable bo to it's immutable counterpart
|
AgendaDefinition |
updateAgenda(AgendaDefinition agendaDefinition)
This overridden method updates an existing Agenda in the repository
|
AgendaItemDefinition |
updateAgendaItem(AgendaItemDefinition agendaItem)
This overridden method updates an existing Agenda in the repository
|
public AgendaBoServiceImpl()
public AgendaDefinition createAgenda(AgendaDefinition agenda)
createAgenda
in interface AgendaBoService
agenda
- The Agenda to createpublic AgendaDefinition updateAgenda(AgendaDefinition agendaDefinition)
updateAgenda
in interface AgendaBoService
agendaDefinition
- The Agenda to updatepublic void deleteAgenda(String agendaId)
AgendaBoService
AgendaDefinition
with the given id.deleteAgenda
in interface AgendaBoService
agendaId
- to delete.public AgendaDefinition getAgendaByAgendaId(String agendaId)
getAgendaByAgendaId
in interface AgendaBoService
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.public AgendaDefinition getAgendaByNameAndContextId(String name, String contextId)
getAgendaByNameAndContextId
in interface AgendaBoService
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.public List<AgendaDefinition> getAgendasByContextId(String contextId)
getAgendasByContextId
in interface AgendaBoService
contextId
- the id of the contextAgendaDefinition
associated with the given context.
A null reference is returned if an invalid or contextId is supplied.public AgendaItemDefinition createAgendaItem(AgendaItemDefinition agendaItem)
createAgendaItem
in interface AgendaBoService
agendaItem
- The AgendaItemDefinition to createpublic AgendaItemDefinition updateAgendaItem(AgendaItemDefinition agendaItem)
updateAgendaItem
in interface AgendaBoService
agendaItem
- The AgendaItemDefinition to updatepublic void addAgendaItem(AgendaItemDefinition agendaItem, String parentId, Boolean position)
addAgendaItem
in interface AgendaBoService
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.
public AgendaItemDefinition getAgendaItemById(String id)
getAgendaItemById
in interface AgendaBoService
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.public List<AgendaItemDefinition> getAgendaItemsByAgendaId(String agendaId)
getAgendaItemsByAgendaId
in interface AgendaBoService
public List<AgendaDefinition> getAgendasByType(String typeId) throws RiceIllegalArgumentException
getAgendasByType
in interface AgendaBoService
RiceIllegalArgumentException
public List<AgendaDefinition> getAgendasByTypeAndContext(String typeId, String contextId) throws RiceIllegalArgumentException
getAgendasByTypeAndContext
in interface AgendaBoService
RiceIllegalArgumentException
public List<AgendaItemDefinition> getAgendaItemsByType(String typeId) throws RiceIllegalArgumentException
getAgendaItemsByType
in interface AgendaBoService
RiceIllegalArgumentException
public List<AgendaItemDefinition> getAgendaItemsByContext(String contextId) throws RiceIllegalArgumentException
getAgendaItemsByContext
in interface AgendaBoService
RiceIllegalArgumentException
public List<AgendaItemDefinition> getAgendaItemsByTypeAndContext(String typeId, String contextId) throws RiceIllegalArgumentException
getAgendaItemsByTypeAndContext
in interface AgendaBoService
RiceIllegalArgumentException
public void deleteAgendaItem(String agendaItemId) throws RiceIllegalArgumentException
deleteAgendaItem
in interface AgendaBoService
RiceIllegalArgumentException
public List<AgendaDefinition> convertAgendaBosToImmutables(Collection<AgendaBo> agendaBos)
agendaBos
- a mutable Setpublic AgendaDefinition to(AgendaBo bo)
to
in interface AgendaBoService
bo
- the mutable business objectpublic AgendaBo from(AgendaDefinition im)
from
in interface AgendaBoService
im
- immutable objectpublic DataObjectService getDataObjectService()
DataObjectService
.DataObjectService
public void setDataObjectService(DataObjectService dataObjectService)
DataObjectService
.dataObjectService
- the DataObjectService
to setpublic KrmsAttributeDefinitionService getAttributeDefinitionService()
KrmsAttributeDefinitionService
.KrmsAttributeDefinitionService
public void setAttributeDefinitionService(KrmsAttributeDefinitionService attributeDefinitionService)
KrmsAttributeDefinitionService
.attributeDefinitionService
- the KrmsAttributeDefinitionService
to setCopyright © 2005–2015 The Kuali Foundation. All rights reserved.