public class PageHelper extends AbstractLogEnabled implements Component, Serviceable
Modifier and Type | Field and Description |
---|---|
private InputDataExtensionPoint |
_inputDataExtensionPoint |
private RightManager |
_rightManager |
private ServiceExtensionPoint |
_serviceExtPt |
private SiteConfigurationExtensionPoint |
_siteConfiguration |
static String |
ROLE
The component role.
|
Constructor and Description |
---|
PageHelper() |
Modifier and Type | Method and Description |
---|---|
List<Content> |
getAllContents(Page page)
Get all the contents inside a page
|
boolean |
isCacheable(Page page)
Tests if a page is cacheable, i.e:
its access is not restricted
all its page elements are cachable
|
boolean |
isCaptchaRequired(Page page)
Determines if a captcha is required on forms of the page
|
void |
service(ServiceManager serviceManager) |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
private ServiceExtensionPoint _serviceExtPt
private RightManager _rightManager
private InputDataExtensionPoint _inputDataExtensionPoint
private SiteConfigurationExtensionPoint _siteConfiguration
public PageHelper()
public void service(ServiceManager serviceManager) throws ServiceException
service
in interface Serviceable
ServiceException
public boolean isCacheable(Page page)
page
- The page to test.public boolean isCaptchaRequired(Page page)
page
- The page to testpublic List<Content> getAllContents(Page page)
page
- page to search