|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TermRepositoryService
The TermRepositoryService provides the basic access to terms and term resolvers in the repository needed for executing rules.
| Method Detail |
|---|
@Cacheable(value="http://rice.kuali.org/krms/v2_0/termResolverDefinitionType",
key="\'namespace=\' + #p0")
List<TermResolverDefinition> findTermResolversByNamespace(String namespace)
throws RiceIllegalArgumentException
TermResolverDefinitions for the given namespace.
namespace - 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.
@Cacheable(value="http://rice.kuali.org/krms/v2_0/termDefinitionType",
key="\'id=\' + #p0")
TermDefinition getTerm(String termId)
throws RiceIllegalArgumentException
TermDefinition with the given termId.
termId - 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.
@Cacheable(value="http://rice.kuali.org/krms/v2_0/TermSpecificationType",
key="\'id=\' + #p0")
TermSpecificationDefinition getTermSpecificationById(String id)
throws RiceIllegalArgumentException
TermSpecificationDefinition with the given TermSpecificationId.
id - 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.
@CacheEvict(value={"http://rice.kuali.org/krms/v2_0/TermSpecificationType","http://rice.kuali.org/krms/v2_0/termDefinitionType"},
allEntries=true)
TermSpecificationDefinition createTermSpecification(TermSpecificationDefinition termSpec)
throws RiceIllegalArgumentException
TermSpecificationDefinition
termSpec - the term specification to be created
TermSpecificationDefinition after it has been created
in the repository.
RiceIllegalArgumentException - termSpec is null or invalid
@CacheEvict(value={"http://rice.kuali.org/krms/v2_0/TermSpecificationType","http://rice.kuali.org/krms/v2_0/termDefinitionType"},
allEntries=true)
void updateTermSpecification(TermSpecificationDefinition termSpec)
throws RiceIllegalArgumentException
TermSpecificationDefinition
termSpec - the term specification to be updated
RiceIllegalArgumentException - termSpec is null or invalid
@CacheEvict(value={"http://rice.kuali.org/krms/v2_0/TermSpecificationType","http://rice.kuali.org/krms/v2_0/termDefinitionType"},
allEntries=true)
void deleteTermSpecification(String id)
throws RiceIllegalArgumentException
TermSpecificationDefinition
id - the id of the term specification to be deleted
RiceIllegalArgumentException - id is null or invalid
@CacheEvict(value="http://rice.kuali.org/krms/v2_0/termDefinitionType",
allEntries=true)
TermDefinition createTerm(TermDefinition termDef)
throws RiceIllegalArgumentException
TermDefinition
termDef - to be created
TermDefinition term definition after it has been
created in the repository.
RiceIllegalArgumentException - if
the termDef is null or blank.
@CacheEvict(value="http://rice.kuali.org/krms/v2_0/termDefinitionType",
allEntries=true)
void updateTerm(TermDefinition termDef)
throws RiceIllegalArgumentException
TermDefinition
termDef - to be updated
RiceIllegalArgumentException - if
the termDef is null or blank.
@CacheEvict(value="http://rice.kuali.org/krms/v2_0/termDefinitionType",
allEntries=true)
void deleteTerm(String id)
throws RiceIllegalArgumentException
TermDefinition
id - of the termDefinition to be deleted
RiceIllegalArgumentException - if
the id is null or blank.
@Cacheable(value="http://rice.kuali.org/krms/v2_0/termResolverDefinitionType",
key="\'id=\' + #p0")
TermResolverDefinition getTermResolverById(String id)
throws RiceIllegalArgumentException
TermResolverDefinition with the given id.
id - 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.
@Cacheable(value="http://rice.kuali.org/krms/v2_0/termResolverDefinitionType",
key="\'id=\' + #p0 + \'|\' + \'namespace=\' + #p1")
List<TermResolverDefinition> findTermResolversByOutputId(String id,
String namespace)
throws RiceIllegalArgumentException
TermResolverDefinitions for any term resolvers in the
specified namespace that have the given term specification as their
output.
id - the id for the term specificationnamespace - the namespace to search
RiceIllegalArgumentException
@CacheEvict(value={"http://rice.kuali.org/krms/v2_0/termResolverDefinitionType","http://rice.kuali.org/krms/v2_0/termDefinitionType"},
allEntries=true)
TermResolverDefinition createTermResolver(TermResolverDefinition termResolver)
throws RiceIllegalArgumentException
TermResolverDefinition.
termResolver - to be created
TermResolver after it has been created in the
repository.
RiceIllegalArgumentException - if
the termResolver is null or blank.
@CacheEvict(value={"http://rice.kuali.org/krms/v2_0/termResolverDefinitionType","http://rice.kuali.org/krms/v2_0/termDefinitionType"},
allEntries=true)
void updateTermResolver(TermResolverDefinition termResolver)
throws RiceIllegalArgumentException
TermResolverDefinition.
termResolver - to be created
RiceIllegalArgumentException - if
the termResolver is null or blank.
@CacheEvict(value={"http://rice.kuali.org/krms/v2_0/termResolverDefinitionType","http://rice.kuali.org/krms/v2_0/termDefinitionType"},
allEntries=true)
void deleteTermResolver(String id)
throws RiceIllegalArgumentException
TermResolverDefinition with the given id
id - of the term resolver to be deleted
RiceIllegalArgumentException - if
the termResolver is null or blank.
TermResolverDefinition getTermResolverByNameAndNamespace(String name,
String namespace)
throws RiceIllegalArgumentException
TermResolverDefinition for the given name and namespace
name - the name for which to get term resolvernamespace - the namespace for which to get term resolver
TermResolverDefinition for the given name and namespace, null if none exist.
RiceIllegalArgumentException - if the name or namespace is null or blank.
TermSpecificationDefinition getTermSpecificationByNameAndNamespace(String name,
String namespace)
throws RiceIllegalArgumentException
TermSpecificationDefinition for the given name and namespace
name - the name for which to get term specificationnamespace - the namespace for which to get term resolver
TermSpecificationDefinition for the given name and namespace, null if none exist.
RiceIllegalArgumentException - if the name or namespace is null or blank.
@Cacheable(value="http://rice.kuali.org/krms/v2_0/TermSpecificationType",
key="\'id=\' + #p0")
List<TermSpecificationDefinition> findAllTermSpecificationsByContextId(String contextId)
throws RiceIllegalArgumentException
TermSpecificationDefinitions that are valid for the context with the given contextId.
contextId - 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 null
RiceIllegalArgumentException - if the contextId is null or blank.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||