Package org.ametys.web.cache
Class PageHelper
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.ametys.web.cache.PageHelper
- All Implemented Interfaces:
Component,LogEnabled,Serviceable
Helper component providing status of pages.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAllContents(Page page) Get all the contents inside a pagebooleanisCacheable(Page page) Tests if a page is cacheable, i.e: its access is not restricted all its page elements are cacheablebooleanDetermines if a captcha is required on forms of the pagevoidservice(ServiceManager serviceManager) Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Field Details
-
ROLE
The component role.
-
-
Constructor Details
-
PageHelper
public PageHelper()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Throws:
ServiceException
-
isCacheable
Tests if a page is cacheable, i.e:- its access is not restricted
- all its page elements are cacheable
- Parameters:
page- The page to test.- Returns:
- true if the page is cacheable, false otherwise.
-
isCaptchaRequired
Determines if a captcha is required on forms of the page- Parameters:
page- The page to test- Returns:
- true if a captcha is required
-
getAllContents
Get all the contents inside a page- Parameters:
page- page to search- Returns:
- list of contents in this page
-