com.sapportals.wcm.service.indexmanagement.retrieval.classification

Interface IQBClassificationIndex


public interface IQBClassificationIndex

This kind of classification index offers functionality working with query based taxonomies


Method Summary
 void deleteQueryFolderExternal(IQueryFolder queryFolder)
          Deletes a query folder on the external classification engine
 IRidList getAffectedCategories(IQueryFolder queryFolder, IResourceContext context)
          Gets a list of categories of a taxonomy that are affected if the query of the query folder has changed.
 ISearchResultList getQueryDocuments(IQueryFolder queryFolder, IResourceContext context)
          Documents of the index that match the query of the folder.
 ISearchSession getQueryDocumentsPreview(IQueryFolder queryFolder, IResourceContext context)
          Deprecated. as of NW04. Do not use
 IQueryFolder getQueryFolder(RID taxonomyClassRid)
          Gets a query folder instance
 void moveQueryFolderExternal(IQueryFolder queryFolder, RID destination)
          Moves the query folder on the external classification engine
 void setQueryFolderExternal(IQueryFolder queryFolder, IQueryEntryList query)
          Sets the query on the external classification engine.
 void setQueryFolderExternalFast(IQueryFolder queryFolder, IQueryEntryList query)
          Sets the query on the external classification engine.
 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.
 

Method Detail

getQueryFolder

public IQueryFolder getQueryFolder(RID taxonomyClassRid)
                            throws WcmException
Gets a query folder instance

Parameters:
taxonomyClassRid - rid of the taxonomy class that is the query folder
Returns:
the query folder instance
Throws:
WcmException

deleteQueryFolderExternal

public void deleteQueryFolderExternal(IQueryFolder queryFolder)
                               throws WcmException
Deletes a query folder on the external classification engine

Parameters:
queryFolder - query folder to delete
Throws:
WcmException

setQueryFolderExternal

public void setQueryFolderExternal(IQueryFolder queryFolder,
                                   IQueryEntryList query)
                            throws WcmException
Sets the query on the external classification engine. If the query folder doesn't exist on the external engine it is also created

Parameters:
queryFolder - the query folder to set
query - the new query for the folder
Throws:
WcmException

setQueryFolderExternalFast

public void setQueryFolderExternalFast(IQueryFolder queryFolder,
                                       IQueryEntryList query)
                                throws WcmException
Sets the query on the external classification engine. If the query folder doesn't exist on the external engine it is also created. This is a faster version for Trex than setQueryFolderExternal.

Parameters:
queryFolder - the query folder to set
query - the new query for the folder
Throws:
WcmException

moveQueryFolderExternal

public void moveQueryFolderExternal(IQueryFolder queryFolder,
                                    RID destination)
                             throws WcmException
Moves the query folder on the external classification engine

Parameters:
queryFolder - the query folder to move
destination - the new rid of the query folder
Throws:
WcmException

updateCategoryContents

public void updateCategoryContents(String taxonomyName,
                                   boolean dirtyOnly,
                                   IResourceContext context)
                            throws WcmException
Starts a process that checks and updates categories of a taxonomy where the query is not in sync with the documents of category.

Parameters:
taxonomyName - name of the taxonomy to check
dirtyOnly - if false all categories are checked, if false only categories that are out of sync (dirty) are updated.
context - user context
Throws:
IndexNotReadyException - if not all documents of the classification index can be updated because some documents are still beiing processed on the index server.
WcmException

getQueryDocuments

public ISearchResultList getQueryDocuments(IQueryFolder queryFolder,
                                           IResourceContext context)
                                    throws WcmException
Documents of the index that match the query of the folder.
Since the queries are hierarchical the returned documents also match the queries of the parent folders.

Parameters:
queryFolder - query folder for that the document have to be returned
context - user context
Returns:
list of documents with their rank values that match the query of the folder.
Throws:
WcmException

getQueryDocumentsPreview

public ISearchSession getQueryDocumentsPreview(IQueryFolder queryFolder,
                                               IResourceContext context)
                                        throws WcmException
Deprecated. as of NW04. Do not use

Documents of the index that match the query of the folder.
Since the queries are hierarchical the returned documents also match the queries of the parent folders. The call should only be used to get a preview of the query result.

Parameters:
queryFolder - query folder for that the document have to be returned
context - user context
Returns:
search session object including document IDs with their rank values that match the query of the folder.
Throws:
WcmException

getAffectedCategories

public IRidList getAffectedCategories(IQueryFolder queryFolder,
                                      IResourceContext context)
                               throws WcmException
Gets a list of categories of a taxonomy that are affected if the query of the query folder has changed.

Parameters:
queryFolder - query folder that has changed
context - user context
Returns:
list of resource IDs of categories that have changed after the query has been changed
Throws:
WcmException


Copyright 2006 SAP AG. All rights reserved. No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG. The information contained herein may be changed without prior notice. Microsoft, Windows, Outlook, and PowerPoint are registered trademarks of Microsoft Corporation. Oracle is a registered trademark of Oracle Corporation. UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group. Citrix, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame, and MultiWin are trademarks or registered trademarks of Citrix Systems, Inc. HTML, XML, XHTML and W3C are trademarks or registered trademarks of W3C, World Wide Web Consortium, Massachusetts Institute of Technology. Java is a registered trademark of Sun Microsystems, Inc. JavaScript is a registered trademark of Sun Microsystems, Inc., used under license for technology invented and implemented by Netscape. MaxDB is a trademark of MySQL AB, Sweden. SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary. These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.