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
AccessControlImporterimplements aProtectedNodeImporterthat 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 classAccessControlImporter.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 voidend(NodeImpl protectedParent)Does nothing.voidend(NodeState protectedParent)Does nothing.voidendChildInfo()Does nothing.StringgetImportBehavior()booleaninit(JackrabbitSession session, NamePathResolver resolver, boolean isWorkspaceImport, int uuidBehavior, ReferenceChangeTracker referenceTracker)voidsetImportBehavior(String importBehaviorStr)booleanstart(NodeImpl protectedParent)Always returnsfalse.booleanstart(NodeState protectedParent)Always returnsfalse.voidstartChildInfo(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:
initin interfaceProtectedItemImporter- Overrides:
initin 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:DefaultProtectedItemImporterAlways returnsfalse.- Specified by:
startin interfaceProtectedNodeImporter- Overrides:
startin 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:
trueIf 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:DefaultProtectedItemImporterAlways returnsfalse.- Specified by:
startin interfaceProtectedNodeImporter- Overrides:
startin 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:
trueIf 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:DefaultProtectedItemImporterDoes nothing.- Specified by:
endin interfaceProtectedNodeImporter- Overrides:
endin 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:DefaultProtectedItemImporterDoes nothing.- Specified by:
endin interfaceProtectedNodeImporter- Overrides:
endin 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:DefaultProtectedItemImporterDoes nothing.- Specified by:
startChildInfoin interfaceProtectedNodeImporter- Overrides:
startChildInfoin 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 RepositoryExceptionDescription copied from class:DefaultProtectedItemImporterDoes nothing.- Specified by:
endChildInfoin interfaceProtectedNodeImporter- Overrides:
endChildInfoin 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
importBehaviorvalue.
-
setImportBehavior
public void setImportBehavior(String importBehaviorStr)
- Parameters:
importBehaviorStr-
-
-