public class PageAttachmentsGenerator extends ServiceableGenerator
Modifier and Type | Field and Description |
---|---|
private DublinCoreMetadataProvider |
_dcProvider
The DublinCore metadata provider
|
private int |
_depth |
private I18nUtils |
_i18nUtils |
protected AmetysObjectResolver |
_resolver
The ametys object resolver
|
protected UserManager |
_userManager
The user manager
|
manager
objectModel, parameters, resolver, source
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer
Constructor and Description |
---|
PageAttachmentsGenerator() |
Modifier and Type | Method and Description |
---|---|
private void |
_saxIcon(String filename) |
private void |
_saxNonEmptyAttributes(AttributesImpl attrs,
String metadataName,
String value,
String language) |
private void |
_saxSize(long size) |
void |
generate() |
protected void |
getDCAttributes(AttributesImpl attrs,
Resource resource)
SAX the DublinCore metadata
|
protected void |
saxFile(Resource resource)
Sax a
Resource |
protected void |
saxFolder(ExplorerNode node,
int depth)
SAX a
ExplorerNode |
protected void |
saxPage(Page page)
SAX the page
|
void |
service(ServiceManager sManager) |
dispose
recycle, setup
setConsumer, setContentHandler, setLexicalHandler
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setConsumer
protected UserManager _userManager
protected AmetysObjectResolver _resolver
private DublinCoreMetadataProvider _dcProvider
private int _depth
private I18nUtils _i18nUtils
public PageAttachmentsGenerator()
public void service(ServiceManager sManager) throws ServiceException
service
in interface Serviceable
service
in class ServiceableGenerator
ServiceException
public void generate() throws IOException, SAXException, ProcessingException
protected void saxPage(Page page) throws SAXException
page
- the page. Can be null.SAXException
- If an error occurred while SAXingprotected void saxFolder(ExplorerNode node, int depth) throws SAXException
ExplorerNode
node
- The node to SAXdepth
- The depthSAXException
- If an error occurred while SAXingprotected void saxFile(Resource resource) throws SAXException
Resource
resource
- The node to saxSAXException
- If an erreor occurred while saxingprotected void getDCAttributes(AttributesImpl attrs, Resource resource)
attrs
- The attributesresource
- The resourceprivate void _saxNonEmptyAttributes(AttributesImpl attrs, String metadataName, String value, String language)
private void _saxIcon(String filename) throws SAXException
SAXException
private void _saxSize(long size) throws SAXException
SAXException