Class NaturalLanguageTemplateBo
java.lang.Object
org.kuali.rice.krms.impl.repository.NaturalLanguageTemplateBo
- All Implemented Interfaces:
Serializable,org.kuali.rice.core.api.mo.common.active.Inactivatable,org.kuali.rice.core.api.mo.common.Identifiable,org.kuali.rice.core.api.mo.common.Versioned,org.kuali.rice.krms.api.repository.language.NaturalLanguageTemplateContract
@Entity
public class NaturalLanguageTemplateBo
extends Object
implements org.kuali.rice.krms.api.repository.language.NaturalLanguageTemplateContract, org.kuali.rice.core.api.mo.common.Versioned, Serializable
The mutable implementation of the @{link NaturalLanguageTemplateContract} interface, the counterpart to the immutable implementation
NaturalLanguageTemplate.- Author:
- Kuali Rice Team (rice.collab@kuali.org)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic NaturalLanguageTemplateBofrom(org.kuali.rice.krms.api.repository.language.NaturalLanguageTemplate naturalLanguageTemplate) Converts a immutableNaturalLanguageTemplateto its mutableNaturalLanguageTemplateBocounterpart.getId()static org.kuali.rice.krms.api.repository.type.KrmsTypeRepositoryServicebooleanisActive()voidsetActive(boolean active) Sets the value of active on this builder to the given value.voidsetAttributeBos(List<NaturalLanguageTemplateAttributeBo> attributeBos) Sets the value of AttributeBos on this builder to the given value.voidsetAttributeBos(Set<NaturalLanguageTemplateAttributeBo> attributeBos) Sets the value of AttributeBos on this builder to the given value.static voidsetAttributeDefinitionService(KrmsAttributeDefinitionService attributeDefinitionService) voidsetAttributes(Map<String, String> attributes) TODOvoidSets the value of id on this builder to the given value.voidsetLanguageCode(String languageCode) Sets the value of languageCode on this builder to the given value.voidsetNaturalLanguageUsageId(String naturalLanguageUsageId) Sets the value of naturalLanguageUsageId on this builder to the given value.voidsetTemplate(String template) Sets the value of template on this builder to the given value.voidSets the value of typeId on this builder to the given value.static voidsetTypeRepositoryService(org.kuali.rice.krms.api.repository.type.KrmsTypeRepositoryService typeRepositoryService) voidsetVersionNumber(Long versionNumber) Sets the value of versionNumber on this builder to the given value.static org.kuali.rice.krms.api.repository.language.NaturalLanguageTemplateto(NaturalLanguageTemplateBo naturalLanguageTemplateBo) Converts a mutableNaturalLanguageTemplateBoto its immutable counterpart,NaturalLanguageTemplate.
-
Constructor Details
-
NaturalLanguageTemplateBo
public NaturalLanguageTemplateBo()Default Constructor
-
-
Method Details
-
getLanguageCode
- Specified by:
getLanguageCodein interfaceorg.kuali.rice.krms.api.repository.language.NaturalLanguageTemplateContract
-
getNaturalLanguageUsageId
- Specified by:
getNaturalLanguageUsageIdin interfaceorg.kuali.rice.krms.api.repository.language.NaturalLanguageTemplateContract
-
getTypeId
- Specified by:
getTypeIdin interfaceorg.kuali.rice.krms.api.repository.language.NaturalLanguageTemplateContract
-
getTemplate
- Specified by:
getTemplatein interfaceorg.kuali.rice.krms.api.repository.language.NaturalLanguageTemplateContract
-
getId
- Specified by:
getIdin interfaceorg.kuali.rice.core.api.mo.common.Identifiable
-
isActive
public boolean isActive()- Specified by:
isActivein interfaceorg.kuali.rice.core.api.mo.common.active.Inactivatable
-
getVersionNumber
- Specified by:
getVersionNumberin interfaceorg.kuali.rice.core.api.mo.common.Versioned
-
setLanguageCode
Sets the value of languageCode on this builder to the given value.- Parameters:
languageCode- the languageCode value to set.
-
setNaturalLanguageUsageId
Sets the value of naturalLanguageUsageId on this builder to the given value.- Parameters:
naturalLanguageUsageId- the naturalLanguageUsageId value to set.
-
setTypeId
Sets the value of typeId on this builder to the given value.- Parameters:
typeId- the typeId value to set.
-
setTemplate
Sets the value of template on this builder to the given value.- Parameters:
template- the template value to set.
-
setId
Sets the value of id on this builder to the given value.- Parameters:
id- the id value to set.
-
setActive
public void setActive(boolean active) Sets the value of active on this builder to the given value.- Parameters:
active- the active value to set.
-
setVersionNumber
Sets the value of versionNumber on this builder to the given value.- Parameters:
versionNumber- the versionNumber value to set.
-
setAttributeBos
Sets the value of AttributeBos on this builder to the given value.- Parameters:
attributeBos- the AttributeBos value to set.
-
setAttributeBos
Sets the value of AttributeBos on this builder to the given value.- Parameters:
attributeBos- the AttributeBos value to set.
-
to
public static org.kuali.rice.krms.api.repository.language.NaturalLanguageTemplate to(NaturalLanguageTemplateBo naturalLanguageTemplateBo) Converts a mutableNaturalLanguageTemplateBoto its immutable counterpart,NaturalLanguageTemplate.- Parameters:
naturalLanguageTemplateBo- the mutable business object.- Returns:
- a
NaturalLanguageTemplatethe immutable object.
-
from
public static NaturalLanguageTemplateBo from(org.kuali.rice.krms.api.repository.language.NaturalLanguageTemplate naturalLanguageTemplate) Converts a immutableNaturalLanguageTemplateto its mutableNaturalLanguageTemplateBocounterpart.- Parameters:
naturalLanguageTemplate- the immutable object.- Returns:
- a
NaturalLanguageTemplateBothe mutable NaturalLanguageTemplateBo.
-
getAttributes
- Specified by:
getAttributesin interfaceorg.kuali.rice.krms.api.repository.language.NaturalLanguageTemplateContract
-
setAttributes
TODO -
setAttributeDefinitionService
public static void setAttributeDefinitionService(KrmsAttributeDefinitionService attributeDefinitionService) -
getTypeRepositoryService
public static org.kuali.rice.krms.api.repository.type.KrmsTypeRepositoryService getTypeRepositoryService() -
setTypeRepositoryService
public static void setTypeRepositoryService(org.kuali.rice.krms.api.repository.type.KrmsTypeRepositoryService typeRepositoryService) -
getAttributeDefinitionService
-