Ontimize Document Management 0.032EN

com.ontimize.dms.server.entities
Class EVersion

java.lang.Object
  extended by TableEntity
      extended by com.ontimize.db.EODMS
          extended by com.ontimize.dms.server.entities.EVersion
All Implemented Interfaces:
IODMSVersions

public class EVersion
extends EODMS
implements IODMSVersions


Field Summary
protected static java.util.Map ALIAS_JCR_2_ENTITY
           
static java.lang.String CREATE_BY_COLUMN
           
static java.lang.String CREATION_DATE_COLUMN
           
static java.lang.String DOWNLOADING_COLUMN
           
static java.lang.String FILE_DATE_COLUMN
           
static java.lang.String FILE_SIZE_COLUMN
           
static java.lang.String FILE_USER_COLUMN
           
static java.lang.String ID_VERSION_COLUMN
           
protected static java.lang.String MSG_NODE_NULL
           
protected static java.lang.String MSG_OP_DELETE_ERROR
           
protected static java.lang.String MSG_OP_GET_ERROR
           
protected static java.lang.String MSG_OP_QUERY_ERROR
           
protected static java.lang.String MSG_OP_REMOVE_ERROR
           
static java.lang.String NUMBER_NAME_COLUMN
           
 
Fields inherited from class com.ontimize.db.EODMS
LOCK_PERMISSION, MSG_CHECK, MSG_CHECK_PARAMS_CODE, MSG_CHECK_PARAMS_DOC, MSG_CHECK_PARAMS_ID, MSG_CHECK_PARAMS_MAP, MSG_CHECK_PARAMS_MAP1, MSG_CHECK_PARAMS_MAP2, MSG_L, MSG_L_ERROR, MSG_SESSION_ERROR, READ_DOCUMENT_PERMISSION, READ_PROPERTY_PERMISSION, READ_VERSION_PERMISSION, RESET_PERMISSION, WRITE_DOCUMENT_PERMISSION, WRITE_PROPERTY_PERMISSION, WRITE_VERSION_PERMISSION
 
Constructor Summary
EVersion(EntityReferenceLocator locator, DatabaseConnectionManager connections, int port)
           
 
Method Summary
 EntityResult delete(java.util.Hashtable kv, int sessionId)
          Deletes a version of the given document.
 EntityResult delete(java.util.Hashtable kv, int sessionId, java.sql.Connection con)
           
 java.lang.Object deleteVersion(int code, Document[] document, java.util.Map params, int sessionId)
           
 java.lang.Object getVersions(int code, Document[] document, java.util.Map params, int sessionId)
           
 java.lang.Object getVersionsNumber(int code, Document[] document, java.util.Map params, int sessionId)
           
 EntityResult insert(java.util.Hashtable av, int sessionId)
           
 EntityResult insert(java.util.Hashtable av, int sessionId, java.sql.Connection con)
           
 EntityResult query(java.util.Hashtable kv, java.util.Vector av, int sessionId)
          Related version information of a node.
 EntityResult query(java.util.Hashtable kv, java.util.Vector av, int sessionId, java.sql.Connection con)
           
 EntityResult update(java.util.Hashtable av, java.util.Hashtable kv, int sessionId)
           
 EntityResult update(java.util.Hashtable av, java.util.Hashtable kv, int sessionId, java.sql.Connection con)
           
 
Methods inherited from class com.ontimize.db.EODMS
check, checkBoolean, checkParams, checkParams, checkPermissions, checkPermissions, createResult, doCheck, getLogEntity, getSession, readProperties, readProperties, readProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FILE_SIZE_COLUMN

public static java.lang.String FILE_SIZE_COLUMN

FILE_USER_COLUMN

public static java.lang.String FILE_USER_COLUMN

FILE_DATE_COLUMN

public static java.lang.String FILE_DATE_COLUMN

NUMBER_NAME_COLUMN

public static java.lang.String NUMBER_NAME_COLUMN

ID_VERSION_COLUMN

public static java.lang.String ID_VERSION_COLUMN

CREATE_BY_COLUMN

public static java.lang.String CREATE_BY_COLUMN

CREATION_DATE_COLUMN

public static java.lang.String CREATION_DATE_COLUMN

DOWNLOADING_COLUMN

public static java.lang.String DOWNLOADING_COLUMN

MSG_NODE_NULL

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

MSG_OP_GET_ERROR

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

MSG_OP_REMOVE_ERROR

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

MSG_OP_QUERY_ERROR

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

MSG_OP_DELETE_ERROR

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

ALIAS_JCR_2_ENTITY

protected static java.util.Map ALIAS_JCR_2_ENTITY
Constructor Detail

EVersion

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

getVersionsNumber

public java.lang.Object getVersionsNumber(int code,
                                          Document[] document,
                                          java.util.Map params,
                                          int sessionId)
                                   throws java.lang.Exception
Specified by:
getVersionsNumber in interface IODMSVersions
Throws:
java.lang.Exception

getVersions

public java.lang.Object getVersions(int code,
                                    Document[] document,
                                    java.util.Map params,
                                    int sessionId)
                             throws java.lang.Exception
Specified by:
getVersions in interface IODMSVersions
Throws:
java.lang.Exception

deleteVersion

public java.lang.Object deleteVersion(int code,
                                      Document[] document,
                                      java.util.Map params,
                                      int sessionId)
                               throws java.lang.Exception
Specified by:
deleteVersion in interface IODMSVersions
Throws:
java.lang.Exception

query

public EntityResult query(java.util.Hashtable kv,
                          java.util.Vector av,
                          int sessionId)
                   throws java.lang.Exception
Related version information of a node.

Throws:
java.lang.Exception

query

public EntityResult query(java.util.Hashtable kv,
                          java.util.Vector av,
                          int sessionId,
                          java.sql.Connection con)
                   throws java.lang.Exception
Throws:
java.lang.Exception

delete

public EntityResult delete(java.util.Hashtable kv,
                           int sessionId)
                    throws java.lang.Exception

Deletes a version of the given document.

If no version is provided, the node is deleted.

Throws:
java.lang.Exception

delete

public EntityResult delete(java.util.Hashtable kv,
                           int sessionId,
                           java.sql.Connection con)
                    throws java.lang.Exception
Throws:
java.lang.Exception

insert

public EntityResult insert(java.util.Hashtable av,
                           int sessionId)
                    throws java.lang.Exception
Throws:
java.lang.Exception

insert

public EntityResult insert(java.util.Hashtable av,
                           int sessionId,
                           java.sql.Connection con)
                    throws java.lang.Exception
Throws:
java.lang.Exception

update

public EntityResult update(java.util.Hashtable av,
                           java.util.Hashtable kv,
                           int sessionId)
                    throws java.lang.Exception
Throws:
java.lang.Exception

update

public EntityResult update(java.util.Hashtable av,
                           java.util.Hashtable kv,
                           int sessionId,
                           java.sql.Connection con)
                    throws java.lang.Exception
Throws:
java.lang.Exception

Ontimize Document Management