public class Synchronization extends Object
Modifier and Type | Field and Description |
---|---|
private static int |
CATEGORIES_UPLOADED_PERCENTS |
private static String |
CATEGORY_MAIN_PICTURE_FILENAME |
private static int |
CATEGORY_PICTURES_DOWNLOADED_PERCENTS |
private static int |
COMMODITIES_UPLOADED_PERCENTS |
private static int |
KEYBOARD_ENTRIES_UPLOADED_PERCENTS |
private static int |
KEYBOARDS_UPLOADED_PERCENTS |
private static org.apache.commons.logging.Log |
LOG |
private static int |
MODIFICATIONS_DOWNLOAD_FINISHED |
private static int |
MODIFICATIONS_DOWNLOADED_PERCENTS |
private static int |
MODIFICATIONS_ONE_CHUNK_MAX_SIZE |
private static int |
ORDERS_UPLOADED_PERCENTS |
private static String |
PRODUCT_MAIN_PICTURE_FILENAME |
private static int |
PRODUCT_PICTURES_DOWNLOADED_PERCENTS |
private static int |
PRODUCTS_UPLOADED_PERCENTS |
private static int |
SALESLOTS_UPLOADED_PERCENTS |
private static int |
SELLER_UPLOADED_PERCENTS |
private static int |
TAXES_UPLOADED_PERCENTS |
private static int |
TREASURERS_UPLOADED_PERCENTS |
Constructor and Description |
---|
Synchronization() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
downloadCategoryPicture(CategoryPictureInfo info,
ServiceFactory apiServicesFactory) |
private static byte[] |
downloadProductPicture(ProductPictureInfo info,
ServiceFactory apiServicesFactory) |
static boolean |
sync(SyncEventSender eventSender,
int serverDataVersion,
SyncVersionInfo syncInfo,
ServiceFactory apiServicesFactory,
Map<Class,EntitySyncAdapter> syncAdapters,
Map<Class,EntityPictureSyncAdapter> pictureSyncAdapters)
Performs synchronization of client's data, received via EntitySyncAdapter interface.
|
static boolean |
sync(SyncEventSender eventSender,
SyncVersionInfo syncInfo,
ServiceFactory apiServicesFactory,
Map<Class,EntitySyncAdapter> syncAdapters,
Map<Class,EntityPictureSyncAdapter> pictureSyncAdapters) |
static boolean |
sync(SyncVersionInfo syncInfo,
ServiceFactory apiServicesFactory,
Map<Class,EntitySyncAdapter> syncAdapters,
Map<Class,EntityPictureSyncAdapter> pictureSyncAdapters) |
private static final org.apache.commons.logging.Log LOG
private static final String PRODUCT_MAIN_PICTURE_FILENAME
private static final String CATEGORY_MAIN_PICTURE_FILENAME
private static final int MODIFICATIONS_DOWNLOADED_PERCENTS
private static final int MODIFICATIONS_DOWNLOAD_FINISHED
private static final int PRODUCT_PICTURES_DOWNLOADED_PERCENTS
private static final int CATEGORY_PICTURES_DOWNLOADED_PERCENTS
private static final int SELLER_UPLOADED_PERCENTS
private static final int TREASURERS_UPLOADED_PERCENTS
private static final int ORDERS_UPLOADED_PERCENTS
private static final int TAXES_UPLOADED_PERCENTS
private static final int CATEGORIES_UPLOADED_PERCENTS
private static final int PRODUCTS_UPLOADED_PERCENTS
private static final int COMMODITIES_UPLOADED_PERCENTS
private static final int KEYBOARDS_UPLOADED_PERCENTS
private static final int KEYBOARD_ENTRIES_UPLOADED_PERCENTS
private static final int SALESLOTS_UPLOADED_PERCENTS
private static final int MODIFICATIONS_ONE_CHUNK_MAX_SIZE
public static boolean sync(SyncVersionInfo syncInfo, ServiceFactory apiServicesFactory, Map<Class,EntitySyncAdapter> syncAdapters, Map<Class,EntityPictureSyncAdapter> pictureSyncAdapters)
public static boolean sync(SyncEventSender eventSender, SyncVersionInfo syncInfo, ServiceFactory apiServicesFactory, Map<Class,EntitySyncAdapter> syncAdapters, Map<Class,EntityPictureSyncAdapter> pictureSyncAdapters)
public static boolean sync(SyncEventSender eventSender, int serverDataVersion, SyncVersionInfo syncInfo, ServiceFactory apiServicesFactory, Map<Class,EntitySyncAdapter> syncAdapters, Map<Class,EntityPictureSyncAdapter> pictureSyncAdapters)
Performs synchronization of client's data, received via EntitySyncAdapter interface.
eventSender
- serverDataVersion
- syncInfo
- apiServicesFactory
- syncAdapters
- pictureSyncAdapters
- private static byte[] downloadProductPicture(ProductPictureInfo info, ServiceFactory apiServicesFactory)
public static byte[] downloadCategoryPicture(CategoryPictureInfo info, ServiceFactory apiServicesFactory)
Copyright © 2016. All rights reserved.