@Entity public class ContextBo extends Object implements ContextDefinitionContract, Serializable
Modifier and Type | Field and Description |
---|---|
static String |
CONTEXT_SEQ_NAME |
Constructor and Description |
---|
ContextBo() |
Modifier and Type | Method and Description |
---|---|
ContextBo |
copyContext(String additionalNameText) |
static ContextBo |
from(ContextDefinition im)
Converts a immutable object to it's mutable bo counterpart
|
boolean |
getActive() |
List<AgendaBo> |
getAgendas()
Returns the list of agendas
AgendaDefinitionContract contained in the context definition. |
List<ContextAttributeBo> |
getAttributeBos() |
Map<String,String> |
getAttributes()
Returns a map of name/value pairs representing the
attributes associated with this context.
|
String |
getDescription()
Returns the description of the context definition.
|
String |
getId()
The unique identifier for an object.
|
String |
getName()
Returns the name of the context definition.
|
String |
getNamespace()
Returns the namespace of the context definition.
|
String |
getTypeId()
Returns the type id for the context definition.
|
Long |
getVersionNumber()
Returns the version number for this object.
|
boolean |
isActive()
The active indicator for an object.
|
void |
setActive(boolean active) |
void |
setAgendas(List<AgendaBo> agendas) |
void |
setAttributeBos(List<ContextAttributeBo> attributeBos) |
void |
setDescription(String description) |
void |
setId(String id) |
void |
setName(String name) |
void |
setNamespace(String namespace) |
void |
setTypeId(String typeId) |
void |
setVersionNumber(Long versionNumber) |
static ContextDefinition |
to(ContextBo bo)
Converts a mutable bo to it's immutable counterpart
|
public static final String CONTEXT_SEQ_NAME
public ContextBo()
public List<AgendaBo> getAgendas()
ContextDefinitionContract
AgendaDefinitionContract
contained in the context definition.
This method should never return null. An empty list is returned
if no agendas are associated with this context.getAgendas
in interface ContextDefinitionContract
public Map<String,String> getAttributes()
ContextDefinitionContract
This method should never return null. An empty map is returned if no attributes are associated with the context.
getAttributes
in interface ContextDefinitionContract
public ContextBo copyContext(String additionalNameText)
public static ContextDefinition to(ContextBo bo)
bo
- the mutable business objectpublic static ContextBo from(ContextDefinition im)
im
- immutable objectpublic String getId()
Identifiable
getId
in interface Identifiable
public String getName()
ContextDefinitionContract
getName
in interface ContextDefinitionContract
public String getNamespace()
ContextDefinitionContract
getNamespace
in interface ContextDefinitionContract
public void setNamespace(String namespace)
public String getTypeId()
ContextDefinitionContract
getTypeId
in interface ContextDefinitionContract
public String getDescription()
ContextDefinitionContract
getDescription
in interface ContextDefinitionContract
public void setDescription(String description)
public boolean getActive()
public boolean isActive()
Inactivatable
isActive
in interface Inactivatable
public void setActive(boolean active)
public void setAgendas(List<AgendaBo> agendas)
public List<ContextAttributeBo> getAttributeBos()
public void setAttributeBos(List<ContextAttributeBo> attributeBos)
public Long getVersionNumber()
Versioned
getVersionNumber
in interface Versioned
public void setVersionNumber(Long versionNumber)
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.