org.kuali.rice.krms.impl.repository
Interface NaturalLanguageTemplateBoService

All Known Implementing Classes:
NaturalLanguageTemplateBoServiceImpl

public interface NaturalLanguageTemplateBoService

This is the interface for accessing repository NaturalLanguageTemplateBo related business objects.

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

Method Summary
 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.
 NaturalLanguageTemplate getNaturalLanguageTemplate(String naturalLanguageTemplateId)
          Retrieves a NaturalLanguageTemplate from the repository based on the given id.
 NaturalLanguageTemplate to(NaturalLanguageTemplateBo naturalLanguageTemplateBo)
          Converts a mutable NaturalLanguageTemplateBo to its immutable counterpart, NaturalLanguageTemplate.
 void updateNaturalLanguageTemplate(NaturalLanguageTemplate naturalLanguageTemplate)
          This will update an existing NaturalLanguageTemplate.
 

Method Detail

createNaturalLanguageTemplate

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.

Parameters:
naturalLanguageTemplate - The NaturalLanguageTemplate to create.
Returns:
a NaturalLanguageTemplate exactly like the parameter passed in.
Throws:
IllegalArgumentException - if the NaturalLanguageTemplate is null.
IllegalStateException - if the NaturalLanguageTemplate already exists in the system.

getNaturalLanguageTemplate

NaturalLanguageTemplate getNaturalLanguageTemplate(String naturalLanguageTemplateId)
Retrieves a NaturalLanguageTemplate from the repository based on the given id.

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

void updateNaturalLanguageTemplate(NaturalLanguageTemplate naturalLanguageTemplate)
This will update an existing NaturalLanguageTemplate.

Parameters:
naturalLanguageTemplate - The NaturalLanguageTemplate to update.
Throws:
IllegalArgumentException - if the NaturalLanguageTemplate is null.
IllegalStateException - if the NaturalLanguageTemplate does not exists in the system.

deleteNaturalLanguageTemplate

void deleteNaturalLanguageTemplate(String naturalLanguageTemplateId)
Delete the NaturalLanguageTemplate with the given id.

Parameters:
naturalLanguageTemplateId - to delete.
Throws:
IllegalArgumentException - if the NaturalLanguageTemplate is null.
IllegalStateException - if the NaturalLanguageTemplate does not exists in the system

findNaturalLanguageTemplatesByAttributes

List<NaturalLanguageTemplate> findNaturalLanguageTemplatesByAttributes(Map attributes)

findNaturalLanguageTemplatesByLanguageCode

List<NaturalLanguageTemplate> findNaturalLanguageTemplatesByLanguageCode(String languageCode)

findNaturalLanguageTemplateByLanguageCodeTypeIdAndNluId

NaturalLanguageTemplate findNaturalLanguageTemplateByLanguageCodeTypeIdAndNluId(String languageCode,
                                                                                String typeId,
                                                                                String naturalLanguageUsageId)

findNaturalLanguageTemplatesByNaturalLanguageUsage

List<NaturalLanguageTemplate> findNaturalLanguageTemplatesByNaturalLanguageUsage(String naturalLanguageUsageId)

findNaturalLanguageTemplatesByType

List<NaturalLanguageTemplate> findNaturalLanguageTemplatesByType(String typeId)

findNaturalLanguageTemplatesByTemplate

List<NaturalLanguageTemplate> findNaturalLanguageTemplatesByTemplate(String template)

to

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

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

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


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