com.sapportals.wcm.service.indexmanagement

Interface IIndexFolder

All Known Implementing Classes:
IndexFolder

public interface IIndexFolder

Folder that is attached to an index. IIndexFolder are attached to an index. The documents under these folders are affiliated in the index. The main properties of IIndexFolder are:

IIndexFolder stores information about the last date, when its documents where indexed and if indexing was successful.

See Also:
IndexFolder, IIndexFolderList, IIndex, IIndexService

Method Summary
 boolean equals(IIndexFolder indexFolder)
          Returns true if the index folder is equal to another index folder.
 String getCrawlerProfileId()
          Get the CrawlerProfileId attribute of the IIndexFolder object.
 RID getCrawlerStartRid()
          Get the CrawlerStartRid attribute of the IIndexFolder object.
 String getIndexId()
          Get the IndexId attribute of the IIndexFolder object.
 Date getLastIndexed()
          Returns the date when the index folder has been indexed the last time
 RID getRID()
          Get the RID attribute of the IIndexFolder object.
 String getSchedulerEntryId()
           
 String getSchedulerIndexEntryId()
           
 ISchedulerTimeTable getSchedulerTimeTable()
          Get the SchedulerTimeTable attribute of the IIndexFolder object.
 boolean isCrawlerProfileIDInherited()
          Indicates if the crawler profile ID is inherited from the index crawler profile ID.
 boolean isIndexedSuccessfully()
          Returns true if all documents could be indexed successfully and false if some documents did have problems while indexing or the indexing process had to be stopped because of a communication error.
 boolean isNewGlobalTimeTableSet()
          Returns true if a new timetable for the index is defined after last update of the index.
 boolean isNewLocalTimeTableSet()
          Returns true if a new timetable for the folder is defined after last update of the index.
 void setCrawlerProfileId(String crawlerProfileId)
          Set the CrawlerProfileId attribute of the IIndexFolder object.
 void setCrawlerStartRid(RID crawlerStartRid)
          Set the CrawlerStartRid attribute of the IIndexFolder object.
 void setIndexedSuccessfully(boolean isIndexedSuccessfully)
          Sets the internal flag to indicate if indexing was successful.
 void setLastIndexed(Date lastIndexedDate)
          Sets the date when the index folder has been indexed the last time.
 void setNewGlobalSchedulerTimeTable(ISchedulerTimeTable schedulerTimeTable)
          Set the SchedulerTimeTable attribute of the IIndexFolder object if this is the schedule defined before for the index.
 void setSchedulerEntryId(String string)
          Sets an identifier for that folder used for storing timetables for delta index schedules defined at the folder.
 void setSchedulerIndexEntryId(String string)
          Returns an identifier for that folder used for storing timetables for delta index schedules defined at the index.
 void setSchedulerTimeTable(ISchedulerTimeTable schedulerTimeTable)
          Set the SchedulerTimeTable attribute of the IIndexFolder object.
 

Method Detail

getRID

RID getRID()
Get the RID attribute of the IIndexFolder object.

Returns:
The RID value

getIndexId

String getIndexId()
Get the IndexId attribute of the IIndexFolder object.

Returns:
The IndexId value

getCrawlerProfileId

String getCrawlerProfileId()
Get the CrawlerProfileId attribute of the IIndexFolder object. If no crawler profile ID is saved for the index folder the crawler profile ID of the index is inherited. It can be null if the index also doesn't have a crawler profile ID.

Returns:
The CrawlerProfileId value

setCrawlerProfileId

void setCrawlerProfileId(String crawlerProfileId)
                         throws WcmException
Set the CrawlerProfileId attribute of the IIndexFolder object.

Parameters:
crawlerProfileId - The new CrawlerProfileId value
Throws:
WcmException

getCrawlerStartRid

RID getCrawlerStartRid()
Get the CrawlerStartRid attribute of the IIndexFolder object.

Returns:
The CrawlerStartRid value

setCrawlerStartRid

void setCrawlerStartRid(RID crawlerStartRid)
                        throws WcmException
Set the CrawlerStartRid attribute of the IIndexFolder object.

Parameters:
crawlerStartRid - The new CrawlerStartRid value
Throws:
WcmException

getSchedulerTimeTable

ISchedulerTimeTable getSchedulerTimeTable()
Get the SchedulerTimeTable attribute of the IIndexFolder object.

Returns:
The SchedulerTimeTable value

setSchedulerTimeTable

void setSchedulerTimeTable(ISchedulerTimeTable schedulerTimeTable)
                           throws WcmException
Set the SchedulerTimeTable attribute of the IIndexFolder object.

Parameters:
schedulerTimeTable - The new SchedulerTimeTable value
Throws:
WcmException - in case of an error.

setNewGlobalSchedulerTimeTable

void setNewGlobalSchedulerTimeTable(ISchedulerTimeTable schedulerTimeTable)
                                    throws WcmException
Set the SchedulerTimeTable attribute of the IIndexFolder object if this is the schedule defined before for the index. Recommendation: This method should not be used by the API programmer, because no update of the index is made.

Parameters:
schedulerTimeTable - The new SchedulerTimeTable value
Throws:
WcmException - in case of an error.

equals

boolean equals(IIndexFolder indexFolder)
Returns true if the index folder is equal to another index folder. This is the case if the indexId and the rid of the index folder are equal.

Parameters:
indexFolder - other index folder to test if it is equal to this index folder
Returns:
true if equal, false if not equal.

isIndexedSuccessfully

boolean isIndexedSuccessfully()
Returns true if all documents could be indexed successfully and false if some documents did have problems while indexing or the indexing process had to be stopped because of a communication error.

Returns:
true or false

setIndexedSuccessfully

void setIndexedSuccessfully(boolean isIndexedSuccessfully)
                            throws WcmException
Sets the internal flag to indicate if indexing was successful. The flag is set to true if all documents could be indexed successfully nad set to false if some documents did have problems while indexing or the indexing process had to be stopped because of an communication error.

Parameters:
isIndexedSuccessfully - true if indexing was successful, otherwise false
Throws:
WcmException - exception raised in failure situation

getLastIndexed

Date getLastIndexed()
                    throws WcmException
Returns the date when the index folder has been indexed the last time

Returns:
date when the index folder has been indexed the last time
Throws:
WcmException - exception raised in failure situation

setLastIndexed

void setLastIndexed(Date lastIndexedDate)
                    throws WcmException
Sets the date when the index folder has been indexed the last time.

Parameters:
lastIndexedDate - date when the index folder has been indexed the last time
Throws:
WcmException - exception raised in failure situation

isCrawlerProfileIDInherited

boolean isCrawlerProfileIDInherited()
                                    throws WcmException
Indicates if the crawler profile ID is inherited from the index crawler profile ID. Returns true if the crawler profile ID that is returned from getCrawlerProfileId() is inherited from the index crawler profile ID.

Returns:
true if inherited, otherwise false
Throws:
WcmException - exception raised in failure situation

isNewGlobalTimeTableSet

boolean isNewGlobalTimeTableSet()
Returns true if a new timetable for the index is defined after last update of the index.

Returns:
true if set, otherwise false

isNewLocalTimeTableSet

boolean isNewLocalTimeTableSet()
Returns true if a new timetable for the folder is defined after last update of the index.

Returns:
true if set, otherwise false

getSchedulerEntryId

String getSchedulerEntryId()
Returns:
an identifier for that folder used for storing timetables for delta index schedules defined at the folder. Only for internal usage.

getSchedulerIndexEntryId

String getSchedulerIndexEntryId()
Returns:
an identifier for that folder used for storing timetables for delta index schedules defined at the index. Only for internal usage.

setSchedulerEntryId

void setSchedulerEntryId(String string)
Sets an identifier for that folder used for storing timetables for delta index schedules defined at the folder. Only for internal usage.

Parameters:
string -

setSchedulerIndexEntryId

void setSchedulerIndexEntryId(String string)
Returns an identifier for that folder used for storing timetables for delta index schedules defined at the index. Only for internal usage.

Parameters:
string -
Access Rights

This class can be accessed from:


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


Copyright 2014 SAP AG Complete Copyright Notice