public abstract class AbstractThesaurus extends SDXDocumentBase implements SDXThesaurus
SDXThesaurus.ConfigurationNode
SDXDocumentBaseTarget.ConfigurationNode
Modifier and Type | Field and Description |
---|---|
protected int |
defaultDepth |
protected int[] |
defaultRelations |
protected org.apache.excalibur.source.impl.URLSource |
source |
_configuration, _documentAdditionStatus, _ilevel, _ilogger, _isIndexOptimized, autoOptimize, baseIndexDir, DOC_ADD_STATUS_ADDED, DOC_ADD_STATUS_FAILURE, DOC_ADD_STATUS_IGNORED, DOC_ADD_STATUS_REFRESHED, DOC_ADD_STATUS_REPLACED, DOC_URL, ELEMENT_NAME_DEFAULT_HPP, ELEMENT_NAME_DEFAULT_MAXSORT, isDatadirShared, keepOriginalDocuments, scheduler, SDX_DATABASE_FORMAT, SDX_DATABASE_VERSION, SDX_DATABASE_VERSION_2_3, SDX_DATE, SDX_DATE_MILLISECONDS, SDX_ISO8601_DATE, SDX_USER, splitActive, splitDoc, splitSize, splitUnit, useCompoundFiles
_indexationPipeline, _oaiHarv, ATTRIBUTE_AUTO_OPTIMIZE, ATTRIBUTE_COMPOUND_FILES, ATTRIBUTE_SPLIT_DOC, ATTRIBUTE_SPLIT_SIZE, ATTRIBUTE_SPLIT_UNIT, DBELEM_ATTRIBUTE_DEFAULT, DBELEM_ATTRIBUTE_HPP, DBELEM_ATTRIBUTE_KEEP_ORIGINAL, DBELEM_ATTRIBUTE_MAXSORT, defaultHitsPerPage, defaultMaxSort, defaultRepository, ELEMENT_NAME_INDEX_SPLIT, ELEMENT_NAME_OPTIMIZE, INTERNAL_FIELD_NAME_SDX_OAI_DELETED_RECORD, INTERNAL_FIELD_NAME_SDXALL, INTERNAL_FIELD_NAME_SDXAPPID, INTERNAL_FIELD_NAME_SDXCONTENTLENGTH, INTERNAL_FIELD_NAME_SDXDBID, INTERNAL_FIELD_NAME_SDXDOCID, INTERNAL_FIELD_NAME_SDXDOCTYPE, INTERNAL_FIELD_NAME_SDXMODDATE, INTERNAL_FIELD_NAME_SDXREPOID, INTERNAL_SDXALL_FIELD_VALUE, isDefault, locale, oaiRepo, oaiRepositories, PROPERTY_NAME_ATTACHED, PROPERTY_NAME_CONTENT_LENGTH, PROPERTY_NAME_DOCTYPE, PROPERTY_NAME_MIMETYPE, PROPERTY_NAME_ORIGINAL, PROPERTY_NAME_PARENT, PROPERTY_NAME_REPO, PROPERTY_NAME_SUB, repoConnectionPool, repositories, useMetadata
_database, CLASS_NAME_SUFFIX, DATABASE_DIR_NAME, databaseConf, dbLocation, dbPath, DEFAULT_DATABASE_TYPE
_context, _description, _encoding, _id, _locale, _logger, _manager, _xmlizable_objects, _xmlLang, isToSaxInitialized
CLASS_NAME_SUFFIX, PACKAGE_QUALNAME
NAMESPACE_PREFIX, NAMESPACE_URI, RELATION_BROADER_TERM, RELATION_BROADER_TERMS, RELATION_EQUIVALENT_TERM, RELATION_NARROWER_TERM, RELATION_PARTIAL_EQIUVALENCE, RELATION_RELATED_TERM, RELATION_SCOPE_NOTE, RELATION_USE, RELATION_USED_FOR
DEFAULT_ENCODING
ALL_SAVE_ATTRIB, PATH_ATTRIB, SAVE_DIRECTORY_PARAM
Constructor and Description |
---|
AbstractThesaurus() |
Modifier and Type | Method and Description |
---|---|
void |
addConcept(Concept concept)
Adds a document.
|
void |
addConcepts(Concept[] concepts)
Adds a group of documents.
|
void |
configure(org.apache.avalon.framework.configuration.Configuration configuration)
Configures SDX document base
|
protected void |
configureBase(org.apache.avalon.framework.configuration.Configuration configuration)
Overrides parent method and allows for configuration element <sdx:thesaurus>
set's the path for the this thesaurus/document base
|
void |
deleteConcept(Concept concept)
Removes a concept document with the given id and any sub concepts.
|
void |
deleteConcepts(Concept[] concepts)
Removes a concept document with the given id and any sub concepts.
|
Concept[] |
filterByLangs(Concept[] concepts,
java.lang.String[] langs)
Filters concepts by a list of languages
|
int |
getDefaultDepth()
Return's the default depth for searching relations
|
int[] |
getDefaultRelations()
Return's the default set of relation int's for searching relations
|
java.lang.String |
getRelationTypeAbbreviation(int type)
Returns an abbreviation String for a relation type defined in the thesaurus
|
int |
getRelationTypeInt(java.lang.String abbr)
Returns an int for a relation type String defined in the thesaurus
|
protected org.apache.avalon.framework.configuration.Configuration[] |
getRepositoryConfigurationList(org.apache.avalon.framework.configuration.Configuration configuration)
Configures repositories
|
add, addToSearchIndex, backup, backupIndexes, backupTimeStamp, checkIntegrity, compactSearchIndex, configureDocumentBase, configureIdGenerator, configureOAIComponents, configureOAIHarvester, configureOAIRepositories, configureOAIRepository, configureOptimizeTriggers, configureRepositories, configureSplit, delete, delete, deleteFromSearchIndex, deleteIndexableDocumentComponents, deleteRelationsToMastersFromDatabase, getByteSplitSize, getConfiguration, getDocument, getDocument, getDocument, getDocument, getIndexationDocument, getIndexationInformations, getIndexationLogger, getOwners, getRelated, getRepositoryForDocument, getRepositoryForStorage, getSplitDoc, getSplitSize, getSplitUnit, getUseCompoundFiles, getXMLFieldList, handleParameters, index, index, index, indexModified, init, initToSax, initVolatileObjectsToSax, isAutoOptimized, isIndexOptimized, mergeBatch, mergeCurrentBatch, optimize, restore, restoreIndexes, restoreTimeStamp, rollbackIndexation, setBaseParameters, setConfiguration, splitCheck, splitIndex, targetTriggered
addOaiDeletedRecord, addOAIRepository, configurePipeline, createEntityForDocMetaData, createOAIRepository, createOAIRepository, delete, deletePhysicalDocument, getDefaultHitsPerPage, getDefaultMaxSort, getDefaultOAIRepository, getDefaultRepository, getIdGenerator, getIndexationPipeline, getMimeType, getOAIHarvester, getOAIRepositoriesSize, getOAIRepository, getOAIRepository, getPooledRepositoryConnection, getRepository, getSourceValidity, isDefault, isUseMetadata, managedOaiDeletedRecord, optimizeDatabase, optimizeRepositories, releasePooledRepositoryConnections, removeOaiDeletedRecord
configure, getClassNameSuffix, getDatabase
configureDescription, contextualize, enableLogging, getBaseAttributes, getContext, getDescription, getEncoding, getId, getLocale, getLog, getServiceManager, getXmlLang, service, setDescription, setEncoding, setId, setLocale, setUpSdxObject, setUpSdxObject, setXmlLang, toSAX, verifyConfigurationResources
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
build, build, expandQuery, expandQuery, expandQuery, expandQuery, expandQuery, getConceptById, getConceptByName, getRelations, getRelations, getRelations, getRelations, getRelations, getRelations, getRelations, getRelations, getRelations, getRelations, getRelations, getRelations, getRelations, getRelations, init, load, save, search, size, unload
checkIntegrity, createOAIRepository, creationDate, delete, delete, getDefaultHitsPerPage, getDefaultMaxSort, getDefaultRepository, getDocument, getDocument, getDocument, getDocument, getIndexationPipeline, getMimeType, getOAIHarvester, getOAIRepositoriesSize, getOAIRepository, getOAIRepository, getRepository, getSourceValidity, index, index, isDefault, lastModificationDate, optimize
getId, setId
getDescription, setDescription
getEncoding, setEncoding
getLocale, getXmlLang, setLocale, setXmlLang
getId, getIndex
protected int defaultDepth
protected int[] defaultRelations
protected org.apache.excalibur.source.impl.URLSource source
public void configure(org.apache.avalon.framework.configuration.Configuration configuration) throws org.apache.avalon.framework.configuration.ConfigurationException
SDXDocumentBase
configure
in interface org.apache.avalon.framework.configuration.Configurable
configure
in class SDXDocumentBase
org.apache.avalon.framework.configuration.ConfigurationException
protected void configureBase(org.apache.avalon.framework.configuration.Configuration configuration) throws org.apache.avalon.framework.configuration.ConfigurationException
configureBase
in class SDXDocumentBase
configuration
- org.apache.avalon.framework.configuration.ConfigurationException
protected org.apache.avalon.framework.configuration.Configuration[] getRepositoryConfigurationList(org.apache.avalon.framework.configuration.Configuration configuration) throws org.apache.avalon.framework.configuration.ConfigurationException
SDXDocumentBase
getRepositoryConfigurationList
in class SDXDocumentBase
org.apache.avalon.framework.configuration.ConfigurationException
public java.lang.String getRelationTypeAbbreviation(int type)
Thesaurus
getRelationTypeAbbreviation
in interface Thesaurus
public int getRelationTypeInt(java.lang.String abbr)
Thesaurus
getRelationTypeInt
in interface Thesaurus
public void addConcept(Concept concept) throws SDXException
addConcept
in interface SDXThesaurus
concept
- The document to add.SDXException
public void addConcepts(Concept[] concepts) throws SDXException
SDXThesaurus
addConcepts
in interface SDXThesaurus
concepts
- The documents to add.SDXException
public void deleteConcept(Concept concept) throws SDXException
deleteConcept
in interface SDXThesaurus
concept
- The document.SDXException
public void deleteConcepts(Concept[] concepts) throws SDXException
deleteConcepts
in interface SDXThesaurus
concepts
- The documents.SDXException
public Concept[] filterByLangs(Concept[] concepts, java.lang.String[] langs)
SDXThesaurus
filterByLangs
in interface SDXThesaurus
concepts
- List of concepts for filteringlangs
- List of langauages (in xml:lang format) which are desiredpublic int getDefaultDepth()
SDXThesaurus
getDefaultDepth
in interface SDXThesaurus
public int[] getDefaultRelations()
SDXThesaurus
getDefaultRelations
in interface SDXThesaurus
Copyright © 2000-2010 Ministere de la culture et de la communication / AJLSM. All Rights Reserved.