Ontimize Document Management 0.032EN

com.ontimize.db
Class EODMS

java.lang.Object
  extended by TableEntity
      extended by com.ontimize.db.EODMS
Direct Known Subclasses:
EDocumentBase, EProperty, EVersion

public abstract class EODMS
extends TableEntity


Field Summary
static java.lang.String LOCK_PERMISSION
           
protected static java.lang.String MSG_CHECK
           
protected static java.lang.String MSG_CHECK_PARAMS_CODE
           
protected static java.lang.String MSG_CHECK_PARAMS_DOC
           
protected static java.lang.String MSG_CHECK_PARAMS_ID
           
protected static java.lang.String MSG_CHECK_PARAMS_MAP
           
protected static java.lang.String MSG_CHECK_PARAMS_MAP1
           
protected static java.lang.String MSG_CHECK_PARAMS_MAP2
           
protected static java.lang.String MSG_L
           
protected static java.lang.String MSG_L_ERROR
           
protected static java.lang.String MSG_SESSION_ERROR
           
static java.lang.String READ_DOCUMENT_PERMISSION
           
static java.lang.String READ_PROPERTY_PERMISSION
           
static java.lang.String READ_VERSION_PERMISSION
           
static java.lang.String RESET_PERMISSION
           
static java.lang.String WRITE_DOCUMENT_PERMISSION
           
static java.lang.String WRITE_PROPERTY_PERMISSION
           
static java.lang.String WRITE_VERSION_PERMISSION
           
 
Constructor Summary
EODMS(EntityReferenceLocator locator, DatabaseConnectionManager connections, int port)
           
 
Method Summary
protected  void check()
           
protected  boolean checkBoolean(java.lang.Object value)
           
protected  void checkParams(int code, Document[] document, java.util.Map params, int sessionId)
           
protected  void checkParams(java.lang.String code, java.lang.Object o1, java.lang.Object o2, int sessionId)
           
 void checkPermissions(int sessionId, java.lang.String action)
           
 void checkPermissions(int sessionId, java.lang.String action, int code, Document[] document, java.lang.Object params)
           
protected  EntityResult createResult(JcrNodeIterator iterator, java.util.List fields, java.util.Map alias)
           
protected  boolean doCheck()
           
 IODMSLog getLogEntity()
           
 JcrSession getSession(int sessionId)
          Creates the internal session for repository.
protected  void readProperties()
           
protected  void readProperties(java.util.Properties properties, java.net.URL url)
           
protected  void readProperties(java.lang.String path)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

READ_DOCUMENT_PERMISSION

public static final java.lang.String READ_DOCUMENT_PERMISSION
See Also:
Constant Field Values

WRITE_DOCUMENT_PERMISSION

public static final java.lang.String WRITE_DOCUMENT_PERMISSION
See Also:
Constant Field Values

READ_VERSION_PERMISSION

public static final java.lang.String READ_VERSION_PERMISSION
See Also:
Constant Field Values

WRITE_VERSION_PERMISSION

public static final java.lang.String WRITE_VERSION_PERMISSION
See Also:
Constant Field Values

READ_PROPERTY_PERMISSION

public static final java.lang.String READ_PROPERTY_PERMISSION
See Also:
Constant Field Values

WRITE_PROPERTY_PERMISSION

public static final java.lang.String WRITE_PROPERTY_PERMISSION
See Also:
Constant Field Values

LOCK_PERMISSION

public static final java.lang.String LOCK_PERMISSION
See Also:
Constant Field Values

RESET_PERMISSION

public static final java.lang.String RESET_PERMISSION
See Also:
Constant Field Values

MSG_CHECK_PARAMS_ID

protected static final java.lang.String MSG_CHECK_PARAMS_ID
See Also:
Constant Field Values

MSG_CHECK_PARAMS_CODE

protected static final java.lang.String MSG_CHECK_PARAMS_CODE
See Also:
Constant Field Values

MSG_CHECK_PARAMS_DOC

protected static final java.lang.String MSG_CHECK_PARAMS_DOC
See Also:
Constant Field Values

MSG_CHECK_PARAMS_MAP

protected static final java.lang.String MSG_CHECK_PARAMS_MAP
See Also:
Constant Field Values

MSG_CHECK_PARAMS_MAP1

protected static final java.lang.String MSG_CHECK_PARAMS_MAP1
See Also:
Constant Field Values

MSG_CHECK_PARAMS_MAP2

protected static final java.lang.String MSG_CHECK_PARAMS_MAP2
See Also:
Constant Field Values

MSG_CHECK

protected static final java.lang.String MSG_CHECK
See Also:
Constant Field Values

MSG_L

protected static final java.lang.String MSG_L
See Also:
Constant Field Values

MSG_L_ERROR

protected static final java.lang.String MSG_L_ERROR
See Also:
Constant Field Values

MSG_SESSION_ERROR

protected static final java.lang.String MSG_SESSION_ERROR
See Also:
Constant Field Values
Constructor Detail

EODMS

public EODMS(EntityReferenceLocator locator,
             DatabaseConnectionManager connections,
             int port)
      throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

readProperties

protected void readProperties()
                       throws java.lang.Exception
Throws:
java.lang.Exception

readProperties

protected void readProperties(java.lang.String path)
                       throws java.lang.Exception
Throws:
java.lang.Exception

readProperties

protected void readProperties(java.util.Properties properties,
                              java.net.URL url)
                       throws java.lang.Exception
Throws:
java.lang.Exception

getLogEntity

public IODMSLog getLogEntity()

checkParams

protected void checkParams(int code,
                           Document[] document,
                           java.util.Map params,
                           int sessionId)

checkParams

protected void checkParams(java.lang.String code,
                           java.lang.Object o1,
                           java.lang.Object o2,
                           int sessionId)

doCheck

protected boolean doCheck()

check

protected void check()
              throws LErrorException
Throws:
LErrorException

checkPermissions

public void checkPermissions(int sessionId,
                             java.lang.String action)
                      throws NotInPeriodException,
                             GeneralSecurityException,
                             SessionNotFoundException
Throws:
NotInPeriodException
GeneralSecurityException
SessionNotFoundException

checkPermissions

public void checkPermissions(int sessionId,
                             java.lang.String action,
                             int code,
                             Document[] document,
                             java.lang.Object params)
                      throws NotInPeriodException,
                             GeneralSecurityException,
                             SessionNotFoundException
Throws:
NotInPeriodException
GeneralSecurityException
SessionNotFoundException

getSession

public JcrSession getSession(int sessionId)
                      throws RepositoryException

Creates the internal session for repository.

Parameters:
sessionId - Current request ID.
Returns:
Internal session.
Throws:
RepositoryException

createResult

protected EntityResult createResult(JcrNodeIterator iterator,
                                    java.util.List fields,
                                    java.util.Map alias)
                             throws RepositoryException
Throws:
RepositoryException

checkBoolean

protected boolean checkBoolean(java.lang.Object value)

Ontimize Document Management