Package org.apache.jackrabbit.core.xml
Class AccessControlImporter
- java.lang.Object
-
- org.apache.jackrabbit.core.xml.DefaultProtectedItemImporter
-
- org.apache.jackrabbit.core.xml.DefaultProtectedNodeImporter
-
- org.apache.jackrabbit.core.xml.AccessControlImporter
-
- All Implemented Interfaces:
ProtectedItemImporter
,ProtectedNodeImporter
,ProtectedPropertyImporter
public class AccessControlImporter extends DefaultProtectedNodeImporter
AccessControlImporter
implements aProtectedNodeImporter
that is able to deal with access control content as defined by the default ac related node types present with jackrabbit-core.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AccessControlImporter.ImportBehavior
-
Field Summary
-
Fields inherited from class org.apache.jackrabbit.core.xml.DefaultProtectedItemImporter
isWorkspaceImport, referenceTracker, resolver, session, uuidBehavior
-
-
Constructor Summary
Constructors Constructor Description AccessControlImporter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 returnsfalse
.boolean
start(NodeState protectedParent)
Always returnsfalse
.void
startChildInfo(NodeInfo childInfo, List<PropInfo> propInfos)
Does nothing.-
Methods inherited from class org.apache.jackrabbit.core.xml.DefaultProtectedItemImporter
handlePropInfo, handlePropInfo, processReferences
-
-
-
-
Method Detail
-
init
public boolean init(JackrabbitSession session, NamePathResolver resolver, boolean isWorkspaceImport, int uuidBehavior, ReferenceChangeTracker referenceTracker)
- Specified by:
init
in interfaceProtectedItemImporter
- Overrides:
init
in classDefaultProtectedItemImporter
- Returns:
- See Also:
ProtectedItemImporter.init(org.apache.jackrabbit.api.JackrabbitSession, org.apache.jackrabbit.spi.commons.conversion.NamePathResolver, boolean, int, org.apache.jackrabbit.core.util.ReferenceChangeTracker)
-
start
public boolean start(NodeImpl protectedParent) throws RepositoryException
Description copied from class:DefaultProtectedItemImporter
Always returnsfalse
.- Specified by:
start
in interfaceProtectedNodeImporter
- Overrides:
start
in classDefaultProtectedItemImporter
- Parameters:
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.- Returns:
true
If this importer is able to deal with the tree that may be present below the given protected Node.- Throws:
RepositoryException
- If an error occurs.- See Also:
ProtectedNodeImporter.start(org.apache.jackrabbit.core.NodeImpl)
-
start
public boolean start(NodeState protectedParent) throws IllegalStateException, RepositoryException
Description copied from class:DefaultProtectedItemImporter
Always returnsfalse
.- Specified by:
start
in interfaceProtectedNodeImporter
- Overrides:
start
in classDefaultProtectedItemImporter
- Parameters:
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.- Returns:
true
If this importer is able to deal with the tree that may be present below the given protected NodeState.- Throws:
IllegalStateException
- If this method is called on this importer without having reachedProtectedNodeImporter.end(NodeState)
.RepositoryException
- If an error occurs.- See Also:
ProtectedNodeImporter.start(org.apache.jackrabbit.core.state.NodeState)
-
end
public void end(NodeImpl protectedParent) throws RepositoryException
Description copied from class:DefaultProtectedItemImporter
Does nothing.- Specified by:
end
in interfaceProtectedNodeImporter
- Overrides:
end
in classDefaultProtectedItemImporter
- Throws:
ConstraintViolationException
- If the tree that was imported is incomplete.RepositoryException
- If another error occurs.- See Also:
ProtectedNodeImporter.end(NodeImpl)
-
end
public void end(NodeState protectedParent) throws IllegalStateException, ConstraintViolationException, RepositoryException
Description copied from class:DefaultProtectedItemImporter
Does nothing.- Specified by:
end
in interfaceProtectedNodeImporter
- Overrides:
end
in classDefaultProtectedItemImporter
- Throws:
IllegalStateException
- If end is called in an illegal state.ConstraintViolationException
- If the tree that was imported is incomplete.RepositoryException
- If another error occurs.- See Also:
ProtectedNodeImporter.end(NodeState)
-
startChildInfo
public void startChildInfo(NodeInfo childInfo, List<PropInfo> propInfos) throws RepositoryException
Description copied from class:DefaultProtectedItemImporter
Does nothing.- Specified by:
startChildInfo
in interfaceProtectedNodeImporter
- Overrides:
startChildInfo
in classDefaultProtectedItemImporter
- Throws:
ConstraintViolationException
- If the given infos contain invalid or incomplete data and therefore cannot be properly handled by this importer.RepositoryException
- If another error occurs.- See Also:
ProtectedNodeImporter.startChildInfo(NodeInfo, java.util.List)
-
endChildInfo
public void endChildInfo() throws RepositoryException
Description copied from class:DefaultProtectedItemImporter
Does nothing.- Specified by:
endChildInfo
in interfaceProtectedNodeImporter
- Overrides:
endChildInfo
in classDefaultProtectedItemImporter
- Throws:
ConstraintViolationException
- If this method is called before all required child information has been imported.RepositoryException
- If another error occurs.- See Also:
ProtectedNodeImporter.endChildInfo()
-
getImportBehavior
public String getImportBehavior()
- Returns:
- human readable representation of the
importBehavior
value.
-
setImportBehavior
public void setImportBehavior(String importBehaviorStr)
- Parameters:
importBehaviorStr
-
-
-