org.alfresco.repo.cmis.client
Interface CMISConnectionManager

All Known Implementing Classes:
AbstractCMISConnectionManagerImpl, CMISLocalConnectionManagerImpl, CMISRemoteConnectionManagerImpl

public interface CMISConnectionManager

Manages all CMIS client connections.


Method Summary
 CMISConnection createDefaultConnection(CMISServer server)
          Creates a new default connection that is only visible to the current user.
 CMISServer createServerDefinition(CMISServer server, java.lang.String username, java.lang.String password)
          Creates a new server definition from a template.
 CMISServer createServerDefinition(CMISServer server, java.lang.String username, java.lang.String password, java.lang.String repositoryId)
          Creates a new server definition from a template.
 CMISServer createServerDefinition(java.lang.String serverName, java.util.Map parameters)
          Creates a new server definition.
 CMISConnection createSharedConnection(CMISServer server, java.lang.String connectionId)
          Creates a new connection that is visible to all users.
 CMISConnection createUserConnection(CMISServer server, java.lang.String connectionId)
          Creates a new connection that is only visible to the current user.
 CMISConnection getConnection()
          Gets or creates a connection to the local server or a default server.
 CMISConnection getConnection(java.lang.String connectionId)
          Returns a specific connection or null if the connection id is unknown.
 java.util.List getRepositories(CMISServer server)
          Returns all repositories available at this server.
 CMISServer getServerDefinition(java.lang.String serverName)
          Gets a server definitions by name.
 java.util.List getServerDefinitions()
          Returns all configured server definitions.
 java.util.List getSharedConnections()
          Returns all shared connections.
 java.util.List getUserConnections()
          Returns all user connections.
 

Method Detail

createDefaultConnection

CMISConnection createDefaultConnection(CMISServer server)
Creates a new default connection that is only visible to the current user.


createUserConnection

CMISConnection createUserConnection(CMISServer server,
                                    java.lang.String connectionId)
Creates a new connection that is only visible to the current user.


createSharedConnection

CMISConnection createSharedConnection(CMISServer server,
                                      java.lang.String connectionId)
Creates a new connection that is visible to all users.


getConnection

CMISConnection getConnection()
Gets or creates a connection to the local server or a default server.


getConnection

CMISConnection getConnection(java.lang.String connectionId)
Returns a specific connection or null if the connection id is unknown.


getUserConnections

java.util.List getUserConnections()
Returns all user connections.


getSharedConnections

java.util.List getSharedConnections()
Returns all shared connections.


getServerDefinitions

java.util.List getServerDefinitions()
Returns all configured server definitions.


getServerDefinition

CMISServer getServerDefinition(java.lang.String serverName)
Gets a server definitions by name.


createServerDefinition

CMISServer createServerDefinition(java.lang.String serverName,
                                  java.util.Map parameters)
Creates a new server definition.


createServerDefinition

CMISServer createServerDefinition(CMISServer server,
                                  java.lang.String username,
                                  java.lang.String password)
Creates a new server definition from a template.


createServerDefinition

CMISServer createServerDefinition(CMISServer server,
                                  java.lang.String username,
                                  java.lang.String password,
                                  java.lang.String repositoryId)
Creates a new server definition from a template.


getRepositories

java.util.List getRepositories(CMISServer server)
Returns all repositories available at this server.



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