public class LegacyImportHandler extends DefaultHandler
| Modifier and Type | Field and Description |
|---|---|
static Set<String> |
ADMIN_ROLES |
static Set<String> |
CUSTOM_CONTENT_ADMIN_ROLES |
static Set<String> |
CUSTOM_CONTENT_READ_ROLES |
static Set<String> |
CUSTOM_CONTENT_WRITE_ROLES |
static Set<String> |
CUSTOM_FILES_READ_ROLES |
static Set<String> |
CUSTOM_FILES_WRITE_ROLES |
static Set<String> |
READ_ROLES |
static Set<String> |
WRITE_ROLES |
| Constructor and Description |
|---|
LegacyImportHandler(JCRSessionWrapper session,
JCRNodeWrapper currentSiteNode,
NodeTypeRegistry registry,
DefinitionsMapping mapping,
Locale locale,
String originatingJahiaRelease,
LegacyPidMappingTool legacyPidMappingTool,
int initialCtnId) |
| Modifier and Type | Method and Description |
|---|---|
void |
endElement(String uri,
String localName,
String qName)
Receive notification of the end of an element.
|
int |
getCtnId() |
void |
setReferences(Map<String,List<String>> references) |
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes)
Receive notification of the start of an element.
|
characters, endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warningpublic LegacyImportHandler(JCRSessionWrapper session, JCRNodeWrapper currentSiteNode, NodeTypeRegistry registry, DefinitionsMapping mapping, Locale locale, String originatingJahiaRelease, LegacyPidMappingTool legacyPidMappingTool, int initialCtnId)
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
By default, do nothing. Application writers may override this method in a subclass to take specific actions at the start of each element (such as allocating a new tree node or writing output to a file).
startElement in interface ContentHandlerstartElement in class DefaultHandleruri - The Namespace URI, or the empty string if the element has no Namespace URI or if Namespace processing is not being
performed.localName - The local name (without prefix), or the empty string if Namespace processing is not being performed.qName - The qualified name (with prefix), or the empty string if qualified names are not available.attributes - The attributes attached to the element. If there are no attributes, it shall be an empty Attributes object.SAXException - Any SAX exception, possibly wrapping another exception.ContentHandler.startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)public void endElement(String uri, String localName, String qName) throws SAXException
By default, do nothing. Application writers may override this method in a subclass to take specific actions at the end of each element (such as finalising a tree node or writing output to a file).
endElement in interface ContentHandlerendElement in class DefaultHandleruri - The Namespace URI, or the empty string if the element has no Namespace URI or if Namespace processing is not being
performed.localName - The local name (without prefix), or the empty string if Namespace processing is not being performed.qName - The qualified name (with prefix), or the empty string if qualified names are not available.SAXException - Any SAX exception, possibly wrapping another exception.ContentHandler.endElement(java.lang.String, java.lang.String, java.lang.String)public int getCtnId()
Copyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.