TICDSListOfDocumentRegisteredClientsOperation Class Reference
| Inherits from | TICDSOperation : NSOperation |
| Declared in | TICDSListOfDocumentRegisteredClientsOperation.h |
Overview
The TICDSListOfDocumentRegisteredClientsOperation class describes a generic operation used by the TICoreDataSync framework to fetch a list of the client devices that are registered to synchronize a given document.
The operation carries out the following tasks:
- Fetch a list of UUID identifiers of client directories inside the document’s
SyncChangesdirectory. - Fetch the
deviceInfo.plistfile for each registered client. - Fetch the last modified date of each client’s
RecentSyncfile, if it exists. - Fetch the last modified date of each client’s
WholeStoreupload, if it exists.
Operations are typically created automatically by the relevant sync manager.
You must use one of the subclasses of TICDSListOfDocumentRegisteredClientsOperation.
Tasks
Overridden Methods
-
– fetchArrayOfClientUUIDStringsFetch an array of UUID strings for each client registered to synchronize this document (the names of the directories inside the document’s
SyncChangesdirectory. -
– fetchDeviceInfoDictionaryForClientWithIdentifier:Fetch the
deviceInfo.plist, decrypting it if necessary, for the specified client. -
– fetchLastSynchronizationDatesFetch the last modified dates of each client’s
RecentSyncfile. -
– fetchModificationDateOfWholeStoreForClientWithIdentifier:Fetch the last modified dates for the specified client’s
WholeStorefile. -
– fetchedDeviceInfoDictionary:forClientWithIdentifier:Pass back the
NSDictionarybuilt from the contents of thedeviceInfo.plistfor the specified client. -
– fetchedLastSynchronizationDate:forClientWithIdentifier:Pass back the last modified date of the specified client’s
RecentSyncfile. -
– fetchedModificationDate:ofWholeStoreForClientWithIdentifier:Pass back the last modified date of the specified client’s WholeStore file.
Properties
-
synchronizedClientIdentifiersAn array used to keep track of the client identifiers while the operation is executing.
property -
temporaryDeviceInfoDictionariesA mutable dictionary used to keep track of the
propertydeviceInfo.plistdictionaries for each client while the operation is executing. -
deviceInfoDictionariesThe final dictionary of
propertydeviceInfo.plistdictionaries for each client once the operation has finished.
Properties
deviceInfoDictionaries
The final dictionary of deviceInfo.plist dictionaries for each client once the operation has finished.
@property (retain) NSDictionary *deviceInfoDictionariesDeclared In
TICDSListOfDocumentRegisteredClientsOperation.hsynchronizedClientIdentifiers
An array used to keep track of the client identifiers while the operation is executing.
@property (nonatomic, retain) NSArray *synchronizedClientIdentifiersDeclared In
TICDSListOfDocumentRegisteredClientsOperation.htemporaryDeviceInfoDictionaries
A mutable dictionary used to keep track of the deviceInfo.plist dictionaries for each client while the operation is executing.
@property (nonatomic, retain) NSMutableDictionary *temporaryDeviceInfoDictionariesDeclared In
TICDSListOfDocumentRegisteredClientsOperation.hInstance Methods
fetchArrayOfClientUUIDStrings
Fetch an array of UUID strings for each client registered to synchronize this document (the names of the directories inside the document’s SyncChanges directory.
- (void)fetchArrayOfClientUUIDStringsDiscussion
This method must call fetchedArrayOfClientUUIDStrings: when finished.
Declared In
TICDSListOfDocumentRegisteredClientsOperation.hfetchDeviceInfoDictionaryForClientWithIdentifier:
Fetch the deviceInfo.plist, decrypting it if necessary, for the specified client.
- (void)fetchDeviceInfoDictionaryForClientWithIdentifier:(NSString *)anIdentifierParameters
- anIdentifier
The UUID synchronization identifier of the client.
Discussion
This method must call fetchedDeviceInfoDictionary:forClientWithIdentifier: when finished.
Declared In
TICDSListOfDocumentRegisteredClientsOperation.hfetchLastSynchronizationDates
Fetch the last modified dates of each client’s RecentSync file.
- (void)fetchLastSynchronizationDatesDiscussion
This method must call fetchedLastSynchronizationDate:forClientWithIdentifier: once per client in synchronizedClientIdentifiers to provide the information.
Declared In
TICDSListOfDocumentRegisteredClientsOperation.hfetchModificationDateOfWholeStoreForClientWithIdentifier:
Fetch the last modified dates for the specified client’s WholeStore file.
- (void)fetchModificationDateOfWholeStoreForClientWithIdentifier:(NSString *)anIdentifierParameters
- anIdentifier
The UUID synchronization identifier of the client.
Discussion
This method must call fetchedModificationDate:ofWholeStoreForClientWithIdentifier: when finished.
Declared In
TICDSListOfDocumentRegisteredClientsOperation.hfetchedDeviceInfoDictionary:forClientWithIdentifier:
Pass back the NSDictionary built from the contents of the deviceInfo.plist for the specified client.
- (void)fetchedDeviceInfoDictionary:(NSDictionary *)aDictionary forClientWithIdentifier:(NSString *)anIdentifierParameters
- aDictionary
The assembled dictionary of device information.
- anIdentifier
The UUID synchronization identifier of the client.
Discussion
If an error occurred, call setError: first, then specify nil for aDictionary.
Declared In
TICDSListOfDocumentRegisteredClientsOperation.hfetchedLastSynchronizationDate:forClientWithIdentifier:
Pass back the last modified date of the specified client’s RecentSync file.
- (void)fetchedLastSynchronizationDate:(NSDate *)aDate forClientWithIdentifier:(NSString *)anIdentifierParameters
- aDate
The last modified date of the
RecentSyncfile.
- anIdentifier
The UUID synchronization identifier of the client.
Discussion
If an error occurred, call setError: first, then specify nil for aDate.
Declared In
TICDSListOfDocumentRegisteredClientsOperation.hfetchedModificationDate:ofWholeStoreForClientWithIdentifier:
Pass back the last modified date of the specified client’s WholeStore file.
- (void)fetchedModificationDate:(NSDate *)aDate ofWholeStoreForClientWithIdentifier:(NSString *)anIdentifierParameters
- aDate
The last modified date of the client’s
WholeStorefile.
- anIdentifier
The UUID synchronization identifier of the client.
Discussion
If an error occurred, call setError: first, then specify nil for aDate.
Declared In
TICDSListOfDocumentRegisteredClientsOperation.h