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

Implementation of TermBoService

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

Constructor Summary
TermBoServiceImpl()
           
 
Method Summary
 TermDefinition createTerm(TermDefinition termDef)
          Create a TermDefinition
 TermResolverDefinition createTermResolver(TermResolverDefinition termResolver)
          Creates the TermResolverDefinition.
 TermSpecificationDefinition createTermSpecification(TermSpecificationDefinition termSpec)
          Creates a TermSpecificationDefinition
 void deleteTerm(String id)
          Delete a TermDefinition
 void deleteTermResolver(String id)
          deletes the TermResolverDefinition with the given id
 void deleteTermSpecification(String id)
          Deletes a TermSpecificationDefinition
 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)
          Retrieves the TermResolverDefinition with the given id.
 TermResolverDefinition getTermResolverByNameAndNamespace(String name, String namespace)
          Retrieves the TermResolverDefinition for the given name and namespace
 TermSpecificationDefinition getTermSpecificationById(String id)
          Retrieves the TermSpecificationDefinition with the given TermSpecificationId.
 TermSpecificationDefinition getTermSpecificationByNameAndNamespace(String name, String namespace)
          Retrieves the TermSpecificationDefinition for the given name and namespace
 void setBusinessObjectService(BusinessObjectService businessObjectService)
           
 void updateTerm(TermDefinition term)
          Update a TermDefinition
 void updateTermResolver(TermResolverDefinition termResolver)
          Updates the TermResolverDefinition.
 void updateTermSpecification(TermSpecificationDefinition termSpec)
          Updates a TermSpecificationDefinition
 
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)
Description copied from interface: TermRepositoryService
Retrieves the TermSpecificationDefinition with the given TermSpecificationId.

Specified by:
getTermSpecificationById in interface TermRepositoryService
Parameters:
id - the identifier of the term specification to retrieve.
Returns:
the TermSpecificationDefinition with the given id. May be null if there is no term specification with the given id in the repository.
See Also:
TermRepositoryService.getTermSpecificationById(java.lang.String)

createTermSpecification

public TermSpecificationDefinition createTermSpecification(TermSpecificationDefinition termSpec)
Description copied from interface: TermRepositoryService
Creates a TermSpecificationDefinition

Specified by:
createTermSpecification in interface TermRepositoryService
Parameters:
termSpec - the term specification to be created
Returns:
the TermSpecificationDefinition after it has been created in the repository.
See Also:
TermRepositoryService.createTermSpecification(org.kuali.rice.krms.api.repository.term.TermSpecificationDefinition)

updateTermSpecification

public void updateTermSpecification(TermSpecificationDefinition termSpec)
                             throws RiceIllegalArgumentException
Description copied from interface: TermRepositoryService
Updates a TermSpecificationDefinition

Specified by:
updateTermSpecification in interface TermRepositoryService
Parameters:
termSpec - the term specification to be updated
Throws:
RiceIllegalArgumentException - termSpec is null or invalid

deleteTermSpecification

public void deleteTermSpecification(String id)
                             throws RiceIllegalArgumentException
Description copied from interface: TermRepositoryService
Deletes a TermSpecificationDefinition

Specified by:
deleteTermSpecification in interface TermRepositoryService
Parameters:
id - the id of the term specification to be deleted
Throws:
RiceIllegalArgumentException - id is null or invalid

createTerm

public TermDefinition createTerm(TermDefinition termDef)
Description copied from interface: TermRepositoryService
Create a TermDefinition

Specified by:
createTerm in interface TermRepositoryService
Parameters:
termDef - to be created
Returns:
the TermDefinition term definition after it has been created in the repository.
See Also:
TermRepositoryService.createTerm(org.kuali.rice.krms.api.repository.term.TermDefinition)

updateTerm

public void updateTerm(TermDefinition term)
                throws RiceIllegalArgumentException
Description copied from interface: TermRepositoryService
Update a TermDefinition

Specified by:
updateTerm in interface TermRepositoryService
Parameters:
term - to be updated
Throws:
RiceIllegalArgumentException - if the termDef is null or blank.

deleteTerm

public void deleteTerm(String id)
                throws RiceIllegalArgumentException
Description copied from interface: TermRepositoryService
Delete a TermDefinition

Specified by:
deleteTerm in interface TermRepositoryService
Parameters:
id - of the termDefinition to be deleted
Throws:
RiceIllegalArgumentException - if the id is null or blank.

createTermResolver

public TermResolverDefinition createTermResolver(TermResolverDefinition termResolver)
Description copied from interface: TermRepositoryService
Creates the TermResolverDefinition.

Specified by:
createTermResolver in interface TermRepositoryService
Parameters:
termResolver - to be created
Returns:
the TermResolver after it has been created in the repository.
See Also:
TermRepositoryService.createTermResolver(org.kuali.rice.krms.api.repository.term.TermResolverDefinition)

updateTermResolver

public void updateTermResolver(TermResolverDefinition termResolver)
                        throws RiceIllegalArgumentException
Description copied from interface: TermRepositoryService
Updates the TermResolverDefinition.

Specified by:
updateTermResolver in interface TermRepositoryService
Parameters:
termResolver - to be created
Throws:
RiceIllegalArgumentException - if the termResolver is null or blank.

deleteTermResolver

public void deleteTermResolver(String id)
                        throws RiceIllegalArgumentException
Description copied from interface: TermRepositoryService
deletes the TermResolverDefinition with the given id

Specified by:
deleteTermResolver in interface TermRepositoryService
Parameters:
id - of the term resolver to be deleted
Throws:
RiceIllegalArgumentException - if the termResolver is null or blank.

getTerm

public 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.
See Also:
TermRepositoryService.getTerm(java.lang.String)

getTermResolverById

public TermResolverDefinition getTermResolverById(String id)
Description copied from interface: TermRepositoryService
Retrieves the TermResolverDefinition with the given id.

Specified by:
getTermResolverById in interface TermRepositoryService
Parameters:
id - the identifier of the term to retrieve.
Returns:
the TermResolverDefinition with the given id. May be null if there is no term with the given id in the repository.
See Also:
TermRepositoryService.getTermResolverById(java.lang.String)

findTermResolversByOutputId

public List<TermResolverDefinition> findTermResolversByOutputId(String id,
                                                                String namespace)
Description copied from interface: TermRepositoryService
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 TermRepositoryService
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
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.

getTermResolverByNameAndNamespace

public TermResolverDefinition getTermResolverByNameAndNamespace(String name,
                                                                String namespace)
                                                         throws RiceIllegalArgumentException
Description copied from interface: TermRepositoryService
Retrieves the TermResolverDefinition for the given name and namespace

Specified by:
getTermResolverByNameAndNamespace in interface TermRepositoryService
Parameters:
name - the name for which to get term resolver
namespace - the namespace for which to get term resolver
Returns:
the TermResolverDefinition for the given name and namespace, null if none exist.
Throws:
RiceIllegalArgumentException - if the name or namespace is null or blank.

getTermSpecificationByNameAndNamespace

public TermSpecificationDefinition getTermSpecificationByNameAndNamespace(String name,
                                                                          String namespace)
                                                                   throws RiceIllegalArgumentException
Description copied from interface: TermRepositoryService
Retrieves the TermSpecificationDefinition for the given name and namespace

Specified by:
getTermSpecificationByNameAndNamespace in interface TermRepositoryService
Parameters:
name - the name for which to get term specification
namespace - the namespace for which to get term resolver
Returns:
the TermSpecificationDefinition for the given name and namespace, null if none exist.
Throws:
RiceIllegalArgumentException - if the name or namespace is null or blank.

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-2013 The Kuali Foundation. All Rights Reserved.