Class PageInformationGenerator
- java.lang.Object
-
- org.apache.avalon.framework.logger.AbstractLogEnabled
-
- org.apache.cocoon.xml.AbstractXMLProducer
-
- org.apache.cocoon.generation.AbstractGenerator
-
- org.apache.cocoon.generation.ServiceableGenerator
-
- org.ametys.web.repository.page.generators.PageInformationGenerator
-
- All Implemented Interfaces:
Poolable
,Recyclable
,Disposable
,Component
,LogEnabled
,Serviceable
,Generator
,SitemapModelComponent
,XMLProducer
@Deprecated public class PageInformationGenerator extends ServiceableGenerator
Deprecated.SAX the all page information TODO to remove. Use SitemapDAO.convertPathToId instead
-
-
Field Summary
Fields Modifier and Type Field Description protected AmetysObjectResolver
_resolver
Deprecated.Ametys object resovler.protected RightManager
_rightManager
Deprecated.The rights managerprotected SkinsManager
_skinsManager
Deprecated.TheSkinsManager
protected CurrentUserProvider
_userProvider
Deprecated.The user provider-
Fields inherited from class org.apache.cocoon.generation.ServiceableGenerator
manager
-
Fields inherited from class org.apache.cocoon.generation.AbstractGenerator
objectModel, parameters, resolver, source
-
Fields inherited from class org.apache.cocoon.xml.AbstractXMLProducer
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer
-
-
Constructor Summary
Constructors Constructor Description PageInformationGenerator()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method 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 tagsprotected void
saxPageTags(Page page)
Deprecated.SAX the page tagsprotected void
saxTags(Set<String> tags)
Deprecated.SAX aSet
of tagsprotected void
saxUserRights(Page page)
Deprecated.SAX the user rights on pageprivate void
saxZones(Page page, boolean saxTags, String saxContents, String saxOnlyContentFromZone, String saxOnlyContentFromZoneItem, String saxOnlyContentWithId)
Deprecated.SAX the page zoningvoid
service(ServiceManager serviceManager)
Deprecated.-
Methods inherited from class org.apache.cocoon.generation.ServiceableGenerator
dispose
-
Methods inherited from class org.apache.cocoon.generation.AbstractGenerator
recycle, setup
-
Methods inherited from class org.apache.cocoon.xml.AbstractXMLProducer
setConsumer, setContentHandler, setLexicalHandler
-
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.cocoon.xml.XMLProducer
setConsumer
-
-
-
-
Field Detail
-
_resolver
protected AmetysObjectResolver _resolver
Deprecated.Ametys object resovler.
-
_skinsManager
protected SkinsManager _skinsManager
Deprecated.TheSkinsManager
-
_rightManager
protected RightManager _rightManager
Deprecated.The rights manager
-
_userProvider
protected CurrentUserProvider _userProvider
Deprecated.The user provider
-
-
Constructor Detail
-
PageInformationGenerator
public PageInformationGenerator()
Deprecated.
-
-
Method Detail
-
service
public void service(ServiceManager serviceManager) throws ServiceException
Deprecated.- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classServiceableGenerator
- Throws:
ServiceException
-
generate
public void generate() throws IOException, SAXException, ProcessingException
Deprecated.
-
saxPageTags
protected void saxPageTags(Page page) throws SAXException
Deprecated.SAX the page tags- Parameters:
page
- The page- Throws:
SAXException
- if an error occurred while SAXing
-
saxContentTags
protected void saxContentTags(TagAwareAmetysObject content) throws SAXException
Deprecated.SAX the content tags- Parameters:
content
- The content- Throws:
SAXException
- if an error occurred while SAXing
-
saxTags
protected void saxTags(Set<String> tags) throws SAXException
Deprecated.SAX aSet
of tags- Parameters:
tags
- The tags to SAX- Throws:
SAXException
- if an error occurred while SAXing
-
saxZones
private void saxZones(Page page, boolean saxTags, String saxContents, String saxOnlyContentFromZone, String saxOnlyContentFromZoneItem, String saxOnlyContentWithId) throws SAXException
Deprecated.SAX the page zoning- Parameters:
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 all- Throws:
SAXException
- SAXException if an error occurred while SAXing
-
_saxZoneItem
private void _saxZoneItem(Zone zone, ZoneItem zoneItem, boolean saxTags, String saxContents, String saxOnlyContentFromZone, String saxOnlyContentFromZoneItem, String saxOnlyContentWithId) throws SAXException
Deprecated.- Throws:
SAXException
-
saxContent
private void saxContent(String url, String contentId) throws SAXException
Deprecated.- Throws:
SAXException
-
saxUserRights
protected void saxUserRights(Page page) throws SAXException
Deprecated.SAX the user rights on page- Parameters:
page
- The page to check rights- Throws:
SAXException
- if an error occurred while SAXing
-
-