|
Ontimize Document Management 0.035EN | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ontimize.dms.jcr.JcrSessionImpl
public class JcrSessionImpl
| Field Summary | |
|---|---|
protected JcrServer |
server
|
protected Session |
session
|
protected int |
sessionId
|
| Constructor Summary | |
|---|---|
JcrSessionImpl(int sessionId,
Session session,
JcrServer server)
|
|
| Method Summary | |
|---|---|
JcrResult[] |
add(java.lang.String keys,
Document[] documents,
java.util.Map info,
java.util.Map properties)
Inserts a documents list in the repository. |
void |
close()
Closes the current session. |
protected JcrNode |
createRootNode()
|
protected long |
getIndex(Node node)
|
protected JcrNode |
getInnerNode(java.lang.String keys,
Document document,
java.util.Map fields,
long index)
|
JcrNode |
getNode(java.util.Map fields)
|
JcrNode |
getNode(java.lang.String keys,
Document document)
Returns a node of the JCR repository. |
JcrNode |
getNode(java.lang.String keys,
Document document,
java.util.Map fields,
long index)
Returns a node of the JCR repository. |
protected Node |
getRootNode()
|
JcrServer |
getServer()
|
Session |
getSession()
Returns the internal JCR related session. |
int |
getSessionId()
|
boolean |
isLive()
Check if the current session is active. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int sessionId
protected Session session
protected JcrServer server
| Constructor Detail |
|---|
public JcrSessionImpl(int sessionId,
Session session,
JcrServer server)
throws RepositoryException
RepositoryException| Method Detail |
|---|
protected Node getRootNode()
throws RepositoryException
RepositoryExceptionpublic int getSessionId()
getSessionId in interface JcrSessionpublic Session getSession()
JcrSessionReturns the internal JCR related session.
getSession in interface JcrSessionpublic JcrServer getServer()
getServer in interface JcrSession
protected JcrNode createRootNode()
throws RepositoryException
RepositoryException
public JcrNode getNode(java.util.Map fields)
throws RepositoryException
getNode in interface JcrSessionRepositoryException
public JcrNode getNode(java.lang.String keys,
Document document)
throws RepositoryException
JcrSessionReturns a node of the JCR repository.
getNode in interface JcrSessionkeys - Internal base keys.document - Document to return.
document is null.null if the document is
null and keys are null.null if the query returns more than one result.RepositoryException - if JCR exception ocurrs.
public JcrNode getNode(java.lang.String keys,
Document document,
java.util.Map fields,
long index)
throws RepositoryException
JcrSessionReturns a node of the JCR repository.
getNode in interface JcrSessionkeys - Internal base keys.document - Document to return.fields - Properties list.index - First index is equals to 1, last index is equals to list size.
document is null.null if the document is
null and keys are null.null if the query returns more than one result.RepositoryException - if JCR exception ocurrs.
protected JcrNode getInnerNode(java.lang.String keys,
Document document,
java.util.Map fields,
long index)
throws RepositoryException
RepositoryException
protected long getIndex(Node node)
throws RepositoryException
RepositoryException
public boolean isLive()
throws RepositoryException
JcrSessionCheck if the current session is active.
isLive in interface JcrSessionRepositoryException - if JCR exception ocurrs.
public JcrResult[] add(java.lang.String keys,
Document[] documents,
java.util.Map info,
java.util.Map properties)
throws RepositoryException
JcrSessionInserts a documents list in the repository.
add in interface JcrSessionkeys - Internal base keys.documents - Document to insert.
RepositoryException - if JCR exception ocurrs.public void close()
JcrSessionCloses the current session.
close in interface JcrSession
|
Ontimize Document Management | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||