public class Synchronization extends Object
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 DAYS_UPLOADED_PERCENTS
private static final int SALES_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 © 2018. All rights reserved.