|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.sapportals.wcm.service.indexmanagement.AbstractIndex
|
+--com.sapportals.wcm.service.indexmanagement.retrieval.classification.AbstractClassificationIndex
The AbstractClassificationIndex offers classification functionality, which is independent from the index implementation.
| Inner classes inherited from class com.sapportals.wcm.service.indexmanagement.AbstractIndex |
AbstractIndex.ErrorState, AbstractIndex.IndexingState, AbstractIndex.Reindexer, AbstractIndex.RunningState, AbstractIndex.WhatToIndex |
| Field Summary | |
protected java.util.Map |
m_inboxFiller
|
protected static java.lang.String |
m_taxonomyRmPrefix
|
protected static boolean |
m_useBestClasses
|
| Fields inherited from class com.sapportals.wcm.service.indexmanagement.AbstractIndex |
CFG_PLUGIN_CM_INDEXES, CFG_PLUGIN_CM_INDEXES_INDEX_FOLDERS, INDEX_STRING_AS_STRING, m_crawlerProfileId, m_crawlerQueue, m_indexFolders, m_indexGroup, m_indexId, m_indexName, m_isActive, m_serviceId, m_serviceUserId, PROPERTIES |
| Constructor Summary | |
AbstractClassificationIndex(java.lang.String indexId,
java.lang.String indexName,
java.lang.String indexGroup,
IIndexFolderList indexFolders,
java.lang.String serviceId,
java.lang.String serviceUserId,
java.util.Properties indexServiceProperties)
Deprecated. as of NW04. Use constructor with crawler profile ID |
|
AbstractClassificationIndex(java.lang.String indexId,
java.lang.String indexName,
java.lang.String indexGroup,
IIndexFolderList indexFolders,
java.lang.String serviceId,
java.lang.String crawlerProfileId,
java.lang.String serviceUserId,
java.util.Properties indexServiceProperties)
|
|
| Method Summary | |
protected void |
addResourceToClassificationIndex(RID resourceRID,
IResourceContext context)
Adds a resource to the list of resources that are index in the index. |
void |
addTaxonomy(java.lang.String taxonomy)
Deprecated. as of NW04. Use addTaxonomy(String,IResourceContext) |
void |
addTaxonomy(java.lang.String taxonomy,
IResourceContext context)
Add Taxonomy to the AbstractClassificationIndex object. |
void |
autoClassifyDocs(java.lang.String taxonomyName,
IResourceContext context)
Requests proposals for the best categories for documents that have no classification and sets these categories automatically as document classification. |
void |
autoClassifyDocs(java.lang.String taxonomyName,
IResourceList docList,
IResourceContext context)
Requests proposals for the best categories for the documents and sets these categories automatically as document classification. |
void |
autoClassifyDocs(java.lang.String taxonomyName,
IRidList docRidList,
IResourceContext context)
Requests proposals for the best categories for the documents and sets these categories automatically as document classification. |
void |
checkUpdateTaxonomyStateDuringStartUp()
|
java.util.Collection |
classifyDocuments(IResourceList resourceDocuments,
java.lang.String taxonomyName)
Classifies documents (which taxonomy class folders do the documents fit best) |
java.util.Collection |
classifyDocuments(IResourceList resourceDocuments,
java.lang.String taxonomyName,
float threshold,
int maxResults)
Classifies documents (which taxonomy class folders do the documents fit best). |
java.util.Collection |
classifyDocuments(IResourceList resourceDocuments,
java.lang.String taxonomyName,
int maxResults)
Classifies documents (which taxonomy class folders do the documents fit best) |
protected ICollection |
createTaxRmIndexFolder(IResourceContext context)
Creates the folder that represents the index in the taxonomy repository. |
void |
deleteClassificationProperties(IResource resource)
|
protected void |
deleteIndexTaxDocClassification(IRidList documentIDs)
Deletes the classification of the documents regarding the taxonomies of this index. |
protected void |
deleteTaxRmIndexFolder(IResourceContext context)
Deletes the whole folder hierarchy of an index in the taxonomy repository. |
void |
finishXPostClear()
|
static void |
getAllCollections(ICollection col,
IResourceList resources)
|
java.util.Collection |
getBestClasses(IResourceList resourceDocuments,
java.lang.String taxonomyName)
|
java.util.Collection |
getBestClasses(IResourceList resourceDocuments,
java.lang.String taxonomyName,
java.util.Map thresholds)
|
java.util.Collection |
getBestClassesOld(IResourceList resourceDocuments,
java.lang.String taxonomyName)
|
IRidList |
getClassDocumentRids(ICollection taxonomyClass)
Gets the resource IDs of all documents of a taxonomy class |
IRidList |
getClassDocumentRids(RID taxonomyClassRid,
IResourceContext context)
Gets the resource IDs of all documents of a taxonomy class |
IResourceList |
getClassDocuments(ICollection taxonomyClass)
Gets all documents of a taxonomy class |
IResourceList |
getClassDocuments(RID taxonomyClassRid,
IResourceContext context)
Gets all documents of a taxonomy class |
IDocClassificationMap |
getDocClassification(IResource document)
Gets the classification that has been set for the document. |
IDocClassificationMapList |
getDocListClassification(IResourceList documents)
Gets the classifications that have been set for the documents. |
java.util.Map |
getDocumentClassification(IResource document)
Deprecated. as of NW04. Use getDocClassification(IResource) |
ClassificationStatus |
getDocumentClassificationStatus(IResource document,
java.lang.String taxonomyName)
|
IRidList |
getDocumentRidsNeverToClassify(java.lang.String taxonomyName,
IResourceContext context)
Gets all rids of documents of an index that have the status "never to classify" within a taxonomy |
IRidList |
getDocumentRidsToClassify(java.lang.String taxonomyName,
IResourceContext context)
Gets all rids of documents of an index that have the status "to classify" within a taxonomy |
IResourceList |
getDocumentsNeverToClassify(java.lang.String taxonomyName)
Deprecated. as of NW04. |
IResourceList |
getDocumentsNeverToClassify(java.lang.String taxonomyName,
IResourceContext context)
Gets all documents of an index that have the status "never to classify" within a taxonomy |
IResourceList |
getDocumentsToClassify(java.lang.String taxonomyName)
Deprecated. as of NW04. |
IResourceList |
getDocumentsToClassify(java.lang.String taxonomyName,
IResourceContext context)
Gets all documents of an index that have the status "to classify" within a taxonomy |
IRidList |
getDocumentTrainingClasses(IResource document)
|
IRidList |
getManuallyDeclassifiedClasses(IResource document)
|
protected IPropertyName |
getPropertyNameTaxonomy(java.lang.String taxonomyName)
|
IQueryFolder |
getQueryFolder(RID taxonomyClassRid)
Gets a query folder instance |
RID |
getSpecialFolderRID(java.lang.String taxonomyName,
SpecialFolder specialFolderType)
|
java.util.List |
getTaxonomies()
Get the Taxonomies attribute of the AbstractClassificationIndex object. |
BestClassesSensitivity |
getTaxonomyBestClassesSensitivity(java.lang.String taxonomyName)
Gets the sensitivity level of the best classes algorithm |
float |
getTaxonomyClassificationThreshold(java.lang.String taxonomyName,
java.lang.String thresholdId)
Gets the threshold of a taxonomy |
java.lang.String |
getTaxonomyRmPrefix()
Get the TaxonomyRmPrefix attribute of the AbstractClassificationIndex object. |
RID |
getTaxonomyTrainingRid(java.lang.String taxonomyName)
Gets the uri of the root folder of the hierarchy that has been used to train/create the given taxonomy. |
URI |
getTaxonomyTrainingUri(java.lang.String taxonomyName)
Deprecated. as of NW04. Use getTaxonomyTrainingRid(String) |
TaxonomyType |
getTaxonomyType(java.lang.String taxonomyName)
|
UpdateTaxonomyState |
getUpdateTaxonomyState(java.lang.String taxonomyName)
|
UpdateTaxonomyState |
getUpdateTaxonomyState(java.lang.String taxonomyName,
java.util.Locale locale)
|
boolean |
hasTaxonomy(java.lang.String name)
|
void |
indexDocument(IResource resource,
java.lang.String taxonomyName,
IRidList taxonomyClasses,
boolean isSearchRelevant)
indexes a document (method for internal use) |
void |
indexDocument(IResource resource,
java.lang.String taxonomyName,
IUriList taxonomyClasses,
boolean isSearchRelevant)
Deprecated. as of NW04. Use indexDocument(IResource, String, IRidList, boolean) |
protected abstract void |
indexDocumentClassification(IResource document,
IIndexService indexService)
|
void |
indexDocuments(IResourceList resources)
Indexes a list of documents |
void |
indexDocuments(IResourceList resources,
boolean reindexMode,
boolean sendLinkEvents)
Indexes a list of documents |
void |
indexDocuments(IResourceList resources,
java.lang.String taxonomyName,
IRidList taxonomyClasses,
boolean isSearchRelevant)
Indexes a list of documents (method for internal use) |
void |
indexDocuments(IResourceList resources,
java.lang.String taxonomyName,
IUriList taxonomyClasses,
boolean isSearchRelevant)
Deprecated. as of NW04. Use indexDocuments(IResourceList, String, IRidList, boolean) |
void |
indexManualTrainDocs()
|
void |
initTaxonomies(java.util.List taxonomies)
Sets the index taxonomies initially before generating the index. |
protected abstract java.util.Collection |
internalClassifyDocuments(IResourceList resourceDocuments,
java.lang.String taxonomyName,
float threshold,
int maxResults)
Classifies documents (which taxonomy class folders do the documents fit best) |
protected void |
internalIndexDocuments(IResourceList resources,
IResourceEvent resourceEvent)
indexes a list of documents (method for internal use) |
protected abstract void |
internalIndexDocuments(IResourceList resources,
java.lang.String taxonomyName,
IRidList taxonomyClasses,
IResourceEvent resourceEvent,
boolean isSearchRelevant,
boolean reindexMode,
boolean sendLinkEvents)
Indexes a list of documents (method for internal use) |
boolean |
isDocClassifiedInAnyTax(IResource resource)
|
boolean |
isIndexOnlyClassifiedDocs()
Returns true, if only documents are indexed, which could be assigned to categories. |
boolean |
isManuallyDeclassifiedDocument(IResource document,
RID taxonomyClassRid)
|
boolean |
isTrainingDocument(IResource document,
RID taxonomyClassRid)
|
protected void |
reindexPostClear(IIndexFolderList preClearIndexFolders)
Deprecated. as of NW04. Does not work with the new crawlers |
protected boolean |
reindexTrainingResources(IIndexFolderList preClearIndexFolders)
|
void |
removeCategoryAssignments(ICollection deletedCategoryFolder)
Removes the assignment of all documents of the index to a category. |
protected void |
removeResourceFromClassificationIndex(RID resourceRID,
IResourceContext context)
Removes a resource from the list of resources that are indexed in the index. |
void |
removeTaxonomy(java.lang.String taxonomy)
Deprecated. as of NW04. Use removeTaxonomy(String,IResourceContext) |
void |
removeTaxonomy(java.lang.String taxonomy,
IResourceContext context)
for internal use - to remove a taxonomy delete the taxonomy collection |
void |
setDocClassification(IDocClassificationMap documentClassificationMap)
Stores the document classification that has been choosen by manual or automatic classification. |
void |
setDocClassification(IDocClassificationMap documentClassificationMap,
boolean indexDocumentClassification)
Stores the document classification that has been choosen by manual or automatic classification. |
void |
setDocClassification(IDocClassificationMap documentClassificationMap,
boolean indexDocumentClassification,
boolean isTrainingDocument)
Stores the document classification that has been choosen by manual or automatic classification. |
void |
setDocClassification(IDocClassificationMap documentClassificationMap,
boolean indexDocumentClassification,
boolean isTrainingDocument,
boolean sendLinkEvents)
Stores the document classification that has been choosen by manual or automatic classification. |
void |
setDocClassification(IDocClassificationMap documentClassificationMap,
boolean indexDocumentClassification,
boolean isTrainingDocument,
boolean sendLinkEvents,
java.lang.String notToSend)
Stores the document classification that has been choosen by manual or automatic classification. |
void |
setDocClassification(IDocClassificationMap documentClassificationMap,
java.lang.String notToSend)
Stores the document classification that has been choosen by manual or automatic classification. |
void |
setDocListClassification(IDocClassificationMapList documentClassificationMapList)
Stores the documents classifications that has been choosen by manual or automatic classification. |
void |
setDocumentClassification(IResource document,
java.util.Map classification)
Deprecated. as of NW04. Use setDocClassification(IResource,Map) |
void |
setDocumentClassification(IResource document,
java.util.Map classification,
boolean indexDocumentClassification)
Deprecated. as of NW04. Use setDocClassification(IResource,Map,boolean) |
void |
setDocumentClassification(IResource document,
java.util.Map classification,
boolean indexDocumentClassification,
boolean isTrainingDocument)
Deprecated. as of NW04. Use setDocClassification(IResource,Map,boolean, boolean) |
void |
setDocumentClassificationStatus(IResourceList documents,
java.lang.String taxonomyName,
ClassificationStatus status)
Sets the classification status for a list of documents for a taxonomy. |
void |
setDocumentClassificationStatus(IResource document,
java.lang.String taxonomyName,
ClassificationStatus status)
Sets the classification status of a document for a taxonomy |
void |
setDocumentClassificationStatus(IResource document,
java.lang.String taxonomyName,
ClassificationStatus status,
boolean sendEvents,
java.lang.String notToSend)
Sets the classification status of a document for a taxonomy |
void |
setDocumentClassificationStatus(IResource document,
java.lang.String taxonomyName,
ClassificationStatus status,
java.lang.String notToSend)
Sets the classification status of a document for a taxonomy |
void |
setIndexOnlyClassifiedDocs(boolean indexOnlyClassifiedDocs)
If set on true, only documents are indexed, which are also assigned to categories, otherwise all documents are indexed. |
void |
setQueryFolderExternalFast(IQueryFolder queryFolder,
IQueryEntryList query)
|
void |
setTaxonomyBestClassesSensitivity(java.lang.String taxonomyName,
BestClassesSensitivity sensitivity)
Sets the threshold of a taxonomy |
void |
setTaxonomyClassificationThreshold(java.lang.String taxonomyName,
java.lang.String thresholdId,
float threshold)
Set the TaxonomyClassificationThreshold attribute of the AbstractClassificationIndex object. |
void |
setTaxonomyTrainingRid(java.lang.String taxonomyName,
RID trainingRid)
Set the TaxonomyTrainingUri attribute of the AbstractClassificationIndex object. |
void |
setTaxonomyTrainingUri(java.lang.String taxonomyName,
URI trainingUri)
Deprecated. as of NW04. Use setTaxonomyTrainingRid(String,RID) |
void |
setTaxonomyType(java.lang.String taxonomyName,
TaxonomyType taxonomyType)
Sets the type for the taxonomy |
void |
setUpdateTaxonomyState(java.lang.String state,
java.lang.String taxonomyName,
int visitedCategories,
int catgoriesToUpdate,
int allCategories)
|
void |
startTaxonomyTrainingCrawler(ICollection taxonomyCollection,
boolean isSearchRelevant)
Deprecated. as of NW04. Crawlers can only be queued - use queueTaxonomyTrainingCrawler |
abstract void |
startTaxonomyTrainingCrawler(java.lang.String taxonomyName,
ICollection taxonomyCollection,
boolean isSearchRelevant,
boolean clearVisitedList,
ISemaphore semaphore)
Runs a taxonomy training crawler. |
void |
synchronizeTaxonomyMetaData(java.lang.String taxonomyName)
Rebuilds the taxonomy meta data on the classification engine. |
java.util.Collection |
unfilteredClassifyDocuments(IResourceList resourceDocuments,
java.lang.String taxonomyName,
float threshold,
int maxResults)
Classifies documents (which taxonomy class folders do the documents fit best) |
abstract void |
updateCategoryContents(java.lang.String taxonomyName,
boolean dirtyOnly,
IResourceContext context)
Starts a process that checks and updates categories of a taxonomy where the query is not in sync with the documents of category. |
boolean |
useBestClasses()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.sapportals.wcm.service.indexmanagement.IIndex |
clear, delete, delete, generate, generate, getResourceInfo, getServiceTypes |
| Field Detail |
protected static java.lang.String m_taxonomyRmPrefix
protected static boolean m_useBestClasses
protected java.util.Map m_inboxFiller
| Constructor Detail |
public AbstractClassificationIndex(java.lang.String indexId,
java.lang.String indexName,
java.lang.String indexGroup,
IIndexFolderList indexFolders,
java.lang.String serviceId,
java.lang.String serviceUserId,
java.util.Properties indexServiceProperties)
throws WcmException
indexId - index identifierindexName - display name of the indexindexGroup - the group the index has been assigned toserviceId - the identifier of the index serviceserviceUserId - id of the index management service user, to set the service contextindexServiceProperties - config properties of the index management servicefolderRids - list of rids that are assigned to the indexWcmException - Exception raised in failure situation
public AbstractClassificationIndex(java.lang.String indexId,
java.lang.String indexName,
java.lang.String indexGroup,
IIndexFolderList indexFolders,
java.lang.String serviceId,
java.lang.String crawlerProfileId,
java.lang.String serviceUserId,
java.util.Properties indexServiceProperties)
throws WcmException
indexId - index identifierindexName - display name of the indexindexGroup - the group the index has been assigned toserviceId - the identifier of the index servicecrawlerProfileId - - ID of the default crawler profile for all index folders of the indexserviceUserId - id of the index management service user, to set the service contextindexServiceProperties - config properties of the index management servicefolderRids - list of rids that are assigned to the indexWcmException - Exception raised in failure situation| Method Detail |
public void setDocumentClassification(IResource document,
java.util.Map classification)
throws WcmException
document - The new DocumentClassification valueclassification - The new DocumentClassification valueWcmException - Exception raised in failure situation
public void setDocumentClassification(IResource document,
java.util.Map classification,
boolean indexDocumentClassification)
throws WcmException
document - The new DocumentClassification valueclassification - The new DocumentClassification valueindexDocumentClassification - The new DocumentClassification valueWcmException - Exception raised in failure situation
public void setDocumentClassification(IResource document,
java.util.Map classification,
boolean indexDocumentClassification,
boolean isTrainingDocument)
throws WcmException
document - document for that the classification has to be set.classification - map with document classification. Key is (String) taxonomy name. Value is
IRidList of taxonomy class rids.
The entire document classification must be set. To add classes first get the old document classification and add the new classes.
To remove classes get the old document classification and remove the classes from the class list.
To delete a whole taxonomy for the document set an empty class list for the taxonomy name.indexDocumentClassification - if true the document classification is indexed. If false the document
classification is only stored as an application property with the document and is not indexed. Warning: Should
only be "false" if document is indexed imediately before or after the call by another routine.isTrainingSet - if true the added classes are indexed to train the indexWcmException - Exception raised in failure situation
public boolean isTrainingDocument(IResource document,
RID taxonomyClassRid)
throws WcmException
document - the document to checktaxonomyClassRid - the rid of the taxonomy class for that has to be checked
if the document is a training document
if taxonomyClassRid is null, it returns true if the document
is a training document for any taxonomy category of the index.
public boolean isDocClassifiedInAnyTax(IResource resource)
throws WcmException
public boolean isManuallyDeclassifiedDocument(IResource document,
RID taxonomyClassRid)
throws WcmException
document - the document to checktaxonomyClassRid - the rid of the taxonomy class for that has to be checked
if the document is a manually declassified document
if taxonomyClassRid is null, it returns true if the document
is a manually declassified document for any taxonomy category of the index.
public void setTaxonomyClassificationThreshold(java.lang.String taxonomyName,
java.lang.String thresholdId,
float threshold)
throws WcmException
taxonomyName - The new TaxonomyClassificationThreshold valuethresholdId - The new TaxonomyClassificationThreshold valuethreshold - The new TaxonomyClassificationThreshold valueWcmException - Exception raised in failure situation
public void setTaxonomyTrainingUri(java.lang.String taxonomyName,
URI trainingUri)
throws WcmException
taxonomyName - The new TaxonomyTrainingUri valuetrainingUri - The new TaxonomyTrainingUri valueWcmException - Exception raised in failure situation
public void setTaxonomyTrainingRid(java.lang.String taxonomyName,
RID trainingRid)
throws WcmException
taxonomyName - The new TaxonomyTrainingRid valuetrainingRid - The new TaxonomyTrainingRid valueWcmException - Exception raised in failure situation
public void setTaxonomyBestClassesSensitivity(java.lang.String taxonomyName,
BestClassesSensitivity sensitivity)
throws WcmException
taxonomyName - name of the taxonomy (must exist for index)sensitivity - The new TaxonomyBestClassesSensitivity valueWcmException - Exception raised in failure situationpublic boolean hasTaxonomy(java.lang.String name)
public java.util.List getTaxonomies()
public java.util.Map getDocumentClassification(IResource document)
throws WcmException
document - Document to get the classification forWcmException - Exception raised in failure situation
public float getTaxonomyClassificationThreshold(java.lang.String taxonomyName,
java.lang.String thresholdId)
throws WcmException
taxonomyName - name of the taxonomy (must exist for index)thresholdId - Constant IClassificationIndex.PROP_NAME_THRESHOLD_LEVEL1 or
IClassificationIndex.PROP_NAME_THRESHOLD_LEVEL2WcmException - Exception raised in failure situation
public URI getTaxonomyTrainingUri(java.lang.String taxonomyName)
throws WcmException
public RID getTaxonomyTrainingRid(java.lang.String taxonomyName)
throws WcmException
taxonomyName - name of the taxonomy (must exist for index)WcmException - Exception raised in failure situationpublic java.lang.String getTaxonomyRmPrefix()
public IResourceList getClassDocuments(ICollection taxonomyClass)
throws WcmException,
ResourceException
taxonomyClass - the taxonomy class folder you want to have documents forWcmException - Exception raised in failure situationResourceException - Exception raised in failure situation
public IResourceList getClassDocuments(RID taxonomyClassRid,
IResourceContext context)
throws WcmException,
ResourceException
taxonomyClassRid - resource ID of the taxonomy class you want to have documents forcontext - user contextWcmException - Exception raised in failure situationResourceException - Exception raised in failure situation
public IRidList getClassDocumentRids(ICollection taxonomyClass)
throws WcmException,
ResourceException
taxonomyClass - the taxonomy class folder you want to have documents forWcmException - Exception raised in failure situationResourceException - Exception raised in failure situation
public IRidList getClassDocumentRids(RID taxonomyClassRid,
IResourceContext context)
throws WcmException
taxonomyClassRid - resource ID of the taxonomy class you want to have documents forcontext - user contextWcmException - Exception raised in failure situationResourceException - Exception raised in failure situation
public java.util.Collection getBestClassesOld(IResourceList resourceDocuments,
java.lang.String taxonomyName)
throws WcmException
resourceDocuments - Resource list of documents you want to classifytaxonomyName - taxonomy for that the best classes have to be proposed forWcmException - Exception raised in failure situation
public java.util.Collection getBestClasses(IResourceList resourceDocuments,
java.lang.String taxonomyName)
throws WcmException
resourceDocuments - Resource list of documents you want to classifytaxonomyName - taxonomy for that the best classes have to be proposed forWcmException - Exception raised in failure situation
public java.util.Collection getBestClasses(IResourceList resourceDocuments,
java.lang.String taxonomyName,
java.util.Map thresholds)
throws WcmException
public BestClassesSensitivity getTaxonomyBestClassesSensitivity(java.lang.String taxonomyName)
throws WcmException
taxonomyName - name of the taxonomy (must exist for index)WcmException - Exception raised in failure situationpublic void initTaxonomies(java.util.List taxonomies)
taxonomies - list of taxonomy namespublic void removeTaxonomy(java.lang.String taxonomy)
removeTaxonomy(String,IResourceContext)
taxonomyName - name of the taxonomy to remove
public void removeTaxonomy(java.lang.String taxonomy,
IResourceContext context)
throws WcmException
taxonomyName - name of the taxonomy to remove
public void addTaxonomy(java.lang.String taxonomy)
throws WcmException
addTaxonomy(String,IResourceContext)
taxonomy - Taxonomy to be addedWcmException - Exception raised in failure situation
public void addTaxonomy(java.lang.String taxonomy,
IResourceContext context)
throws WcmException
taxonomy - Taxonomy to be addedWcmException - Exception raised in failure situation
public void indexDocuments(IResourceList resources,
java.lang.String taxonomyName,
IUriList taxonomyClasses,
boolean isSearchRelevant)
throws ResourceException,
WcmException,
java.io.IOException
public void indexDocuments(IResourceList resources,
java.lang.String taxonomyName,
IRidList taxonomyClasses,
boolean isSearchRelevant)
throws ResourceException,
WcmException,
java.io.IOException
resources - resources to indextaxonomyName - name of the taxonomy where the taxonomy classes have to be indexed with the documenttaxonomyClasses - axonomy classes to index with the documentsisSearchRelevant - if true the documents can be found in a search if false the document is only for the training of the taxonomy classesResourceException - Exception raised in failure situationWcmException - Exception raised in failure situationjava.io.IOException - Exception raised in failure situation
public void indexDocument(IResource resource,
java.lang.String taxonomyName,
IUriList taxonomyClasses,
boolean isSearchRelevant)
throws ResourceException,
WcmException,
java.io.IOException
public void indexDocuments(IResourceList resources)
throws ResourceException,
WcmException,
java.io.IOException
indexDocuments in class AbstractIndexresources - resources to indexreindexMode - true if the documents are indexed via the reindex callsendLinkEvents - if true create link event will be send for classification resultsResourceException - Exception raised in failure situationWcmException - Exception raised in failure situationjava.io.IOException - Exception raised in failure situation
public void indexDocuments(IResourceList resources,
boolean reindexMode,
boolean sendLinkEvents)
throws ResourceException,
WcmException,
java.io.IOException
resources - resources to indexreindexMode - true if the documents are indexed via the reindex callsendLinkEvents - if true create link event will be send for classification resultsResourceException - Exception raised in failure situationWcmException - Exception raised in failure situationjava.io.IOException - Exception raised in failure situation
public void indexDocument(IResource resource,
java.lang.String taxonomyName,
IRidList taxonomyClasses,
boolean isSearchRelevant)
throws ResourceException,
WcmException,
java.io.IOException
resource - resource to indextaxonomyName - name of the taxonomy where the taxonomy classes have to be indexed with the documenttaxonomyClasses - taxonomy classes to index with the documentisSearchRelevant - if true the document can be found in a search if false the document is only for the training of the taxonomy classesResourceException - Exception raised in failure situationWcmException - Exception raised in failure situationjava.io.IOException - Exception raised in failure situation
public java.util.Collection classifyDocuments(IResourceList resourceDocuments,
java.lang.String taxonomyName,
int maxResults)
throws WcmException
resourceDocuments - Resource list of documents you want to classifymaxResults - maximum number of returned taxonomy classestaxonomyName - name of the taxonomy whereWcmException - Exception raised in failure situation
public java.util.Collection classifyDocuments(IResourceList resourceDocuments,
java.lang.String taxonomyName)
throws WcmException
resourceDocuments - Resource list of documents you want to classifytaxonomyName - name of the taxonomy for that classification proposals have to be foundWcmException - Exception raised in failure situation
public java.util.Collection unfilteredClassifyDocuments(IResourceList resourceDocuments,
java.lang.String taxonomyName,
float threshold,
int maxResults)
throws WcmException
resourceDocuments - Resource list of documents you want to classifythreshold - lowest rank value of a returned taxonomy classmaxResults - maximum number of returned taxonomy classestaxonomyName - name of the taxonomy for that classification proposals have to be foundWcmException - Exception raised in failure situation
public java.util.Collection classifyDocuments(IResourceList resourceDocuments,
java.lang.String taxonomyName,
float threshold,
int maxResults)
throws WcmException
resourceDocuments - Resource list of documents you want to classifythreshold - lowest rank value of a returned taxonomy classmaxResults - maximum number of returned taxonomy classestaxonomyName - name of the taxonomy for that classification proposals have to be foundWcmException - Exception raised in failure situation
protected abstract java.util.Collection internalClassifyDocuments(IResourceList resourceDocuments,
java.lang.String taxonomyName,
float threshold,
int maxResults)
throws WcmException
resourceDocuments - Resource list of documents you want to classifythreshold - lowest rank value of a returned taxonomy classmaxResults - maximum number of returned taxonomy classestaxonomyName - name of the taxonomy for that classification proposals have to be foundWcmException - Exception raised in failure situationpublic boolean useBestClasses()
protected abstract void internalIndexDocuments(IResourceList resources,
java.lang.String taxonomyName,
IRidList taxonomyClasses,
IResourceEvent resourceEvent,
boolean isSearchRelevant,
boolean reindexMode,
boolean sendLinkEvents)
throws ResourceException,
WcmException,
java.io.IOException
resources - resources to indextaxonomyName - name of the taxonomy where the taxonomy classes have to be indexed with the documenttaxonomyClasses - taxonomy classes to index with the documentsisSearchRelevant - if true the documents can be found in a search if false the document is only for the training of the taxonomy classesResourceException - Exception raised in failure situationWcmException - Exception raised in failure situationjava.io.IOException - Exception raised in failure situation
protected void internalIndexDocuments(IResourceList resources,
IResourceEvent resourceEvent)
throws ResourceException,
WcmException,
java.io.IOException
internalIndexDocuments in class AbstractIndexresources - list of resources to indexresourceEvent - event that caused the index requestResourceException - Exception raised in failure situationWcmException - Exception raised in failure situationjava.io.IOException - Exception raised in failure situation
protected abstract void indexDocumentClassification(IResource document,
IIndexService indexService)
document - document that has to be indexesindexService - index service from the service factory
protected void reindexPostClear(IIndexFolderList preClearIndexFolders)
throws WcmException
reindexPostClear in class AbstractIndexpreClearIndexFolders - index folders that have been attached befor the clearWcmException - Exception raised in failure situation
public void finishXPostClear()
throws WcmException
protected boolean reindexTrainingResources(IIndexFolderList preClearIndexFolders)
throws WcmException
public void indexManualTrainDocs()
throws WcmException
public ClassificationStatus getDocumentClassificationStatus(IResource document,
java.lang.String taxonomyName)
throws WcmException
public void setDocumentClassificationStatus(IResource document,
java.lang.String taxonomyName,
ClassificationStatus status)
throws WcmException
document - document to get the classification status fortaxonomyName - name of the taxonomythe - documents classification status in the taxonomy
public void setDocumentClassificationStatus(IResource document,
java.lang.String taxonomyName,
ClassificationStatus status,
java.lang.String notToSend)
throws WcmException
document - document to get the classification status fortaxonomyName - name of the taxonomythe - documents classification status in the taxonomynotToSend - String describing an event, which should be suppressed
public void setDocumentClassificationStatus(IResource document,
java.lang.String taxonomyName,
ClassificationStatus status,
boolean sendEvents,
java.lang.String notToSend)
throws WcmException
document - document to get the classification status fortaxonomyName - name of the taxonomystatus - the documents classification status in the taxonomysendEvents - only send events if truenotToSend - String describing an event, which should be suppressed
public void setDocumentClassificationStatus(IResourceList documents,
java.lang.String taxonomyName,
ClassificationStatus status)
throws WcmException
documents - documents to set the classification status fortaxonomyName - name of the taxonomythe - documents classification status in the taxonomy
public IResourceList getDocumentsToClassify(java.lang.String taxonomyName)
throws WcmException
taxonomyName - name of the taxonomy for that the documents that are to classify should be returned
public IResourceList getDocumentsToClassify(java.lang.String taxonomyName,
IResourceContext context)
throws WcmException
taxonomyName - name of the taxonomy for that the documents that are to classify should be returnedcontext - user context
public IResourceList getDocumentsNeverToClassify(java.lang.String taxonomyName,
IResourceContext context)
throws WcmException
taxonomyName - name of the taxonomy for that the documents that are never to be classified should be returnedcontext - user context
public IResourceList getDocumentsNeverToClassify(java.lang.String taxonomyName)
throws WcmException
taxonomyName - name of the taxonomy for that the documents that are never to be classified should be returned
public IRidList getDocumentRidsToClassify(java.lang.String taxonomyName,
IResourceContext context)
throws WcmException
taxonomyName - name of the taxonomy for that the documents that are to classify should be returnedcontext - user context
public IRidList getDocumentRidsNeverToClassify(java.lang.String taxonomyName,
IResourceContext context)
throws WcmException
taxonomyName - name of the taxonomy for that the documents that are never to be classified should be returnedcontext - user context
public RID getSpecialFolderRID(java.lang.String taxonomyName,
SpecialFolder specialFolderType)
throws WcmException
taxonomyName - name of the taxonomyspecialFolderType - type of special folder
public IDocClassificationMap getDocClassification(IResource document)
throws WcmException
document - document for that the classification has to be returnedWcmException - Exception raised in failure situation
public IDocClassificationMapList getDocListClassification(IResourceList documents)
throws WcmException
documents - list of documents for that the classification has to be returnedWcmException - Exception raised in failure situation.
public void setDocClassification(IDocClassificationMap documentClassificationMap)
throws WcmException
documentClassificationMap - container with the document and its classification for all taxonomiesWcmException - Exception raised in failure situation
public void setDocClassification(IDocClassificationMap documentClassificationMap,
java.lang.String notToSend)
throws WcmException
documentClassificationMap - container with the document and its classification for all taxonomiesnotToSend - String describing an event, which should be suppressedWcmException - Exception raised in failure situation
public void setDocClassification(IDocClassificationMap documentClassificationMap,
boolean indexDocumentClassification)
throws WcmException
documentClassificationMap - container with the document and its classification for all taxonomiesindexDocumentClassification - if true the document classification is indexed. If false the document
classification is only stored as an application property with the document and is not indexed. Warning: Should
only be "false" if document is indexed imediately before or after the call by another routine.WcmException - Exception raised in failure situation
public void setDocClassification(IDocClassificationMap documentClassificationMap,
boolean indexDocumentClassification,
boolean isTrainingDocument)
throws WcmException
documentClassificationMap - container with the document and its classification for all taxonomiesindexDocumentClassification - if true the document classification is indexed. If false the document
classification is only stored as an application property with the document and is not indexed. Warning: Should
only be "false" if document is indexed imediately before or after the call by another routine.isTrainingDocument - if true the classification is is indexed to train the indexWcmException - Exception raised in failure situation
public void setDocClassification(IDocClassificationMap documentClassificationMap,
boolean indexDocumentClassification,
boolean isTrainingDocument,
boolean sendLinkEvents)
throws WcmException
documentClassificationMap - container with the document and its classification for all taxonomiesindexDocumentClassification - if true the document classification is indexed. If false the document
classification is only stored as an application property with the document and is not indexed. Warning: Should
only be "false" if document is indexed imediately before or after the call by another routine.isTrainingDocument - if true the classification is is indexed to train the indexsendLinkEvents - if true create link event will be sendWcmException - Exception raised in failure situation
public void setDocClassification(IDocClassificationMap documentClassificationMap,
boolean indexDocumentClassification,
boolean isTrainingDocument,
boolean sendLinkEvents,
java.lang.String notToSend)
throws WcmException
documentClassificationMap - container with the document and its classification for all taxonomiesindexDocumentClassification - if true the document classification is indexed. If false the document
classification is only stored as an application property with the document and is not indexed. Warning: Should
only be "false" if document is indexed imediately before or after the call by another routine.isTrainingDocument - if true the classification is is indexed to train the indexsendLinkEvents - if true create link event will be sendnotToSend - String describing an event, which should be suppressedWcmException - Exception raised in failure situation
public void setDocListClassification(IDocClassificationMapList documentClassificationMapList)
throws WcmException
documentClassificationMapList - list of containers with the document and its classification for all taxonomiesWcmException - Exception raised in failure situation
public void setTaxonomyType(java.lang.String taxonomyName,
TaxonomyType taxonomyType)
throws WcmException
taxonomyName - name of the taxonomytaxonomyType - new taxonomy type
public void setIndexOnlyClassifiedDocs(boolean indexOnlyClassifiedDocs)
throws WcmException
indexOnlyClassifiedDocs -
public TaxonomyType getTaxonomyType(java.lang.String taxonomyName)
throws WcmException
taxonomyName - the name of the taxonomy
public boolean isIndexOnlyClassifiedDocs()
throws WcmException
public IQueryFolder getQueryFolder(RID taxonomyClassRid)
throws WcmException
taxonomyClassRid - rid of the taxonomy class that is the query folder
public IRidList getDocumentTrainingClasses(IResource document)
throws WcmException
document - document for that the training classes have to be returned
public IRidList getManuallyDeclassifiedClasses(IResource document)
throws WcmException
document - document for that the manually declassified classes have to be returned
public void autoClassifyDocs(java.lang.String taxonomyName,
IRidList docRidList,
IResourceContext context)
throws WcmException
taxonomyName - name of the taxonomydocRidList - list IDs of documents of a taxonomy to be reclassifiedcontext - user context
public void autoClassifyDocs(java.lang.String taxonomyName,
IResourceList docList,
IResourceContext context)
throws WcmException
taxonomyName - name of the taxonomydocList - list of documents of a taxonomy to be reclassifiedcontext - user context
public void autoClassifyDocs(java.lang.String taxonomyName,
IResourceContext context)
throws WcmException
taxonomyName - name of the taxonomycontext - user context
protected void deleteTaxRmIndexFolder(IResourceContext context)
throws WcmException
IClassificationIndex.
protected ICollection createTaxRmIndexFolder(IResourceContext context)
throws WcmException
IClassificationIndex.
public void removeCategoryAssignments(ICollection deletedCategoryFolder)
throws WcmException
deletedTaxClassFolder - category that has been deleted
protected void deleteIndexTaxDocClassification(IRidList documentIDs)
throws WcmException
documentIDs - documents for that the classification has to be removed
public void startTaxonomyTrainingCrawler(ICollection taxonomyCollection,
boolean isSearchRelevant)
throws WcmException
taxonomyCollection - start collection of the hierarchy that will be use to build up the taxonomyisSearchRelevant - indicates wether the documents will become part of the index or should only be used to train the indexWcmException - Exception raised in failure situation
public abstract void startTaxonomyTrainingCrawler(java.lang.String taxonomyName,
ICollection taxonomyCollection,
boolean isSearchRelevant,
boolean clearVisitedList,
ISemaphore semaphore)
throws WcmException
taxonomyName - name of the taxonomytaxonomyCollection - start collection of the hierarchy that is used to build up the taxonomyisSearchRelevant - indicates whether the documents are to become part of the index or should only be used to train the indexclearVisitedList - clears all entries from the visited list of the index before crawlingsemaphore - is acquired in the constructor of the training crawler
and is blocked as long as the crawler is running
The initial state must be unacquired.
Other objects that acquire the semaphore must wait
until the training crawler releases the semaphore.WcmException - exception raised in failure situation
semaphore can be null
protected IPropertyName getPropertyNameTaxonomy(java.lang.String taxonomyName)
throws WcmException
public abstract void updateCategoryContents(java.lang.String taxonomyName,
boolean dirtyOnly,
IResourceContext context)
throws WcmException
taxonomyName - name of the taxonomy to checkdirtyOnly - if false all categories are checked, if false only categories
that are out of sync (dirty) are updated.context - user context
protected void addResourceToClassificationIndex(RID resourceRID,
IResourceContext context)
throws WcmException
resourceRID - ID of the resource to addcontext - user context
protected void removeResourceFromClassificationIndex(RID resourceRID,
IResourceContext context)
throws WcmException
resourceRID - ID of the resource to removecontext - user context
public void synchronizeTaxonomyMetaData(java.lang.String taxonomyName)
throws WcmException
taxonomyName - taxonomy that has to be redefined
public void deleteClassificationProperties(IResource resource)
throws WcmException
public static void getAllCollections(ICollection col,
IResourceList resources)
dataSearchFromHereResource -
public UpdateTaxonomyState getUpdateTaxonomyState(java.lang.String taxonomyName)
throws WcmException
public UpdateTaxonomyState getUpdateTaxonomyState(java.lang.String taxonomyName,
java.util.Locale locale)
throws WcmException
public void setUpdateTaxonomyState(java.lang.String state,
java.lang.String taxonomyName,
int visitedCategories,
int catgoriesToUpdate,
int allCategories)
throws WcmException
public void checkUpdateTaxonomyStateDuringStartUp()
throws WcmException
public void setQueryFolderExternalFast(IQueryFolder queryFolder,
IQueryEntryList query)
throws WcmException
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||