public class PageFilterHelper extends Object implements Component, Serviceable
ContentFilter
Modifier and Type | Field and Description |
---|---|
protected CurrentUserProvider |
_currentUserProvider
The current user provider
|
protected RenderingContextHandler |
_renderingContextHandler
The rendering context handler.
|
protected RightManager |
_rightManager
The right manager
|
static String |
ROLE
The Avalon Role
|
Constructor and Description |
---|
PageFilterHelper() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
isPageAccessible(Page page)
Test the page accessible by the current user.
|
void |
saxMatchingPages(ContentHandler handler,
PageFilter filter,
String siteName,
String lang,
Page currentPage)
SAX all pages matching the given filter
|
void |
saxPage(ContentHandler handler,
Page page)
SAX a page in its specific view
|
void |
service(ServiceManager manager) |
protected RightManager _rightManager
protected RenderingContextHandler _renderingContextHandler
protected CurrentUserProvider _currentUserProvider
public PageFilterHelper()
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
ServiceException
public void saxMatchingPages(ContentHandler handler, PageFilter filter, String siteName, String lang, Page currentPage) throws SAXException, IOException
handler
- The content handler to SAX intofilter
- The filtersiteName
- The current site name. Can be null.lang
- The current language. Can be null.currentPage
- The current page. Can be null.SAXException
- If an error occurs while SAXingIOException
- If an error occurs while retrieving content.protected boolean isPageAccessible(Page page)
page
- the pagepublic void saxPage(ContentHandler handler, Page page) throws SAXException, IOException
handler
- The content handler to SAX intopage
- The page to SAXSAXException
- If an error occurs while SAXingIOException
- If an error occurs while retrieving content.