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

All Known Implementing Classes:
FunctionBoServiceImpl

public interface FunctionBoService

This is the interface for accessing KRMS repository Function related bos

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

Method Summary
 FunctionDefinition createFunction(FunctionDefinition function)
          This will create a FunctionDefinition exactly like the function passed in.
 FunctionDefinition getFunctionById(String functionId)
          Retrieves a Function from the repository based on the given function id.
 FunctionDefinition getFunctionByNameAndNamespace(String name, String namespace)
          Retrieves a Function from the repository based on the provided function name and namespace.
 void updateFunction(FunctionDefinition function)
          This will update an existing FunctionDefinition.
 

Method Detail

createFunction

FunctionDefinition createFunction(FunctionDefinition function)
This will create a FunctionDefinition exactly like the function passed in.

Parameters:
function - The Function to create
Throws:
IllegalArgumentException - if the function is null
IllegalStateException - if the function already exists in the system

updateFunction

void updateFunction(FunctionDefinition function)
This will update an existing FunctionDefinition.

Parameters:
function - The Function to update
Throws:
IllegalArgumentException - if the function is null
IllegalStateException - if the function does not exist in the system

getFunctionById

FunctionDefinition getFunctionById(String functionId)
Retrieves a Function from the repository based on the given function id.

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.

getFunctionByNameAndNamespace

FunctionDefinition getFunctionByNameAndNamespace(String name,
                                                 String namespace)
Retrieves a Function from the repository based on the provided function name and namespace.

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.


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