|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alfresco.repo.cmis.client.CMISHelper
org.alfresco.repo.cmis.client.AbstractCMISConnectionManagerImpl
public abstract class AbstractCMISConnectionManagerImpl
Connection manager base class.
| Field Summary | |
|---|---|
protected org.alfresco.service.cmr.security.AuthenticationService |
authenticationService
|
protected org.springframework.extensions.config.ConfigService |
configService
|
static java.lang.String |
DEFAULT_CONNECTION_ID
|
protected java.util.concurrent.locks.ReentrantReadWriteLock |
lock
|
static char |
RESERVED_ID_CHAR
|
static java.lang.String |
SERVER_DESCRIPTION
|
static java.lang.String |
SERVER_NAME
|
protected java.util.Map |
servers
|
protected org.apache.chemistry.opencmis.client.api.SessionFactory |
sessionFactory
|
protected java.util.LinkedHashMap |
sharedConnections
|
protected int |
sharedConnectionsCapacity
|
protected java.util.LinkedHashMap |
userConnections
|
protected int |
userConnectionsCapacity
|
| Constructor Summary | |
|---|---|
AbstractCMISConnectionManagerImpl()
|
|
| Method Summary | |
|---|---|
protected CMISConnection |
createConnection(CMISServer server,
java.lang.String connectionId,
boolean isShared)
|
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. |
protected CMISServer |
createServerDefinition(java.util.Map parameters)
|
CMISServer |
createServerDefinition(java.lang.String serverName,
java.util.Map parameters)
Creates a new server definition. |
protected org.apache.chemistry.opencmis.client.api.Session |
createSession(java.util.Map parameters)
|
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. |
protected java.lang.String |
createUserConnectionId(java.lang.String username,
java.lang.String connectionId)
|
abstract 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. |
void |
init()
|
void |
removeConnection(CMISConnection connection)
|
void |
setAuthenticationService(org.alfresco.service.cmr.security.AuthenticationService authenticationService)
|
void |
setConfigService(org.springframework.extensions.config.ConfigService configService)
|
void |
setSharedConnectionsCapacity(int sharedConnectionsCapacity)
|
void |
setUserConnectionsCapacity(int userConnectionsCapacity)
|
| Methods inherited from class org.alfresco.repo.cmis.client.CMISHelper |
|---|
createContentStream, createContentStream, createMap, isDocument, isFolder, isPolicy, isRelationship |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.alfresco.repo.cmis.client.CMISConnectionManager |
|---|
createDefaultConnection |
| Field Detail |
|---|
public static final java.lang.String SERVER_NAME
public static final java.lang.String SERVER_DESCRIPTION
public static final java.lang.String DEFAULT_CONNECTION_ID
public static final char RESERVED_ID_CHAR
protected org.springframework.extensions.config.ConfigService configService
protected org.alfresco.service.cmr.security.AuthenticationService authenticationService
protected final org.apache.chemistry.opencmis.client.api.SessionFactory sessionFactory
protected java.util.LinkedHashMap sharedConnections
protected java.util.LinkedHashMap userConnections
protected int userConnectionsCapacity
protected int sharedConnectionsCapacity
protected java.util.Map servers
protected final java.util.concurrent.locks.ReentrantReadWriteLock lock
| Constructor Detail |
|---|
public AbstractCMISConnectionManagerImpl()
| Method Detail |
|---|
public void setConfigService(org.springframework.extensions.config.ConfigService configService)
public void setAuthenticationService(org.alfresco.service.cmr.security.AuthenticationService authenticationService)
public void setUserConnectionsCapacity(int userConnectionsCapacity)
public void setSharedConnectionsCapacity(int sharedConnectionsCapacity)
public void init()
public CMISConnection createUserConnection(CMISServer server,
java.lang.String connectionId)
CMISConnectionManager
createUserConnection in interface CMISConnectionManager
protected java.lang.String createUserConnectionId(java.lang.String username,
java.lang.String connectionId)
public CMISConnection createSharedConnection(CMISServer server,
java.lang.String connectionId)
CMISConnectionManager
createSharedConnection in interface CMISConnectionManager
protected CMISConnection createConnection(CMISServer server,
java.lang.String connectionId,
boolean isShared)
public abstract CMISConnection getConnection()
CMISConnectionManager
getConnection in interface CMISConnectionManagerpublic CMISConnection getConnection(java.lang.String connectionId)
CMISConnectionManagernull if the connection id
is unknown.
getConnection in interface CMISConnectionManagerpublic java.util.List getUserConnections()
CMISConnectionManager
getUserConnections in interface CMISConnectionManagerpublic java.util.List getSharedConnections()
CMISConnectionManager
getSharedConnections in interface CMISConnectionManagerpublic void removeConnection(CMISConnection connection)
protected org.apache.chemistry.opencmis.client.api.Session createSession(java.util.Map parameters)
public java.util.List getServerDefinitions()
CMISConnectionManager
getServerDefinitions in interface CMISConnectionManagerpublic CMISServer getServerDefinition(java.lang.String serverName)
CMISConnectionManager
getServerDefinition in interface CMISConnectionManager
public CMISServer createServerDefinition(java.lang.String serverName,
java.util.Map parameters)
CMISConnectionManager
createServerDefinition in interface CMISConnectionManager
public CMISServer createServerDefinition(CMISServer server,
java.lang.String username,
java.lang.String password)
CMISConnectionManager
createServerDefinition in interface CMISConnectionManager
public CMISServer createServerDefinition(CMISServer server,
java.lang.String username,
java.lang.String password,
java.lang.String repositoryId)
CMISConnectionManager
createServerDefinition in interface CMISConnectionManagerprotected CMISServer createServerDefinition(java.util.Map parameters)
public java.util.List getRepositories(CMISServer server)
CMISConnectionManager
getRepositories in interface CMISConnectionManager
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||