|
SAP NetWeaver 7.31 (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
public abstract class AbstractIndex
Generic index class, which must be extended by a specialized index implementation.
Changes between major releases 7.0 and 7.X
AbstractIndex.ReindexerWithoutClearconvertStringPropertiesToObjects(List)
getClassProperties()
getDocumentFeaturesPropName()
getHighlightedContent(ISearchResultList, IQueryEntryList)
getHighlightedContent(ISearchResultList, IQueryEntryList, boolean)
getIndexOnlyPropertiesPropName()
getIndexedProperties(List, IMutablePropertyMap)
getLogicalOrPhysicalPropName()
getModeledPropertyIndexType(IPropertyName)
getNumberOfIndexErrors(RID)
getPropertiesAsStrings()
IIndex.getResourceInfo(IResource)
getSimilarClasses(IPropertyName, String, int)
indexExistsAndReadyForDeleteOrClear()
isInSystemFolder(RID)
isLogicalVariant(IResource)
isPhysicalVariant(IResource)
onlyVirtualDatasources()
reindexWithoutClear()
setClassProperties(HashSet)
setQueryExtender(DefaultQueryExtender)
startReindexerWithoutClear()
unescape(String, char)
IIndex| Nested Class Summary | |
|---|---|
static class |
AbstractIndex.ErrorState
|
static class |
AbstractIndex.IndexingState
|
class |
AbstractIndex.Reindexer
This class handles the reindex process in a separate thread. |
class |
AbstractIndex.ReindexerWithoutClear
This class handles the reindex process without clearin the index in a separate thread. |
static class |
AbstractIndex.RunningState
|
static class |
AbstractIndex.WhatToIndex
|
| Field Summary | |
|---|---|
static String |
AS_STRING
|
static String |
CFG_PLUGIN_CM_INDEXES
|
static String |
CFG_PLUGIN_CM_INDEXES_INDEX_FOLDERS
|
static String |
INDEX_ALSO_AS_STRING
|
static String |
INDEX_STRING_AS_STRING
|
protected String |
m_crawlerProfileId
ID of the default crawler profile for all index folders of the index. |
protected IIndexFolderList |
m_indexFolders
list of index folders that are assigned to the index |
protected String |
m_indexGroup
group of the index |
protected String |
m_indexId
id of the index |
protected String |
m_indexName
display name of the index |
protected boolean |
m_isActive
Indicates if an index is available or has be deactivated. |
protected String |
m_serviceId
the id of the implementing index service |
protected static String |
m_serviceUserId
ID of the service user. |
static String |
PROPERTIES
|
| Constructor Summary | |
|---|---|
AbstractIndex(String indexId,
String indexName,
String indexGroup,
IIndexFolderList indexFolders,
String serviceId,
String serviceUserId,
Properties indexServiceProperties)
Deprecated. as of NW04. Use constructor with crawler profile ID |
|
AbstractIndex(String indexId,
String indexName,
String indexGroup,
IIndexFolderList indexFolders,
String serviceId,
String crawlerProfileId,
String serviceUserId,
Properties indexServiceProperties)
Constructor. |
|
| Method Summary | |
|---|---|
void |
addFolderUri(com.sapportals.wcm.util.uri.URI folderUri)
Deprecated. as of NW04. Use add(IIndexFolder) at the IIndexFolderList interface |
List |
changeIndexedDocumentProperties(com.sapportals.wcm.util.uri.RID rid,
IPropertyMap addProperties,
IPropertyMap deleteProperties,
IPropertyMap defineProperties)
If supported by the search engine (e.g. supported by Trex), this method allows to set property values of indexed documents directly on the server. |
void |
changeIndexedDocumentProperties(com.sapportals.wcm.util.uri.RID rid,
IPropertyMap addProperties,
IPropertyMap deleteProperties,
IPropertyNameList deleteValues,
boolean testQueue)
This method adds and deletes property values for a particular resource on the index server. |
void |
changeIndexedDocumentProperties(com.sapportals.wcm.util.uri.RID rid,
IPropertyMap addProperties,
IPropertyMap deleteProperties,
IPropertyNameList deleteValues,
IProperty testProperty)
This method adds and deletes property values for a particular resource on the index server. |
void |
checkIndexIsActive()
checks if index is active. |
void |
checkProperties(Properties customProperties)
Executes some consistency checks on the properties. |
void |
clearPropertiesCache()
This method informs a search plugin to clear its custom properties cache |
int |
compareTo(Object o)
Compares two indexes |
static Date |
convertDateToIndexTime(Date dateInput)
Converts the input date into a date used for indexing time attributeand returns this value. |
Properties |
convertStringPropertiesToObjects(List stringProperties)
Gets as import the additional properties for the index as a String list in the form propName1, value1, probName2, value2 etc. |
void |
createIndexOnServer()
Creates the index on the index server connected with the CM system. |
void |
deindex(IQueryEntryList query)
This method deindexes all resources from the index server fullfilling the query. |
void |
deindexDocument(IResource resource)
Deindexes a document |
void |
deindexDocument(com.sapportals.wcm.util.uri.RID resourceRid)
Deindexes a document |
void |
deindexDocument(com.sapportals.wcm.util.uri.URI resourceUri)
Deprecated. as of NW04. Use deindexDocument(RID) |
void |
deindexDocuments(IResourceList resources)
Deindexes a document |
void |
deindexDocuments(com.sapportals.wcm.util.uri.IRidList resourceRids)
Deindexes a document |
void |
deindexDocuments(com.sapportals.wcm.util.uri.IUriList resourceUris)
Deprecated. as of NW04. Use deindexDocuments(IRidList) |
void |
deleteOnServer()
Deletes the index on the index server connected with the CM system. |
static void |
deleteOnServer(String indexId)
|
void |
deltaReindex()
Performs indexing of the documents that are not indexed yet or have been changed since the last crawl. |
boolean |
equals(Object o)
|
static StringBuffer |
escape(String s)
|
static StringBuffer |
escape(String s,
char par)
|
void |
flush()
Flushes the queue |
boolean |
flush(com.sapportals.wcm.util.uri.RID rid,
int counter)
Tries about counter of times to bring the documents decribed by the rid in a state such that the document can be found in the index. |
void |
flushAsync()
Asynchronous flush. |
void |
flushAsync(com.sapportals.wcm.util.uri.RID rid,
int counter)
Asynchronous flush. |
long |
getActiveTime()
Gives a rough estimation for the time duration needed for indexing the actual available documents. |
HashSet |
getClassProperties()
|
IContent |
getContent(com.sapportals.wcm.util.uri.RID rid)
Returns the content for the specified ridList. |
String |
getCrawlerProfileId()
ID of the default crawler profile for all index folders of the index. |
String |
getDetailsMonitorPageText(Locale locale)
Get Display Text for details monitor portal page |
String |
getDetailsMonitorPageURL()
Get details monitor portal page |
String |
getDetailsMonitorURL1()
Get first details monitor |
String |
getDetailsMonitorURL2()
Get second details monitor |
String |
getDetailsMonitorURL3()
Get third details monitor |
static PropertyName |
getDisplayNameAsStringPropName()
|
static PropertyName |
getDocumentFeaturesPropName()
|
AbstractIndex.ErrorState |
getErrorState(double errorThreshold,
double warningThreshold,
Locale locale)
Returns an error state indicating the overall indexing status. |
com.sapportals.wcm.util.uri.IUriList |
getFolderUris()
Deprecated. as of NW04. Use getFolderRids() |
String[] |
getFrameSizes()
Get frame sizes of detailed monitors (and implicit number of detailed monitors) |
com.sapportals.wcm.util.uri.RID |
getHiddenIndexAreaStartRid()
Returns the start rid of an hidden index |
static Map |
getHiddenIndexIds()
only for internal usage |
Collection |
getHighlightedContent(ISearchResultList searchResults,
IQueryEntryList queryList)
gets the hightlighted content of resources with respect to the queryList |
Collection |
getHighlightedContent(ISearchResultList searchResults,
IQueryEntryList queryList,
boolean anchorlinks)
gets the hightlighted content of resources with respect to the queryList |
IPropertyMap |
getIndexedProperties()
Returns the properties, indexed with the documents in the index. |
void |
getIndexedProperties(List indexList,
IMutablePropertyMap returnMap)
Adds the properties in the indexes to the property map. |
IIndexFolder |
getIndexFolderForDocument(com.sapportals.wcm.util.uri.RID documentRid)
Gets the next upper indexFolder for the document |
static PropertyName |
getIndexFolderRidPropName()
|
IIndexFolderList |
getIndexFolders()
Folders or start pages that are assigned to the index for indexing. |
String |
getIndexGroup()
Returns the group of indexes to which the index logically belongs. |
String |
getIndexId()
Identifies the index within the system. |
AbstractIndex.IndexingState |
getIndexingState()
Returns the current state of the index. |
String |
getIndexName()
Non-technical identifier of an index. |
static PropertyName |
getIndexOnlyPropertiesPropName()
|
List |
getLanguagesOfIndexedDocuments()
Returns the languages of an index, for which documents exist in. |
Set |
getLanguagesOfIndexedDocuments(List indexes)
Returns the languages of the indexes, for which documents exist in. |
static PropertyName |
getLogicalOrPhysicalPropName()
|
static byte |
getModeledPropertyIndexType(IMetaName metaName)
Returns the property type for a modelled property which is used for indexing. |
static byte |
getModeledPropertyIndexType(IPropertyName propName)
Returns the type of a modelled property how it is indexed (usually on a Trex server). |
int |
getNumberOfCrawler(com.sapportals.wcm.util.uri.RID indexRid)
Only for internal usage. |
int |
getNumberOfDocumentsInQueue()
Returns the numbers of documents currently in work for indexing, but not in an error state. |
int |
getNumberOfErrors()
Returns the numbers of documents failed during indexing. |
int |
getNumberOfIndexedDocuments(IIndexFolder indexFolder,
IResourceContext context)
Returns the number of documents of the datasource of the index which are already in the index |
int |
getNumberOfIndexErrors(com.sapportals.wcm.util.uri.RID startRid)
Returns the number of crawler errors for the specified data source. |
int |
getNumberOfSuccessfullyIndexedDocs()
Returns the numbers of documents successfully indexed and searchable. |
Collection |
getOriginalContent(com.sapportals.wcm.util.uri.IRidList ridList)
Returns the content for the specified ridList. |
Properties |
getProperties()
Gets index implementation specific data |
Map |
getPropertiesAsStrings()
Returns the properties in a Map of Strings, i.e. the keys describing the property names are Strings as well as the values. |
IPropertyMap |
getPropertiesForHiddenResource(com.sapportals.wcm.util.uri.RID rid)
Returns the properties for the resource specified by the rid. |
DefaultQueryExtender |
getQueryExtender()
Only for internal usage |
String |
getResourceInfo(com.sapportals.wcm.util.uri.RID documentRid)
|
com.sapportals.wcm.util.uri.RID |
getRID()
Gets the resource ID of the resource representation of this index. |
AbstractIndex.RunningState |
getRunningState()
Returns a state indicating what is actually happening with respect to indexing. |
ISchedulerTimeTable |
getSchedulerTimeTable()
Returns the timetable of a schedule for delta index crawling for the index. |
DefaultIMSecurityManager |
getSecManager()
Only for internal usage |
com.sapportals.wcm.util.uri.IRidList |
getServiceErrorRids(int maxNumber)
Returns the errors of the search or classification service for this index. |
String |
getServiceId()
Specifies the index implementation that is used for the index. |
List |
getServiceTypes(Locale locale)
Displays representations of the indexes service types in the locale's language. |
List |
getSimilarClasses(IPropertyName propName,
String value,
int maxResults)
The method returns similar property values to the input value with respect to specified property. |
ISupportedOptionSet |
getSupportedOptions()
The actions of the additional interfaces of an index are supported actions for the index in question (for example, ISearchIndex, IClassificationIndex)
that are supported by the index implementation. |
static ISystemList |
getSystemList()
Checks and returns the system ID where the Indexmanagement Taskqueue Reader task should run. |
AbstractIndex.WhatToIndex |
getWhatToIndex()
Returns is the index indexed collextions, simple resources of both. |
String |
getWhatToIndexString()
String version of what is indexed (collection, simple resource, both) |
boolean |
indexContentOfExternalLinks()
Checks if the content of external links should be indexed. |
void |
indexDocument(IResource resource)
Indexes a document |
void |
indexDocument(IResource resource,
IResourceEvent resourceEvent)
Indexes a document |
void |
indexDocuments(IResourceList resources)
Indexes a list of documents |
void |
indexDocuments(IResourceList resources,
IResourceEvent resourceEvent)
Indexes a list of documents |
boolean |
indexExistsAndReadyForDeleteOrClear()
Helper method making some checks if index is ready for the next operations. |
boolean |
indexInternalLinks()
Checks if internal links should be indexed. |
static boolean |
indexStringAttributeAsString(IMetaName metaName)
Returns true if the attribute is indexed as a string and false if indexed as text. |
void |
init(Properties properties)
Initializes the index with index implementation specific data |
protected void |
internalDeindexDocuments(com.sapportals.wcm.util.uri.IRidList rids)
Deindexes documents |
protected void |
internalIndexDocuments(IResourceList resources,
IResourceEvent resourceEvent)
Indexes a list of documents |
void |
internalSetIndexFolders(IIndexFolderList indexFolders)
For internal use only! |
boolean |
isActive()
Returns the information if an index is available or has be set inactive. |
static boolean |
isInSystemFolder(com.sapportals.wcm.util.uri.RID currRid)
|
static boolean |
isLogicalVariant(IResource res)
Checks if a resource is a logical variant. |
static boolean |
isPhysicalVariant(IResource res)
Checks if a resource is a physicalt. |
boolean |
onlyVirtualDatasources()
|
int |
reduceNumberOfCrawler()
Only for internal usage. |
void |
reindex()
Reindexes the index |
void |
reindex(boolean disablePostClearTasks)
Reindexes the index |
void |
reindexNotTrainingDocs()
|
void |
reindexWithoutClear()
Reindexing without clearing the index first. |
protected boolean |
reindexXPostClear(IIndexFolderList preClearIndexFolders)
|
void |
removeAllFolderUris()
Deprecated. as of NW04. Use clear() at the IIndexFolderList interface |
void |
removeFolderUri(com.sapportals.wcm.util.uri.URI folderUri)
Deprecated. as of NW04. Use remove(IIndexFolder) at the IIndexFolderList interface |
void |
repaireConfigurable()
Only for internal usage. |
void |
restartAll()
Stops all stopped and suspended tasks for indexing. |
void |
resumeAll()
Resumes all suspended tasks for indexing. |
boolean |
setActive(boolean isActive)
Sets an index inactive or activates it. |
void |
setActiveDuringStartup(boolean isActive)
Only for internal usage |
void |
setClassProperties(HashSet set)
|
void |
setCrawlerProfileId(String crawlerProfileId)
Sets the ID of the default crawler profile for all index folders of the index. |
void |
setInactiveIndexHasChanged()
Sets a property on true, if index documents have changed during index was inactive. |
void |
setIndexGroup(String indexGroup)
for internal use |
void |
setIndexingState(AbstractIndex.IndexingState state)
Only for internal usage |
void |
setIndexName(String indexName)
For internal use only. |
void |
setNumberOfCrawler(int numOfCrawler)
|
void |
setProperties(Properties properties)
Sets index implementation specific data |
void |
setQueryExtender(DefaultQueryExtender extender)
Only for internal usage. |
void |
setSchedulerTimeTable(ISchedulerTimeTable schedulerTimeTablePar)
Registers a schedule for delta index crawling for the index with the ISchedulerTimeTable. |
void |
setStateAndNumberOfCrawler(AbstractIndex.IndexingState state,
int numOfCrawler)
Only for internal usage. |
void |
setWhatToIndex(String s)
Set what should be indexed (collections, simple resources or both) |
void |
startReindexer(boolean disablePostClearTasks)
Starts reindexing in a seperate thread. |
void |
startReindexerWithoutClear()
Starts reindexing without clearing the index in a seperate thread. |
void |
stopAll()
Stops all running tasks for indexing. |
void |
suspendAll()
Suspends all running tasks for indexing. |
boolean |
typeShouldBeIndexed(IResource res)
Checks if the type (collection, simple resource) shoulb be indexed. |
static String |
unescape(String s)
|
static String |
unescape(String s,
char par)
|
| 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 |
|---|
public static final String CFG_PLUGIN_CM_INDEXES
public static final String CFG_PLUGIN_CM_INDEXES_INDEX_FOLDERS
public static final String PROPERTIES
public static final String INDEX_STRING_AS_STRING
public static final String INDEX_ALSO_AS_STRING
public static final String AS_STRING
protected String m_indexId
protected IIndexFolderList m_indexFolders
protected String m_serviceId
protected String m_indexName
protected String m_indexGroup
protected boolean m_isActive
protected String m_crawlerProfileId
protected static String m_serviceUserId
| Constructor Detail |
|---|
public AbstractIndex(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 tofolderRids - - list of RID objects that are representing the attached folders of the indexserviceId - - the identifier of the index serviceserviceUserId - - id of the index management service user, to set the service contextindexServiceProperties - - config properties of the index management service
com.sapportals.wcm.WcmException - Exception raised in failure situation
public AbstractIndex(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 tofolderRids - - list of RID objects that are representing the attached folders of the indexserviceId - - 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 service
com.sapportals.wcm.WcmException - Exception raised in failure situation| Method Detail |
|---|
public static StringBuffer escape(String s)
public static String unescape(String s)
public static StringBuffer escape(String s,
char par)
public static String unescape(String s,
char par)
public static Date convertDateToIndexTime(Date dateInput)
dateInput -
public static byte getModeledPropertyIndexType(IPropertyName propName)
throws com.sapportals.wcm.WcmException
propName -
com.sapportals.wcm.WcmException
public static byte getModeledPropertyIndexType(IMetaName metaName)
throws com.sapportals.wcm.WcmException
IQueryEntry.
metaName -
com.sapportals.wcm.WcmException
public IPropertyMap getIndexedProperties()
throws com.sapportals.wcm.WcmException
getIndexedProperties in interface IIndexcom.sapportals.wcm.WcmException - Exception raised in failure situation
public void getIndexedProperties(List indexList,
IMutablePropertyMap returnMap)
throws com.sapportals.wcm.WcmException
indexList - returnMap -
com.sapportals.wcm.WcmExceptionpublic void setIndexName(String indexName)
setIndexName in interface IIndexindexName - The new IndexName valuepublic void setIndexGroup(String indexGroup)
setIndexGroup in interface IIndexindexGroup - The new IndexGroup value
public void setCrawlerProfileId(String crawlerProfileId)
throws com.sapportals.wcm.WcmException
setCrawlerProfileId in interface IIndexCrawlerProfileId - The new CrawlerProfileId value
com.sapportals.wcm.WcmExceptionpublic void setProperties(Properties properties)
setProperties in interface IIndexproperties - The new Properties valuepublic void clearPropertiesCache()
public String getIndexId()
IIndexIIndex object
from the IIndexService.
getIndexId in interface IIndexpublic String getIndexName()
IIndex
getIndexName in interface IIndexpublic com.sapportals.wcm.util.uri.IUriList getFolderUris()
getFolderUris in interface IIndexpublic IIndexFolderList getIndexFolders()
IIndexIIndexFolderList. If more than one superior folder
is attached to different indexes, the lower folder determines the index, in which
the document is stored.
getIndexFolders in interface IIndexpublic String getServiceId()
IIndexcom.sapportals.wcm.service.indexmanagement.retrieval.trex.TrexSearchAndClassificationIndexISearchIndex, IClassificationIndex
getServiceId in interface IIndexIt is configured in the wcm configuration file and links to the impementing class.
public String getIndexGroup()
IIndexgroup can be null.
getIndexGroup in interface IIndexAs an example indexes can be grouped to display them separated in groups.
public String getCrawlerProfileId()
getCrawlerProfileId in interface IIndexpublic List getServiceTypes(Locale locale)
IIndex
getServiceTypes in interface IIndexlocale - - locale of user context to return service types in locale language of user context
public Map getPropertiesAsStrings()
throws NotSupportedException
NotSupportedException
public Properties convertStringPropertiesToObjects(List stringProperties)
throws NotSupportedException
stringProperties -
NotSupportedExceptionpublic Properties getProperties()
getProperties in interface IIndex
public void checkProperties(Properties customProperties)
throws com.sapportals.wcm.WcmException
checkProperties in interface IIndexcom.sapportals.wcm.WcmExceptionIIndexpublic ISupportedOptionSet getSupportedOptions()
IIndexISearchIndex, IClassificationIndex)
that are supported by the index implementation.
Example:
String indexId = "abc";
IIndexService indexService = (IIndexService)ResourceFactory.getInstance().getServiceFactory().getService(IServiceTypesConst.INDEX_SERVICE);
IIndex index = indexService.getIndex(indexId);
ISupportedOptionSet supportedOptions = index.getSupportedOptions();
if (supportedOptions.isSupported(SupportedOption.SEARCH)) {
//do search; it is supported by the index
}
getSupportedOptions in interface IIndex
public List getLanguagesOfIndexedDocuments()
throws com.sapportals.wcm.WcmException
getLanguagesOfIndexedDocuments in interface IIndexcom.sapportals.wcm.WcmException
public Set getLanguagesOfIndexedDocuments(List indexes)
throws com.sapportals.wcm.WcmException
indexes -
com.sapportals.wcm.WcmExceptionpublic void addFolderUri(com.sapportals.wcm.util.uri.URI folderUri)
addFolderUri in interface IIndexfolderUri - FolderUri to be addedpublic void removeAllFolderUris()
removeAllFolderUris in interface IIndexpublic void removeFolderUri(com.sapportals.wcm.util.uri.URI folderUri)
removeFolderUri in interface IIndexfolderUri - uri of folder to remove from index
public void indexDocuments(IResourceList resources,
IResourceEvent resourceEvent)
throws ResourceException,
com.sapportals.wcm.WcmException,
IOException
indexDocuments in interface IIndexresources - 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
public void indexDocuments(IResourceList resources)
throws ResourceException,
com.sapportals.wcm.WcmException,
IOException
indexDocuments in interface IIndexresources - resources to index
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)
throws ResourceException,
com.sapportals.wcm.WcmException,
IOException
indexDocument in interface IIndexresource - resource to index
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,
IResourceEvent resourceEvent)
throws ResourceException,
com.sapportals.wcm.WcmException,
IOException
indexDocument in interface IIndexresource - resource 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
public void deindexDocuments(IResourceList resources)
throws ResourceException,
com.sapportals.wcm.WcmException
deindexDocuments in interface IIndexresources - resources to deindex
ResourceException - Exception raised in failure situation
com.sapportals.wcm.WcmException - Exception raised in failure situation
public void deindexDocuments(com.sapportals.wcm.util.uri.IUriList resourceUris)
throws ResourceException,
com.sapportals.wcm.WcmException
deindexDocuments in interface IIndexresourceUris - list of uris to deindex
ResourceException - Exception raised in failure situation
com.sapportals.wcm.WcmException - Exception raised in failure situation
public void deindexDocuments(com.sapportals.wcm.util.uri.IRidList resourceRids)
throws ResourceException,
com.sapportals.wcm.WcmException
deindexDocuments in interface IIndexresourceRids - list of rids to deindex
ResourceException - Exception raised in failure situation
com.sapportals.wcm.WcmException - Exception raised in failure situation
public void deindexDocument(IResource resource)
throws ResourceException,
com.sapportals.wcm.WcmException
deindexDocument in interface IIndexresource - resource to deindex
ResourceException - Exception raised in failure situation
com.sapportals.wcm.WcmException - Exception raised in failure situation
public void deindexDocument(com.sapportals.wcm.util.uri.URI resourceUri)
throws ResourceException,
com.sapportals.wcm.WcmException
deindexDocument in interface IIndexresourceUri - uri to deindex
ResourceException - Exception raised in failure situation
com.sapportals.wcm.WcmException - Exception raised in failure situation
public void deindexDocument(com.sapportals.wcm.util.uri.RID resourceRid)
throws ResourceException,
com.sapportals.wcm.WcmException
deindexDocument in interface IIndexresourceRid - rid to deindex
ResourceException - Exception raised in failure situation
com.sapportals.wcm.WcmException - Exception raised in failure situation
public void reindex()
throws com.sapportals.wcm.WcmException
reindex in interface IIndexcom.sapportals.wcm.WcmException - Exception raised in failure situation
public void reindexWithoutClear()
throws com.sapportals.wcm.WcmException
com.sapportals.wcm.WcmException - Exception raised in failure situation
public boolean indexExistsAndReadyForDeleteOrClear()
throws com.sapportals.wcm.WcmException
com.sapportals.wcm.WcmException
public void reindex(boolean disablePostClearTasks)
throws com.sapportals.wcm.WcmException
reindex in interface IIndexdisablePostClearTasks - - if true the tasks that can be performed by the index implementation after the index
has been cleared are skipped. Example: Don't train the classification index before reindex all documents.
com.sapportals.wcm.WcmException - Exception raised in failure situation
public void deleteOnServer()
throws com.sapportals.wcm.WcmException
IIndex
deleteOnServer in interface IIndexcom.sapportals.wcm.WcmException
public static void deleteOnServer(String indexId)
throws com.sapportals.wcm.WcmException
com.sapportals.wcm.WcmException
public void createIndexOnServer()
throws com.sapportals.wcm.WcmException
IIndex
createIndexOnServer in interface IIndexcom.sapportals.wcm.WcmException
public void startReindexer(boolean disablePostClearTasks)
throws com.sapportals.wcm.WcmException
disablePostClearTasks -
com.sapportals.wcm.WcmException
public void startReindexerWithoutClear()
throws com.sapportals.wcm.WcmException
com.sapportals.wcm.WcmException
public void deltaReindex()
throws com.sapportals.wcm.WcmException
deltaReindex in interface IIndexcom.sapportals.wcm.WcmException - exception raised in failure situationpublic void init(Properties properties)
init in interface IIndexproperties - specific properties of the index implemenation
protected void internalIndexDocuments(IResourceList resources,
IResourceEvent resourceEvent)
throws ResourceException,
com.sapportals.wcm.WcmException,
IOException
resources - 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 void internalDeindexDocuments(com.sapportals.wcm.util.uri.IRidList rids)
throws ResourceException,
com.sapportals.wcm.WcmException
rids - list of rids to deindex
ResourceException - Exception raised in failure situation
com.sapportals.wcm.WcmException - Exception raised in failure situation
protected boolean reindexXPostClear(IIndexFolderList preClearIndexFolders)
throws com.sapportals.wcm.WcmException
com.sapportals.wcm.WcmExceptionpublic IIndexFolder getIndexFolderForDocument(com.sapportals.wcm.util.uri.RID documentRid)
getIndexFolderForDocument in interface IIndexdocumentRid - rid of the document to get the index folder for
public void reindexNotTrainingDocs()
throws com.sapportals.wcm.WcmException
com.sapportals.wcm.WcmExceptionpublic int compareTo(Object o)
o -
public boolean equals(Object o)
equals in class Objectpublic void internalSetIndexFolders(IIndexFolderList indexFolders)
indexFolders -
public String getResourceInfo(com.sapportals.wcm.util.uri.RID documentRid)
throws com.sapportals.wcm.WcmException
documentRid -
com.sapportals.wcm.WcmExceptionIIndex
public static ISystemList getSystemList()
throws com.sapportals.wcm.WcmException
com.sapportals.wcm.WcmException
public void setSchedulerTimeTable(ISchedulerTimeTable schedulerTimeTablePar)
throws com.sapportals.wcm.WcmException
ISchedulerTimeTable. Thereby it sets this schedule for all
data sources with no own schedule.
Remark: It is recommended to use the similar method of the
IIndexService instead of this method.
setSchedulerTimeTable in interface IIndexschedulerTimeTablePar - ISchedulerTimeTable
com.sapportals.wcm.WcmException - in case of an error.
public ISchedulerTimeTable getSchedulerTimeTable()
throws com.sapportals.wcm.WcmException
IIndexService instead of this method.
getSchedulerTimeTable in interface IIndexISchedulerTimeTable
com.sapportals.wcm.WcmException - in case of an error.public boolean isActive()
isActive in interface IIndex
public boolean setActive(boolean isActive)
throws com.sapportals.wcm.WcmException
setActive in interface IIndextrue - if index should be set to active,
false if index should be deactivated
com.sapportals.wcm.WcmException - in case of an error.
public void setActiveDuringStartup(boolean isActive)
throws com.sapportals.wcm.WcmException
IIndex
setActiveDuringStartup in interface IIndexcom.sapportals.wcm.WcmException
public void setInactiveIndexHasChanged()
throws com.sapportals.wcm.WcmException,
ResourceException
setInactiveIndexHasChanged in interface IIndexcom.sapportals.wcm.WcmException - in case of an error
ResourceException - in case of an error
public com.sapportals.wcm.util.uri.RID getRID()
throws com.sapportals.wcm.WcmException
getRID in interface IIndexcom.sapportals.wcm.WcmException - in case of an error.
public void checkIndexIsActive()
throws com.sapportals.wcm.WcmException
com.sapportals.wcm.WcmException
public void setStateAndNumberOfCrawler(AbstractIndex.IndexingState state,
int numOfCrawler)
throws com.sapportals.wcm.WcmException
setStateAndNumberOfCrawler in interface IIndexi -
com.sapportals.wcm.WcmException
public void setNumberOfCrawler(int numOfCrawler)
throws ResourceException,
com.sapportals.wcm.WcmException
numOfCrawler -
ResourceException
com.sapportals.wcm.WcmException
public void setIndexingState(AbstractIndex.IndexingState state)
throws ResourceException,
com.sapportals.wcm.WcmException
IIndex
setIndexingState in interface IIndexcom.sapportals.wcm.WcmException
ResourceException
public void repaireConfigurable()
throws Exception
Exception
public int getNumberOfCrawler(com.sapportals.wcm.util.uri.RID indexRid)
throws com.sapportals.wcm.WcmException
com.sapportals.wcm.WcmException
public int reduceNumberOfCrawler()
throws com.sapportals.wcm.WcmException
reduceNumberOfCrawler in interface IIndexcom.sapportals.wcm.WcmException
public AbstractIndex.IndexingState getIndexingState()
throws ResourceException,
com.sapportals.wcm.WcmException
getIndexingState in interface IIndexindexRid -
com.sapportals.wcm.WcmException
ResourceException
public String getDetailsMonitorURL1()
throws NotSupportedException
NotSupportedException - if the method is not implemented for an index
com.sapportals.wcm.WcmException
public String getDetailsMonitorURL2()
throws NotSupportedException
NotSupportedException - if the method is not implemented for an index
com.sapportals.wcm.WcmException
public String getDetailsMonitorURL3()
throws NotSupportedException
NotSupportedException - if the method is not implemented for an index
com.sapportals.wcm.WcmException
public String getDetailsMonitorPageURL()
throws NotSupportedException
NotSupportedException - if the method is not implemented for an index
com.sapportals.wcm.WcmException
public String getDetailsMonitorPageText(Locale locale)
throws NotSupportedException
NotSupportedException - if the method is not implemented for an index
com.sapportals.wcm.WcmException
public String[] getFrameSizes()
throws NotSupportedException
NotSupportedException - if the method is not implemented for an index
com.sapportals.wcm.WcmException
public AbstractIndex.ErrorState getErrorState(double errorThreshold,
double warningThreshold,
Locale locale)
throws NotSupportedException
errorThreshold - warningThreshold - locale -
NotSupportedException - if the method is not implemented for an index
public AbstractIndex.RunningState getRunningState()
throws com.sapportals.wcm.WcmException
NotSupportedException - if the method is not implemented for an index
com.sapportals.wcm.WcmException
public int getNumberOfSuccessfullyIndexedDocs()
throws com.sapportals.wcm.WcmException
NotSupportedException - if the method is not implemented for an index
com.sapportals.wcm.WcmException
public int getNumberOfDocumentsInQueue()
throws com.sapportals.wcm.WcmException
NotSupportedException - if the method is not implemented for an index
com.sapportals.wcm.WcmException
public int getNumberOfErrors()
throws com.sapportals.wcm.WcmException
NotSupportedException - if the method is not implemented for an index
com.sapportals.wcm.WcmException
public int getNumberOfIndexErrors(com.sapportals.wcm.util.uri.RID startRid)
throws com.sapportals.wcm.WcmException
startRid -
com.sapportals.wcm.WcmException
public com.sapportals.wcm.util.uri.IRidList getServiceErrorRids(int maxNumber)
throws com.sapportals.wcm.WcmException
maxNumber -
com.sapportals.wcm.WcmException
public long getActiveTime()
throws com.sapportals.wcm.WcmException
NotSupportedException - if the method is not implemented for an index
com.sapportals.wcm.WcmExceptionpublic AbstractIndex.WhatToIndex getWhatToIndex()
public void setWhatToIndex(String s)
IIndex
setWhatToIndex in interface IIndexpublic String getWhatToIndexString()
IIndex
getWhatToIndexString in interface IIndexpublic static boolean isLogicalVariant(IResource res)
res -
public static boolean isPhysicalVariant(IResource res)
res -
public boolean typeShouldBeIndexed(IResource res)
IIndex
typeShouldBeIndexed in interface IIndex
public static PropertyName getDisplayNameAsStringPropName()
throws ResourceException
ResourceException
public static PropertyName getIndexFolderRidPropName()
throws ResourceException
ResourceException
public static PropertyName getDocumentFeaturesPropName()
throws ResourceException
ResourceException
public static PropertyName getLogicalOrPhysicalPropName()
throws ResourceException
ResourceException
public static PropertyName getIndexOnlyPropertiesPropName()
throws ResourceException
ResourceException
public void suspendAll()
throws com.sapportals.wcm.WcmException
NotSupportedException - if the method is not implemented for an index
com.sapportals.wcm.WcmException
public void resumeAll()
throws com.sapportals.wcm.WcmException
NotSupportedException - if the method is not implemented for an index
com.sapportals.wcm.WcmException
public void stopAll()
throws com.sapportals.wcm.WcmException
NotSupportedException - if the method is not implemented for an index
com.sapportals.wcm.WcmException
public void restartAll()
throws com.sapportals.wcm.WcmException
NotSupportedException - if the method is not implemented for an index
com.sapportals.wcm.WcmExceptionpublic static boolean indexStringAttributeAsString(IMetaName metaName)
metaName -
public boolean indexInternalLinks()
IIndex
indexInternalLinks in interface IIndex
public boolean flush(com.sapportals.wcm.util.uri.RID rid,
int counter)
throws com.sapportals.wcm.WcmException
rid - counter -
com.sapportals.wcm.WcmException
public void flushAsync(com.sapportals.wcm.util.uri.RID rid,
int counter)
throws com.sapportals.wcm.WcmException
rid - counter -
com.sapportals.wcm.WcmException
public void flush()
throws com.sapportals.wcm.WcmException
com.sapportals.wcm.WcmException
public void flushAsync()
throws com.sapportals.wcm.WcmException
com.sapportals.wcm.WcmExceptionpublic static boolean isInSystemFolder(com.sapportals.wcm.util.uri.RID currRid)
currRid -
public static Map getHiddenIndexIds()
throws ResourceException
ResourceExceptionpublic boolean indexContentOfExternalLinks()
public IPropertyMap getPropertiesForHiddenResource(com.sapportals.wcm.util.uri.RID rid)
throws com.sapportals.wcm.WcmException
rid -
com.sapportals.wcm.WcmException
public IContent getContent(com.sapportals.wcm.util.uri.RID rid)
throws com.sapportals.wcm.WcmException
ridList -
com.sapportals.wcm.WcmException
public Collection getOriginalContent(com.sapportals.wcm.util.uri.IRidList ridList)
throws com.sapportals.wcm.WcmException
ridList -
com.sapportals.wcm.WcmException
public int getNumberOfIndexedDocuments(IIndexFolder indexFolder,
IResourceContext context)
throws NotSupportedException
indexFolder - context -
NotSupportedException - if the method is not implemented by the index type.public com.sapportals.wcm.util.uri.RID getHiddenIndexAreaStartRid()
public DefaultIMSecurityManager getSecManager()
throws ResourceException
ResourceException
public DefaultQueryExtender getQueryExtender()
throws ResourceException
ResourceExceptionpublic void setQueryExtender(DefaultQueryExtender extender)
extender -
public Collection getHighlightedContent(ISearchResultList searchResults,
IQueryEntryList queryList)
throws com.sapportals.wcm.WcmException
searchResults - search result list with resources for which content have to be returnedqueryList - the queries to be highlighted
com.sapportals.wcm.WcmException
public Collection getHighlightedContent(ISearchResultList searchResults,
IQueryEntryList queryList,
boolean anchorlinks)
throws com.sapportals.wcm.WcmException
searchResults - search result list with resources for which content have to be returnedqueryList - the queries to be highlightedanchorlinks - if true anchorlinks to the highlighted term are presented
com.sapportals.wcm.WcmExceptionpublic boolean onlyVirtualDatasources()
public HashSet getClassProperties()
throws ResourceException
ResourceExceptionpublic void setClassProperties(HashSet set)
public List getSimilarClasses(IPropertyName propName,
String value,
int maxResults)
throws com.sapportals.wcm.WcmException
IIndex
getSimilarClasses in interface IIndexcom.sapportals.wcm.WcmException
public void changeIndexedDocumentProperties(com.sapportals.wcm.util.uri.RID rid,
IPropertyMap addProperties,
IPropertyMap deleteProperties,
IPropertyNameList deleteValues,
IProperty testProperty)
throws com.sapportals.wcm.WcmException
IIndex
changeIndexedDocumentProperties in interface IIndexcom.sapportals.wcm.WcmException
public void changeIndexedDocumentProperties(com.sapportals.wcm.util.uri.RID rid,
IPropertyMap addProperties,
IPropertyMap deleteProperties,
IPropertyNameList deleteValues,
boolean testQueue)
throws com.sapportals.wcm.WcmException
IIndex
changeIndexedDocumentProperties in interface IIndexcom.sapportals.wcm.WcmException
public List changeIndexedDocumentProperties(com.sapportals.wcm.util.uri.RID rid,
IPropertyMap addProperties,
IPropertyMap deleteProperties,
IPropertyMap defineProperties)
throws NotSupportedException
IIndex
changeIndexedDocumentProperties in interface IIndexrid - RID of the resourceaddProperties - Properties which should added to the resourcedeleteProperties - Properties which should deleted from the resourcedefineProperties - Properties for which the definition has to be send to the server first, because until now no
indexed document already contains it
NotSupportedException
public void deindex(IQueryEntryList query)
throws com.sapportals.wcm.WcmException
IIndex
deindex in interface IIndexcom.sapportals.wcm.WcmException| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
[sap.com] KMC-CM
|
[sap.com] tc/km/frwk
|
api
|
EP-KM-CM
|
|
SAP NetWeaver 7.31 (SP01) KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||