public interface AlfrescoSession
extends android.os.Parcelable
Modifier and Type | Field and Description |
---|---|
static String |
AUTHENTICATOR_CLASSNAME
Define the specific implementation of authenticator for the session.
|
static String |
CACHE_FOLDER
Define the path to the cache folder.
|
static String |
CLOUD_SERVICES_CLASSNAME
Cloud ONLY Define the specific implementation of all services for
the session.
|
static String |
CREATE_THUMBNAIL
OnPremise ONLY : Allow thumbnail generation during file import.
|
static String |
EXTRACT_METADATA
OnPremise ONLY : Allow metadata extraction during file import.
|
static String |
HTTP_ACCEPT_ENCODING
Define the HTTP Header "Accept-Encoding" for all requests.
Values can be true (as string value) : gzip,deflate false (as string value) : empty value any string value : replace the default value. This parameter can't be changed after the session creation. |
static String |
HTTP_ACCEPT_LANGUAGE
Define the HTTP Header "Accept-Language" for all requests.
By default it's system Locale + ", en-us;q=0.8" This parameter can't be changed after the session creation. |
static String |
HTTP_CHUNK_TRANSFERT
Used by the NetworkHttpInvoker to enable/disable the chunkStreamingMode.
|
static String |
HTTP_INVOKER_CLASSNAME
Define the specific implementation of HTTP layer for the session.
|
static String |
LISTING_MAX_ITEMS
Define the maximum number of items a list can contains by default in all
SDK services.
Value must be an Integer > 0. |
static String |
ONPREMISE_SERVICES_CLASSNAME
OnPremise ONLY : Define the specific implementation of all
services for the session.
|
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.
|
String |
getBaseUrl()
Returns the base URL associated to the repository e.g.
|
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.
|
String |
getPersonIdentifier()
Returns the user identifier with which the session was created.
|
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.
|
void |
removeParameter(String key)
Removes a parameter stored in the session.
|
static final String HTTP_ACCEPT_ENCODING
static final String HTTP_ACCEPT_LANGUAGE
static final String HTTP_CHUNK_TRANSFERT
static final String ONPREMISE_SERVICES_CLASSNAME
ServiceRegistry
static final String CLOUD_SERVICES_CLASSNAME
ServiceRegistry
This
parameter can't be changed after the session creation.static final String AUTHENTICATOR_CLASSNAME
AuthenticationProvider
static final String HTTP_INVOKER_CLASSNAME
HttpInvoker
static final String EXTRACT_METADATA
static final String CREATE_THUMBNAIL
static final String LISTING_MAX_ITEMS
static final String CACHE_FOLDER
RepositoryInfo getRepositoryInfo()
String getBaseUrl()
String getPersonIdentifier()
ListingContext getDefaultListingContext()
ServiceRegistry getServiceRegistry()
Folder getRootFolder()
void addParameter(String key, Serializable value)
key
- value
- void addParameters(Map<String,Serializable> parameters)
parameters
- Serializable getParameter(String key)
key
- void removeParameter(String key)
key
- List<String> getParameterKeys()
void clear()
Copyright © 2012-2018 Alfresco Software. All Rights Reserved.