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

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

public final class NaturalLanguageUsageBoServiceImpl
extends Object
implements NaturalLanguageUsageBoService

Implementation of the @{link NaturalLanguageUsageBoService} interface for accessing NaturalLanguageUsageBo related business objects.

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

Constructor Summary
NaturalLanguageUsageBoServiceImpl()
           
 
Method Summary
 List<NaturalLanguageUsage> convertBosToImmutables(Collection<NaturalLanguageUsageBo> naturalLanguageUsageBos)
           
 NaturalLanguageUsage createNaturalLanguageUsage(NaturalLanguageUsage naturalLanguageUsage)
          This will create a NaturalLanguageUsage exactly like the parameter passed in.
 void deleteNaturalLanguageUsage(String naturalLanguageUsageId)
          Delete the NaturalLanguageUsage with the given id.
 List<NaturalLanguageUsage> findNaturalLanguageUsagesByDescription(String description)
           
 List<NaturalLanguageUsage> findNaturalLanguageUsagesByName(String name)
           
 List<NaturalLanguageUsage> findNaturalLanguageUsagesByNamespace(String namespace)
           
 NaturalLanguageUsageBo from(NaturalLanguageUsage naturalLanguageUsage)
          Converts a immutable NaturalLanguageUsage to its mutable NaturalLanguageUsageBo counterpart.
 KrmsAttributeDefinitionService getAttributeDefinitionService()
           
 NaturalLanguageUsage getNaturalLanguageUsage(String naturalLanguageUsageId)
          Retrieves a NaturalLanguageUsage from the repository based on the given id.
 NaturalLanguageUsage getNaturalLanguageUsageByName(String namespace, String name)
          Retrieves a NaturalLanguageUsage from the repository based on the given namespace and name.
 void setAttributeDefinitionService(KrmsAttributeDefinitionService attributeDefinitionService)
           
 void setDataObjectService(DataObjectService dataObjectService)
          Sets the value of DataObjectService to the given value.
 NaturalLanguageUsage to(NaturalLanguageUsageBo naturalLanguageUsageBo)
          Converts a mutable NaturalLanguageUsageBo to its immutable counterpart, NaturalLanguageUsage.
 void updateNaturalLanguageUsage(NaturalLanguageUsage naturalLanguageUsage)
          This will update an existing NaturalLanguageUsage.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NaturalLanguageUsageBoServiceImpl

public NaturalLanguageUsageBoServiceImpl()
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()

createNaturalLanguageUsage

public NaturalLanguageUsage createNaturalLanguageUsage(NaturalLanguageUsage naturalLanguageUsage)
Description copied from interface: NaturalLanguageUsageBoService
This will create a NaturalLanguageUsage exactly like the parameter passed in.

Specified by:
createNaturalLanguageUsage in interface NaturalLanguageUsageBoService
Parameters:
naturalLanguageUsage - The NaturalLanguageUsage to create.
Returns:
a NaturalLanguageUsage exactly like the parameter passed in.

getNaturalLanguageUsage

public NaturalLanguageUsage getNaturalLanguageUsage(String naturalLanguageUsageId)
Description copied from interface: NaturalLanguageUsageBoService
Retrieves a NaturalLanguageUsage from the repository based on the given id.

Specified by:
getNaturalLanguageUsage in interface NaturalLanguageUsageBoService
Parameters:
naturalLanguageUsageId - to retrieve.
Returns:
a NaturalLanguageUsage identified by the given id. A null reference is returned if an invalid or non-existent id is supplied.

getNaturalLanguageUsageByName

public NaturalLanguageUsage getNaturalLanguageUsageByName(String namespace,
                                                          String name)
Description copied from interface: NaturalLanguageUsageBoService
Retrieves a NaturalLanguageUsage from the repository based on the given namespace and name.

Specified by:
getNaturalLanguageUsageByName in interface NaturalLanguageUsageBoService
Parameters:
namespace - of the NaturalLanguageUsage to retrieve.
name - of the NaturalLanguageUsage to retrieve.
Returns:
a NaturalLanguageUsage identified by the given namespace and name. A null reference is returned if the repository does not contain a NaturalLanguageUsage with the given namespace and name.

updateNaturalLanguageUsage

public void updateNaturalLanguageUsage(NaturalLanguageUsage naturalLanguageUsage)
Description copied from interface: NaturalLanguageUsageBoService
This will update an existing NaturalLanguageUsage.

Specified by:
updateNaturalLanguageUsage in interface NaturalLanguageUsageBoService
Parameters:
naturalLanguageUsage - The NaturalLanguageUsage to update.

deleteNaturalLanguageUsage

public void deleteNaturalLanguageUsage(String naturalLanguageUsageId)
Description copied from interface: NaturalLanguageUsageBoService
Delete the NaturalLanguageUsage with the given id.

Specified by:
deleteNaturalLanguageUsage in interface NaturalLanguageUsageBoService
Parameters:
naturalLanguageUsageId - to delete.

findNaturalLanguageUsagesByName

public List<NaturalLanguageUsage> findNaturalLanguageUsagesByName(String name)
Specified by:
findNaturalLanguageUsagesByName in interface NaturalLanguageUsageBoService

findNaturalLanguageUsagesByDescription

public List<NaturalLanguageUsage> findNaturalLanguageUsagesByDescription(String description)
Specified by:
findNaturalLanguageUsagesByDescription in interface NaturalLanguageUsageBoService

findNaturalLanguageUsagesByNamespace

public List<NaturalLanguageUsage> findNaturalLanguageUsagesByNamespace(String namespace)
Specified by:
findNaturalLanguageUsagesByNamespace in interface NaturalLanguageUsageBoService

convertBosToImmutables

public List<NaturalLanguageUsage> convertBosToImmutables(Collection<NaturalLanguageUsageBo> naturalLanguageUsageBos)

to

public NaturalLanguageUsage to(NaturalLanguageUsageBo naturalLanguageUsageBo)
Description copied from interface: NaturalLanguageUsageBoService
Converts a mutable NaturalLanguageUsageBo to its immutable counterpart, NaturalLanguageUsage.

Specified by:
to in interface NaturalLanguageUsageBoService
Parameters:
naturalLanguageUsageBo - the mutable business object.
Returns:
a NaturalLanguageUsage the immutable object.

from

public NaturalLanguageUsageBo from(NaturalLanguageUsage naturalLanguageUsage)
Description copied from interface: NaturalLanguageUsageBoService
Converts a immutable NaturalLanguageUsage to its mutable NaturalLanguageUsageBo counterpart.

Specified by:
from in interface NaturalLanguageUsageBoService
Parameters:
naturalLanguageUsage - the immutable object.
Returns:
a NaturalLanguageUsageBo the mutable NaturalLanguageUsageBo.


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