com.sapportals.wcm.service.crawler

Class ICrawlerComparator

java.lang.Object
  extended bycom.sapportals.wcm.service.crawler.ICrawlerComparator
All Implemented Interfaces:
Comparator

Deprecated. as of NW04. The crawler service was replaced by the xcrawler service com.sapportals.wcm.service.xcrawler

public class ICrawlerComparator
extends Object
implements Comparator

A crawler-comparator (although named ICrawlerComparator it's a class).

Copyright 2004 SAP AG


Field Summary
static String RES_BY_NAME
          Deprecated. Resource bundles for sort keys.
static String RES_BY_PRIORITY
          Deprecated.  
static String RES_BY_STATUS
          Deprecated.  
static String RES_BY_TYPE
          Deprecated.  
static String[] sortModi
          Deprecated. Sort modes.
 
Constructor Summary
ICrawlerComparator(String sortCriteria, IResourceContext context)
          Deprecated. Construct.
 
Method Summary
 int compare(Object o1, Object o2)
          Deprecated. Compare two crawlers using the sort mode specified in the constructor.
 boolean equals(Object o1)
          Deprecated.  
static String getDescription(String sortMode)
          Deprecated. Get the description of a sort mode
 String[] getSortModes()
          Deprecated. Get valid sort modes (or 'criteria').
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RES_BY_NAME

public static final String RES_BY_NAME
Deprecated. 
Resource bundles for sort keys.

See Also:
Constant Field Values

RES_BY_PRIORITY

public static final String RES_BY_PRIORITY
Deprecated. 
See Also:
Constant Field Values

RES_BY_TYPE

public static final String RES_BY_TYPE
Deprecated. 
See Also:
Constant Field Values

RES_BY_STATUS

public static final String RES_BY_STATUS
Deprecated. 
See Also:
Constant Field Values

sortModi

public static final String[] sortModi
Deprecated. 
Sort modes.

Constructor Detail

ICrawlerComparator

public ICrawlerComparator(String sortCriteria,
                          IResourceContext context)
Deprecated. 
Construct.

Parameters:
sortCriteria - one of RES_BY_NAME, RES_BY_PRIORITY, RES_BY_TYPE, RES_BY_STATUS
context - resource context needed to get the locale for which the crawlers are sorted
Method Detail

getSortModes

public String[] getSortModes()
Deprecated. 
Get valid sort modes (or 'criteria').

Returns:
the valid sort modes (or 'criteria')

getDescription

public static String getDescription(String sortMode)
Deprecated. 
Get the description of a sort mode

Parameters:
sortMode - the sort mode
Returns:
the description of the sort mode

compare

public int compare(Object o1,
                   Object o2)
Deprecated. 
Compare two crawlers using the sort mode specified in the constructor.

Specified by:
compare in interface Comparator
Parameters:
o1 - first crawler
Returns:
a value less then zero, if the first crawler is smaller then the second according to the sort mode
of zero, if the first crawler equals the second according to the sort mode
larger than zero, if the first crawler is larger then the second according to the sort mode

equals

public boolean equals(Object o1)
Deprecated. 
Specified by:
equals in interface Comparator


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.