com.sapportals.wcm.service.objecttypehandler

Class ObjectTypeHandlerUtil

java.lang.Object
  extended bycom.sapportals.wcm.service.objecttypehandler.ObjectTypeHandlerUtil

public class ObjectTypeHandlerUtil
extends Object

TODO: Description of the interface.


Constructor Summary
ObjectTypeHandlerUtil(IResource res)
           
 
Method Summary
 IActionList getMergedActions(IObjectTypeHandlerList list)
           
 Collection getMergedMultiValuedProperties(IObjectTypeHandlerList list, String propertykey)
           
 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.
 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 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 Collection getMergedMultiValuedProperties(IObjectTypeHandlerList list,
                                                 String propertykey)
                                          throws WcmException
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 String writeDebugInformation(IResource res,
                                    IObjectTypeHandlerList result)


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.