|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jackrabbit.core.xml.SessionImporter
public class SessionImporter
SessionImporter
...
Constructor Summary | |
---|---|
SessionImporter(NodeImpl importTargetNode,
SessionImpl session,
int uuidBehavior)
Creates a new SessionImporter instance. |
|
SessionImporter(NodeImpl importTargetNode,
SessionImpl session,
int uuidBehavior,
ImportConfig config)
Creates a new SessionImporter instance. |
Method Summary | |
---|---|
protected void |
checkPermission(NodeImpl parent,
Name nodeName)
make sure the editing session is allowed create nodes with a specified node type (and ev. |
protected NodeImpl |
createNode(NodeImpl parent,
Name nodeName,
Name nodeTypeName,
Name[] mixinNames,
NodeId id)
|
protected void |
createProperty(NodeImpl node,
PropInfo pInfo,
QPropertyDefinition def)
|
void |
end()
Called once at the end of the content import. |
void |
endNode(NodeInfo nodeInfo)
Called to end the import of a node. |
protected NodeImpl |
resolveUUIDConflict(NodeImpl parent,
NodeImpl 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 SessionImporter(NodeImpl importTargetNode, SessionImpl session, int uuidBehavior)
SessionImporter
instance.
importTargetNode
- the target nodesession
- sessionuuidBehavior
- any of the constants declared by
ImportUUIDBehavior
public SessionImporter(NodeImpl importTargetNode, SessionImpl session, int uuidBehavior, ImportConfig config)
SessionImporter
instance.
importTargetNode
- the target nodesession
- sessionuuidBehavior
- the desired uuid behavior as defined
by ImportUUIDBehavior
.config
- Method Detail |
---|
protected void checkPermission(NodeImpl parent, Name nodeName) throws RepositoryException
IMPORT_UUID_COLLISION_REPLACE_EXISTING
.
parent
- parent nodenodeName
- the name
RepositoryException
- if an error occursprotected NodeImpl createNode(NodeImpl parent, Name nodeName, Name nodeTypeName, Name[] mixinNames, NodeId id) throws RepositoryException
RepositoryException
protected void createProperty(NodeImpl node, PropInfo pInfo, QPropertyDefinition def) throws RepositoryException
RepositoryException
protected NodeImpl resolveUUIDConflict(NodeImpl parent, NodeImpl conflicting, NodeInfo nodeInfo) throws RepositoryException
RepositoryException
public void start() throws RepositoryException
start
in interface Importer
RepositoryException
- on a repository errorpublic void startNode(NodeInfo nodeInfo, List<PropInfo> propInfos) throws RepositoryException
Importer.endNode(NodeInfo)
call is made with the
same node information.
startNode
in interface Importer
nodeInfo
- information about the node being importedpropInfos
- information abouth the properties being imported
(list of PropInfo
instances)
RepositoryException
- on a repository errorpublic 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 Importer
nodeInfo
- information about the node being imported
RepositoryException
- on a repository errorpublic void end() throws RepositoryException
end
in interface Importer
RepositoryException
- on a repository error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |