it.eng.spago.cms.exec
Class CMSConnection

java.lang.Object
  extended by it.eng.spago.cms.exec.CMSConnection

public class CMSConnection
extends java.lang.Object

Models a connection to the jsr 170 repository


Constructor Summary
CMSConnection(Session sess, java.lang.String nameRep, java.lang.String preSys, java.lang.String preUsr)
          Constructor of the connection
 
Method Summary
 void close()
          Closes the connection
 java.lang.String getNameRepositoryPool()
          Gets the name of the repository connection pool to which the connection belongs
 java.lang.String getPrefixPropertySystem()
          Gets the prefix used for system properties
 java.lang.String getPrefixPropertyUser()
          Gets the prefix used for user properties
 Session getSession()
          Gets a jcr 170 session
 boolean isClose()
          Checks if the connection is close
 void setClose(boolean close)
          Set the close / open state of the connection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CMSConnection

public CMSConnection(Session sess,
                     java.lang.String nameRep,
                     java.lang.String preSys,
                     java.lang.String preUsr)
Constructor of the connection

Parameters:
sess, - jcr session
nameRep, - name of the repository connect
preSys, - prefix for system properties
preUsr, - prefix for user properties
Method Detail

close

public void close()
Closes the connection


isClose

public boolean isClose()
Checks if the connection is close

Returns:
boolean, true if connection is close false otherwise

getSession

public Session getSession()
Gets a jcr 170 session

Returns:
a jcr 170 Session

getNameRepositoryPool

public java.lang.String getNameRepositoryPool()
Gets the name of the repository connection pool to which the connection belongs

Returns:
Name of the repository connection pool to which the connection belongs

getPrefixPropertySystem

public java.lang.String getPrefixPropertySystem()
Gets the prefix used for system properties

Returns:
Spago CMS system properties prefix

getPrefixPropertyUser

public java.lang.String getPrefixPropertyUser()
Gets the prefix used for user properties

Returns:
Spago CMS user properties prefix

setClose

public void setClose(boolean close)
Set the close / open state of the connection

Parameters:
close - state to set