SAP NetWeaver '04

com.sapportals.wcm.service.crawler
Class ICrawlerComparator

[contained in: com.sap.km.cm.service.base.par - km.shared.service.crawler_api.jar]
java.lang.Object
  |
  +--com.sapportals.wcm.service.crawler.ICrawlerComparator
All Implemented Interfaces:
java.util.Comparator

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

public class ICrawlerComparator
extends java.lang.Object
implements java.util.Comparator

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

Copyright 2004 SAP AG


Field Summary
static java.lang.String RES_BY_NAME
          Deprecated. Resource bundles for sort keys.
static java.lang.String RES_BY_PRIORITY
          Deprecated.  
static java.lang.String RES_BY_STATUS
          Deprecated.  
static java.lang.String RES_BY_TYPE
          Deprecated.  
static java.lang.String[] sortModi
          Deprecated. Sort modes.
 
Constructor Summary
ICrawlerComparator(java.lang.String sortCriteria, IResourceContext context)
          Deprecated. Construct.
 
Method Summary
 int compare(java.lang.Object o1, java.lang.Object o2)
          Deprecated. Compare two crawlers using the sort mode specified in the constructor.
 boolean equals(java.lang.Object o1)
          Deprecated.  
static java.lang.String getDescription(java.lang.String sortMode)
          Deprecated. Get the description of a sort mode
 java.lang.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 java.lang.String RES_BY_NAME
Deprecated. 
Resource bundles for sort keys.

RES_BY_PRIORITY

public static final java.lang.String RES_BY_PRIORITY
Deprecated. 

RES_BY_TYPE

public static final java.lang.String RES_BY_TYPE
Deprecated. 

RES_BY_STATUS

public static final java.lang.String RES_BY_STATUS
Deprecated. 

sortModi

public static final java.lang.String[] sortModi
Deprecated. 
Sort modes.
Constructor Detail

ICrawlerComparator

public ICrawlerComparator(java.lang.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 java.lang.String[] getSortModes()
Deprecated. 
Get valid sort modes (or 'criteria').
Returns:
the valid sort modes (or 'criteria')

getDescription

public static java.lang.String getDescription(java.lang.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(java.lang.Object o1,
                   java.lang.Object o2)
Deprecated. 
Compare two crawlers using the sort mode specified in the constructor.
Specified by:
compare in interface java.util.Comparator
Parameters:
o1 - first crawler
o1 - second 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(java.lang.Object o1)
Deprecated. 
Specified by:
equals in interface java.util.Comparator
Overrides:
equals in class java.lang.Object

SAP NetWeaver '04

Copyright © 2004 by SAP AG. All Rights Reserved.
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.