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

java.lang.Object
  extended by org.kuali.rice.krms.impl.repository.TermBoServiceImpl
All Implemented Interfaces:
TermRepositoryService, TermBoService

public class TermBoServiceImpl
extends Object
implements TermBoService, TermRepositoryService

Implementation of TermBoService

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

Constructor Summary
TermBoServiceImpl()
           
 
Method Summary
 TermDefinition createTerm(TermDefinition termDef)
           
 TermResolverDefinition createTermResolver(TermResolverDefinition termResolver)
           
 TermSpecificationDefinition createTermSpecification(TermSpecificationDefinition termSpec)
           
 List<TermSpecificationDefinition> findAllTermSpecificationsByContextId(String contextId)
          Retrieves all the TermSpecificationDefinitions that are valid for the context with the given contextId.
 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)
           
 void setBusinessObjectService(BusinessObjectService businessObjectService)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TermBoServiceImpl

public TermBoServiceImpl()
Method Detail

setBusinessObjectService

public void setBusinessObjectService(BusinessObjectService businessObjectService)
Parameters:
businessObjectService - the businessObjectService to set

getTermSpecificationById

public TermSpecificationDefinition getTermSpecificationById(String id)
Specified by:
getTermSpecificationById in interface TermBoService
See Also:
TermBoService.getTermSpecificationById(java.lang.String)

createTermSpecification

public TermSpecificationDefinition createTermSpecification(TermSpecificationDefinition termSpec)
Specified by:
createTermSpecification in interface TermBoService
See Also:
TermBoService.createTermSpecification(org.kuali.rice.krms.api.repository.term.TermSpecificationDefinition)

createTerm

public TermDefinition createTerm(TermDefinition termDef)
Specified by:
createTerm in interface TermBoService
See Also:
TermBoService.createTerm(org.kuali.rice.krms.api.repository.term.TermDefinition)

createTermResolver

public TermResolverDefinition createTermResolver(TermResolverDefinition termResolver)
Specified by:
createTermResolver in interface TermBoService
See Also:
TermBoService.createTermResolver(org.kuali.rice.krms.api.repository.term.TermResolverDefinition)

getTerm

public TermDefinition getTerm(String id)
Description copied from interface: TermRepositoryService
Retrieves the TermDefinition with the given termId.

Specified by:
getTerm in interface TermRepositoryService
Specified by:
getTerm in interface TermBoService
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.
See Also:
TermBoService.getTerm(java.lang.String)

getTermResolverById

public TermResolverDefinition getTermResolverById(String id)
Specified by:
getTermResolverById in interface TermBoService
See Also:
TermBoService.getTermResolverById(java.lang.String)

findTermResolversByOutputId

public List<TermResolverDefinition> findTermResolversByOutputId(String id,
                                                                String namespace)
Description copied from interface: TermBoService
Get the TermResolverDefinitions for any term resolvers in the specified namespace that have the given term specification as their output.

Specified by:
findTermResolversByOutputId in interface TermBoService
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

public List<TermResolverDefinition> findTermResolversByNamespace(String namespace)
Description copied from interface: TermRepositoryService
Retrieves all TermResolverDefinitions for the given namespace.

Specified by:
findTermResolversByNamespace in interface TermRepositoryService
Specified by:
findTermResolversByNamespace in interface TermBoService
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.

findAllTermSpecificationsByContextId

public List<TermSpecificationDefinition> findAllTermSpecificationsByContextId(String contextId)
Description copied from interface: TermRepositoryService
Retrieves all the TermSpecificationDefinitions that are valid for the context with the given contextId.

Specified by:
findAllTermSpecificationsByContextId in interface TermRepositoryService
Parameters:
contextId - the identifier for the context whose valid TermSpecificationDefinitions are to be retrieved.
Returns:
all the TermSpecificationDefinitions that are valid for the context with the given contextId. May be empty but never null


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