Ontimize Document Management 0.032EN

com.ontimize.dms.server.entities
Class EProperty

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

public class EProperty
extends EODMS
implements IODMSProperties


Field Summary
protected static java.util.Map ALIAS_ENTITY_2_JCR
           
protected static java.util.Map ALIAS_JCR_2_ENTITY
           
protected static java.lang.String MSG_NODE_NULL
           
protected static java.lang.String MSG_OP_DELETE_ERROR
           
protected static java.lang.String MSG_OP_QUERY_ERROR
           
protected static java.lang.String MSG_OP_SAVE_ERROR
           
protected static java.lang.String MSG_OP_UPDATE_ERROR
           
 
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
EProperty(EntityReferenceLocator locator, DatabaseConnectionManager connections, int port)
           
 
Method Summary
 EntityResult delete(java.util.Hashtable kv, int sessionId)
          Deletes a property list from a given node (Only one).
 EntityResult delete(java.util.Hashtable kv, int sessionId, java.sql.Connection con)
           
 java.lang.Object getProperties(int code, Document[] document, java.util.Map params, int sessionId)
           
 java.lang.Object getPropertiesList(int code, Document[] document, java.util.Map params, java.util.Map alias, int sessionId)
          No context is available (Client operation from local cache)
 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)
          Query node properties list and return a list result.
 EntityResult query(java.util.Hashtable kv, java.util.Vector av, int sessionId, java.sql.Connection con)
           
 java.lang.Object saveProperties(int code, Document[] document, java.util.Map params, int sessionId)
          Save document properties
 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

MSG_NODE_NULL

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

MSG_OP_SAVE_ERROR

protected static final java.lang.String MSG_OP_SAVE_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

MSG_OP_UPDATE_ERROR

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

ALIAS_JCR_2_ENTITY

protected static java.util.Map ALIAS_JCR_2_ENTITY

ALIAS_ENTITY_2_JCR

protected static java.util.Map ALIAS_ENTITY_2_JCR
Constructor Detail

EProperty

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

getProperties

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

getPropertiesList

public java.lang.Object getPropertiesList(int code,
                                          Document[] document,
                                          java.util.Map params,
                                          java.util.Map alias,
                                          int sessionId)
                                   throws java.lang.Exception

No context is available (Client operation from local cache)

Specified by:
getPropertiesList in interface IODMSProperties
Parameters:
params - Map with the properties list and current context. See {Codes.PROPERTIES_LIST}
alias - Map with the property name translation.
Throws:
java.lang.Exception

saveProperties

public java.lang.Object saveProperties(int code,
                                       Document[] document,
                                       java.util.Map params,
                                       int sessionId)
                                throws java.lang.Exception

Save document properties

Specified by:
saveProperties in interface IODMSProperties
Throws:
java.lang.Exception

query

public EntityResult query(java.util.Hashtable kv,
                          java.util.Vector av,
                          int sessionId)
                   throws java.lang.Exception

Query node properties list and return a list result.

Returns:
EntityResult with node properties list.
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 property list from a given node (Only one).

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
See Also:
EProperty.update

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