|
SAP NetWeaver 7.30 SP01 KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sapportals.wcm.service.indexmanagement.AbstractIndex
com.sapportals.wcm.service.indexmanagement.retrieval.classification.AbstractClassificationIndex
public abstract class AbstractClassificationIndex
The AbstractClassificationIndex offers classification functionality, which is independent from the index implementation.
Changes between major releases 7.0 and 7.X
addOnlyAppPropManAssigned(IResource, RID)
addOnlyAppPropManDeclassified(IResource, RID)
classifyDocuments(IResourceList, String, float, int, boolean)
getBestClasses(IResourceList, String)
getBestClasses(IResourceList, String, int)
getDocumentClassificationStatusNewEnum(IResource, String)
getPropertyNameManuallyDeclassifiedClasses()
getPropertyNameTrainingClasses()
getTaxonomyTypeNewEnum(String)
internalClassifyDocuments(IResourceList, String, float, int, boolean)
internalClassifyDocuments(IResource, List, float, int)
makeDocTaxRmRid(RID, RID, String)
multiTaxonomyClassificationPossible()
setOnlyAppPropertyDocClassificationStatus(IResource, String, ClassificationStatus)
unfilteredClassifyDocuments(IResource, List, float, int)
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.sapportals.wcm.service.indexmanagement.AbstractIndex |
|---|
AbstractIndex.ErrorState, AbstractIndex.IndexingState, AbstractIndex.Reindexer, AbstractIndex.ReindexerWithoutClear, AbstractIndex.RunningState, AbstractIndex.WhatToIndex |
| Field Summary | |
|---|---|
protected Map |
m_inboxFiller
|
protected static String |
m_taxonomyRmPrefix
|
protected static boolean |
m_useBestClasses
|
| Fields inherited from class com.sapportals.wcm.service.indexmanagement.AbstractIndex |
|---|
AS_STRING, CFG_PLUGIN_CM_INDEXES_INDEX_FOLDERS, INDEX_ALSO_AS_STRING, INDEX_STRING_AS_STRING, m_crawlerProfileId, m_indexFolders, m_indexGroup, m_indexId, m_indexName, m_isActive, m_serviceId, m_serviceUserId, PROPERTIES |
| Constructor Summary | |
|---|---|
AbstractClassificationIndex(String indexId,
String indexName,
String indexGroup,
IIndexFolderList indexFolders,
String serviceId,
String serviceUserId,
Properties indexServiceProperties)
Deprecated. as of NW04. Use constructor with crawler profile ID |
|
AbstractClassificationIndex(String indexId,
String indexName,
String indexGroup,
IIndexFolderList indexFolders,
String serviceId,
String crawlerProfileId,
String serviceUserId,
Properties indexServiceProperties)
|
|
| Method Summary | |
|---|---|
void |
addOnlyAppPropManAssigned(IResource document,
com.sapportals.wcm.util.uri.RID category)
Only for internal usage. |
void |
addOnlyAppPropManDeclassified(IResource document,
com.sapportals.wcm.util.uri.RID category)
Only for internal usage. |
protected void |
addResourceToClassificationIndex(com.sapportals.wcm.util.uri.RID resourceRID,
IResourceContext context)
Adds a resource to the list of resources that are index in the index. |
void |
addTaxonomy(String taxonomy)
Deprecated. as of NW04. Use addTaxonomy(String,IResourceContext) |
void |
addTaxonomy(String taxonomy,
IResourceContext context)
Add Taxonomy to the AbstractClassificationIndex object. |
void |
autoClassifyDocs(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(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(String taxonomyName,
com.sapportals.wcm.util.uri.IRidList docRidList,
IResourceContext context)
Requests proposals for the best categories for the documents and sets these categories automatically as document classification. |
void |
checkUpdateTaxonomyStateDuringStartUp()
only for internal usage |
Collection |
classifyDocuments(IResourceList resourceDocuments,
String taxonomyName)
Classifies documents (which taxonomy class folders do the documents fit best) |
Collection |
classifyDocuments(IResourceList resourceDocuments,
String taxonomyName,
float threshold,
int maxResults)
Classifies documents (which taxonomy class folders do the documents fit best). |
Collection |
classifyDocuments(IResourceList resourceDocuments,
String taxonomyName,
float threshold,
int maxResults,
boolean checkIfInIndex)
Classifies documents (which taxonomy class folders do the documents fit best). |
Collection |
classifyDocuments(IResourceList resourceDocuments,
String taxonomyName,
int maxResults)
Classifies documents (which taxonomy class folders do the documents fit best) |
static void |
clearGuidCache()
only for internal usage |
protected ICollection |
createTaxRmIndexFolder(IResourceContext context)
Creates the folder that represents the index in the taxonomy repository. |
void |
deleteClassificationProperties(IResource resource)
Deletes all classification properties of a document; used to delete properties of old versions Only for internal usage |
void |
deleteIndexTaxDocClassification(com.sapportals.wcm.util.uri.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()
Only for internal usage. |
static void |
getAllCollections(ICollection col,
IResourceList resources)
Coolects all collections below col in resources. |
Collection |
getBestClasses(IResourceList resourceDocuments,
String taxonomyName)
|
Collection |
getBestClasses(IResourceList resourceDocuments,
String taxonomyName,
int maxNumberOfDocs)
|
Collection |
getBestClasses(IResourceList resourceDocuments,
String taxonomyName,
Map thresholds)
This method is not used anywhere. |
Collection |
getBestClassesOld(IResourceList resourceDocuments,
String taxonomyName)
This class is not used because it implements an unreasonable algorithm. |
com.sapportals.wcm.util.uri.IRidList |
getClassDeclassifiedDocuments(com.sapportals.wcm.util.uri.RID categoryRid,
IResourceContext context)
Returns the manyually declassified resourced for the category. |
com.sapportals.wcm.util.uri.IRidList |
getClassDeclassifiedDocuments(com.sapportals.wcm.util.uri.RID categoryRid,
IResourceContext context,
IApplicationProperties appPropService)
Returns the manyually declassified resourced for the category. |
com.sapportals.wcm.util.uri.IRidList |
getClassDocumentRids(ICollection taxonomyClass)
Gets the resource IDs of all documents of a taxonomy class |
com.sapportals.wcm.util.uri.IRidList |
getClassDocumentRids(ICollection taxonomyClass,
List appPropServices)
Gets the resource IDs of all documents of a taxonomy class whereby the parameter appPropServices should contain the application property service. |
com.sapportals.wcm.util.uri.IRidList |
getClassDocumentRids(com.sapportals.wcm.util.uri.RID taxonomyClassRid,
IResourceContext context)
Gets the resource IDs of all documents of a taxonomy class |
com.sapportals.wcm.util.uri.IRidList |
getClassDocumentRids(com.sapportals.wcm.util.uri.RID taxonomyClassRid,
IResourceContext context,
List appPropertyServices)
Gets the resource IDs of all documents of a taxonomy class whereby the parameter appPropServices should contain the application property service. |
IResourceList |
getClassDocuments(ICollection taxonomyClass)
Gets all documents of a taxonomy class |
IResourceList |
getClassDocuments(com.sapportals.wcm.util.uri.RID taxonomyClassRid,
IResourceContext context)
Gets all documents of a taxonomy class |
List |
getClassesStringList(IDocClassificationMap documentClassification)
List of strings representing the classes in the parameter. |
com.sapportals.wcm.util.uri.IRidList |
getClassTrainingDocuments(com.sapportals.wcm.util.uri.RID categoryRid,
IResourceContext context)
Returns the training documents of a category. |
com.sapportals.wcm.util.uri.IRidList |
getClassTrainingDocuments(com.sapportals.wcm.util.uri.RID categoryRid,
IResourceContext context,
IApplicationProperties appPropService)
Returns the training documents of a category. |
IDocClassificationMap |
getDocClassification(IResource document)
Gets the classification that has been set for the document. |
IDocClassificationMap |
getDocClassification(IResource document,
IResourceContext context)
Gets the classification that has been set for the document. |
IDocClassificationMapList |
getDocListClassification(IResourceList documents)
Gets the classifications that have been set for the documents. |
IDocClassificationMapList |
getDocListClassification(IResourceList documents,
IResourceContext context)
Gets the classifications that have been set for the documents. |
Map |
getDocumentClassification(IResource document)
Deprecated. as of NW04. Use getDocClassification(IResource) |
ClassificationStatus |
getDocumentClassificationStatus(IResource document,
String taxonomyName)
Deprecated. use new enums package for jdk 1.5 compatibility |
ClassificationStatus |
getDocumentClassificationStatusNewEnum(IResource document,
String taxonomyName)
Gets the classification status of a document for a taxonomy |
static com.sapportals.wcm.util.uri.RID |
getDocumentReplaceName(com.sapportals.wcm.util.uri.RID documentRid)
only for internal usage |
com.sapportals.wcm.util.uri.IRidList |
getDocumentRidsNeverToClassify(String taxonomyName,
IResourceContext context)
Gets all rids of documents of an index that have the status "never to classify" within a taxonomy |
com.sapportals.wcm.util.uri.IRidList |
getDocumentRidsToClassify(String taxonomyName,
IResourceContext context)
Gets all rids of documents of an index that have the status "to classify" within a taxonomy |
IResourceList |
getDocumentsNeverToClassify(String taxonomyName)
Deprecated. as of NW04. |
IResourceList |
getDocumentsNeverToClassify(String taxonomyName,
IResourceContext context)
Gets all documents of an index that have the status "never to classify" within a taxonomy |
IResourceList |
getDocumentsToClassify(String taxonomyName)
Deprecated. as of NW04. |
IResourceList |
getDocumentsToClassify(String taxonomyName,
IResourceContext context)
Gets all documents of an index that have the status "to classify" within a taxonomy |
static com.sapportals.wcm.util.uri.RID |
getDocumentTaxRMRid(com.sapportals.wcm.util.uri.RID taxonomyClassRid,
com.sapportals.wcm.util.uri.RID documentRid)
only for internal usage |
static Map |
getDocumentTaxRMRids(com.sapportals.wcm.util.uri.RID taxonomyClassRid,
IResourceList documents)
only for internal usage |
com.sapportals.wcm.util.uri.IRidList |
getDocumentTrainingClasses(IResource document)
|
com.sapportals.wcm.util.uri.IRidList |
getManuallyDeclassifiedClasses(IResource document)
|
static IPropertyName |
getPropertyNameManuallyDeclassifiedClasses()
|
protected IPropertyName |
getPropertyNameTaxonomy(String taxonomyName)
|
static IPropertyName |
getPropertyNameTrainingClasses()
|
IQueryFolder |
getQueryFolder(com.sapportals.wcm.util.uri.RID taxonomyClassRid)
Gets a query folder instance |
static com.sapportals.wcm.util.uri.RID |
getRIDFromConstantID(String guid)
only for internal usage |
com.sapportals.wcm.util.uri.RID |
getSpecialFolderRID(String taxonomyName,
SpecialFolder specialFolderType)
|
static com.sapportals.wcm.util.uri.RID |
getTargetRIDFromReplaceName(com.sapportals.wcm.util.uri.RID linkRid)
only for internal usage |
List |
getTaxonomies()
Get the Taxonomies attribute of the AbstractClassificationIndex object. |
BestClassesSensitivity |
getTaxonomyBestClassesSensitivity(String taxonomyName)
Gets the sensitivity level of the best classes algorithm |
float |
getTaxonomyBestClassesSensitivityValue(String taxonomyName)
Returns the threshold value used for the taxonomy. |
float |
getTaxonomyClassificationThreshold(String taxonomyName,
String thresholdId)
Gets the threshold of a taxonomy |
String |
getTaxonomyRmPrefix()
Get the TaxonomyRmPrefix attribute of the AbstractClassificationIndex object. |
com.sapportals.wcm.util.uri.RID |
getTaxonomyTrainingRid(String taxonomyName)
Gets the uri of the root folder of the hierarchy that has been used to train/create the given taxonomy. |
com.sapportals.wcm.util.uri.URI |
getTaxonomyTrainingUri(String taxonomyName)
Deprecated. as of NW04. Use getTaxonomyTrainingRid(String) |
TaxonomyType |
getTaxonomyType(String taxonomyName)
Deprecated. use new enums package for jdk 1.5 compatibility |
TaxonomyType |
getTaxonomyTypeNewEnum(String taxonomyName)
|
UpdateTaxonomyState |
getUpdateTaxonomyState(String taxonomyName)
Returns the status of the taxonomy with respect to an update operation. |
UpdateTaxonomyState |
getUpdateTaxonomyState(String taxonomyName,
Locale locale)
Returns the status of the taxonomy with respect to an update operation. |
boolean |
hasTaxonomy(String name)
Returns true if the index has a taxonomy with the specified name. |
void |
indexDocument(IResource resource,
String taxonomyName,
com.sapportals.wcm.util.uri.IRidList taxonomyClasses,
boolean isSearchRelevant)
indexes a document (method for internal use) |
void |
indexDocument(IResource resource,
String taxonomyName,
com.sapportals.wcm.util.uri.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,
String taxonomyName,
com.sapportals.wcm.util.uri.IRidList taxonomyClasses,
boolean isSearchRelevant)
Indexes a list of documents (method for internal use) |
void |
indexDocuments(IResourceList resources,
String taxonomyName,
com.sapportals.wcm.util.uri.IUriList taxonomyClasses,
boolean isSearchRelevant)
Deprecated. as of NW04. Use indexDocuments(IResourceList, String, IRidList, boolean) |
void |
indexManualTrainDocs()
Only for internal usage. |
void |
initTaxonomies(List taxonomies)
Sets the index taxonomies initially before generating the index. |
protected Map |
internalClassifyDocuments(IResource resource,
List taxonomies,
float threshold,
int maxResults)
|
protected Collection |
internalClassifyDocuments(IResourceList resourceDocuments,
String taxonomyName,
float threshold,
int maxResults)
Classifies documents (which taxonomy class folders do the documents fit best) |
protected Collection |
internalClassifyDocuments(IResourceList resourceDocuments,
String taxonomyName,
float threshold,
int maxResults,
boolean checkIfInIndex)
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,
String taxonomyName,
com.sapportals.wcm.util.uri.IRidList taxonomyClasses,
IResourceEvent resourceEvent,
boolean isSearchRelevant,
boolean reindexMode,
boolean sendLinkEvents)
Indexes a list of documents (method for internal use) |
boolean |
isDocClassifiedInAnyTax(IResource resource)
Checks if the resource is assigned to any category. |
boolean |
isIndexOnlyClassifiedDocs()
Returns true, if only documents are indexed, which could be assigned to categories. |
boolean |
isManuallyDeclassifiedDocument(IResource document,
com.sapportals.wcm.util.uri.RID taxonomyClassRid)
|
boolean |
isTrainingDocument(IResource document,
com.sapportals.wcm.util.uri.RID taxonomyClassRid)
|
static com.sapportals.wcm.util.uri.RID |
makeDocTaxRmRid(com.sapportals.wcm.util.uri.RID taxonomyClassRid,
com.sapportals.wcm.util.uri.RID documentRid,
String docGuid)
only for internal usage |
boolean |
multiTaxonomyClassificationPossible()
Returns true if the index support classification calls for more than one taxonomy |
protected boolean |
reindexTrainingResources(IIndexFolderList preClearIndexFolders)
Only for internal usage. |
void |
removeCategoryAssignments(ICollection deletedCategoryFolder)
Removes the assignment of all documents of the index to a category. |
protected void |
removeResourceFromClassificationIndex(com.sapportals.wcm.util.uri.RID resourceRID,
IResourceContext context)
Removes a resource from the list of resources that are indexed in the index. |
void |
removeTaxonomy(String taxonomy)
Deprecated. as of NW04. Use removeTaxonomy(String,IResourceContext) |
void |
removeTaxonomy(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,
String notToSend)
Stores the document classification that has been choosen by manual or automatic classification. |
void |
setDocClassification(IDocClassificationMap documentClassificationMap,
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,
Map classification)
Deprecated. as of NW04. Use setDocClassification(IResource,Map) |
void |
setDocumentClassification(IResource document,
Map classification,
boolean indexDocumentClassification)
Deprecated. as of NW04. Use setDocClassification(IResource,Map,boolean) |
void |
setDocumentClassification(IResource document,
Map classification,
boolean indexDocumentClassification,
boolean isTrainingDocument)
Deprecated. as of NW04. Use setDocClassification(IResource,Map,boolean, boolean) |
void |
setDocumentClassificationStatus(IResourceList documents,
String taxonomyName,
ClassificationStatus status)
Sets the classification status for a list of documents for a taxonomy. |
void |
setDocumentClassificationStatus(IResource document,
String taxonomyName,
ClassificationStatus status)
Sets the classification status of a document for a taxonomy |
void |
setDocumentClassificationStatus(IResource document,
String taxonomyName,
ClassificationStatus status,
boolean sendEvents,
String notToSend)
Sets the classification status of a document for a taxonomy |
void |
setDocumentClassificationStatus(IResource document,
String taxonomyName,
ClassificationStatus status,
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 |
setOnlyAppPropertyDocClassificationStatus(IResource document,
String taxonomyName,
ClassificationStatus status)
Only for internal usage. |
void |
setQueryFolderExternalFast(IQueryFolder queryFolder,
IQueryEntryList query)
only for internal usage |
void |
setTaxonomyBestClassesSensitivity(String taxonomyName,
BestClassesSensitivity sensitivity)
Sets the threshold of a taxonomy |
void |
setTaxonomyClassificationThreshold(String taxonomyName,
String thresholdId,
float threshold)
Set the TaxonomyClassificationThreshold attribute of the AbstractClassificationIndex object. |
void |
setTaxonomyTrainingRid(String taxonomyName,
com.sapportals.wcm.util.uri.RID trainingRid)
Set the TaxonomyTrainingUri attribute of the AbstractClassificationIndex object. |
void |
setTaxonomyTrainingUri(String taxonomyName,
com.sapportals.wcm.util.uri.URI trainingUri)
Deprecated. as of NW04. Use setTaxonomyTrainingRid(String,RID) |
void |
setTaxonomyType(String taxonomyName,
TaxonomyType taxonomyType)
Deprecated. use new enums package for jdk 1.5 compatibility |
void |
setUpdateTaxonomyState(String state,
String taxonomyName,
int visitedCategories,
int catgoriesToUpdate,
int allCategories)
only for internal usage |
void |
synchronizeTaxonomyMetaData(String taxonomyName)
Rebuilds the taxonomy meta data on the classification engine. |
Map |
unfilteredClassifyDocuments(IResource resource,
List taxonomies,
float threshold,
int maxResults)
Classifies document according several taxonomies (which taxonomy class folders do the document fit best) |
Collection |
unfilteredClassifyDocuments(IResourceList resourceDocuments,
String taxonomyName,
float threshold,
int maxResults)
Classifies documents (which taxonomy class folders do the documents fit best) |
abstract void |
updateCategoryContents(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 String m_taxonomyRmPrefix
protected static boolean m_useBestClasses
protected Map m_inboxFiller
| Constructor Detail |
|---|
public AbstractClassificationIndex(String indexId,
String indexName,
String indexGroup,
IIndexFolderList indexFolders,
String serviceId,
String serviceUserId,
Properties indexServiceProperties)
throws com.sapportals.wcm.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 index
com.sapportals.wcm.WcmException - Exception raised in failure situation
public AbstractClassificationIndex(String indexId,
String indexName,
String indexGroup,
IIndexFolderList indexFolders,
String serviceId,
String crawlerProfileId,
String serviceUserId,
Properties indexServiceProperties)
throws com.sapportals.wcm.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 index
com.sapportals.wcm.WcmException - Exception raised in failure situation| Method Detail |
|---|
public void setDocumentClassification(IResource document,
Map classification)
throws com.sapportals.wcm.WcmException
document - The new DocumentClassification valueclassification - The new DocumentClassification value
com.sapportals.wcm.WcmException - Exception raised in failure situation
public void setDocumentClassification(IResource document,
Map classification,
boolean indexDocumentClassification)
throws com.sapportals.wcm.WcmException
document - The new DocumentClassification valueclassification - The new DocumentClassification valueindexDocumentClassification - The new DocumentClassification value
com.sapportals.wcm.WcmException - Exception raised in failure situation
public void setDocumentClassification(IResource document,
Map classification,
boolean indexDocumentClassification,
boolean isTrainingDocument)
throws com.sapportals.wcm.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 index
com.sapportals.wcm.WcmException - Exception raised in failure situation
public boolean isTrainingDocument(IResource document,
com.sapportals.wcm.util.uri.RID taxonomyClassRid)
throws com.sapportals.wcm.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.
com.sapportals.wcm.WcmException
public boolean isDocClassifiedInAnyTax(IResource resource)
throws com.sapportals.wcm.WcmException
resource -
com.sapportals.wcm.WcmException
public boolean isManuallyDeclassifiedDocument(IResource document,
com.sapportals.wcm.util.uri.RID taxonomyClassRid)
throws com.sapportals.wcm.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.
com.sapportals.wcm.WcmException
public void setTaxonomyClassificationThreshold(String taxonomyName,
String thresholdId,
float threshold)
throws com.sapportals.wcm.WcmException
taxonomyName - The new TaxonomyClassificationThreshold valuethresholdId - The new TaxonomyClassificationThreshold valuethreshold - The new TaxonomyClassificationThreshold value
com.sapportals.wcm.WcmException - Exception raised in failure situation
public void setTaxonomyTrainingUri(String taxonomyName,
com.sapportals.wcm.util.uri.URI trainingUri)
throws com.sapportals.wcm.WcmException
taxonomyName - The new TaxonomyTrainingUri valuetrainingUri - The new TaxonomyTrainingUri value
com.sapportals.wcm.WcmException - Exception raised in failure situation
public void setTaxonomyTrainingRid(String taxonomyName,
com.sapportals.wcm.util.uri.RID trainingRid)
throws com.sapportals.wcm.WcmException
taxonomyName - The new TaxonomyTrainingRid valuetrainingRid - The new TaxonomyTrainingRid value
com.sapportals.wcm.WcmException - Exception raised in failure situation
public void setTaxonomyBestClassesSensitivity(String taxonomyName,
BestClassesSensitivity sensitivity)
throws com.sapportals.wcm.WcmException
taxonomyName - name of the taxonomy (must exist for index)sensitivity - The new TaxonomyBestClassesSensitivity value
com.sapportals.wcm.WcmException - Exception raised in failure situationpublic boolean hasTaxonomy(String name)
name -
public List getTaxonomies()
public Map getDocumentClassification(IResource document)
throws com.sapportals.wcm.WcmException
document - Document to get the classification for
com.sapportals.wcm.WcmException - Exception raised in failure situation
public float getTaxonomyClassificationThreshold(String taxonomyName,
String thresholdId)
throws com.sapportals.wcm.WcmException
taxonomyName - name of the taxonomy (must exist for index)thresholdId - Constant IClassificationIndex.PROP_NAME_THRESHOLD_LEVEL1 or
IClassificationIndex.PROP_NAME_THRESHOLD_LEVEL2
com.sapportals.wcm.WcmException - Exception raised in failure situation
public com.sapportals.wcm.util.uri.URI getTaxonomyTrainingUri(String taxonomyName)
throws com.sapportals.wcm.WcmException
com.sapportals.wcm.WcmException
public com.sapportals.wcm.util.uri.RID getTaxonomyTrainingRid(String taxonomyName)
throws com.sapportals.wcm.WcmException
taxonomyName - name of the taxonomy (must exist for index)
com.sapportals.wcm.WcmException - Exception raised in failure situationpublic String getTaxonomyRmPrefix()
public IResourceList getClassDocuments(ICollection taxonomyClass)
throws com.sapportals.wcm.WcmException,
ResourceException
taxonomyClass - the taxonomy class folder you want to have documents for
com.sapportals.wcm.WcmException - Exception raised in failure situation
ResourceException - Exception raised in failure situation
public IResourceList getClassDocuments(com.sapportals.wcm.util.uri.RID taxonomyClassRid,
IResourceContext context)
throws com.sapportals.wcm.WcmException,
ResourceException
taxonomyClassRid - resource ID of the taxonomy class you want to have documents forcontext - user context
com.sapportals.wcm.WcmException - Exception raised in failure situation
ResourceException - Exception raised in failure situation
public com.sapportals.wcm.util.uri.IRidList getClassDocumentRids(ICollection taxonomyClass)
throws com.sapportals.wcm.WcmException,
ResourceException
taxonomyClass - the taxonomy class folder you want to have documents for
com.sapportals.wcm.WcmException - Exception raised in failure situation
ResourceException - Exception raised in failure situation
public com.sapportals.wcm.util.uri.IRidList getClassDocumentRids(ICollection taxonomyClass,
List appPropServices)
throws com.sapportals.wcm.WcmException,
ResourceException
taxonomyClass - appPropServices -
com.sapportals.wcm.WcmException
ResourceException
public com.sapportals.wcm.util.uri.IRidList getClassDocumentRids(com.sapportals.wcm.util.uri.RID taxonomyClassRid,
IResourceContext context)
throws com.sapportals.wcm.WcmException
taxonomyClassRid - resource ID of the taxonomy class you want to have documents forcontext - user context
com.sapportals.wcm.WcmException - Exception raised in failure situation
ResourceException - Exception raised in failure situation
public com.sapportals.wcm.util.uri.IRidList getClassDocumentRids(com.sapportals.wcm.util.uri.RID taxonomyClassRid,
IResourceContext context,
List appPropertyServices)
throws com.sapportals.wcm.WcmException
taxonomyClassRid - context - appPropertyServices -
com.sapportals.wcm.WcmException
public Collection getBestClassesOld(IResourceList resourceDocuments,
String taxonomyName)
throws com.sapportals.wcm.WcmException
resourceDocuments - Resource list of documents you want to classifytaxonomyName - taxonomy for that the best classes have to be proposed for
com.sapportals.wcm.WcmException - Exception raised in failure situation
public Collection getBestClasses(IResourceList resourceDocuments,
String taxonomyName)
throws com.sapportals.wcm.WcmException
resourceDocuments - Resource list of documents you want to classifytaxonomyName - taxonomy for that the best classes have to be proposed for
com.sapportals.wcm.WcmException - Exception raised in failure situation
public Collection getBestClasses(IResourceList resourceDocuments,
String taxonomyName,
int maxNumberOfDocs)
throws com.sapportals.wcm.WcmException
resourceDocuments - Resource list of documents you want to classifytaxonomyName - taxonomy for that the best classes have to be proposed fortaxonomyName - max number of results per document
com.sapportals.wcm.WcmException - Exception raised in failure situation
public Collection getBestClasses(IResourceList resourceDocuments,
String taxonomyName,
Map thresholds)
throws com.sapportals.wcm.WcmException
resourceDocuments - Resource list of documents you want to classifytaxonomyName - taxonomy for that the best classes have to be proposed forthresholds - class specific thresholds
com.sapportals.wcm.WcmException - Exception raised in failure situation
public BestClassesSensitivity getTaxonomyBestClassesSensitivity(String taxonomyName)
throws com.sapportals.wcm.WcmException
taxonomyName - name of the taxonomy (must exist for index)
com.sapportals.wcm.WcmException - Exception raised in failure situation
public float getTaxonomyBestClassesSensitivityValue(String taxonomyName)
throws com.sapportals.wcm.WcmException
taxonomyName -
com.sapportals.wcm.WcmExceptionpublic void initTaxonomies(List taxonomies)
taxonomies - list of taxonomy namespublic void removeTaxonomy(String taxonomy)
removeTaxonomy(String,IResourceContext)
taxonomyName - name of the taxonomy to remove
public void removeTaxonomy(String taxonomy,
IResourceContext context)
throws com.sapportals.wcm.WcmException
taxonomyName - name of the taxonomy to remove
com.sapportals.wcm.WcmException
public void addTaxonomy(String taxonomy)
throws com.sapportals.wcm.WcmException
addTaxonomy(String,IResourceContext)
taxonomy - Taxonomy to be added
com.sapportals.wcm.WcmException - Exception raised in failure situation
public void addTaxonomy(String taxonomy,
IResourceContext context)
throws com.sapportals.wcm.WcmException
taxonomy - Taxonomy to be added
com.sapportals.wcm.WcmException - Exception raised in failure situation
public void indexDocuments(IResourceList resources,
String taxonomyName,
com.sapportals.wcm.util.uri.IUriList taxonomyClasses,
boolean isSearchRelevant)
throws ResourceException,
com.sapportals.wcm.WcmException,
IOException
ResourceException
com.sapportals.wcm.WcmException
IOException
public void indexDocuments(IResourceList resources,
String taxonomyName,
com.sapportals.wcm.util.uri.IRidList taxonomyClasses,
boolean isSearchRelevant)
throws ResourceException,
com.sapportals.wcm.WcmException,
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 classes
ResourceException - Exception raised in failure situation
com.sapportals.wcm.WcmException - Exception raised in failure situation
IOException - Exception raised in failure situation
public void indexDocument(IResource resource,
String taxonomyName,
com.sapportals.wcm.util.uri.IUriList taxonomyClasses,
boolean isSearchRelevant)
throws ResourceException,
com.sapportals.wcm.WcmException,
IOException
ResourceException
com.sapportals.wcm.WcmException
IOException
public void indexDocuments(IResourceList resources)
throws ResourceException,
com.sapportals.wcm.WcmException,
IOException
indexDocuments in interface IIndexindexDocuments 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 results
ResourceException - Exception raised in failure situation
com.sapportals.wcm.WcmException - Exception raised in failure situation
IOException - Exception raised in failure situation
public void indexDocuments(IResourceList resources,
boolean reindexMode,
boolean sendLinkEvents)
throws ResourceException,
com.sapportals.wcm.WcmException,
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 results
ResourceException - Exception raised in failure situation
com.sapportals.wcm.WcmException - Exception raised in failure situation
IOException - Exception raised in failure situation
public void indexDocument(IResource resource,
String taxonomyName,
com.sapportals.wcm.util.uri.IRidList taxonomyClasses,
boolean isSearchRelevant)
throws ResourceException,
com.sapportals.wcm.WcmException,
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 classes
ResourceException - Exception raised in failure situation
com.sapportals.wcm.WcmException - Exception raised in failure situation
IOException - Exception raised in failure situation
public Collection classifyDocuments(IResourceList resourceDocuments,
String taxonomyName,
int maxResults)
throws com.sapportals.wcm.WcmException
resourceDocuments - Resource list of documents you want to classifymaxResults - maximum number of returned taxonomy classestaxonomyName - name of the taxonomy where
com.sapportals.wcm.WcmException - Exception raised in failure situation
public Collection classifyDocuments(IResourceList resourceDocuments,
String taxonomyName)
throws com.sapportals.wcm.WcmException
resourceDocuments - Resource list of documents you want to classifytaxonomyName - name of the taxonomy for that classification proposals have to be found
com.sapportals.wcm.WcmException - Exception raised in failure situation
public Collection unfilteredClassifyDocuments(IResourceList resourceDocuments,
String taxonomyName,
float threshold,
int maxResults)
throws com.sapportals.wcm.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 found
com.sapportals.wcm.WcmException - Exception raised in failure situation
public Map unfilteredClassifyDocuments(IResource resource,
List taxonomies,
float threshold,
int maxResults)
throws com.sapportals.wcm.WcmException
resource - Resource you want to classifytaxonomies - name of the taxonomies for which classification proposals have to be foundthreshold - lowest rank value of a returned taxonomy classmaxResults - maximum number of returned taxonomy classes
com.sapportals.wcm.WcmException - Exception raised in failure situation
public Collection classifyDocuments(IResourceList resourceDocuments,
String taxonomyName,
float threshold,
int maxResults)
throws com.sapportals.wcm.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 found
com.sapportals.wcm.WcmException - Exception raised in failure situation
public Collection classifyDocuments(IResourceList resourceDocuments,
String taxonomyName,
float threshold,
int maxResults,
boolean checkIfInIndex)
throws com.sapportals.wcm.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 foundcheckIfInIndex - if true it is checked if the current version of the document is already in the index; then the document has not to be preprocessed again
com.sapportals.wcm.WcmException - Exception raised in failure situation
protected Collection internalClassifyDocuments(IResourceList resourceDocuments,
String taxonomyName,
float threshold,
int maxResults)
throws com.sapportals.wcm.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 found
com.sapportals.wcm.WcmException - Exception raised in failure situation
protected Collection internalClassifyDocuments(IResourceList resourceDocuments,
String taxonomyName,
float threshold,
int maxResults,
boolean checkIfInIndex)
throws com.sapportals.wcm.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 foundcheckIfInIndex - if true it is checked if the current version of the document is already in the index; then the document has not to be preprocessed again
com.sapportals.wcm.WcmException - Exception raised in failure situation
protected Map internalClassifyDocuments(IResource resource,
List taxonomies,
float threshold,
int maxResults)
throws com.sapportals.wcm.WcmException
com.sapportals.wcm.WcmExceptionpublic boolean useBestClasses()
protected abstract void internalIndexDocuments(IResourceList resources,
String taxonomyName,
com.sapportals.wcm.util.uri.IRidList taxonomyClasses,
IResourceEvent resourceEvent,
boolean isSearchRelevant,
boolean reindexMode,
boolean sendLinkEvents)
throws ResourceException,
com.sapportals.wcm.WcmException,
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 classes
ResourceException - Exception raised in failure situation
com.sapportals.wcm.WcmException - Exception raised in failure situation
IOException - Exception raised in failure situation
protected void internalIndexDocuments(IResourceList resources,
IResourceEvent resourceEvent)
throws ResourceException,
com.sapportals.wcm.WcmException,
IOException
internalIndexDocuments in class AbstractIndexresources - list of resources to indexresourceEvent - event that caused the index request
ResourceException - Exception raised in failure situation
com.sapportals.wcm.WcmException - Exception raised in failure situation
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
public void finishXPostClear()
throws com.sapportals.wcm.WcmException
com.sapportals.wcm.WcmException
protected boolean reindexTrainingResources(IIndexFolderList preClearIndexFolders)
throws com.sapportals.wcm.WcmException
preClearIndexFolders -
com.sapportals.wcm.WcmException
public void indexManualTrainDocs()
throws com.sapportals.wcm.WcmException
com.sapportals.wcm.WcmException
public ClassificationStatus getDocumentClassificationStatus(IResource document,
String taxonomyName)
throws com.sapportals.wcm.WcmException
document - document to get the classification status fortaxonomyName - name of the taxonomy
com.sapportals.wcm.WcmException
public ClassificationStatus getDocumentClassificationStatusNewEnum(IResource document,
String taxonomyName)
throws com.sapportals.wcm.WcmException
document - document to get the classification status fortaxonomyName - name of the taxonomy
com.sapportals.wcm.WcmException
public void setOnlyAppPropertyDocClassificationStatus(IResource document,
String taxonomyName,
ClassificationStatus status)
throws com.sapportals.wcm.WcmException
document - taxonomyName - status -
com.sapportals.wcm.WcmException
public void addOnlyAppPropManAssigned(IResource document,
com.sapportals.wcm.util.uri.RID category)
throws com.sapportals.wcm.WcmException
document - category -
com.sapportals.wcm.WcmException
public void addOnlyAppPropManDeclassified(IResource document,
com.sapportals.wcm.util.uri.RID category)
throws com.sapportals.wcm.WcmException
document - category -
com.sapportals.wcm.WcmException
public void setDocumentClassificationStatus(IResource document,
String taxonomyName,
ClassificationStatus status)
throws com.sapportals.wcm.WcmException
document - document to get the classification status fortaxonomyName - name of the taxonomythe - documents classification status in the taxonomy
com.sapportals.wcm.WcmException
public void setDocumentClassificationStatus(IResource document,
String taxonomyName,
ClassificationStatus status,
String notToSend)
throws com.sapportals.wcm.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
com.sapportals.wcm.WcmException
public void setDocumentClassificationStatus(IResource document,
String taxonomyName,
ClassificationStatus status,
boolean sendEvents,
String notToSend)
throws com.sapportals.wcm.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
com.sapportals.wcm.WcmException
public void setDocumentClassificationStatus(IResourceList documents,
String taxonomyName,
ClassificationStatus status)
throws com.sapportals.wcm.WcmException
documents - documents to set the classification status fortaxonomyName - name of the taxonomythe - documents classification status in the taxonomy
com.sapportals.wcm.WcmException
public IResourceList getDocumentsToClassify(String taxonomyName)
throws com.sapportals.wcm.WcmException
taxonomyName - name of the taxonomy for that the documents that are to classify should be returned
com.sapportals.wcm.WcmException
public IResourceList getDocumentsToClassify(String taxonomyName,
IResourceContext context)
throws com.sapportals.wcm.WcmException
taxonomyName - name of the taxonomy for that the documents that are to classify should be returnedcontext - user context
com.sapportals.wcm.WcmException
public IResourceList getDocumentsNeverToClassify(String taxonomyName,
IResourceContext context)
throws com.sapportals.wcm.WcmException
taxonomyName - name of the taxonomy for that the documents that are never to be classified should be returnedcontext - user context
com.sapportals.wcm.WcmException
public IResourceList getDocumentsNeverToClassify(String taxonomyName)
throws com.sapportals.wcm.WcmException
taxonomyName - name of the taxonomy for that the documents that are never to be classified should be returned
com.sapportals.wcm.WcmException
public com.sapportals.wcm.util.uri.IRidList getDocumentRidsToClassify(String taxonomyName,
IResourceContext context)
throws com.sapportals.wcm.WcmException
taxonomyName - name of the taxonomy for that the documents that are to classify should be returnedcontext - user context
com.sapportals.wcm.WcmException
public com.sapportals.wcm.util.uri.IRidList getDocumentRidsNeverToClassify(String taxonomyName,
IResourceContext context)
throws com.sapportals.wcm.WcmException
taxonomyName - name of the taxonomy for that the documents that are never to be classified should be returnedcontext - user context
com.sapportals.wcm.WcmException
public com.sapportals.wcm.util.uri.RID getSpecialFolderRID(String taxonomyName,
SpecialFolder specialFolderType)
throws com.sapportals.wcm.WcmException
taxonomyName - name of the taxonomyspecialFolderType - type of special folder
com.sapportals.wcm.WcmException
public IDocClassificationMap getDocClassification(IResource document)
throws com.sapportals.wcm.WcmException
document - document for that the classification has to be returned
com.sapportals.wcm.WcmException - Exception raised in failure situation
public IDocClassificationMap getDocClassification(IResource document,
IResourceContext context)
throws com.sapportals.wcm.WcmException
document - document for that the classification has to be returnedcontext -
com.sapportals.wcm.WcmException - Exception raised in failure situation
public IDocClassificationMapList getDocListClassification(IResourceList documents)
throws com.sapportals.wcm.WcmException
documents - list of documents for that the classification has to be returned
com.sapportals.wcm.WcmException - Exception raised in failure situation.
public IDocClassificationMapList getDocListClassification(IResourceList documents,
IResourceContext context)
throws com.sapportals.wcm.WcmException
documents - list of documents for that the classification has to be returnedcontext -
com.sapportals.wcm.WcmException - Exception raised in failure situation.
public void setDocClassification(IDocClassificationMap documentClassificationMap)
throws com.sapportals.wcm.WcmException
documentClassificationMap - container with the document and its classification for all taxonomies
com.sapportals.wcm.WcmException - Exception raised in failure situation
public void setDocClassification(IDocClassificationMap documentClassificationMap,
String notToSend)
throws com.sapportals.wcm.WcmException
documentClassificationMap - container with the document and its classification for all taxonomiesnotToSend - String describing an event, which should be suppressed
com.sapportals.wcm.WcmException - Exception raised in failure situation
public void setDocClassification(IDocClassificationMap documentClassificationMap,
boolean indexDocumentClassification)
throws com.sapportals.wcm.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.
com.sapportals.wcm.WcmException - Exception raised in failure situation
public void setDocClassification(IDocClassificationMap documentClassificationMap,
boolean indexDocumentClassification,
boolean isTrainingDocument)
throws com.sapportals.wcm.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 index
com.sapportals.wcm.WcmException - Exception raised in failure situation
public void setDocClassification(IDocClassificationMap documentClassificationMap,
boolean indexDocumentClassification,
boolean isTrainingDocument,
boolean sendLinkEvents)
throws com.sapportals.wcm.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 send
com.sapportals.wcm.WcmException - Exception raised in failure situation
public void setDocClassification(IDocClassificationMap documentClassificationMap,
boolean indexDocumentClassification,
boolean isTrainingDocument,
boolean sendLinkEvents,
String notToSend)
throws com.sapportals.wcm.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 suppressed
com.sapportals.wcm.WcmException - Exception raised in failure situationpublic List getClassesStringList(IDocClassificationMap documentClassification)
documentClassification -
public void setDocListClassification(IDocClassificationMapList documentClassificationMapList)
throws com.sapportals.wcm.WcmException
documentClassificationMapList - list of containers with the document and its classification for all taxonomies
com.sapportals.wcm.WcmException - Exception raised in failure situation
public void setTaxonomyType(String taxonomyName,
TaxonomyType taxonomyType)
throws com.sapportals.wcm.WcmException
taxonomyName - name of the taxonomytaxonomyType - new taxonomy type
com.sapportals.wcm.WcmException
public void setIndexOnlyClassifiedDocs(boolean indexOnlyClassifiedDocs)
throws com.sapportals.wcm.WcmException
indexOnlyClassifiedDocs -
com.sapportals.wcm.WcmException
public TaxonomyType getTaxonomyType(String taxonomyName)
throws com.sapportals.wcm.WcmException
taxonomyName - the name of the taxonomy
com.sapportals.wcm.WcmException
public TaxonomyType getTaxonomyTypeNewEnum(String taxonomyName)
throws com.sapportals.wcm.WcmException
taxonomyName - the name of the taxonomy
com.sapportals.wcm.WcmException
public boolean isIndexOnlyClassifiedDocs()
throws com.sapportals.wcm.WcmException
com.sapportals.wcm.WcmException
public IQueryFolder getQueryFolder(com.sapportals.wcm.util.uri.RID taxonomyClassRid)
throws com.sapportals.wcm.WcmException
taxonomyClassRid - rid of the taxonomy class that is the query folder
com.sapportals.wcm.WcmException
public com.sapportals.wcm.util.uri.IRidList getDocumentTrainingClasses(IResource document)
throws com.sapportals.wcm.WcmException
document - document for that the training classes have to be returned
com.sapportals.wcm.WcmException
public com.sapportals.wcm.util.uri.IRidList getManuallyDeclassifiedClasses(IResource document)
throws com.sapportals.wcm.WcmException
document - document for that the manually declassified classes have to be returned
com.sapportals.wcm.WcmException
public void autoClassifyDocs(String taxonomyName,
com.sapportals.wcm.util.uri.IRidList docRidList,
IResourceContext context)
throws com.sapportals.wcm.WcmException
taxonomyName - name of the taxonomydocRidList - list IDs of documents of a taxonomy to be reclassifiedcontext - user context
com.sapportals.wcm.WcmException
public void autoClassifyDocs(String taxonomyName,
IResourceList docList,
IResourceContext context)
throws com.sapportals.wcm.WcmException
taxonomyName - name of the taxonomydocList - list of documents of a taxonomy to be reclassifiedcontext - user context
com.sapportals.wcm.WcmException
public void autoClassifyDocs(String taxonomyName,
IResourceContext context)
throws com.sapportals.wcm.WcmException
taxonomyName - name of the taxonomycontext - user context
com.sapportals.wcm.WcmException
protected void deleteTaxRmIndexFolder(IResourceContext context)
throws com.sapportals.wcm.WcmException
IClassificationIndex.
com.sapportals.wcm.WcmException
protected ICollection createTaxRmIndexFolder(IResourceContext context)
throws com.sapportals.wcm.WcmException
IClassificationIndex.
com.sapportals.wcm.WcmException
public void removeCategoryAssignments(ICollection deletedCategoryFolder)
throws com.sapportals.wcm.WcmException
deletedTaxClassFolder - category that has been deleted
com.sapportals.wcm.WcmException
public void deleteIndexTaxDocClassification(com.sapportals.wcm.util.uri.IRidList documentIDs)
throws com.sapportals.wcm.WcmException
documentIDs - documents for that the classification has to be removed
com.sapportals.wcm.WcmException
protected IPropertyName getPropertyNameTaxonomy(String taxonomyName)
throws com.sapportals.wcm.WcmException
com.sapportals.wcm.WcmException
public static IPropertyName getPropertyNameTrainingClasses()
throws com.sapportals.wcm.WcmException
com.sapportals.wcm.WcmException
public static IPropertyName getPropertyNameManuallyDeclassifiedClasses()
throws com.sapportals.wcm.WcmException
com.sapportals.wcm.WcmException
public com.sapportals.wcm.util.uri.IRidList getClassTrainingDocuments(com.sapportals.wcm.util.uri.RID categoryRid,
IResourceContext context)
throws com.sapportals.wcm.WcmException
categoryRid - context -
com.sapportals.wcm.WcmException
public com.sapportals.wcm.util.uri.IRidList getClassTrainingDocuments(com.sapportals.wcm.util.uri.RID categoryRid,
IResourceContext context,
IApplicationProperties appPropService)
throws com.sapportals.wcm.WcmException
categoryRid - context - appPropService -
com.sapportals.wcm.WcmException
public com.sapportals.wcm.util.uri.IRidList getClassDeclassifiedDocuments(com.sapportals.wcm.util.uri.RID categoryRid,
IResourceContext context)
throws com.sapportals.wcm.WcmException
categoryRid - context -
com.sapportals.wcm.WcmException
public com.sapportals.wcm.util.uri.IRidList getClassDeclassifiedDocuments(com.sapportals.wcm.util.uri.RID categoryRid,
IResourceContext context,
IApplicationProperties appPropService)
throws com.sapportals.wcm.WcmException
categoryRid - context - appPropService -
com.sapportals.wcm.WcmException
public abstract void updateCategoryContents(String taxonomyName,
boolean dirtyOnly,
IResourceContext context)
throws com.sapportals.wcm.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
com.sapportals.wcm.WcmException
protected void addResourceToClassificationIndex(com.sapportals.wcm.util.uri.RID resourceRID,
IResourceContext context)
throws com.sapportals.wcm.WcmException
resourceRID - ID of the resource to addcontext - user context
com.sapportals.wcm.WcmException
protected void removeResourceFromClassificationIndex(com.sapportals.wcm.util.uri.RID resourceRID,
IResourceContext context)
throws com.sapportals.wcm.WcmException
resourceRID - ID of the resource to removecontext - user context
com.sapportals.wcm.WcmException
public void synchronizeTaxonomyMetaData(String taxonomyName)
throws com.sapportals.wcm.WcmException
taxonomyName - taxonomy that has to be redefined
com.sapportals.wcm.WcmException
public void deleteClassificationProperties(IResource resource)
throws com.sapportals.wcm.WcmException
resource -
com.sapportals.wcm.WcmException
public static void getAllCollections(ICollection col,
IResourceList resources)
dataSearchFromHereResource -
public UpdateTaxonomyState getUpdateTaxonomyState(String taxonomyName)
throws com.sapportals.wcm.WcmException
taxonomyName -
com.sapportals.wcm.WcmException
public UpdateTaxonomyState getUpdateTaxonomyState(String taxonomyName,
Locale locale)
throws com.sapportals.wcm.WcmException
taxonomyName - locale -
com.sapportals.wcm.WcmException
public void setUpdateTaxonomyState(String state,
String taxonomyName,
int visitedCategories,
int catgoriesToUpdate,
int allCategories)
throws com.sapportals.wcm.WcmException
state - taxonomyName - visitedCategories - catgoriesToUpdate - allCategories -
com.sapportals.wcm.WcmException
public void checkUpdateTaxonomyStateDuringStartUp()
throws com.sapportals.wcm.WcmException
com.sapportals.wcm.WcmException
public void setQueryFolderExternalFast(IQueryFolder queryFolder,
IQueryEntryList query)
throws com.sapportals.wcm.WcmException
queryFolder - query -
com.sapportals.wcm.WcmExceptionpublic boolean multiTaxonomyClassificationPossible()
public static Map getDocumentTaxRMRids(com.sapportals.wcm.util.uri.RID taxonomyClassRid,
IResourceList documents)
throws com.sapportals.wcm.WcmException
com.sapportals.wcm.WcmException
public static com.sapportals.wcm.util.uri.RID getDocumentTaxRMRid(com.sapportals.wcm.util.uri.RID taxonomyClassRid,
com.sapportals.wcm.util.uri.RID documentRid)
throws com.sapportals.wcm.WcmException
taxonomyClassRid - documentRid -
com.sapportals.wcm.WcmException
public static com.sapportals.wcm.util.uri.RID makeDocTaxRmRid(com.sapportals.wcm.util.uri.RID taxonomyClassRid,
com.sapportals.wcm.util.uri.RID documentRid,
String docGuid)
taxonomyClassRid - documentRid - docGuid -
public static com.sapportals.wcm.util.uri.RID getDocumentReplaceName(com.sapportals.wcm.util.uri.RID documentRid)
throws com.sapportals.wcm.WcmException
documentRid -
com.sapportals.wcm.WcmException
public static com.sapportals.wcm.util.uri.RID getTargetRIDFromReplaceName(com.sapportals.wcm.util.uri.RID linkRid)
throws com.sapportals.wcm.WcmException
linkRid -
com.sapportals.wcm.WcmException
public static com.sapportals.wcm.util.uri.RID getRIDFromConstantID(String guid)
throws com.sapportals.wcm.WcmException
guid -
com.sapportals.wcm.WcmExceptionpublic static void clearGuidCache()
| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] KMC-CM
|
[sap.com] tc/km/frwk
|
api
|
EP-KM-CM
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
|
SAP NetWeaver 7.30 SP01 KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||