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
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 IPortalComponentRequestkey, - 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