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

All Superinterfaces:
TermRepositoryService
All Known Implementing Classes:
TermBoServiceImpl

public interface TermBoService
extends TermRepositoryService

BO service for terms and related entities

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

Method Summary
 TermDefinition createTerm(TermDefinition termDef)
           
 TermResolverDefinition createTermResolver(TermResolverDefinition termResolver)
           
 TermSpecificationDefinition createTermSpecification(TermSpecificationDefinition termSpec)
           
 List<TermResolverDefinition> findTermResolversByNamespace(String namespace)
          Retrieves all TermResolverDefinitions for the given namespace.
 List<TermResolverDefinition> findTermResolversByOutputId(String id, String namespace)
          Get the TermResolverDefinitions for any term resolvers in the specified namespace that have the given term specification as their output.
 TermDefinition getTerm(String id)
          Retrieves the TermDefinition with the given termId.
 TermResolverDefinition getTermResolverById(String id)
           
 TermSpecificationDefinition getTermSpecificationById(String id)
           
 

Method Detail

getTermSpecificationById

@Cacheable(value="http://rice.kuali.org/krms/v2_0/TermSpecificationType",
           key="\'id=\' + #p0")
TermSpecificationDefinition getTermSpecificationById(String id)

createTermSpecification

@CacheEvict(value={"http://rice.kuali.org/krms/v2_0/TermSpecificationType","http://rice.kuali.org/krms/v2_0/termDefinitionType"},
            allEntries=true)
TermSpecificationDefinition createTermSpecification(TermSpecificationDefinition termSpec)

getTerm

@Cacheable(value="http://rice.kuali.org/krms/v2_0/termDefinitionType",
           key="\'id=\' + #p0")
TermDefinition getTerm(String id)
Description copied from interface: TermRepositoryService
Retrieves the TermDefinition with the given termId.

Specified by:
getTerm in interface TermRepositoryService
Parameters:
id - the identifier of the term to retrieve.
Returns:
the TermDefinition with the given termId. May be null if there is no term with the given termId in the repository.

createTerm

@CacheEvict(value="http://rice.kuali.org/krms/v2_0/termDefinitionType",
            allEntries=true)
TermDefinition createTerm(TermDefinition termDef)

getTermResolverById

@Cacheable(value="http://rice.kuali.org/krms/v2_0/termResolverDefinitionType",
           key="\'id=\' + #p0")
TermResolverDefinition getTermResolverById(String id)

findTermResolversByOutputId

@Cacheable(value="http://rice.kuali.org/krms/v2_0/termResolverDefinitionType",
           key="\'id=\' + #p0 + \'|\' + \'namespace=\' + #p1")
List<TermResolverDefinition> findTermResolversByOutputId(String id,
                                                                   String namespace)
Get the TermResolverDefinitions for any term resolvers in the specified namespace that have the given term specification as their output.

Parameters:
id - the id for the term specification
namespace - the namespace to search
Returns:
the List of term resolvers found. If none are found, an empty list will be returned.

findTermResolversByNamespace

@Cacheable(value="http://rice.kuali.org/krms/v2_0/termResolverDefinitionType",
           key="\'namespace=\' + #p0")
List<TermResolverDefinition> findTermResolversByNamespace(String namespace)
Description copied from interface: TermRepositoryService
Retrieves all TermResolverDefinitions for the given namespace.

Specified by:
findTermResolversByNamespace in interface TermRepositoryService
Parameters:
namespace - the namespace for which to get all term resolvers.
Returns:
the List of TermResolverDefinitions for the given namespace. May be empty, but never null.

createTermResolver

@CacheEvict(value={"http://rice.kuali.org/krms/v2_0/termResolverDefinitionType","http://rice.kuali.org/krms/v2_0/termDefinitionType"},
            allEntries=true)
TermResolverDefinition createTermResolver(TermResolverDefinition termResolver)


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