org.alfresco.repo.cmis.client
Interface CMISConnection

All Superinterfaces:
java.lang.Comparable
All Known Implementing Classes:
CMISConnectionImpl

public interface CMISConnection
extends java.lang.Comparable

Represents a CMIS connection.


Method Summary
 void close()
          Releases the CMIS session and removes the connection from connection manager.
 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 interface java.lang.Comparable
compareTo
 

Method Detail

getId

java.lang.String getId()
Gets the connection id.

Returns:
connection id

getInternalId

java.lang.String getInternalId()
Gets the internal connection id.

Returns:
connection id

getSession

org.apache.chemistry.opencmis.client.api.Session getSession()
Gets the OpenCMIS Session.

Returns:
OpenCMIS session

getServer

CMISServer getServer()
Gets the CMIS Server.

Returns:
CMIS Server

getUserName

java.lang.String getUserName()
Gets the user name.

Returns:
user name

isShared

boolean isShared()
Indicates if the connection is shared by multiple users.


isDefault

boolean isDefault()
Indicates if the connection is the default connection.


supportsQuery

boolean supportsQuery()
Indicates is the repository supports queries.


close

void close()
Releases the CMIS session and removes the connection from connection manager.



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