lumis.service.thesaurus
Class ThesaurusManager

Package class diagram package ThesaurusManager
java.lang.Object
  extended by lumis.service.thesaurus.ThesaurusManager
All Implemented Interfaces:
IThesaurusManager

public class ThesaurusManager
extends Object
implements IThesaurusManager

Manager for Thesaurus objects

Since:
4.0.10

Field Summary
protected  IResource resource
           
 
Constructor Summary
ThesaurusManager()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

resource

protected IResource resource
Constructor Detail

ThesaurusManager

public ThesaurusManager()
Method Detail

getTermRelationsByTermId

public Collection<TermRelationConfig> getTermRelationsByTermId(SessionConfig sessionConfig,
                                                               String termId,
                                                               ITransaction transaction)
                                                        throws PortalException
Description copied from interface: IThesaurusManager
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.

Specified by:
getTermRelationsByTermId in interface IThesaurusManager
termId - identifier of the term that is participant of relations to get
Returns:
relations of the term
Throws:
PortalException

addOrUpdateTermRelations

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

Specified by:
addOrUpdateTermRelations in interface IThesaurusManager
Throws:
PortalException

deleteTermRelation

public void deleteTermRelation(SessionConfig sessionConfig,
                               String termRelationId,
                               ITransaction transaction)
                        throws PortalException
Description copied from interface: IThesaurusManager
Delete the specified term relation.

Specified by:
deleteTermRelation in interface IThesaurusManager
termRelationId - identifier of the term to be deleted
Throws:
PortalException

deleteTermRelationByTermId

public void deleteTermRelationByTermId(SessionConfig sessionConfig,
                                       String termId,
                                       ITransaction transaction)
                                throws PortalException
Description copied from interface: IThesaurusManager
Delete all relations in which the specified term participates.

Specified by:
deleteTermRelationByTermId in interface IThesaurusManager
termId - identifier of the term that is participant of relations to delete
Throws:
PortalException


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