|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 Cacheable
TRUE
if object is cachableFALSE
if object is not cacheablepublic void setCacheable(boolean cacheable)
Cacheable
setCacheable
in interface Cacheable
cacheable
- Set the cacheability of the objectpublic Expire getExpire()
Cacheable
getExpire
in interface Cacheable
public final java.lang.String getHandle()
Cacheable
Used 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 Cacheable
public final void setHandle(java.lang.String handle)
Cacheable
Set the handle for this Cacheable.
Note that factories should call setHandle() so that getHandle() always returns a value correctly.
setHandle
in interface Cacheable
public java.lang.Long getExpirationMillis()
Cacheable
getExpirationMillis
in interface Cacheable
Cacheable.getExpirationMillis()
public void setExpirationMillis(long expirationMillis)
Cacheable
setExpirationMillis
in interface Cacheable
expirationMillis
- 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 Cacheable
cachedObject
- Handle to the CachedObject
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |