Entering content frame

Background documentation ICacheResourceValidator Interface Locate the document in its SAP Library structure

It is possible to provide a hook that can validate the cache of all the portal components called during the request. The hook is a PortalHook and is handled in the same way as other hooks in the portal.

public HookStatus doCacheResourceValidatorHook(IPortalComponentRequest request, Vector resources) throws HookException

At runtime all the cache hooks are triggered for each cached portal component called during the request and if one of the cache hooks does not return HookStatus.OK then the cache of the portal component is invalidated. All the header resources of the component are supplied in the method doCacheResourceValidatorHook(). Some resources are not valid any more depending on some parameters and this is mainly the aim of this hook to invalidate the cache of a component if a header resource is not valid.

 

 

 

Leaving content frame