org.alfresco.repo.cmis.client
Class CMISConnectionImpl

java.lang.Object
  extended by org.alfresco.repo.cmis.client.CMISConnectionImpl
All Implemented Interfaces:
java.lang.Comparable, CMISConnection

public class CMISConnectionImpl
extends java.lang.Object
implements CMISConnection


Constructor Summary
CMISConnectionImpl(AbstractCMISConnectionManagerImpl connectionManager, java.lang.String id, org.apache.chemistry.opencmis.client.api.Session session, CMISServer server, java.lang.String username, boolean isDefault, boolean isShared)
           
 
Method Summary
 void close()
          Releases the CMIS session and removes the connection from connection manager.
 int compareTo(CMISConnection conn)
           
 java.lang.String getId()
          Gets the connection id.
 java.lang.String getInternalId()
          Gets the internal connection id.
 CMISServer getServer()
          Gets the CMIS Server.
 org.apache.chemistry.opencmis.client.api.Session getSession()
          Gets the OpenCMIS Session.
 java.lang.String getUserName()
          Gets the user name.
 boolean isDefault()
          Indicates if the connection is the default connection.
 boolean isShared()
          Indicates if the connection is shared by multiple users.
 boolean supportsQuery()
          Indicates is the repository supports queries.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CMISConnectionImpl

public CMISConnectionImpl(AbstractCMISConnectionManagerImpl connectionManager,
                          java.lang.String id,
                          org.apache.chemistry.opencmis.client.api.Session session,
                          CMISServer server,
                          java.lang.String username,
                          boolean isDefault,
                          boolean isShared)
Method Detail

getId

public java.lang.String getId()
Description copied from interface: CMISConnection
Gets the connection id.

Specified by:
getId in interface CMISConnection
Returns:
connection id

getInternalId

public java.lang.String getInternalId()
Description copied from interface: CMISConnection
Gets the internal connection id.

Specified by:
getInternalId in interface CMISConnection
Returns:
connection id

getSession

public org.apache.chemistry.opencmis.client.api.Session getSession()
Description copied from interface: CMISConnection
Gets the OpenCMIS Session.

Specified by:
getSession in interface CMISConnection
Returns:
OpenCMIS session

getServer

public CMISServer getServer()
Description copied from interface: CMISConnection
Gets the CMIS Server.

Specified by:
getServer in interface CMISConnection
Returns:
CMIS Server

getUserName

public java.lang.String getUserName()
Description copied from interface: CMISConnection
Gets the user name.

Specified by:
getUserName in interface CMISConnection
Returns:
user name

isDefault

public boolean isDefault()
Description copied from interface: CMISConnection
Indicates if the connection is the default connection.

Specified by:
isDefault in interface CMISConnection

isShared

public boolean isShared()
Description copied from interface: CMISConnection
Indicates if the connection is shared by multiple users.

Specified by:
isShared in interface CMISConnection

supportsQuery

public boolean supportsQuery()
Description copied from interface: CMISConnection
Indicates is the repository supports queries.

Specified by:
supportsQuery in interface CMISConnection

close

public void close()
Description copied from interface: CMISConnection
Releases the CMIS session and removes the connection from connection manager.

Specified by:
close in interface CMISConnection

compareTo

public int compareTo(CMISConnection conn)
Specified by:
compareTo in interface java.lang.Comparable


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.