public abstract class AbstractThesaurus extends SDXDocumentBase implements SDXThesaurus
SDXThesaurus.ConfigurationNodeSDXDocumentBaseTarget.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, isToSaxInitializedCLASS_NAME_SUFFIX, PACKAGE_QUALNAMENAMESPACE_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_FORDEFAULT_ENCODINGALL_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, targetTriggeredaddOaiDeletedRecord, 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, removeOaiDeletedRecordconfigure, getClassNameSuffix, getDatabaseconfigureDescription, contextualize, enableLogging, getBaseAttributes, getContext, getDescription, getEncoding, getId, getLocale, getLog, getServiceManager, getXmlLang, service, setDescription, setEncoding, setId, setLocale, setUpSdxObject, setUpSdxObject, setXmlLang, toSAX, verifyConfigurationResourcesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuild, 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, unloadcheckIntegrity, createOAIRepository, creationDate, delete, delete, getDefaultHitsPerPage, getDefaultMaxSort, getDefaultRepository, getDocument, getDocument, getDocument, getDocument, getIndexationPipeline, getMimeType, getOAIHarvester, getOAIRepositoriesSize, getOAIRepository, getOAIRepository, getRepository, getSourceValidity, index, index, isDefault, lastModificationDate, optimizegetId, setIdgetDescription, setDescriptiongetEncoding, setEncodinggetLocale, getXmlLang, setLocale, setXmlLanggetId, getIndexprotected 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
SDXDocumentBaseconfigure in interface org.apache.avalon.framework.configuration.Configurableconfigure in class SDXDocumentBaseorg.apache.avalon.framework.configuration.ConfigurationExceptionprotected void configureBase(org.apache.avalon.framework.configuration.Configuration configuration)
throws org.apache.avalon.framework.configuration.ConfigurationException
configureBase in class SDXDocumentBaseconfiguration - org.apache.avalon.framework.configuration.ConfigurationExceptionprotected org.apache.avalon.framework.configuration.Configuration[] getRepositoryConfigurationList(org.apache.avalon.framework.configuration.Configuration configuration)
throws org.apache.avalon.framework.configuration.ConfigurationException
SDXDocumentBasegetRepositoryConfigurationList in class SDXDocumentBaseorg.apache.avalon.framework.configuration.ConfigurationExceptionpublic java.lang.String getRelationTypeAbbreviation(int type)
ThesaurusgetRelationTypeAbbreviation in interface Thesauruspublic int getRelationTypeInt(java.lang.String abbr)
ThesaurusgetRelationTypeInt in interface Thesauruspublic void addConcept(Concept concept) throws SDXException
addConcept in interface SDXThesaurusconcept - The document to add.SDXExceptionpublic void addConcepts(Concept[] concepts) throws SDXException
SDXThesaurusaddConcepts in interface SDXThesaurusconcepts - The documents to add.SDXExceptionpublic void deleteConcept(Concept concept) throws SDXException
deleteConcept in interface SDXThesaurusconcept - The document.SDXExceptionpublic void deleteConcepts(Concept[] concepts) throws SDXException
deleteConcepts in interface SDXThesaurusconcepts - The documents.SDXExceptionpublic Concept[] filterByLangs(Concept[] concepts, java.lang.String[] langs)
SDXThesaurusfilterByLangs in interface SDXThesaurusconcepts - List of concepts for filteringlangs - List of langauages (in xml:lang format) which are desiredpublic int getDefaultDepth()
SDXThesaurusgetDefaultDepth in interface SDXThesauruspublic int[] getDefaultRelations()
SDXThesaurusgetDefaultRelations in interface SDXThesaurusCopyright © 2000-2010 Ministere de la culture et de la communication / AJLSM. All Rights Reserved.