public class CMISConnectionImpl extends java.lang.Object implements CMISConnection
Constructor and Description |
---|
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) |
Modifier and Type | Method and Description |
---|---|
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.
|
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)
public java.lang.String getId()
CMISConnection
getId
in interface CMISConnection
public java.lang.String getInternalId()
CMISConnection
getInternalId
in interface CMISConnection
public org.apache.chemistry.opencmis.client.api.Session getSession()
CMISConnection
getSession
in interface CMISConnection
public CMISServer getServer()
CMISConnection
getServer
in interface CMISConnection
public java.lang.String getUserName()
CMISConnection
getUserName
in interface CMISConnection
public boolean isDefault()
CMISConnection
isDefault
in interface CMISConnection
public boolean isShared()
CMISConnection
isShared
in interface CMISConnection
public boolean supportsQuery()
CMISConnection
supportsQuery
in interface CMISConnection
public void close()
CMISConnection
close
in interface CMISConnection
public int compareTo(CMISConnection conn)
compareTo
in interface java.lang.Comparable
Copyright © 2005 - 2013 Alfresco Software, Inc. All Rights Reserved.