public abstract class ACLImportHandler<O> extends AbstractImportHandler
AbstractImportHandler.ProviderStub
ImportHandler.State
mDefaultSection, mDefaultUser, mImportConfiguration, mLogger, mProvider, mSAXConfiguration
DEFAULT_NAMESPACE, UNKNOWN_FIELD_NAMESPACE
Constructor and Description |
---|
ACLImportHandler(ImportHandlerSpi pProvider,
XMLImportConfiguration pImportConfiguration,
SAXConfiguration pSAXConfiguration,
String... pSupportedRoleTypes) |
Modifier and Type | Method and Description |
---|---|
protected List<? extends ImportHandler> |
createChildHandlers() |
protected abstract ProtectionDomain |
getProtectionDomain(O pObject,
neo.xredsys.acl.Role pRole) |
void |
handleEndElement(String pNamespaceURI,
String pLocalName) |
void |
handleStartElement(String pNamespaceURI,
String pLocalName,
Attributes pAttributes) |
protected abstract O |
resolveACLObject(Attributes pAttributes) |
protected String |
rewriteRole(String pRoleName)
Makes it possible to rewrite the role before asking the database for the given role.
|
characters, cleanup, endElement, endElement, error, fatalError, getAPI, getMessageHandler, getState, getSystemId, handleCharacters, info, isAborted, onChildHandlerCompleted, rollback, setState, startElement, startElement, subclassAcceptsChildElements, supportsCharacters, supportsElement, toTimestamp, warning
endDocument, endPrefixMapping, getLocator, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
endDocument, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping
public ACLImportHandler(ImportHandlerSpi pProvider, XMLImportConfiguration pImportConfiguration, SAXConfiguration pSAXConfiguration, String... pSupportedRoleTypes)
public final void handleStartElement(String pNamespaceURI, String pLocalName, Attributes pAttributes) throws SAXException
handleStartElement
in class AbstractImportHandler
SAXException
protected String rewriteRole(String pRoleName)
pRoleName
- the name of the rolepublic final void handleEndElement(String pNamespaceURI, String pLocalName) throws SAXException
handleEndElement
in class AbstractImportHandler
SAXException
protected abstract ProtectionDomain getProtectionDomain(O pObject, neo.xredsys.acl.Role pRole)
protected abstract O resolveACLObject(Attributes pAttributes) throws SAXException
SAXException
protected List<? extends ImportHandler> createChildHandlers()
createChildHandlers
in class AbstractImportHandler
© 1998- 2018 Stibo DX