SAP NetWeaver '04

com.sapportals.wcm.service.objecttypehandler
Interface IObjectTypeHandlerService

[contained in: com.sap.netweaver.bc.rf.service.par - bc.rf.global.service.oth_api.jar]
All Superinterfaces:
IService

public interface IObjectTypeHandlerService
extends IService


Method Summary
 IObjectTypeHandlerList getEmptyObjectTypeHandlerList()
           
 IObjectTypeHandlerList getObjectTypeHandler()
          Get the ObjectTypeHandler attribute of the IObjectTypeHandlerService object.
 IObjectTypeHandlerList getObjectTypeHandler(IResource resource)
          Get the ObjectTypeHandlerList that matches for this resource.
 IObjectTypeHandlerList getObjectTypeHandler(IResource resource, IActionType actionType)
          Gets the List of ObjectTypeHandlers which are valid for the given resource and which implement the wanted IActionType There are several internal filters realized a) resourceType b) mimeType (not for ICollection objects) c) extension (not for ICollection objects) d) actiontype In a first step, all ObjectTypeHandler for the RID of the resource are returned.
 IObjectTypeHandlerList getObjectTypeHandlerList(java.util.Vector resourceTypes)
           
 void reload()
          Reloads all oth definitions.
 
Methods inherited from interface com.sapportals.wcm.service.IService
getDescription, getDescription, getID
 

Method Detail

getEmptyObjectTypeHandlerList

public IObjectTypeHandlerList getEmptyObjectTypeHandlerList()
                                                     throws WcmException
Returns:
an empty instance of the IObjectTypeHandlerList
Throws:
WcmException - Exception raised in failure situation

getObjectTypeHandler

public IObjectTypeHandlerList getObjectTypeHandler()
                                            throws WcmException
Get the ObjectTypeHandler attribute of the IObjectTypeHandlerService object.
Returns:
The ObjectTypeHandler value
Throws:
WcmException - Exception raised in failure situation

getObjectTypeHandler

public IObjectTypeHandlerList getObjectTypeHandler(IResource resource)
                                            throws WcmException
Get the ObjectTypeHandlerList that matches for this resource. If in the Handler resourcetype, mimetype or extension are defined and the given IResource does not provide values for these attributes this handler will not be included in the list. The path-validation is done the following way: A path specified in the oth ending wihtout a "*" means, only exact matches are used -> this handler will only be valid for one resource A path specified in the oth ending with a "/" followed by one "*" means, that all direct children of this resource will match A path specified in the oth ending with a "/" followed by two "*" means, that all children and childrens children of this resource will match
   resource is "/example/level_1/myresource.gif"

 OTH_A specifies the path "/example/level_1"
 OTH_A is not valid for the resource, because its URI does not match the given path

 OTH_B specifies the path "/example/level_1/*" -> matches!

 OTH_C specifies the path "/example/*"
 OTH_C is not valid for the resource, because only children of "/example" would match

 OTH_D specifies the path "/example/**" -> matches!

 
Parameters:
resource - TODO: Description of the incoming method parameter
Returns:
The ObjectTypeHandler value
Throws:
WcmException - Exception raised in failure situation

getObjectTypeHandler

public IObjectTypeHandlerList getObjectTypeHandler(IResource resource,
                                                   IActionType actionType)
                                            throws WcmException
Gets the List of ObjectTypeHandlers which are valid for the given resource and which implement the wanted IActionType There are several internal filters realized a) resourceType b) mimeType (not for ICollection objects) c) extension (not for ICollection objects) d) actiontype In a first step, all ObjectTypeHandler for the RID of the resource are returned. Then the filters are applied in order a), b), c). If a resource doesn't have a resourcetype set, only oths that don't have a resource type specified are returned. If a resource has one or several resource types defined, the oths that have none or one matching resource tpye are valid. Other ones are filtered out. If the oths does not specify the IActionType requested, it will be filtered out The returned list of oths is not sorted.
Parameters:
resource - the resource that the action is needed for
actionType - the action requested
Returns:
The ObjectTypeHandler value
Throws:
WcmException - Exception raised in failure situation

reload

public void reload()
            throws WcmException
Reloads all oth definitions.
Throws:
WcmException - Exception raised in failure situation

getObjectTypeHandlerList

public IObjectTypeHandlerList getObjectTypeHandlerList(java.util.Vector resourceTypes)
                                                throws WcmException

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.