Library
Instance Methods | Class Methods | List of all members
ISOSynchronization Class Reference
Inheritance diagram for ISOSynchronization:

Instance Methods

(void) - autoLoginOnSuccess:onFailure:
 
(void) - loginWithUsername:andPassword:onSuccess:onFailure:
 
(NSDictionary *) - getSystemMessage
 
(void) - synchronize
 
(void) - synchronize:
 
(BOOL) - loggedIn
 
(void) - logout
 
(void) - uploadAndSignModifiedDocuments
 
(void) - saveContext
 
(NSArray *) - allInstancesOf:withPredicate:
 
(void) - downloadDocument:onSuccess:onFailure:
 
(void) - uploadDocumentAtURL:onSuccess:onFailure:
 
(void) - clearAllData
 
(ISODocument *) - cloneDocument:
 
(void) - deleteDocument:
 
(void) - cancelSync
 
(ISODocument *) - getDocumentForAdHocKey:fromUrl:onSuccess:onFailure:
 
(void) - saveDocumentForAdHocKey:onFailure:
 
(void) - isoCaptureSendShowSignatureField:forDocument:
 
(void) - isoCaptureSendCancelSigningForDocument:
 
(NSPersistentStoreCoordinator *) - persistentStoreCoordinator
 

Class Methods

(ISOSynchronization *) + sharedSynchronization
 
(NSString *) + privateDocumentsDirectory
 
(NSURL *) + privateDocumentsDirectoryURL
 

Method Documentation

- (NSArray *) allInstancesOf: (NSString*)  entityName
withPredicate: (NSPredicate*)  predicate 

an array with the instances of the name und predicate

Parameters
entityName
predicate
Returns
the result
- (void) autoLoginOnSuccess: (callBackBlock)  onSuccess
onFailure: (callBackBlockWithDictionary)  onFailure 

Check the login information through username and password and shows possibly dialog window

Parameters
onSuccess
onFailure
- (void) cancelSync

the synchronization of the pdf-document with the server will my canceled

- (void) clearAllData

if the user login, all the data (pdf-documents, login info,...) will be cleared.

- (ISODocument *) cloneDocument: (ISODocument*)  original

clone the pdf-document from the original

Parameters
originalpdf-document
Returns
the clone pdf-document
- (void) deleteDocument: (ISODocument*)  document

pdf-document will be deleted

Parameters
documentpdf-document
- (ISODocument *) getDocumentForAdHocKey: (NSString*)  adHocKey
fromUrl: (NSURL*)  url
onSuccess: (callBackBlock)  onSuccess
onFailure: (callBackBlockWithDictionary)  onFailure 

supply an ISODocument in accordance with the given keys from the URL which also passed back. is the method successfull called the parameter onSuccess, if not the paramter onFailure.

Parameters
adHocKey
url
onSuccess
onFailure
Returns
- (NSDictionary *) getSystemMessage

use the information of ISOSettings.h, ISOHelper and WebserviceURL to give the system a message

Returns
- (void) isoCaptureSendCancelSigningForDocument: (ISODocument*)  document

ISOCapture send the signed documents which are canceled

Parameters
documentpdf-document which are signed
- (void) isoCaptureSendShowSignatureField: (NSNumber*)  signatureFieldId
forDocument: (ISODocument*)  document 

method ISOCapture shows the send signature field

Parameters
signatureFieldId
document
- (BOOL) loggedIn

check is the user logged in or not

Returns
the session ID
- (void) loginWithUsername: (NSString*)  username
andPassword: (NSString*)  password
onSuccess: (callBackBlock)  onSuccessP
onFailure: (callBackBlockWithDictionary)  onFailureP 

check the login data (username,password) with the information of the webservice, is it successfull or not.

Parameters
username
password
onSuccessP
onFailureP
- (void) saveContext

save the context of the manageObjektContext

- (void) saveDocumentForAdHocKey: (callBackBlock)  onSuccess
onFailure: (callBackBlockWithDictionary)  onFailure 

save the document. if the saving is successful called the method onSuccess, if not the method onFailure

Parameters
onSuccess
onFailure
- (void) synchronize: (NSArray*)  documentIDs

all the information (login, XMLRPC request, signing request, document meta data, file meta data,..) will be checked and synchronized

Parameters
documentIDsfor documentIDs == nil, sync all in account, otherwise call with list of the IDs that need to be synced
- (void) uploadAndSignModifiedDocuments

the signed and modiefied documents will upload.

- (void) uploadDocumentAtURL: (NSURL*)  url
onSuccess: (callBackBlockWithString)  onSuccess
onFailure: (callBackBlockWithDictionary)  onFailure 

upload the pdf-document to the server. if it's not possible, there comes a message.

Parameters
url
onSuccess
onFailure

The documentation for this class was generated from the following files: