public class FunctionRepositoryServiceMockImpl extends Object implements FunctionRepositoryService
Constructor and Description |
---|
FunctionRepositoryServiceMockImpl() |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
FunctionDefinition |
getFunction(String functionId)
Retrieves the function for the given functionId.
|
Map<String,FunctionDefinition> |
getFunctionDefinitionMap() |
List<FunctionDefinition> |
getFunctions(List<String> functionIds)
Retrieves all of the functions for the given list of functionIds.
|
void |
setFunctionDefinitionMap(Map<String,FunctionDefinition> functionDefinitionMap) |
public FunctionRepositoryServiceMockImpl()
public Map<String,FunctionDefinition> getFunctionDefinitionMap()
public void setFunctionDefinitionMap(Map<String,FunctionDefinition> functionDefinitionMap)
public void clear()
public FunctionDefinition getFunction(String functionId) throws RiceIllegalArgumentException
FunctionRepositoryService
getFunction
in interface FunctionRepositoryService
functionId
- the id of the function to retrieveRiceIllegalArgumentException
- if the given functionId is nullpublic List<FunctionDefinition> getFunctions(List<String> functionIds) throws RiceIllegalArgumentException
FunctionRepositoryService
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.
getFunctions
in interface FunctionRepositoryService
functionIds
- the list of function ids for which to retrieve the functionsRiceIllegalArgumentException
- if the given list of functionIds is nullCopyright © 2005–2016 The Kuali Foundation. All rights reserved.