SAP NetWeaver '04

com.sapportals.wcm.service.objecttypehandler
Class ObjectTypeHandlerUtil

[contained in: com.sap.netweaver.bc.rf.service.par - bc.rf.global.service.oth_api.jar]
java.lang.Object
  |
  +--com.sapportals.wcm.service.objecttypehandler.ObjectTypeHandlerUtil

public class ObjectTypeHandlerUtil
extends java.lang.Object

TODO: Description of the interface.


Constructor Summary
ObjectTypeHandlerUtil(IResource res)
           
 
Method Summary
 IActionList getMergedActions(IObjectTypeHandlerList list)
           
 java.util.Collection getMergedMultiValuedProperties(IObjectTypeHandlerList list, java.lang.String propertykey)
           
 java.util.Properties getMergedProperties(IObjectTypeHandlerList list)
           
 IObjectTypeHandlerList rankHandlers(IObjectTypeHandlerList list)
          The ranking mechanism works after the following schema: For every selection criteria given in an IObjectTypeHandler , the algorithms gives points to this handler if a path is given -> 8 points if a resource type is given -> 4 points if a mimetype is given -> 2 points if an extension is given -> 1 point If several handlers have the same score after that procedure, the length of the resource path acts as the tie breaker: The more folders of the path are specified, the more exact the match naturally becomes.
 java.lang.String writeDebugInformation(IResource res, IObjectTypeHandlerList result)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectTypeHandlerUtil

public ObjectTypeHandlerUtil(IResource res)
                      throws WcmException
Parameters:
res - if null is given, the class cannot be constructed.
Throws:
WcmException - Exception raised in failure situation
WcmException - if the given IResource is null .
Method Detail

getMergedActions

public IActionList getMergedActions(IObjectTypeHandlerList list)
                             throws WcmException
Parameters:
list - TBD: Description of the incoming method parameter
Returns:
mergedActions
Throws:
WcmException - Exception raised in failure situation

getMergedProperties

public java.util.Properties getMergedProperties(IObjectTypeHandlerList list)
                                         throws WcmException
Parameters:
list - TBD: Description of the incoming method parameter
Returns:
mergedProperties
Throws:
WcmException - Exception raised in failure situation

getMergedMultiValuedProperties

public java.util.Collection getMergedMultiValuedProperties(IObjectTypeHandlerList list,
                                                           java.lang.String propertykey)
                                                    throws WcmException

rankHandlers

public IObjectTypeHandlerList rankHandlers(IObjectTypeHandlerList list)
                                    throws WcmException
The ranking mechanism works after the following schema: For every selection criteria given in an IObjectTypeHandler , the algorithms gives points to this handler if a path is given -> 8 points if a resource type is given -> 4 points if a mimetype is given -> 2 points if an extension is given -> 1 point If several handlers have the same score after that procedure, the length of the resource path acts as the tie breaker: The more folders of the path are specified, the more exact the match naturally becomes. If this is still tied, then the OTH-Files are valid for the exact same set of resources. This points to a less-optimal configuration. In this case, the behavior of the method is not determined.
Parameters:
list - a list of matching handlers
Returns:
the list of handlers, ranked by matching: The best matching handler is in first position
Throws:
WcmException - Exception raised in failure situation

writeDebugInformation

public java.lang.String writeDebugInformation(IResource res,
                                              IObjectTypeHandlerList result)

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.