|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.core.xml.WorkspaceImporter
public class WorkspaceImporter
WorkspaceImporter ...
| Constructor Summary | |
|---|---|
WorkspaceImporter(Path parentPath,
WorkspaceImpl wsp,
NodeTypeRegistry ntReg,
int uuidBehavior)
Creates a new WorkspaceImporter instance. |
|
WorkspaceImporter(Path parentPath,
WorkspaceImpl wsp,
NodeTypeRegistry ntReg,
int uuidBehavior,
ImportConfig config)
Creates a new WorkspaceImporter instance. |
|
| Method Summary | |
|---|---|
void |
end()
Called once at the end of the content import. |
void |
endNode(NodeInfo nodeInfo)
Called to end the import of a node. |
protected void |
postProcessNode(NodeState node)
Post-process imported node (initialize properties with special semantics etc.) |
protected void |
processProperty(NodeState node,
PropInfo pInfo)
|
protected NodeState |
resolveUUIDConflict(NodeState parent,
NodeState conflicting,
NodeInfo nodeInfo)
|
void |
start()
Called once at the beginning of the content import. |
void |
startNode(NodeInfo nodeInfo,
List<PropInfo> propInfos)
Called to start the import of a node. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WorkspaceImporter(Path parentPath,
WorkspaceImpl wsp,
NodeTypeRegistry ntReg,
int uuidBehavior)
throws PathNotFoundException,
ConstraintViolationException,
VersionException,
LockException,
RepositoryException
WorkspaceImporter instance.
parentPath - target path where to add the imported subtreewsp - the workspace to operate onntReg - the node type registryuuidBehavior - flag that governs how incoming UUIDs are handled
PathNotFoundException - if no node exists at
parentPath or if the
current session is not granted read
access.
ConstraintViolationException - if the node at
parentPath is protected
VersionException - if the node at
parentPath is not
checked-out
LockException - if a lock prevents the addition of
the subtree
RepositoryException - if another error occurs
public WorkspaceImporter(Path parentPath,
WorkspaceImpl wsp,
NodeTypeRegistry ntReg,
int uuidBehavior,
ImportConfig config)
throws PathNotFoundException,
ConstraintViolationException,
VersionException,
LockException,
RepositoryException
WorkspaceImporter instance.
parentPath - target path where to add the imported subtreewsp - the workspace to operate onntReg - the node type registryuuidBehavior - flag that governs how incoming UUIDs are handledconfig - import configuration.
PathNotFoundException - if no node exists at
parentPath or if the
current session is not granted read
access.
ConstraintViolationException - if the node at
parentPath is protected
VersionException - if the node at
parentPath is not
checked-out
LockException - if a lock prevents the addition of
the subtree
RepositoryException - if another error occurs| Method Detail |
|---|
protected NodeState resolveUUIDConflict(NodeState parent,
NodeState conflicting,
NodeInfo nodeInfo)
throws RepositoryException
parent - parent node stateconflicting - conflicting node statenodeInfo - the node info
RepositoryException - if an error occurs
protected void postProcessNode(NodeState node)
throws RepositoryException
node - the node state
RepositoryException - if an error occurs
protected void processProperty(NodeState node,
PropInfo pInfo)
throws RepositoryException
RepositoryException
public void start()
throws RepositoryException
start in interface ImporterRepositoryException - on a repository error
public void startNode(NodeInfo nodeInfo,
List<PropInfo> propInfos)
throws RepositoryException
Importer.endNode(NodeInfo) call is made with the
same node information.
startNode in interface ImporternodeInfo - information about the node being importedpropInfos - information abouth the properties being imported
(list of PropInfo instances)
RepositoryException - on a repository error
public void endNode(NodeInfo nodeInfo)
throws RepositoryException
Importer.startNode(NodeInfo, List) call with the stame node
information and after all the possible child nodes have been
imported with respective startNode/endNode calls.
Just like XML elements, the startNode/endNode calls are guaranteed to be properly nested and complete.
endNode in interface ImporternodeInfo - information about the node being imported
RepositoryException - on a repository error
public void end()
throws RepositoryException
end in interface ImporterRepositoryException - on a repository error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||