Ontimize Document Management 0.035EN

com.ontimize.dms.jcr
Interface JcrServer

All Known Implementing Classes:
JcrServerBase

public interface JcrServer

Java Content Repository Repository.

Since:
22/12/2008, 29/12/2008 XPath queries., 22/01/2009 Nodes with explicit base node., 02/01/2009 Insert a document list., 17/03/2009 Repository access in multiple sessions. Refactoring., 17/07/2009 Repository with the custom node types., 08/01/2010 Classpath validation., 15/01/2010 Data Store Garbage Collector., 27/01/2010 Allows internal sessions and user., 08/02/2010 Set a default repository configuration file., 30/09/2010 Refactoring to create custom repository connectors.

Method Summary
 void clear()
          Clears the repository Data Store unreferenced entries.
 void close()
          Closes the current JCR repository.
 EntityReferenceLocator getLocator()
           
 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)
           
 void init()
           
 void load(java.util.Map properties)
           
 void reset()
          Resets all the nodes locks (directories and files).
 void setLocator(EntityReferenceLocator locator)
           
 

Method Detail

load

void load(java.util.Map properties)
          throws java.lang.Exception
Throws:
java.lang.Exception

init

void init()
          throws java.lang.Exception
Throws:
java.lang.Exception

getLocator

EntityReferenceLocator getLocator()

setLocator

void setLocator(EntityReferenceLocator locator)

getUser

java.lang.String getUser()

Returns the internal server user.

By default, returns server

Returns:
Internal server user.

getUser

java.lang.String getUser(int sessionId)
                         throws RepositoryException
Throws:
RepositoryException

getSessionId

int getSessionId()

Returns the internal server session.

By default, returns -1.

Returns:
Internal server session.

getSession

JcrSession getSession(int sessionId)
                      throws RepositoryException
Throws:
RepositoryException

reset

void reset()
           throws RepositoryException

Resets all the nodes locks (directories and files).

Removes the status flags in all the repository.

Throws:
RepositoryException - if JCR exception ocurrs.

clear

void clear()
           throws RepositoryException

Clears the repository Data Store unreferenced entries.

The data store never deletes entries except when running data store garbage collection.

Throws:
RepositoryException - if JCR exception ocurrs.
See Also:
DataStore

close

void close()

Closes the current JCR repository.


Ontimize Document Management