org.kuali.rice.krms.impl.repository
Class NaturalLanguageTemplateBo

java.lang.Object
  extended by org.kuali.rice.krad.bo.BusinessObjectBase
      extended by org.kuali.rice.krad.bo.PersistableBusinessObjectBase
          extended by org.kuali.rice.krms.impl.repository.NaturalLanguageTemplateBo
All Implemented Interfaces:
Serializable, org.apache.ojb.broker.PersistenceBrokerAware, Inactivatable, GloballyUnique, Identifiable, Versioned, ModelObjectBasic, BusinessObject, PersistableBusinessObject, NaturalLanguageTemplateContract

public class NaturalLanguageTemplateBo
extends PersistableBusinessObjectBase
implements NaturalLanguageTemplateContract

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:
Serialized Form

Field Summary
 
Fields inherited from class org.kuali.rice.krad.bo.PersistableBusinessObjectBase
extension
 
Constructor Summary
NaturalLanguageTemplateBo()
          Default Constructor
 
Method Summary
static NaturalLanguageTemplateBo from(NaturalLanguageTemplate naturalLanguageTemplate)
          Converts a immutable NaturalLanguageTemplate to its mutable NaturalLanguageTemplateBo counterpart.
static KrmsAttributeDefinitionService getAttributeDefinitionService()
           
 Map<String,String> getAttributes()
          This method returns a list of custom/remote attributes associated with the agenda.
 String getId()
          The unique identifier for an object.
 String getLanguageCode()
          This is the Language Code of the NaturalLanguageTemplate
 String getNaturalLanguageUsageId()
          This is the NaturalLanguageUsageId of the NaturalLanguageTemplate
 SequenceAccessorService getSequenceAccessorService()
           
 String getTemplate()
          This is the Template of the NaturalLanguageTemplate
 String getTypeId()
          This is the TypeId of the NaturalLanguageTemplate
static KrmsTypeRepositoryService getTypeRepositoryService()
           
 Long getVersionNumber()
          Returns the version number for this object.
 boolean isActive()
          The active indicator for an object.
 void setActive(boolean active)
          Sets the value of active on this builder to the given value.
 void setAttributeBos(List<NaturalLanguageTemplateAttributeBo> attributeBos)
          Sets the value of AttributeBos on this builder to the given value.
 void setAttributeBos(Set<NaturalLanguageTemplateAttributeBo> attributeBos)
          Sets the value of AttributeBos on this builder to the given value.
static void setAttributeDefinitionService(KrmsAttributeDefinitionService attributeDefinitionService)
           
 void setAttributes(Map<String,String> attributes)
          TODO
 void setId(String id)
          Sets the value of id on this builder to the given value.
 void setLanguageCode(String languageCode)
          Sets the value of languageCode on this builder to the given value.
 void setNaturalLanguageUsageId(String naturalLanguageUsageId)
          Sets the value of naturalLanguageUsageId on this builder to the given value.
 void setSequenceAccessorService(SequenceAccessorService sas)
          Set the SequenceAccessorService, useful for testing.
 void setTemplate(String template)
          Sets the value of template on this builder to the given value.
 void setTypeId(String typeId)
          Sets the value of typeId on this builder to the given value.
static void setTypeRepositoryService(KrmsTypeRepositoryService typeRepositoryService)
           
 void setVersionNumber(Long versionNumber)
          Sets the value of versionNumber on this builder to the given value.
static NaturalLanguageTemplate to(NaturalLanguageTemplateBo naturalLanguageTemplateBo)
          Converts a mutable NaturalLanguageTemplateBo to its immutable counterpart, NaturalLanguageTemplate.
 
Methods inherited from class org.kuali.rice.krad.bo.PersistableBusinessObjectBase
afterDelete, afterInsert, afterLookup, afterUpdate, beforeDelete, beforeInsert, beforeUpdate, buildListOfDeletionAwareLists, getExtension, getObjectId, getPersistenceService, getPersistenceStructureService, isNewCollectionRecord, linkEditableUserFields, postLoad, postPersist, postRemove, postUpdate, prePersist, preRemove, preUpdate, refresh, refreshNonUpdateableReferences, refreshReferenceObject, setExtension, setNewCollectionRecord, setObjectId
 
Methods inherited from class org.kuali.rice.krad.bo.BusinessObjectBase
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.kuali.rice.core.api.mo.ModelObjectBasic
toString
 

Constructor Detail

NaturalLanguageTemplateBo

public NaturalLanguageTemplateBo()
Default Constructor

Method Detail

getLanguageCode

public String getLanguageCode()
Description copied from interface: NaturalLanguageTemplateContract
This is the Language Code of the NaturalLanguageTemplate

The Language Code of the NaturalLanguageTemplate

Specified by:
getLanguageCode in interface NaturalLanguageTemplateContract
Returns:
the Language Code of the NaturalLanguageTemplate

getNaturalLanguageUsageId

public String getNaturalLanguageUsageId()
Description copied from interface: NaturalLanguageTemplateContract
This is the NaturalLanguageUsageId of the NaturalLanguageTemplate

The NaturalLanguageUsageId of the NaturalLanguageTemplate

Specified by:
getNaturalLanguageUsageId in interface NaturalLanguageTemplateContract
Returns:
the NaturalLanguageUsageId of the NaturalLanguageTemplate

getTypeId

public String getTypeId()
Description copied from interface: NaturalLanguageTemplateContract
This is the TypeId of the NaturalLanguageTemplate

The TypeId of the NaturalLanguageTemplate

Specified by:
getTypeId in interface NaturalLanguageTemplateContract
Returns:
the TypeId of the NaturalLanguageTemplate

getTemplate

public String getTemplate()
Description copied from interface: NaturalLanguageTemplateContract
This is the Template of the NaturalLanguageTemplate

The Template of the NaturalLanguageTemplate

Specified by:
getTemplate in interface NaturalLanguageTemplateContract
Returns:
the Template of the NaturalLanguageTemplate

getId

public String getId()
Description copied from interface: Identifiable
The unique identifier for an object. This can be null.

Specified by:
getId in interface Identifiable
Returns:
the id

isActive

public boolean isActive()
Description copied from interface: Inactivatable
The active indicator for an object.

Specified by:
isActive in interface Inactivatable
Returns:
true if active false if not.

getVersionNumber

public Long getVersionNumber()
Description copied from interface: Versioned
Returns the version number for this object. In general, this value should only be null if the object has not yet been stored to a persistent data store. This version number is generally used for the purposes of optimistic locking.

Specified by:
getVersionNumber in interface Versioned
Overrides:
getVersionNumber in class PersistableBusinessObjectBase
Returns:
the version number, or null if one has not been assigned yet
See Also:
Versioned.getVersionNumber()

setLanguageCode

public void setLanguageCode(String languageCode)
Sets the value of languageCode on this builder to the given value.

Parameters:
languageCode - the languageCode value to set.

setNaturalLanguageUsageId

public void setNaturalLanguageUsageId(String naturalLanguageUsageId)
Sets the value of naturalLanguageUsageId on this builder to the given value.

Parameters:
naturalLanguageUsageId - the naturalLanguageUsageId value to set.

setTypeId

public void setTypeId(String typeId)
Sets the value of typeId on this builder to the given value.

Parameters:
typeId - the typeId value to set.

setTemplate

public void setTemplate(String template)
Sets the value of template on this builder to the given value.

Parameters:
template - the template value to set.

setId

public void setId(String id)
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

public void setVersionNumber(Long versionNumber)
Sets the value of versionNumber on this builder to the given value.

Specified by:
setVersionNumber in interface PersistableBusinessObject
Overrides:
setVersionNumber in class PersistableBusinessObjectBase
Parameters:
versionNumber - the versionNumber value to set.
See Also:
Versioned.getVersionNumber()

setAttributeBos

public void setAttributeBos(List<NaturalLanguageTemplateAttributeBo> attributeBos)
Sets the value of AttributeBos on this builder to the given value.

Parameters:
attributeBos - the AttributeBos value to set.

setAttributeBos

public void setAttributeBos(Set<NaturalLanguageTemplateAttributeBo> attributeBos)
Sets the value of AttributeBos on this builder to the given value.

Parameters:
attributeBos - the AttributeBos value to set.

to

public static NaturalLanguageTemplate to(NaturalLanguageTemplateBo naturalLanguageTemplateBo)
Converts a mutable NaturalLanguageTemplateBo to its immutable counterpart, NaturalLanguageTemplate.

Parameters:
naturalLanguageTemplateBo - the mutable business object.
Returns:
a NaturalLanguageTemplate the immutable object.

from

public static NaturalLanguageTemplateBo from(NaturalLanguageTemplate naturalLanguageTemplate)
Converts a immutable NaturalLanguageTemplate to its mutable NaturalLanguageTemplateBo counterpart.

Parameters:
naturalLanguageTemplate - the immutable object.
Returns:
a NaturalLanguageTemplateBo the mutable NaturalLanguageTemplateBo.

setSequenceAccessorService

public void setSequenceAccessorService(SequenceAccessorService sas)
Set the SequenceAccessorService, useful for testing.

Parameters:
sas - SequenceAccessorService to use for getNewId.

getSequenceAccessorService

public SequenceAccessorService getSequenceAccessorService()

getAttributes

public Map<String,String> getAttributes()
Description copied from interface: NaturalLanguageTemplateContract
This method returns a list of custom/remote attributes associated with the agenda.

The attributes of the NaturalLanguageUsage

Specified by:
getAttributes in interface NaturalLanguageTemplateContract
Returns:
a list of custom/remote attribute of the agenda.

setAttributes

public void setAttributes(Map<String,String> attributes)
TODO


setAttributeDefinitionService

public static void setAttributeDefinitionService(KrmsAttributeDefinitionService attributeDefinitionService)

getTypeRepositoryService

public static KrmsTypeRepositoryService getTypeRepositoryService()

setTypeRepositoryService

public static void setTypeRepositoryService(KrmsTypeRepositoryService typeRepositoryService)

getAttributeDefinitionService

public static KrmsAttributeDefinitionService getAttributeDefinitionService()


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.