public abstract class CloudSession extends AbstractAlfrescoSessionImpl
Modifier and Type | Field and Description |
---|---|
static String |
CLOUD_NETWORK_ID
Define a different cloud network.
|
static String |
USER_ME
Username identifier for all cloud service API request.
|
authenticator, baseUrl, cmisSession, DEFAULT_CACHE_FOLDER_PATH, hasPublicAPI, passThruAuthenticator, password, PASSWORD, repositoryInfo, rootNode, services, USER, userIdentifier, userParameters
AUTHENTICATOR_CLASSNAME, CACHE_FOLDER, CLOUD_SERVICES_CLASSNAME, CREATE_THUMBNAIL, EXTRACT_METADATA, HTTP_ACCEPT_ENCODING, HTTP_ACCEPT_LANGUAGE, HTTP_CHUNK_TRANSFERT, HTTP_INVOKER_CLASSNAME, LISTING_MAX_ITEMS, ONPREMISE_SERVICES_CLASSNAME
Constructor and Description |
---|
CloudSession() |
Modifier and Type | Method and Description |
---|---|
static CloudSession |
connect(OAuthData oauthData)
Connects to the Alfresco in the Cloud server in the context of the users
home network.
|
static CloudSession |
connect(OAuthData oauthData,
Map<String,Serializable> parameters)
Connects to the Alfresco in the Cloud server in the context of the users
home network.
|
static CloudSession |
connect(OAuthData oauthData,
String networkId)
Connects the given user to the Alfresco in the cloud server in the
context of the given network.
|
static CloudSession |
connect(OAuthData oauthData,
String networkId,
Map<String,Serializable> parameters)
Connects the given user to the Alfresco in the cloud server in the
context of the given network.
|
abstract CloudNetwork |
getNetwork()
Returns the current network for the session.
|
abstract List<CloudNetwork> |
getNetworks()
Returns the list of networks the current user has access to.
|
abstract OAuthData |
getOAuthData()
Returns the OAuthData the session is currently using.
|
abstract void |
setOAuthData(OAuthData oauthData)
Sets the OAuthData object associated with the session, typically used
after an access token has been refreshed.
|
addParameter, addParameters, clear, createAuthenticationProvider, createServiceRegistry, createSession, createSession, getAuthenticationProvider, getBaseUrl, getCmisSession, getDefaultListingContext, getParameter, getParameterKeys, getPassthruAuthenticationProvider, getPersonIdentifier, getRepositoryIdentifier, getRepositoryInfo, getRootFolder, getServiceRegistry, hasForceBinding, hasParameter, initSettings, initSettings, removeParameter, retrieveSessionParameters
public static final String CLOUD_NETWORK_ID
public static final String USER_ME
public static CloudSession connect(OAuthData oauthData)
oauthData
- public static CloudSession connect(OAuthData oauthData, Map<String,Serializable> parameters)
oauthData
- parameters
- public static CloudSession connect(OAuthData oauthData, String networkId)
oauthData
- networkId
- public static CloudSession connect(OAuthData oauthData, String networkId, Map<String,Serializable> parameters)
oauthData
- networkId
- parameters
- public abstract List<CloudNetwork> getNetworks()
public abstract CloudNetwork getNetwork()
public abstract OAuthData getOAuthData()
public abstract void setOAuthData(OAuthData oauthData)
oauthData
- Copyright © 2012-2018 Alfresco Software. All Rights Reserved.