public class TermRepositoryServiceMockImpl extends Object implements TermRepositoryService
| Constructor and Description |
|---|
TermRepositoryServiceMockImpl() |
public TermRepositoryServiceMockImpl()
public void clear()
public List<TermResolverDefinition> findTermResolversByNamespace(String namespace) throws RiceIllegalArgumentException
TermRepositoryServiceTermResolverDefinitions for the given namespace.findTermResolversByNamespace in interface TermRepositoryServicenamespace - the namespace for which to get all term resolvers.TermResolverDefinitions for the given namespace. May be empty, but never null.RiceIllegalArgumentException - if the namespace is null or blank.public TermDefinition getTerm(String termId) throws RiceIllegalArgumentException
TermRepositoryServiceTermDefinition with the given termId.getTerm in interface TermRepositoryServicetermId - the identifier of the term to retrieve.TermDefinition with the given termId. May be null if there is no term with the given termId
in the repository.RiceIllegalArgumentException - if the termId is null or blank.public TermSpecificationDefinition getTermSpecificationById(String id) throws RiceIllegalArgumentException
TermRepositoryServiceTermSpecificationDefinition with the given TermSpecificationId.getTermSpecificationById in interface TermRepositoryServiceid - the identifier of the term specification to retrieve.TermSpecificationDefinition with the given id. May be null if there is no term specification
with the given id in the repository.RiceIllegalArgumentException - if the id is null or blank.public TermSpecificationDefinition createTermSpecification(TermSpecificationDefinition termSpec) throws RiceIllegalArgumentException
TermRepositoryServiceTermSpecificationDefinitioncreateTermSpecification in interface TermRepositoryServicetermSpec - the term specification to be createdTermSpecificationDefinition after it has been created
in the repository.RiceIllegalArgumentException - termSpec is null or invalidpublic TermDefinition createTerm(TermDefinition termDef) throws RiceIllegalArgumentException
TermRepositoryServiceTermDefinitioncreateTerm in interface TermRepositoryServicetermDef - to be createdTermDefinition term definition after it has been
created in the repository.RiceIllegalArgumentException - if
the termDef is null or blank.public TermResolverDefinition getTermResolverById(String id) throws RiceIllegalArgumentException
TermRepositoryServiceTermResolverDefinition with the given id.getTermResolverById in interface TermRepositoryServiceid - the identifier of the term to retrieve.TermResolverDefinition with the given id. May be null
if there is no term with the given id in the repository.RiceIllegalArgumentException - if
the id is null or blank.public List<TermResolverDefinition> findTermResolversByOutputId(String id, String namespace) throws RiceIllegalArgumentException
TermRepositoryServiceTermResolverDefinitions for any term resolvers in the
specified namespace that have the given term specification as their
output.findTermResolversByOutputId in interface TermRepositoryServiceid - the id for the term specificationnamespace - the namespace to searchRiceIllegalArgumentExceptionpublic TermResolverDefinition createTermResolver(TermResolverDefinition termResolver) throws RiceIllegalArgumentException
TermRepositoryServiceTermResolverDefinition.createTermResolver in interface TermRepositoryServicetermResolver - to be createdTermResolver after it has been created in the
repository.RiceIllegalArgumentException - if
the termResolver is null or blank.public void updateTermSpecification(TermSpecificationDefinition termSpec) throws RiceIllegalArgumentException
TermRepositoryServiceTermSpecificationDefinitionupdateTermSpecification in interface TermRepositoryServicetermSpec - the term specification to be updatedRiceIllegalArgumentException - termSpec is null or invalidpublic void deleteTermSpecification(String id) throws RiceIllegalArgumentException
TermRepositoryServiceTermSpecificationDefinitiondeleteTermSpecification in interface TermRepositoryServiceid - the id of the term specification to be deletedRiceIllegalArgumentException - id is null or invalidpublic void updateTerm(TermDefinition termDef) throws RiceIllegalArgumentException
TermRepositoryServiceTermDefinitionupdateTerm in interface TermRepositoryServicetermDef - to be updatedRiceIllegalArgumentException - if
the termDef is null or blank.public void deleteTerm(String id) throws RiceIllegalArgumentException
TermRepositoryServiceTermDefinitiondeleteTerm in interface TermRepositoryServiceid - of the termDefinition to be deletedRiceIllegalArgumentException - if
the id is null or blank.public void updateTermResolver(TermResolverDefinition termResolver) throws RiceIllegalArgumentException
TermRepositoryServiceTermResolverDefinition.updateTermResolver in interface TermRepositoryServicetermResolver - to be createdRiceIllegalArgumentException - if
the termResolver is null or blank.public void deleteTermResolver(String id) throws RiceIllegalArgumentException
TermRepositoryServiceTermResolverDefinition with the given iddeleteTermResolver in interface TermRepositoryServiceid - of the term resolver to be deletedRiceIllegalArgumentException - if
the termResolver is null or blank.public TermResolverDefinition getTermResolverByNameAndNamespace(String name, String namespace) throws RiceIllegalArgumentException
TermRepositoryServiceTermResolverDefinition for the given name and namespacegetTermResolverByNameAndNamespace in interface TermRepositoryServicename - the name for which to get term resolvernamespace - the namespace for which to get term resolverTermResolverDefinition for the given name and namespace, null if none exist.RiceIllegalArgumentException - if the name or namespace is null or blank.public TermSpecificationDefinition getTermSpecificationByNameAndNamespace(String name, String namespace) throws RiceIllegalArgumentException
TermRepositoryServiceTermSpecificationDefinition for the given name and namespacegetTermSpecificationByNameAndNamespace in interface TermRepositoryServicename - the name for which to get term specificationnamespace - the namespace for which to get term resolverTermSpecificationDefinition for the given name and namespace, null if none exist.RiceIllegalArgumentException - if the name or namespace is null or blank.public List<TermSpecificationDefinition> findAllTermSpecificationsByContextId(String contextId)
TermRepositoryServiceTermSpecificationDefinitions that are valid for the context with the given contextId.findAllTermSpecificationsByContextId in interface TermRepositoryServicecontextId - the identifier for the context whose valid TermSpecificationDefinitions are to be retrieved.TermSpecificationDefinitions that are valid for the context with the given contextId. May be empty but never nullCopyright © 2005–2014 The Kuali Foundation. All rights reserved.