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

java.lang.Object
  extended by org.kuali.rice.krms.impl.repository.FunctionBoServiceImpl
All Implemented Interfaces:
FunctionRepositoryService, FunctionBoService

public class FunctionBoServiceImpl
extends Object
implements FunctionRepositoryService, FunctionBoService

Default implementation of the FunctionService.

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

Constructor Summary
FunctionBoServiceImpl()
           
 
Method Summary
 FunctionDefinition createFunction(FunctionDefinition function)
          This method will create a FunctionDefintion as described by the function passed in.
 FunctionDefinition getFunction(String functionId)
          Retrieves the function for the given functionId.
 FunctionDefinition getFunctionById(String functionId)
          This overridden method retrieves a function by the given function id.
 FunctionDefinition getFunctionByNameAndNamespace(String name, String namespace)
          This overridden method retrieves a function by the given name and namespace.
 List<FunctionDefinition> getFunctions(List<String> functionIds)
          Retrieves all of the functions for the given list of functionIds.
 void setBusinessObjectService(BusinessObjectService businessObjectService)
           
 void updateFunction(FunctionDefinition function)
          This overridden method updates an existing Function in the repository
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FunctionBoServiceImpl

public FunctionBoServiceImpl()
Method Detail

getFunction

public FunctionDefinition getFunction(String functionId)
Description copied from interface: FunctionRepositoryService
Retrieves the function for the given functionId. The function can be used when constructing propositions and defines the type of the parameters to the function as well as it's return type.

Specified by:
getFunction in interface FunctionRepositoryService
Parameters:
functionId - the id of the function to retrieve
Returns:
the function definition, or null if no function could be located for the given functionId

getFunctions

public List<FunctionDefinition> getFunctions(List<String> functionIds)
Description copied from interface: FunctionRepositoryService
Retrieves all of the functions for the given list of functionIds. The function can be used when constructing propositions and defines the type of the parameters to the function as well as it's return type.

The list which is returned from this operation may not be the same size as the list which is passed to this method. If a function doesn't exist for a given function id then no result for that id will be returned in the list. As a result of this, the returned list can be empty, but it will never be null.

Specified by:
getFunctions in interface FunctionRepositoryService
Parameters:
functionIds - the list of function ids for which to retrieve the functions
Returns:
the list of functions for the given ids, this list will only contain functions for the ids that were resolved successfully, it will never return null but could return an empty list if no functions could be loaded for the given set of ids

createFunction

public FunctionDefinition createFunction(FunctionDefinition function)
This method will create a FunctionDefintion as described by the function passed in.

Specified by:
createFunction in interface FunctionBoService
Parameters:
function - The Function to create
See Also:
FunctionBoService.createFunction(org.kuali.rice.krms.api.repository.function.FunctionDefinition)

updateFunction

public void updateFunction(FunctionDefinition function)
This overridden method updates an existing Function in the repository

Specified by:
updateFunction in interface FunctionBoService
Parameters:
function - The Function to update
See Also:
FunctionBoService.updateFunction(org.kuali.rice.krms.api.repository.function.FunctionDefinition)

getFunctionById

public FunctionDefinition getFunctionById(String functionId)
This overridden method retrieves a function by the given function id.

Specified by:
getFunctionById in interface FunctionBoService
Parameters:
functionId - the id of the Function to retrieve
Returns:
a FunctionDefinition identified by the given functionId. A null reference is returned if an invalid or non-existent functionId is supplied.
See Also:
FunctionBoService.getFunctionById(java.lang.String)

getFunctionByNameAndNamespace

public FunctionDefinition getFunctionByNameAndNamespace(String name,
                                                        String namespace)
This overridden method retrieves a function by the given name and namespace.

Specified by:
getFunctionByNameAndNamespace in interface FunctionBoService
Parameters:
name - the name of the Function to retrieve.
namespace - the namespace that the Function is under.
Returns:
a FunctionDefinition identified by the given name and namespace. A null reference is returned if an invalid or non-existent function name and namespace combination is supplied.
See Also:
FunctionBoService.getFunctionByNameAndNamespace(java.lang.String, java.lang.String)

setBusinessObjectService

public void setBusinessObjectService(BusinessObjectService businessObjectService)


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