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
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.