lumis.service.thesaurus
Interface IThesaurusManager

Package class diagram package IThesaurusManager
All Known Implementing Classes:
ThesaurusManager

public interface IThesaurusManager

Interface for managing Thesaurus Objects

Since:
4.0.10

Method Summary
 void addOrUpdateTermRelations(SessionConfig sessionConfig, String termId, Collection<TermRelationConfig> relations, ITransaction transaction)
          Persist the relation set of a term, adding or updating each relation in the set.
 void deleteTermRelation(SessionConfig sessionConfig, String termRelationId, ITransaction transaction)
          Delete the specified term relation.
 void deleteTermRelationByTermId(SessionConfig sessionConfig, String termId, ITransaction transaction)
          Delete all relations in which the specified term participates.
 Collection<TermRelationConfig> getTermRelationsByTermId(SessionConfig sessionConfig, String termId, ITransaction transaction)
          Get all relations in which the specified term participates.
 

Method Detail

getTermRelationsByTermId

Collection<TermRelationConfig> getTermRelationsByTermId(SessionConfig sessionConfig,
                                                        String termId,
                                                        ITransaction transaction)
                                                        throws PortalException
Get all relations in which the specified term participates. The relations are normalized by left term using the specified term. Therefore, all relations have termId equals the specified termId.

Parameters:
termId - identifier of the term that is participant of relations to get
transaction -
Returns:
relations of the term
Throws:
PortalException

addOrUpdateTermRelations

void addOrUpdateTermRelations(SessionConfig sessionConfig,
                              String termId,
                              Collection<TermRelationConfig> relations,
                              ITransaction transaction)
                              throws PortalException
Persist the relation set of a term, adding or updating each relation in the set.

Parameters:
sessionConfig -
termId -
relations -
transaction -
Throws:
PortalException

deleteTermRelation

void deleteTermRelation(SessionConfig sessionConfig,
                        String termRelationId,
                        ITransaction transaction)
                        throws PortalException
Delete the specified term relation.

Parameters:
termRelationId - identifier of the term to be deleted
transaction -
Throws:
PortalException

deleteTermRelationByTermId

void deleteTermRelationByTermId(SessionConfig sessionConfig,
                                String termId,
                                ITransaction transaction)
                                throws PortalException
Delete all relations in which the specified term participates.

Parameters:
sessionConfig -
termId - identifier of the term that is participant of relations to delete
transaction -
Throws:
PortalException


Lumisportal  4.1.0.071221 - Copyright © 2001-2007, Lumis. All Rights Reserved.