@Deprecated public class PageInformationGenerator extends ServiceableGenerator
Modifier and Type | Field and Description |
---|---|
protected AmetysObjectResolver |
_resolver
Deprecated.
Ametys object resovler.
|
protected RightManager |
_rightManager
Deprecated.
The rights manager
|
protected SkinsManager |
_skinsManager
Deprecated.
The
SkinsManager |
protected CurrentUserProvider |
_userProvider
Deprecated.
The user provider
|
manager
objectModel, parameters, resolver, source
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer
Constructor and Description |
---|
PageInformationGenerator()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
private void |
_saxZoneItem(Zone zone,
ZoneItem zoneItem,
boolean saxTags,
String saxContents,
String saxOnlyContentFromZone,
String saxOnlyContentFromZoneItem,
String saxOnlyContentWithId)
Deprecated.
|
void |
generate()
Deprecated.
|
private void |
saxContent(String url,
String contentId)
Deprecated.
|
protected void |
saxContentTags(TagAwareAmetysObject content)
Deprecated.
SAX the content tags
|
protected void |
saxPageTags(Page page)
Deprecated.
SAX the page tags
|
protected void |
saxTags(Set<String> tags)
Deprecated.
SAX a
Set of tags |
protected void |
saxUserRights(Page page)
Deprecated.
SAX the user rights on page
|
private void |
saxZones(Page page,
boolean saxTags,
String saxContents,
String saxOnlyContentFromZone,
String saxOnlyContentFromZoneItem,
String saxOnlyContentWithId)
Deprecated.
SAX the page zoning
|
void |
service(ServiceManager serviceManager)
Deprecated.
|
dispose
recycle, setup
setConsumer, setContentHandler, setLexicalHandler
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setConsumer
protected AmetysObjectResolver _resolver
protected SkinsManager _skinsManager
SkinsManager
protected RightManager _rightManager
protected CurrentUserProvider _userProvider
public PageInformationGenerator()
public void service(ServiceManager serviceManager) throws ServiceException
service
in interface Serviceable
service
in class ServiceableGenerator
ServiceException
public void generate() throws IOException, SAXException, ProcessingException
protected void saxPageTags(Page page) throws SAXException
page
- The pageSAXException
- if an error occurred while SAXingprotected void saxContentTags(TagAwareAmetysObject content) throws SAXException
content
- The contentSAXException
- if an error occurred while SAXingprotected void saxTags(Set<String> tags) throws SAXException
Set
of tagstags
- The tags to SAXSAXException
- if an error occurred while SAXingprivate void saxZones(Page page, boolean saxTags, String saxContents, String saxOnlyContentFromZone, String saxOnlyContentFromZoneItem, String saxOnlyContentWithId) throws SAXException
page
- The pagesaxTags
- true to SAX content tagssaxContents
- If non null and non empty, implies that content information need to be saxed : the url to call is in the parameter (e.g. '/plugins/web/repository/content-info')saxOnlyContentFromZone
- if saxContent is ok, will limit to content in that zone. can be empty or null to let allsaxOnlyContentFromZoneItem
- if saxContent and saxOnlyContentFromZone is ok, will limit to content in that zoneitem. can be empty or null to let allsaxOnlyContentWithId
- if saxContent, saxOnlyContentFromZone and saxOnlyContentFromZoneItem is ok, will limit to that content. can be empty or null to let allSAXException
- SAXException if an error occurred while SAXingprivate void _saxZoneItem(Zone zone, ZoneItem zoneItem, boolean saxTags, String saxContents, String saxOnlyContentFromZone, String saxOnlyContentFromZoneItem, String saxOnlyContentWithId) throws SAXException
SAXException
private void saxContent(String url, String contentId) throws SAXException
SAXException
protected void saxUserRights(Page page) throws SAXException
page
- The page to check rightsSAXException
- if an error occurred while SAXing