public abstract class AbstractAlfrescoSessionImpl extends Object implements AlfrescoSession, android.os.Parcelable
Modifier and Type | Field and Description |
---|---|
protected AuthenticationProvider |
authenticator
Authentication Provider.
|
protected String |
baseUrl |
protected org.apache.chemistry.opencmis.client.api.Session |
cmisSession
Cmis Session that comes from OpenCMIS binding.
|
static String |
DEFAULT_CACHE_FOLDER_PATH
Default Value of cache folder for the session.
|
protected boolean |
hasPublicAPI |
protected org.apache.chemistry.opencmis.commons.spi.AuthenticationProvider |
passThruAuthenticator
Default CMIS wrapper to use Alfresco Authenticator.
|
protected String |
password |
protected static String |
PASSWORD |
protected RepositoryInfo |
repositoryInfo
Repository Informations to the specific session.
|
protected Folder |
rootNode
Root Folder for the specific session.
|
protected ServiceRegistry |
services
Service Registry for all features available with this repository.
|
protected static String |
USER |
protected String |
userIdentifier |
protected Map<String,Serializable> |
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 |
---|
AbstractAlfrescoSessionImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addParameter(String key,
Serializable value)
Allow to add some extra parameters as settings to modify behaviour of the
session.
|
void |
addParameters(Map<String,Serializable> parameters)
Allow to add some extra parameters as settings to modify behaviour of the
session.
|
void |
clear()
Clears any cached data the session is storing.
|
protected AuthenticationProvider |
createAuthenticationProvider(String className)
Create the Alfresco AuthenticationProvider.
|
protected ServiceRegistry |
createServiceRegistry(String className)
Extension Point to use a specific serviceRegistry.
|
protected org.apache.chemistry.opencmis.client.api.Session |
createSession(org.apache.chemistry.opencmis.client.api.SessionFactory sessionFactory,
AuthenticationProvider authenticator,
Map<String,String> param) |
protected org.apache.chemistry.opencmis.client.api.Session |
createSession(org.apache.chemistry.opencmis.client.api.SessionFactory sessionFactory,
Map<String,String> param) |
AuthenticationProvider |
getAuthenticationProvider() |
String |
getBaseUrl()
Returns the base URL associated to the repository e.g.
|
org.apache.chemistry.opencmis.client.api.Session |
getCmisSession()
Direct access to the underlying cmis session.
|
ListingContext |
getDefaultListingContext()
Returns the current default listing parameters for paging and sorting.
|
Serializable |
getParameter(String key)
Returns the value of a parameter with the given key stored in the
session.
|
List<String> |
getParameterKeys()
Returns a list of all the parameter names stored in the sesssion.
|
org.apache.chemistry.opencmis.commons.spi.AuthenticationProvider |
getPassthruAuthenticationProvider() |
String |
getPersonIdentifier()
Returns the user identifier with which the session was created.
|
String |
getRepositoryIdentifier() |
RepositoryInfo |
getRepositoryInfo()
Returns RepositoryInformation object representing the repository the
session is connected to.
|
Folder |
getRootFolder()
Returns the root folder of the repository this session is connected to.
|
ServiceRegistry |
getServiceRegistry()
Return all services available with this repository.
|
boolean |
hasForceBinding() |
boolean |
hasParameter(String key) |
protected void |
initSettings(String url,
Map<String,Serializable> settings) |
protected void |
initSettings(String url,
String username,
String password,
Map<String,Serializable> settings) |
void |
removeParameter(String key)
Removes a parameter stored in the session.
|
protected Map<String,String> |
retrieveSessionParameters()
VIM : This method allows to create the CMIS Session Parameters based on
Public Session Parameters provided.
|
public static final String DEFAULT_CACHE_FOLDER_PATH
protected String baseUrl
protected String userIdentifier
protected String password
protected Folder rootNode
protected ServiceRegistry services
protected RepositoryInfo repositoryInfo
protected org.apache.chemistry.opencmis.client.api.Session cmisSession
protected AuthenticationProvider authenticator
protected org.apache.chemistry.opencmis.commons.spi.AuthenticationProvider passThruAuthenticator
protected Map<String,Serializable> userParameters
protected boolean hasPublicAPI
protected static final String USER
protected static final String PASSWORD
protected void initSettings(String url, Map<String,Serializable> settings)
protected void initSettings(String url, String username, String password, Map<String,Serializable> settings)
public void addParameter(String key, Serializable value)
addParameter
in interface AlfrescoSession
public void addParameters(Map<String,Serializable> parameters)
addParameters
in interface AlfrescoSession
public boolean hasParameter(String key)
public Serializable getParameter(String key)
getParameter
in interface AlfrescoSession
public void removeParameter(String key)
removeParameter
in interface AlfrescoSession
public List<String> getParameterKeys()
getParameterKeys
in interface AlfrescoSession
protected Map<String,String> retrieveSessionParameters()
protected org.apache.chemistry.opencmis.client.api.Session createSession(org.apache.chemistry.opencmis.client.api.SessionFactory sessionFactory, AuthenticationProvider authenticator, Map<String,String> param)
protected org.apache.chemistry.opencmis.client.api.Session createSession(org.apache.chemistry.opencmis.client.api.SessionFactory sessionFactory, Map<String,String> param)
protected AuthenticationProvider createAuthenticationProvider(String className)
className
- public RepositoryInfo getRepositoryInfo()
AlfrescoSession
getRepositoryInfo
in interface AlfrescoSession
RepositoryInformations
object representing the repository the
session is connected to.public String getRepositoryIdentifier()
public Folder getRootFolder()
AlfrescoSession
getRootFolder
in interface AlfrescoSession
public String getBaseUrl()
AlfrescoSession
getBaseUrl
in interface AlfrescoSession
public String getPersonIdentifier()
AlfrescoSession
getPersonIdentifier
in interface AlfrescoSession
public AuthenticationProvider getAuthenticationProvider()
public org.apache.chemistry.opencmis.commons.spi.AuthenticationProvider getPassthruAuthenticationProvider()
public ListingContext getDefaultListingContext()
getDefaultListingContext
in interface AlfrescoSession
public ServiceRegistry getServiceRegistry()
getServiceRegistry
in interface AlfrescoSession
public org.apache.chemistry.opencmis.client.api.Session getCmisSession()
protected ServiceRegistry createServiceRegistry(String className)
className
- : ClassName of the serviceRegistry to implementpublic void clear()
AlfrescoSession
clear
in interface AlfrescoSession
public boolean hasForceBinding()
Copyright © 2012-2018 Alfresco Software. All Rights Reserved.