com.sapportals.portal.prt.component
Interface ICachablePortalComponent

All Superinterfaces:
IPortalComponent
All Known Subinterfaces:
ICacheDiscriminator, ICacheValidator

public interface ICachablePortalComponent
extends IPortalComponent

An ICachablePortalComponent is implemented by components that want to add caching capabilites to their behavior.

See Also:
IPortalComponent

Method Summary
 CachingLevel getCachingLevel(IPortalComponentRequest request)
          Gets the caching level.
 boolean hasExpired(IPortalComponentRequest request, long creationTime, long currentTime)
          Returns a boolean indicating whether the content of this component has expired.
 
Methods inherited from interface com.sapportals.portal.prt.component.IPortalComponent
destroy, init, service
 

Method Detail

hasExpired

public boolean hasExpired(IPortalComponentRequest request,
                          long creationTime,
                          long currentTime)
Returns a boolean indicating whether the content of this component has expired.
Parameters:
request - the portal request.
creationTime - the creation time of this component.
currentTime - the actual time when the content of this component is requested by the runtime.
Returns:
true if the content has expired; false otherwise.

getCachingLevel

public CachingLevel getCachingLevel(IPortalComponentRequest request)
Gets the caching level.
Parameters:
request - the portal request
Returns:
the caching level.