Mobile API Reference  MicroStrategy 2019
ReconcileService.h
Go to the documentation of this file.
1 //
2 // ReconcileService.h
3 // MSTR Foundation
4 //
5 // Created by Amirali Charania on 2/20/09.
6 // Copyright 2009 MicroStrategy. All rights reserved.
7 //
8 
9 #import <Foundation/Foundation.h>
10 #import "MSIServiceImpl.h"
11 
12 #define RECONCILE_IN_PROGRESS 1
13 #define RECONCILE_DONE 2
14 #define RECONCILE_ERROR 3
15 
17 
18 @protocol ReconcileServiceHandler<ServiceHandler>
19 
20 -(void)onProjectSuccess:(id)data project:(MSIProjectInfo*)project service:(id<Service>)service;
21 -(void)onProjectFailure:(MSTRMultipleError*)error project:(MSIProjectInfo*)project service:(id<Service>)service;
22 -(BOOL)onCredentialsFailure:(MSTRException*)exception project:(MSIProjectInfo*)project service:(id<Service>)service;
23 -(BOOL)onCertificateFailure:(MSTRException*)exception service:(id<Service>)service;
24 
25 @end
26 
27 //If project is given, only reconcile the given project for the given scope.
28 //If both project and report are given, we will only reconcile the given report. The scope is irrelavent.
29 //If neither project or report is given, we will reconcile all projects for the given scope.
30 //There are three scopes:
31 //1) ReconcileScopeLiveReports: to reconcile only live reports.
32 //2) ReconcileScopeSubscriptions: to reconcile only the subscriptions.
33 //3) ReconcileScopeAll: to reconcile both live reports and subscriptions.
34 
35 @interface ReconcileService : MSIServiceImpl <ServiceHandler> {
36 @private
37  BOOL ignoreAccessProjectError;
38 @protected
39  NSMutableArray* networkReportList;
41  NSMutableArray* reconcileErrors;
42  NSMutableArray* projectErrors;
44  NSMutableDictionary* cacheInfoClientMap;
45  NSMutableDictionary* cacheInfoServerMap;
48  NSInteger scope; //ReconcileScopeLiveReports, ReconcileScopeSubscription, ReconcileScopeAll, ReconcileScopeCustomize
49  NSInteger behavior; // ReconcileDropInvalid, ReconcileKeepInvalid
50  NSString* subscriptionID;
52 }
53 
54 @property (nonatomic, strong) MSIProjectConfiguration* project;
55 @property (nonatomic, strong) MSIReportDisplayInfo* report;
56 @property (nonatomic) NSInteger scope;
57 @property (nonatomic) NSInteger behavior;
58 @property (nonatomic, strong) NSString* subscriptionID;
59 @property (nonatomic, strong) MSTRError* currentError;
60 
65 @property (nonatomic, strong) NSDictionary* customReportArrayByProjectIDDict;
66 @property (nonatomic) bool customReconcileSubscription;
67 @end
NSMutableDictionary * cacheInfoClientMap
Definition: ReconcileService.h:44
signed char BOOL
Definition: PDCwtypes.h:101
Definition: MSIReportDisplayInfo.h:91
NSMutableDictionary * cacheInfoServerMap
Definition: ReconcileService.h:45
MSIReportDisplayInfo * parsingCurrentReport
Definition: ReconcileService.h:43
Definition: MSIObjectInfo.h:22
Definition: MSTRError.h:19
MSIReportDisplayInfo * report
Definition: ReconcileService.h:47
Definition: MSTRException.h:21
NSInteger scope
Definition: ReconcileService.h:48
NSMutableArray * projectErrors
Definition: ReconcileService.h:42
Definition: MSIProjectConfiguration.h:20
NSInteger behavior
Definition: ReconcileService.h:49
MSIProjectConfiguration *__weak currentProject
Definition: ReconcileService.h:40
MSIProjectConfiguration * project
Definition: ReconcileService.h:46
NSString * subscriptionID
Definition: ReconcileService.h:50
Definition: MSIServiceImpl.h:30
Definition: ReconcileService.h:18
Definition: MSIProjectInfo.h:17
NSMutableArray * reconcileErrors
Definition: ReconcileService.h:41
MSTRError * currentError
Definition: ReconcileService.h:51
Definition: ReconcileService.h:35
NSMutableArray * networkReportList
Definition: ReconcileService.h:39