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

java.lang.Object
  extended by org.kuali.rice.krms.impl.repository.NaturalLanguageTemplateBoServiceImpl
All Implemented Interfaces:
NaturalLanguageTemplateBoService

public final class NaturalLanguageTemplateBoServiceImpl
extends Object
implements NaturalLanguageTemplateBoService

Implementation of the @{link NaturalLanguageTemplateBoService} interface for accessing NaturalLanguageTemplateBo related business objects.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Constructor Summary
NaturalLanguageTemplateBoServiceImpl()
           
 
Method Summary
 List<NaturalLanguageTemplate> convertBosToImmutables(Collection<NaturalLanguageTemplateBo> naturalLanguageTemplateBos)
           
 NaturalLanguageTemplate createNaturalLanguageTemplate(NaturalLanguageTemplate naturalLanguageTemplate)
          This will create a NaturalLanguageTemplate exactly like the parameter passed in except the id will be assigned and create date/user will be set.
 void deleteNaturalLanguageTemplate(String naturalLanguageTemplateId)
          Delete the NaturalLanguageTemplate with the given id.
 NaturalLanguageTemplate findNaturalLanguageTemplateByLanguageCodeTypeIdAndNluId(String languageCode, String typeId, String naturalLanguageUsageId)
           
 List<NaturalLanguageTemplate> findNaturalLanguageTemplatesByAttributes(Map attributes)
           
 List<NaturalLanguageTemplate> findNaturalLanguageTemplatesByLanguageCode(String languageCode)
           
 List<NaturalLanguageTemplate> findNaturalLanguageTemplatesByNaturalLanguageUsage(String naturalLanguageUsageId)
           
 List<NaturalLanguageTemplate> findNaturalLanguageTemplatesByTemplate(String template)
           
 List<NaturalLanguageTemplate> findNaturalLanguageTemplatesByType(String typeId)
           
 NaturalLanguageTemplateBo from(NaturalLanguageTemplate naturalLanguageTemplate)
          Converts a immutable NaturalLanguageTemplate to its mutable NaturalLanguageTemplateBo counterpart.
 KrmsAttributeDefinitionService getAttributeDefinitionService()
           
 NaturalLanguageTemplate getNaturalLanguageTemplate(String naturalLanguageTemplateId)
          Retrieves a NaturalLanguageTemplate from the repository based on the given id.
 NaturalLanguageTemplaterContract getNaturalLanguageTemplater()
           
 void setAttributeDefinitionService(KrmsAttributeDefinitionService attributeDefinitionService)
           
 void setDataObjectService(DataObjectService dataObjectService)
          Sets the value of DataObjectService to the given value.
 void setNaturalLanguageTemplater(NaturalLanguageTemplaterContract naturalLanguageTemplater)
           
 NaturalLanguageTemplate to(NaturalLanguageTemplateBo naturalLanguageTemplateBo)
          Converts a mutable NaturalLanguageTemplateBo to its immutable counterpart, NaturalLanguageTemplate.
 void updateNaturalLanguageTemplate(NaturalLanguageTemplate naturalLanguageTemplate)
          This will update an existing NaturalLanguageTemplate.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NaturalLanguageTemplateBoServiceImpl

public NaturalLanguageTemplateBoServiceImpl()
Method Detail

setDataObjectService

public void setDataObjectService(DataObjectService dataObjectService)
Sets the value of DataObjectService to the given value.

Parameters:
dataObjectService - the DataObjectService value to set.

setAttributeDefinitionService

public void setAttributeDefinitionService(KrmsAttributeDefinitionService attributeDefinitionService)

getAttributeDefinitionService

public KrmsAttributeDefinitionService getAttributeDefinitionService()

getNaturalLanguageTemplater

public NaturalLanguageTemplaterContract getNaturalLanguageTemplater()

setNaturalLanguageTemplater

public void setNaturalLanguageTemplater(NaturalLanguageTemplaterContract naturalLanguageTemplater)

createNaturalLanguageTemplate

public NaturalLanguageTemplate createNaturalLanguageTemplate(NaturalLanguageTemplate naturalLanguageTemplate)
Description copied from interface: NaturalLanguageTemplateBoService
This will create a NaturalLanguageTemplate exactly like the parameter passed in except the id will be assigned and create date/user will be set.

Specified by:
createNaturalLanguageTemplate in interface NaturalLanguageTemplateBoService
Parameters:
naturalLanguageTemplate - The NaturalLanguageTemplate to create.
Returns:
a NaturalLanguageTemplate exactly like the parameter passed in.

getNaturalLanguageTemplate

public NaturalLanguageTemplate getNaturalLanguageTemplate(String naturalLanguageTemplateId)
Description copied from interface: NaturalLanguageTemplateBoService
Retrieves a NaturalLanguageTemplate from the repository based on the given id.

Specified by:
getNaturalLanguageTemplate in interface NaturalLanguageTemplateBoService
Parameters:
naturalLanguageTemplateId - to retrieve.
Returns:
a NaturalLanguageTemplate identified by the given id. A null reference is returned if an invalid or non-existent id is supplied.

updateNaturalLanguageTemplate

public void updateNaturalLanguageTemplate(NaturalLanguageTemplate naturalLanguageTemplate)
Description copied from interface: NaturalLanguageTemplateBoService
This will update an existing NaturalLanguageTemplate.

Specified by:
updateNaturalLanguageTemplate in interface NaturalLanguageTemplateBoService
Parameters:
naturalLanguageTemplate - The NaturalLanguageTemplate to update.

deleteNaturalLanguageTemplate

public void deleteNaturalLanguageTemplate(String naturalLanguageTemplateId)
Description copied from interface: NaturalLanguageTemplateBoService
Delete the NaturalLanguageTemplate with the given id.

Specified by:
deleteNaturalLanguageTemplate in interface NaturalLanguageTemplateBoService
Parameters:
naturalLanguageTemplateId - to delete.

findNaturalLanguageTemplatesByAttributes

public List<NaturalLanguageTemplate> findNaturalLanguageTemplatesByAttributes(Map attributes)
Specified by:
findNaturalLanguageTemplatesByAttributes in interface NaturalLanguageTemplateBoService

findNaturalLanguageTemplatesByLanguageCode

public List<NaturalLanguageTemplate> findNaturalLanguageTemplatesByLanguageCode(String languageCode)
Specified by:
findNaturalLanguageTemplatesByLanguageCode in interface NaturalLanguageTemplateBoService

findNaturalLanguageTemplateByLanguageCodeTypeIdAndNluId

public NaturalLanguageTemplate findNaturalLanguageTemplateByLanguageCodeTypeIdAndNluId(String languageCode,
                                                                                       String typeId,
                                                                                       String naturalLanguageUsageId)
Specified by:
findNaturalLanguageTemplateByLanguageCodeTypeIdAndNluId in interface NaturalLanguageTemplateBoService

findNaturalLanguageTemplatesByNaturalLanguageUsage

public List<NaturalLanguageTemplate> findNaturalLanguageTemplatesByNaturalLanguageUsage(String naturalLanguageUsageId)
Specified by:
findNaturalLanguageTemplatesByNaturalLanguageUsage in interface NaturalLanguageTemplateBoService

findNaturalLanguageTemplatesByType

public List<NaturalLanguageTemplate> findNaturalLanguageTemplatesByType(String typeId)
Specified by:
findNaturalLanguageTemplatesByType in interface NaturalLanguageTemplateBoService

findNaturalLanguageTemplatesByTemplate

public List<NaturalLanguageTemplate> findNaturalLanguageTemplatesByTemplate(String template)
Specified by:
findNaturalLanguageTemplatesByTemplate in interface NaturalLanguageTemplateBoService

convertBosToImmutables

public List<NaturalLanguageTemplate> convertBosToImmutables(Collection<NaturalLanguageTemplateBo> naturalLanguageTemplateBos)

to

public NaturalLanguageTemplate to(NaturalLanguageTemplateBo naturalLanguageTemplateBo)
Description copied from interface: NaturalLanguageTemplateBoService
Converts a mutable NaturalLanguageTemplateBo to its immutable counterpart, NaturalLanguageTemplate.

Specified by:
to in interface NaturalLanguageTemplateBoService
Parameters:
naturalLanguageTemplateBo - the mutable business object.
Returns:
a NaturalLanguageTemplate the immutable object.

from

public NaturalLanguageTemplateBo from(NaturalLanguageTemplate naturalLanguageTemplate)
Description copied from interface: NaturalLanguageTemplateBoService
Converts a immutable NaturalLanguageTemplate to its mutable NaturalLanguageTemplateBo counterpart.

Specified by:
from in interface NaturalLanguageTemplateBoService
Parameters:
naturalLanguageTemplate - the immutable object.
Returns:
a NaturalLanguageTemplateBo the mutable NaturalLanguageTemplateBo.


Copyright © 2005–2014 The Kuali Foundation. All rights reserved.