|
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.JcrServerBase
public abstract class JcrServerBase
JCR Ontimize Server implementation.
Provides a simple access to JCR main objects.
| Field Summary | |
|---|---|
static java.lang.String |
CONTENT_ALIAS_KEY
Optional. |
protected static java.lang.String |
DEFAULT_CONTENT_ALIAS_PATH
|
protected java.lang.String |
host
|
protected static int |
INTERNAL_SESSION_ID
|
protected static java.lang.String |
INTERNAL_USER_ID
|
static java.lang.String |
MSG_CONTENT_ALIAS
|
static java.lang.String |
MSG_HOST
|
static java.lang.String |
MSG_HOST_NULL
|
protected static java.lang.String |
MSG_INIT_TIME
|
static java.lang.String |
MSG_LOCATOR_NULL
|
static java.lang.String |
MSG_NAME
|
static java.lang.String |
MSG_NAME_NULL
|
static java.lang.String |
MSG_PORT
|
static java.lang.String |
MSG_PORT_INVALID
|
static java.lang.String |
MSG_PORT_NULL
|
static java.lang.String |
MSG_PROPERTIES_NULL
|
static java.lang.String |
MSG_PWD
|
static java.lang.String |
MSG_PWD_NULL
|
static java.lang.String |
MSG_RESET_INIT_1
|
static java.lang.String |
MSG_RESET_INIT_2
|
static java.lang.String |
MSG_RESET_NODE
|
static java.lang.String |
MSG_RESET_SESSION_NULL
|
protected static java.lang.String |
MSG_SESSION_MSG
|
static java.lang.String |
MSG_USER
|
static java.lang.String |
MSG_USER_NULL
|
protected java.lang.String |
name
|
protected java.lang.String |
port
|
protected java.lang.String |
pwd
|
protected java.lang.String |
user
|
| Constructor Summary | |
|---|---|
JcrServerBase()
|
|
| Method Summary | |
|---|---|
abstract void |
clear()
Clears the repository Data Store unreferenced entries. |
void |
close()
Closes the current JCR repository. |
protected java.lang.String |
createConnectionString()
|
protected abstract JcrSession |
createSession(int sessionId)
|
protected void |
doReset(JcrSession session)
|
protected java.lang.String |
getContentAlias()
|
protected java.lang.String |
getHostValue()
|
protected Session |
getInnerSession()
|
EntityReferenceLocator |
getLocator()
|
protected java.lang.String |
getNameValue()
|
protected java.lang.String |
getPortValue()
|
protected java.lang.String |
getPwdValue()
|
protected JcrSession |
getServerSession()
|
JcrSession |
getSession(int sessionId)
|
int |
getSessionId()
Returns the internal server session. |
java.lang.String |
getUser()
Returns the internal server user. |
java.lang.String |
getUser(int sessionId)
|
protected java.lang.String |
getUserValue()
|
void |
init()
|
void |
load(java.util.Map properties)
|
void |
reset()
Resets all the nodes locks (directories and files). |
protected void |
setContentAlias(java.lang.String alias)
|
protected void |
setHostValue(java.lang.String host)
|
void |
setLocator(EntityReferenceLocator locator)
|
protected void |
setNameValue(java.lang.String name)
|
protected void |
setPortValue(java.lang.String port)
|
protected void |
setPwdValue(java.lang.String pwd)
|
protected void |
setServerSession(JcrSession session)
|
protected void |
setUserValue(java.lang.String user)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String CONTENT_ALIAS_KEY
protected static final java.lang.String DEFAULT_CONTENT_ALIAS_PATH
protected static final java.lang.String MSG_INIT_TIME
protected static final java.lang.String MSG_SESSION_MSG
public static final java.lang.String MSG_PROPERTIES_NULL
public static final java.lang.String MSG_LOCATOR_NULL
public static final java.lang.String MSG_CONTENT_ALIAS
public static final java.lang.String MSG_RESET_SESSION_NULL
public static final java.lang.String MSG_RESET_INIT_1
public static final java.lang.String MSG_RESET_INIT_2
public static final java.lang.String MSG_RESET_NODE
public static final java.lang.String MSG_HOST
public static final java.lang.String MSG_HOST_NULL
public static final java.lang.String MSG_PORT
public static final java.lang.String MSG_PORT_NULL
public static final java.lang.String MSG_PORT_INVALID
public static final java.lang.String MSG_NAME
public static final java.lang.String MSG_NAME_NULL
public static final java.lang.String MSG_USER
public static final java.lang.String MSG_USER_NULL
public static final java.lang.String MSG_PWD
public static final java.lang.String MSG_PWD_NULL
protected static final java.lang.String INTERNAL_USER_ID
protected static final int INTERNAL_SESSION_ID
protected java.lang.String host
protected java.lang.String port
protected java.lang.String name
protected java.lang.String user
protected java.lang.String pwd
| Constructor Detail |
|---|
public JcrServerBase()
| Method Detail |
|---|
public void load(java.util.Map properties)
throws java.lang.Exception
load in interface JcrServerjava.lang.Exception
public void init()
throws java.lang.Exception
init in interface JcrServerjava.lang.Exceptionpublic EntityReferenceLocator getLocator()
getLocator in interface JcrServerpublic void setLocator(EntityReferenceLocator locator)
setLocator in interface JcrServerpublic java.lang.String getUser()
JcrServerReturns the internal server user.
By default, returns server
getUser in interface JcrServer
public java.lang.String getUser(int sessionId)
throws RepositoryException
getUser in interface JcrServerRepositoryExceptionpublic int getSessionId()
JcrServerReturns the internal server session.
By default, returns -1.
getSessionId in interface JcrServer
protected JcrSession getServerSession()
throws RepositoryException
RepositoryExceptionprotected Session getInnerSession()
protected void setServerSession(JcrSession session)
public JcrSession getSession(int sessionId)
throws RepositoryException
getSession in interface JcrServerRepositoryException
protected abstract JcrSession createSession(int sessionId)
throws RepositoryException
RepositoryException
public void reset()
throws RepositoryException
JcrServerResets all the nodes locks (directories and files).
Removes the status flags in all the repository.
reset in interface JcrServerRepositoryException - if JCR exception ocurrs.
protected void doReset(JcrSession session)
throws RepositoryException
RepositoryException
public abstract void clear()
throws RepositoryException
JcrServerClears the repository Data Store unreferenced entries.
The data store never deletes entries except when running data store garbage collection.
clear in interface JcrServerRepositoryException - if JCR exception ocurrs.public void close()
JcrServerCloses the current JCR repository.
close in interface JcrServerprotected java.lang.String getContentAlias()
protected void setContentAlias(java.lang.String alias)
protected java.lang.String getHostValue()
protected java.lang.String getPortValue()
protected java.lang.String getNameValue()
protected java.lang.String getUserValue()
protected java.lang.String getPwdValue()
protected void setHostValue(java.lang.String host)
protected void setPortValue(java.lang.String port)
protected void setNameValue(java.lang.String name)
protected void setUserValue(java.lang.String user)
protected void setPwdValue(java.lang.String pwd)
protected java.lang.String createConnectionString()
|
Ontimize Document Management | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||