|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.jetspeed.portal.security.portlets.PortletWrapper
org.apache.jetspeed.portal.security.portlets.CacheablePortletWrapper
This object is used to wrap a Portlet, ensuring that access control rules are enforced.
| Field Summary |
| Fields inherited from interface org.apache.jetspeed.portal.Portlet |
PORTLET_MAXIMIZED, PORTLET_MINIMIZED, PORTLET_NORMAL |
| Constructor Summary | |
CacheablePortletWrapper(Portlet inner)
|
|
| Method Summary | |
java.lang.Long |
getExpirationMillis()
Return the expiration time in milliseconds. |
Expire |
getExpire()
Used by a Cacheable object to determine when it should expire itself from the cache. |
java.lang.String |
getHandle()
Used by the cache to get a unique reference on what you want to add and then retrieve in the future from the cache |
boolean |
isCacheable()
Return true if this Cacheable is allowed to be cached. |
void |
setCacheable(boolean cacheable)
Set this cacheable status. |
void |
setCachedObject(org.apache.turbine.services.cache.CachedObject cachedObject)
This allows the associated CachedObject to be known. |
void |
setExpirationMillis(long expirationMillis)
Set the expiration time in milliseconds. |
void |
setHandle(java.lang.String handle)
Set the handle for this Cacheable. |
| Methods inherited from class org.apache.jetspeed.portal.security.portlets.PortletWrapper |
checkPermission, getAllowEdit, getAllowMaximize, getAllowView, getAttribute, getContent, getCreationTime, getDescription, getDescription, getID, getImage, getInstance, getName, getPortlet, getPortletConfig, getTitle, getTitle, init, isShowTitleBar, providesCustomization, setAttribute, setCreationTime, setDescription, setID, setImage, setName, setPortletConfig, setTitle, setTitle, supportsType, wrap |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CacheablePortletWrapper(Portlet inner)
| Method Detail |
public boolean isCacheable()
Cacheable
isCacheable in interface CacheableTRUE if object is cachableFALSE if object is not cacheablepublic void setCacheable(boolean cacheable)
Cacheable
setCacheable in interface Cacheablecacheable - Set the cacheability of the objectpublic Expire getExpire()
Cacheable
getExpire in interface Cacheablepublic final java.lang.String getHandle()
CacheableUsed by the cache to get a unique reference on what you want to add and then retrieve in the future from the cache
Most implementations should just call the CacheHandleManager with the given params within the implementation and just return this.
getHandle in interface Cacheablepublic final void setHandle(java.lang.String handle)
CacheableSet the handle for this Cacheable.
Note that factories should call setHandle() so that getHandle() always returns a value correctly.
setHandle in interface Cacheablepublic java.lang.Long getExpirationMillis()
Cacheable
getExpirationMillis in interface CacheableCacheable.getExpirationMillis()public void setExpirationMillis(long expirationMillis)
Cacheable
setExpirationMillis in interface CacheableexpirationMillis - Set expiration in millisCacheable.setExpirationMillis(long)public void setCachedObject(org.apache.turbine.services.cache.CachedObject cachedObject)
cachedObject is to
set the expiration time
setCachedObject in interface CacheablecachedObject - Handle to the CachedObject
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||