com.sapportals.portal.prt.component
Interface ICacheValidator

All Superinterfaces:
ICachablePortalComponent, IPortalComponent

public interface ICacheValidator
extends ICachablePortalComponent

An ICachableValidator is implemented by components that wants to control the validity of the cache using a key which is stored in the cache content


Method Summary
 java.lang.String getValidationKey(IPortalComponentRequest request)
          Computes a key that will be stored in the cache and that will passed in the method isCacheValid at each request
 boolean isCacheValid(IPortalComponentRequest request, java.lang.String key)
          Test whether the cache is valid or not given a key which is stored in the cache content
 
Methods inherited from interface com.sapportals.portal.prt.component.ICachablePortalComponent
getCachingLevel, hasExpired
 
Methods inherited from interface com.sapportals.portal.prt.component.IPortalComponent
destroy, init, service
 

Method Detail

isCacheValid

public boolean isCacheValid(IPortalComponentRequest request,
                            java.lang.String key)
Test whether the cache is valid or not given a key which is stored in the cache content
Parameters:
request, - the IPortalComponentRequest
key, - the key which is stored

getValidationKey

public java.lang.String getValidationKey(IPortalComponentRequest request)
Computes a key that will be stored in the cache and that will passed in the method isCacheValid at each request
Returns:
a string, the validity key