A C D E F G I O R S T W 

A

addResourceToCache(String, Integer, FileDownloadCallback) - Method in class ch.gbrain.gwtstorage.manager.StorageManager
Check first if the resource with the given url and version is already present, if not try to download the same in a sequential way asynchronously

C

ch.gbrain.gwtstorage.manager - package ch.gbrain.gwtstorage.manager
 
ch.gbrain.gwtstorage.model - package ch.gbrain.gwtstorage.model
 
checkResourceVersion(StorageResource) - Method in class ch.gbrain.gwtstorage.manager.StorageManager
Check if the version registered in the cache does match this resources version
clearResourceItems() - Method in class ch.gbrain.gwtstorage.manager.StorageManager
Remove all ResourceItem related keys from the LocalStorage and as well related resource files, ClearCache
clearStorage() - Method in class ch.gbrain.gwtstorage.manager.StorageManager
Clear all cached items - key/value pairs in the LocalStorage - Related files in the cache directory
clearStorageItems() - Method in class ch.gbrain.gwtstorage.manager.StorageManager
Remove all StorageItem related keys from the LocalStorage, thus clear the cached json objects and references etc.
convertFilePathToFileName(String) - Static method in class ch.gbrain.gwtstorage.manager.StorageManager
Create from a url a proper filename which could be stored in the filesystem

D

downloadCacheResource(StorageResource) - Method in class ch.gbrain.gwtstorage.manager.StorageResourceCollector
Download the given resource url and store it in the local cache Directory.

E

execute() - Method in class ch.gbrain.gwtstorage.manager.StorageInfoCollector
 
execute() - Method in class ch.gbrain.gwtstorage.manager.StorageResourceCollector
 
extractFileNameFromCacheFile(String) - Static method in class ch.gbrain.gwtstorage.manager.StorageManager
 

F

fromJson(JSONValue) - Method in class ch.gbrain.gwtstorage.model.StorageItem
Used to convert the JSONValue object (as stored in local and remote storage) back to the object itself.
fromJson(StorageItem) - Method in class ch.gbrain.gwtstorage.model.StorageItem
Convenience method to read the attributes of the StorageItem in and assign them internally from a Json read object which is inherited from StrorageItem
fromJson(String) - Method in class ch.gbrain.gwtstorage.model.StorageItem
Converts back from a json string to the object itself

G

getAllCachedResourceItems(Callback<StorageInfo, FileError>) - Method in class ch.gbrain.gwtstorage.manager.StorageManager
Retrieve all ResourceItems related keys from the LocalStorage
getCacheDirectory() - Method in class ch.gbrain.gwtstorage.manager.StorageManager
 
getCacheDirectoryEntry(Callback<DirectoryEntry, StorageError>) - Method in class ch.gbrain.gwtstorage.manager.StorageManager
 
getCacheEnabled() - Method in class ch.gbrain.gwtstorage.manager.StorageManager
 
getCleanFileName() - Method in class ch.gbrain.gwtstorage.model.StorageInfo
Cleans the filename from the cache path
getCode() - Method in class ch.gbrain.gwtstorage.manager.TransferError
 
getDownloadNotification() - Method in class ch.gbrain.gwtstorage.model.StorageResource
 
getErrorReason() - Method in exception ch.gbrain.gwtstorage.manager.StorageError
 
getErrorReason() - Method in class ch.gbrain.gwtstorage.manager.TransferError
 
getFileName() - Method in class ch.gbrain.gwtstorage.model.StorageInfo
 
getFilePath() - Method in class ch.gbrain.gwtstorage.model.StorageInfo
 
getFileSize() - Method in class ch.gbrain.gwtstorage.model.StorageInfo
 
getFileUrl() - Method in class ch.gbrain.gwtstorage.model.StorageInfo
 
getId() - Method in class ch.gbrain.gwtstorage.model.StorageItem
 
getJsonFileName() - Method in class ch.gbrain.gwtstorage.model.StorageItem
 
getLastModificationDate() - Method in class ch.gbrain.gwtstorage.model.StorageInfo
 
getLocalFileReference(String, String, boolean, FileCallback<FileEntry, StorageError>) - Method in class ch.gbrain.gwtstorage.manager.StorageManager
Retrieve the FileEntry Reference on the local filesystem of the device if running in a local container eg.
getLocalStorage() - Method in class ch.gbrain.gwtstorage.manager.StorageManager
Retrieve a reference to the local Storage (Browsers HTML5 key-value store)
getLogger() - Method in class ch.gbrain.gwtstorage.manager.StorageManager
 
getLogId() - Method in class ch.gbrain.gwtstorage.model.StorageItem
Retrieve a unique key to identify StorageItems for log entries
getPhonegap() - Method in class ch.gbrain.gwtstorage.manager.StorageManager
 
getRemoteAppBaseUrl() - Method in class ch.gbrain.gwtstorage.manager.StorageManager
 
getRemoteResourceUrl(String) - Method in class ch.gbrain.gwtstorage.manager.StorageManager
Retrieve the url of the resource on the remote server based on the current runtime environement
getResourceIdKey() - Method in class ch.gbrain.gwtstorage.model.StorageResource
 
getResourceUrl() - Method in class ch.gbrain.gwtstorage.model.StorageResource
 
getResourceVersionKey() - Method in class ch.gbrain.gwtstorage.model.StorageResource
 
getResourceVersionKey(String) - Static method in class ch.gbrain.gwtstorage.model.StorageResource
 
getStorageItemIdKey() - Method in class ch.gbrain.gwtstorage.model.StorageItem
Retrieve a unique key to identify StorageItems in a key/value storage
getStorageItemTimeKey() - Method in class ch.gbrain.gwtstorage.model.StorageItem
Retrieve a unique key to identify StorageItems Save Time in a key/value storage
getStorageKey() - Method in class ch.gbrain.gwtstorage.model.StorageInfo
 
getStorageUrl() - Method in class ch.gbrain.gwtstorage.manager.StorageManager
 
getTypeName() - Method in class ch.gbrain.gwtstorage.model.StorageItem
 
getVersion() - Method in class ch.gbrain.gwtstorage.model.StorageInfo
 
getVersion() - Method in class ch.gbrain.gwtstorage.model.StorageItem
 
getVersion() - Method in class ch.gbrain.gwtstorage.model.StorageResource
 
getWlanEnabled() - Method in class ch.gbrain.gwtstorage.manager.StorageManager
 
GwtStorage - Class in ch.gbrain.gwtstorage.manager
Main entry point for GWT
GwtStorage() - Constructor for class ch.gbrain.gwtstorage.manager.GwtStorage
 

I

isResourceCachingPossible() - Method in class ch.gbrain.gwtstorage.manager.StorageManager
Evaluates if Caching is possible at all on the given client device at the moment of evaluation.
isResourceIdKey(String) - Static method in class ch.gbrain.gwtstorage.model.StorageResource
 
isResourceKey(String) - Static method in class ch.gbrain.gwtstorage.model.StorageResource
 
isResourceVersionKey(String) - Static method in class ch.gbrain.gwtstorage.model.StorageResource
 
isStorageItemIdKey(String) - Static method in class ch.gbrain.gwtstorage.model.StorageItem
 
isStorageItemKey(String) - Static method in class ch.gbrain.gwtstorage.model.StorageItem
 
isStorageItemTimeKey(String) - Static method in class ch.gbrain.gwtstorage.model.StorageItem
 

O

onModuleLoad() - Method in class ch.gbrain.gwtstorage.manager.GwtStorage
 

R

readStorageItem(StorageItem, boolean, int, int, Callback<StorageItem, StorageError>) - Method in class ch.gbrain.gwtstorage.manager.StorageManager
Retrieve the item from the storage.
readStorageItemFromLocalApplication(StorageItem, Callback<StorageItem, StorageError>) - Method in class ch.gbrain.gwtstorage.manager.StorageManager
Read the item asynch from the applications own source server with the given credentials and base path eg.
readStorageItemFromLocalFile(StorageItem, Callback<StorageItem, StorageError>) - Method in class ch.gbrain.gwtstorage.manager.StorageManager
Read the item from the Local File storage
readStorageItemFromLocalStorage(StorageItem) - Method in class ch.gbrain.gwtstorage.manager.StorageManager
Read the item from the local html5 storage.
readStorageItemFromRemoteApplication(StorageItem, Callback<StorageItem, StorageError>) - Method in class ch.gbrain.gwtstorage.manager.StorageManager
Read the item asynch from the configured remote application base
readStorageItemFromUrl(String, StorageItem, Callback<StorageItem, StorageError>) - Method in class ch.gbrain.gwtstorage.manager.StorageManager
Read the JSON item asynch from the given url and the standard name of the item eg.
retrieveResourceUrl(String, Integer, Callback<String, FileError>) - Method in class ch.gbrain.gwtstorage.manager.StorageManager
Evaluates in case of the runtime (browser/phonegap) the full url where a resource must be retrieved from.

S

setCacheDirectory(String) - Method in class ch.gbrain.gwtstorage.manager.StorageManager
 
setCacheEnabled(boolean) - Method in class ch.gbrain.gwtstorage.manager.StorageManager
 
setFileName(String) - Method in class ch.gbrain.gwtstorage.model.StorageInfo
 
setFilePath(String) - Method in class ch.gbrain.gwtstorage.model.StorageInfo
 
setFileSize(Long) - Method in class ch.gbrain.gwtstorage.model.StorageInfo
 
setFileUrl(String) - Method in class ch.gbrain.gwtstorage.model.StorageInfo
 
setId(String) - Method in class ch.gbrain.gwtstorage.model.StorageItem
 
setLastModificationDate(Date) - Method in class ch.gbrain.gwtstorage.model.StorageInfo
 
setRemoteAppBaseUrl(String) - Method in class ch.gbrain.gwtstorage.manager.StorageManager
 
setStorageKey(String) - Method in class ch.gbrain.gwtstorage.model.StorageInfo
 
setStorageUrl(String) - Method in class ch.gbrain.gwtstorage.manager.StorageManager
 
setVersion(String) - Method in class ch.gbrain.gwtstorage.model.StorageInfo
 
setVersion(Integer) - Method in class ch.gbrain.gwtstorage.model.StorageItem
 
setWlanEnabled(boolean) - Method in class ch.gbrain.gwtstorage.manager.StorageManager
 
StorageError - Exception in ch.gbrain.gwtstorage.manager
 
StorageError(FileError, String) - Constructor for exception ch.gbrain.gwtstorage.manager.StorageError
 
StorageError(FileError) - Constructor for exception ch.gbrain.gwtstorage.manager.StorageError
 
StorageError(int) - Constructor for exception ch.gbrain.gwtstorage.manager.StorageError
 
StorageError(int, String) - Constructor for exception ch.gbrain.gwtstorage.manager.StorageError
 
StorageError(FileTransferError) - Constructor for exception ch.gbrain.gwtstorage.manager.StorageError
 
StorageInfo - Class in ch.gbrain.gwtstorage.model
Holds some informations about a cached StorageObject
StorageInfo() - Constructor for class ch.gbrain.gwtstorage.model.StorageInfo
 
StorageInfoCollector - Class in ch.gbrain.gwtstorage.manager
This Command class is used to schedule the collecting of the file information for one given resource stored in the cache and referenced by the corresponding storageKey.
StorageInfoCollector(StorageManager, String, Callback<StorageInfo, FileError>) - Constructor for class ch.gbrain.gwtstorage.manager.StorageInfoCollector
 
StorageItem - Class in ch.gbrain.gwtstorage.model
The main parent class for any object that must be stored locally or remote By defining the abstract converter methods for your particular inherited object the object is available for simple storage by the StorageManager
StorageItem() - Constructor for class ch.gbrain.gwtstorage.model.StorageItem
 
StorageManager - Class in ch.gbrain.gwtstorage.manager
This class deals about writing and reading objects from Type StorageItem and as well loading application resource files (eg.
StorageManager() - Constructor for class ch.gbrain.gwtstorage.manager.StorageManager
Default constructor setting up the StorageManager all inclusive Logger and Phonegap references are setup locally
StorageManager(PhoneGap, Logger) - Constructor for class ch.gbrain.gwtstorage.manager.StorageManager
Constructor allowing to inject the Phonegap reference and a Logger
StorageResource - Class in ch.gbrain.gwtstorage.model
 
StorageResource(String, Integer, FileDownloadCallback) - Constructor for class ch.gbrain.gwtstorage.model.StorageResource
 
StorageResourceCollector - Class in ch.gbrain.gwtstorage.manager
 
StorageResourceCollector(StorageManager, StorageResource) - Constructor for class ch.gbrain.gwtstorage.manager.StorageResourceCollector
 

T

toJson() - Method in class ch.gbrain.gwtstorage.model.StorageItem
Used to convert the object value to a JsonValue.
toString() - Method in class ch.gbrain.gwtstorage.model.StorageItem
Retrieves the current object state as stringified JSON value
TransferError - Class in ch.gbrain.gwtstorage.manager
 
TransferError(int, String) - Constructor for class ch.gbrain.gwtstorage.manager.TransferError
 

W

writeStorageItemToLocalFile(StorageItem, Callback<StorageItem, StorageError>) - Method in class ch.gbrain.gwtstorage.manager.StorageManager
Write the item to a local file
writeStorageItemToLocalStorage(StorageItem) - Method in class ch.gbrain.gwtstorage.manager.StorageManager
Write the given item to the local HTML5 storage.
A C D E F G I O R S T W 

Copyright © 2016. All rights reserved.