public class AccessControlImporter extends DefaultProtectedNodeImporter
AccessControlImporter
implements a
ProtectedNodeImporter
that is able to deal with access control
content as defined by the default ac related node types present with
jackrabbit-core.Modifier and Type | Class and Description |
---|---|
static class |
AccessControlImporter.ImportBehavior |
isWorkspaceImport, referenceTracker, resolver, session, uuidBehavior
Constructor and Description |
---|
AccessControlImporter() |
Modifier and Type | Method and Description |
---|---|
void |
end(NodeImpl protectedParent)
Does nothing.
|
void |
end(NodeState protectedParent)
Does nothing.
|
void |
endChildInfo()
Does nothing.
|
String |
getImportBehavior() |
boolean |
init(JackrabbitSession session,
NamePathResolver resolver,
boolean isWorkspaceImport,
int uuidBehavior,
ReferenceChangeTracker referenceTracker) |
void |
setImportBehavior(String importBehaviorStr) |
boolean |
start(NodeImpl protectedParent)
Always returns
false . |
boolean |
start(NodeState protectedParent)
Always returns
false . |
void |
startChildInfo(NodeInfo childInfo,
List<PropInfo> propInfos)
Does nothing.
|
handlePropInfo, handlePropInfo, processReferences
public boolean init(JackrabbitSession session, NamePathResolver resolver, boolean isWorkspaceImport, int uuidBehavior, ReferenceChangeTracker referenceTracker)
init
in interface ProtectedItemImporter
init
in class DefaultProtectedItemImporter
ProtectedItemImporter.init(org.apache.jackrabbit.api.JackrabbitSession, org.apache.jackrabbit.spi.commons.conversion.NamePathResolver, boolean, int, org.apache.jackrabbit.core.util.ReferenceChangeTracker)
public boolean start(NodeImpl protectedParent) throws javax.jcr.RepositoryException
DefaultProtectedItemImporter
false
.start
in interface ProtectedNodeImporter
start
in class DefaultProtectedItemImporter
protectedParent
- A protected node that has either been created
during the current XML import or that has been found to be existing
without allowing same-name siblings.true
If this importer is able to deal with the
tree that may be present below the given protected Node.javax.jcr.RepositoryException
- If an error occurs.ProtectedNodeImporter.start(org.apache.jackrabbit.core.NodeImpl)
public boolean start(NodeState protectedParent) throws IllegalStateException, javax.jcr.RepositoryException
DefaultProtectedItemImporter
false
.start
in interface ProtectedNodeImporter
start
in class DefaultProtectedItemImporter
protectedParent
- A protected node that has either been created
during the current XML import or that has been found to be existing
without allowing same-name siblings.true
If this importer is able to deal with the
tree that may be present below the given protected NodeState.IllegalStateException
- If this method is called on
this importer without having reached ProtectedNodeImporter.end(NodeState)
.javax.jcr.RepositoryException
- If an error occurs.ProtectedNodeImporter.start(org.apache.jackrabbit.core.state.NodeState)
public void end(NodeImpl protectedParent) throws javax.jcr.RepositoryException
DefaultProtectedItemImporter
end
in interface ProtectedNodeImporter
end
in class DefaultProtectedItemImporter
javax.jcr.nodetype.ConstraintViolationException
- If the tree
that was imported is incomplete.javax.jcr.RepositoryException
- If another error occurs.ProtectedNodeImporter.end(NodeImpl)
public void end(NodeState protectedParent) throws IllegalStateException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.RepositoryException
DefaultProtectedItemImporter
end
in interface ProtectedNodeImporter
end
in class DefaultProtectedItemImporter
IllegalStateException
- If end is called in an illegal state.javax.jcr.nodetype.ConstraintViolationException
- If the tree
that was imported is incomplete.javax.jcr.RepositoryException
- If another error occurs.ProtectedNodeImporter.end(NodeState)
public void startChildInfo(NodeInfo childInfo, List<PropInfo> propInfos) throws javax.jcr.RepositoryException
DefaultProtectedItemImporter
startChildInfo
in interface ProtectedNodeImporter
startChildInfo
in class DefaultProtectedItemImporter
javax.jcr.nodetype.ConstraintViolationException
- If the given
infos contain invalid or incomplete data and therefore cannot be properly
handled by this importer.javax.jcr.RepositoryException
- If another error occurs.ProtectedNodeImporter.startChildInfo(NodeInfo, java.util.List)
public void endChildInfo() throws javax.jcr.RepositoryException
DefaultProtectedItemImporter
endChildInfo
in interface ProtectedNodeImporter
endChildInfo
in class DefaultProtectedItemImporter
javax.jcr.nodetype.ConstraintViolationException
- If this method
is called before all required child information has been imported.javax.jcr.RepositoryException
- If another error occurs.ProtectedNodeImporter.endChildInfo()
public String getImportBehavior()
importBehavior
value.public void setImportBehavior(String importBehaviorStr)
importBehaviorStr
- Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.