|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| Field Summary | |
static String |
OBJECTTYPEHANDLER_SERVICE
|
| 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(Vector resourceTypes)
|
void |
reload()
Reloads all oth definitions. |
| Methods inherited from interface com.sapportals.wcm.service.IService |
getDescription, getDescription, getID |
| Field Detail |
public static final String OBJECTTYPEHANDLER_SERVICE
| Method Detail |
public IObjectTypeHandlerList getEmptyObjectTypeHandlerList()
throws WcmException
WcmException - Exception raised in failure situation
public IObjectTypeHandlerList getObjectTypeHandler()
throws WcmException
WcmException - Exception raised in failure situation
public IObjectTypeHandlerList getObjectTypeHandler(IResource resource)
throws WcmException
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!
resource - TODO: Description of the incoming method parameter
WcmException - Exception raised in failure situation
public IObjectTypeHandlerList getObjectTypeHandler(IResource resource,
IActionType actionType)
throws WcmException
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.
resource - the resource that the action is needed foractionType - the action requested
WcmException - Exception raised in failure situation
public void reload()
throws WcmException
WcmException - Exception raised in failure situation
public IObjectTypeHandlerList getObjectTypeHandlerList(Vector resourceTypes)
throws WcmException
WcmException
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||