public class CMISConnectionManagerImpl extends CMISHelper implements CMISConnectionManager
| Constructor and Description |
|---|
CMISConnectionManagerImpl(CMISScriptParameterFactory factory,
Runtime runtime) |
| Modifier and Type | Method and Description |
|---|---|
CMISConnection |
createDefaultConnection(CMISServer server)
Creates a new default connection that is only visible to the current user.
|
CMISServer |
createServerDefinition(CMISServer server,
String username,
String password)
Creates a new server definition from a template.
|
CMISServer |
createServerDefinition(CMISServer server,
String username,
String password,
String repositoryId)
Creates a new server definition from a template.
|
CMISServer |
createServerDefinition(String serverName,
Map<String,String> parameters)
Creates a new server definition.
|
CMISConnection |
createSharedConnection(CMISServer server,
String connectionId)
Creates a new connection that is visible to all users.
|
CMISConnection |
createUserConnection(CMISServer server,
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(String connectionId)
Returns a specific connection or
null if the connection id
is unknown. |
List<org.apache.chemistry.opencmis.client.api.Repository> |
getRepositories(CMISServer server)
Returns all repositories available at this server.
|
Runtime |
getRuntime() |
CMISServer |
getServerDefinition(String serverName)
Gets a server definitions by name.
|
List<CMISServer> |
getServerDefinitions()
Returns all configured server definitions.
|
List<CMISConnection> |
getSharedConnections()
Returns all shared connections.
|
List<CMISConnection> |
getUserConnections()
Returns all user connections.
|
void |
removeConnection(CMISConnection connection) |
createContentStream, createContentStream, createMap, isDocument, isFolder, isPolicy, isRelationshippublic CMISConnectionManagerImpl(CMISScriptParameterFactory factory, Runtime runtime)
public Runtime getRuntime()
public CMISConnection createDefaultConnection(CMISServer server)
CMISConnectionManagercreateDefaultConnection in interface CMISConnectionManagerpublic CMISConnection createUserConnection(CMISServer server, String connectionId)
CMISConnectionManagercreateUserConnection in interface CMISConnectionManagerpublic CMISConnection createSharedConnection(CMISServer server, String connectionId)
CMISConnectionManagercreateSharedConnection in interface CMISConnectionManagerpublic CMISConnection getConnection()
CMISConnectionManagergetConnection in interface CMISConnectionManagerpublic CMISConnection getConnection(String connectionId)
CMISConnectionManagernull if the connection id
is unknown.getConnection in interface CMISConnectionManagerpublic List<CMISConnection> getUserConnections()
CMISConnectionManagergetUserConnections in interface CMISConnectionManagerpublic List<CMISConnection> getSharedConnections()
CMISConnectionManagergetSharedConnections in interface CMISConnectionManagerpublic List<CMISServer> getServerDefinitions()
CMISConnectionManagergetServerDefinitions in interface CMISConnectionManagerpublic CMISServer getServerDefinition(String serverName)
CMISConnectionManagergetServerDefinition in interface CMISConnectionManagerpublic CMISServer createServerDefinition(String serverName, Map<String,String> parameters)
CMISConnectionManagercreateServerDefinition in interface CMISConnectionManagerpublic CMISServer createServerDefinition(CMISServer server, String username, String password)
CMISConnectionManagercreateServerDefinition in interface CMISConnectionManagerpublic CMISServer createServerDefinition(CMISServer server, String username, String password, String repositoryId)
CMISConnectionManagercreateServerDefinition in interface CMISConnectionManagerpublic List<org.apache.chemistry.opencmis.client.api.Repository> getRepositories(CMISServer server)
CMISConnectionManagergetRepositories in interface CMISConnectionManagerpublic void removeConnection(CMISConnection connection)
Copyright © 2005–2016 Alfresco Software. All rights reserved.