TICDSDocumentClientDeletionOperation Class Reference
| Inherits from | TICDSOperation : NSOperation |
| Declared in | TICDSDocumentClientDeletionOperation.h |
Overview
The TICDSDocumentClientDeletionOperation class describes a generic operation used by the TICoreDataSync framework to delete the remote synchronization data used by a client to synchronize a document.
The operation carries out the following tasks:
- Check whether the specified client has synchronized the document.
- Copy the
deviceInfo.plistfile to anidentifier.plistfile inside the document’sDeletedClientsdirectory. - Delete the client’s
SyncChanges,SyncCommandsandWholeStoredirectories for the document.
Operations are typically created automatically by the relevant sync manager.
You must use one of the subclasses of TICDSDocumentDeletionOperation.
Tasks
Overridden Methods
-
– checkWhetherClientDirectoryExistsInDocumentSyncChangesDirectoryCheck whether a directory exists for the client inside the document’s
SyncChangesdirectory. -
– checkWhetherClientIdentifierFileAlreadyExistsInDocumentDeletedClientsDirectoryCheck whether an
identifier.plistfile already exists for the client in the document’sDeletedClientsdirectory. -
– deleteClientIdentifierFileFromDeletedClientsDirectoryDelete the client’s
identifier.plistfile from the document’sDeletedClientsdirectory. -
– copyClientDeviceInfoPlistToDeletedClientsDirectoryCopy the client’s
deviceInfo.plistfile to anidentifier.plistfile in the document’sDeletedClientsdirectory. -
– deleteClientDirectoryFromDocumentSyncChangesDirectoryDelete the client’s directory from the document’s
SyncChangesdirectory. -
– deleteClientDirectoryFromDocumentSyncCommandsDirectoryDelete the client’s directory from the document’s
SyncCommandsdirectory. -
– checkWhetherClientIdentifierFileExistsInRecentSyncsDirectoryChecks whether a file exists for the client in the document’s
RecentSyncsdirectory. -
– deleteClientIdentifierFileFromRecentSyncsDirectoryDelete the client’s file from the document’s
RecentSyncsdirectory. -
– checkWhetherClientDirectoryExistsInDocumentWholeStoreDirectoryCheck whether a directory exists for the client in the document’s
WholeStoredirectory. -
– deleteClientDirectoryFromDocumentWholeStoreDirectoryDelete the client’s directory from the document’s
WholeStoredirectory.
Callbacks
-
– discoveredStatusOfClientDirectoryInDocumentSyncChangesDirectory:Indicate the status of the client’s directory inside the document’s
SyncChangesdirectory. -
– discoveredStatusOfClientIdentifierFileInDocumentDeletedClientsDirectory:Indicate the status of the client’s identifier.plist inside the document’s
DeletedClientsdirectory. -
– deletedClientIdentifierFileFromDeletedClientsDirectoryWithSuccess:Indicate whether the
identifier.plistfile was deleted successfully from the document’sDeletedClientsdirectory. -
– copiedClientDeviceInfoPlistToDeletedClientsDirectoryWithSuccess:Indicate whether the client’s
deviceInfo.plistfile was copied to anidentifier.plistfile in the document’sDeletedClientsdirectory. -
– deletedClientDirectoryFromDocumentSyncChangesDirectoryWithSuccess:Indicate whether the client’s directory was deleted successfully from the document’s
SyncChangesdirectory. -
– deletedClientDirectoryFromDocumentSyncCommandsDirectoryWithSuccess:Indicate whether the client’s directory was deleted successfully from the document’s
SyncCommandsdirectory. -
– discoveredStatusOfClientIdentifierFileInDocumentRecentSyncsDirectory:Indicate the status of the client’s file inside the document’s
RecentSyncsdirectory. -
– deletedClientIdentifierFileFromRecentSyncsDirectoryWithSuccess:Indicate whether the client’s file was deleted successfully from the document’s
RecentSyncsdirectory. -
– discoveredStatusOfClientDirectoryInDocumentWholeStoreDirectory:Indicate the status of the client’s directory inside the document’s
WholeStoredirectory. -
– deletedClientDirectoryFromDocumentWholeStoreDirectoryWithSuccess:Indicate whether the client’s directory was deleted successfully from the document’s
WholeStoredirectory.
Properties
-
identifierOfClientToBeDeletedThe identifier of the client to be deleted.
property -
clientWasFoundAndDeletedUsed to indicate (once the operation completes) whether the client was found and deleted successfully.
property
Properties
Instance Methods
checkWhetherClientDirectoryExistsInDocumentSyncChangesDirectory
Check whether a directory exists for the client inside the document’s SyncChanges directory.
- (void)checkWhetherClientDirectoryExistsInDocumentSyncChangesDirectoryDiscussion
This method must call discoveredStatusOfClientDirectoryInDocumentSyncChangesDirectory: to indicate the status.
Declared In
TICDSDocumentClientDeletionOperation.hcheckWhetherClientDirectoryExistsInDocumentWholeStoreDirectory
Check whether a directory exists for the client in the document’s WholeStore directory.
- (void)checkWhetherClientDirectoryExistsInDocumentWholeStoreDirectoryDiscussion
This method must call discoveredStatusOfClientDirectoryInDocumentWholeStoreDirectory: to indicate the status.
Declared In
TICDSDocumentClientDeletionOperation.hcheckWhetherClientIdentifierFileAlreadyExistsInDocumentDeletedClientsDirectory
Check whether an identifier.plist file already exists for the client in the document’s DeletedClients directory.
- (void)checkWhetherClientIdentifierFileAlreadyExistsInDocumentDeletedClientsDirectoryDiscussion
This method must call discoveredStatusOfClientIdentifierFileInDocumentDeletedClientsDirectory: to indicate the status.
Declared In
TICDSDocumentClientDeletionOperation.hcheckWhetherClientIdentifierFileExistsInRecentSyncsDirectory
Checks whether a file exists for the client in the document’s RecentSyncs directory.
- (void)checkWhetherClientIdentifierFileExistsInRecentSyncsDirectoryDiscussion
This method must call discoveredStatusOfClientIdentifierFileInDocumentRecentSyncsDirectory: when finished.
Declared In
TICDSDocumentClientDeletionOperation.hcopiedClientDeviceInfoPlistToDeletedClientsDirectoryWithSuccess:
Indicate whether the client’s deviceInfo.plist file was copied to an identifier.plist file in the document’s DeletedClients directory.
- (void)copiedClientDeviceInfoPlistToDeletedClientsDirectoryWithSuccess:(BOOL)successParameters
- success
YESif the file was copied successfully, orNOif an error occurred.
Discussion
If an error occurred, call setError: first, then specify NO for success.
Declared In
TICDSDocumentClientDeletionOperation.hcopyClientDeviceInfoPlistToDeletedClientsDirectory
Copy the client’s deviceInfo.plist file to an identifier.plist file in the document’s DeletedClients directory.
- (void)copyClientDeviceInfoPlistToDeletedClientsDirectoryDiscussion
This method must call copiedClientDeviceInfoPlistToDeletedClientsDirectoryWithSuccess: when finished.
Declared In
TICDSDocumentClientDeletionOperation.hdeleteClientDirectoryFromDocumentSyncChangesDirectory
Delete the client’s directory from the document’s SyncChanges directory.
- (void)deleteClientDirectoryFromDocumentSyncChangesDirectoryDiscussion
This method must call deletedClientDirectoryFromDocumentSyncChangesDirectoryWithSuccess: when finished.
Declared In
TICDSDocumentClientDeletionOperation.hdeleteClientDirectoryFromDocumentSyncCommandsDirectory
Delete the client’s directory from the document’s SyncCommands directory.
- (void)deleteClientDirectoryFromDocumentSyncCommandsDirectoryDiscussion
This method must call deletedClientDirectoryFromDocumentSyncCommandsDirectoryWithSuccess: when finished.
Declared In
TICDSDocumentClientDeletionOperation.hdeleteClientDirectoryFromDocumentWholeStoreDirectory
Delete the client’s directory from the document’s WholeStore directory.
- (void)deleteClientDirectoryFromDocumentWholeStoreDirectoryDiscussion
This method must call deletedClientDirectoryFromDocumentWholeStoreDirectoryWithSuccess: when finished.
Declared In
TICDSDocumentClientDeletionOperation.hdeleteClientIdentifierFileFromDeletedClientsDirectory
Delete the client’s identifier.plist file from the document’s DeletedClients directory.
- (void)deleteClientIdentifierFileFromDeletedClientsDirectoryDiscussion
This method must call deletedClientIdentifierFileFromDeletedClientsDirectoryWithSuccess: to indicate the status.
Declared In
TICDSDocumentClientDeletionOperation.hdeleteClientIdentifierFileFromRecentSyncsDirectory
Delete the client’s file from the document’s RecentSyncs directory.
- (void)deleteClientIdentifierFileFromRecentSyncsDirectoryDiscussion
This method must call blah: when finished.
Declared In
TICDSDocumentClientDeletionOperation.hdeletedClientDirectoryFromDocumentSyncChangesDirectoryWithSuccess:
Indicate whether the client’s directory was deleted successfully from the document’s SyncChanges directory.
- (void)deletedClientDirectoryFromDocumentSyncChangesDirectoryWithSuccess:(BOOL)successParameters
- success
YESif the directory was deleted successfully, orNOif an error occurred.
Discussion
If an error occurred, call setError: first, then specify NO for success.
Declared In
TICDSDocumentClientDeletionOperation.hdeletedClientDirectoryFromDocumentSyncCommandsDirectoryWithSuccess:
Indicate whether the client’s directory was deleted successfully from the document’s SyncCommands directory.
- (void)deletedClientDirectoryFromDocumentSyncCommandsDirectoryWithSuccess:(BOOL)successParameters
- success
YESif the directory was deleted successfully, orNOif an error occurred.
Discussion
If an error occurred, call setError: first, then specify NO for success.
Declared In
TICDSDocumentClientDeletionOperation.hdeletedClientDirectoryFromDocumentWholeStoreDirectoryWithSuccess:
Indicate whether the client’s directory was deleted successfully from the document’s WholeStore directory.
- (void)deletedClientDirectoryFromDocumentWholeStoreDirectoryWithSuccess:(BOOL)successParameters
- success
YESif the directory was deleted successfully, orNOif an error occurred.
Discussion
If an error occurred, call setError: first, then specify NO for success.
Declared In
TICDSDocumentClientDeletionOperation.hdeletedClientIdentifierFileFromDeletedClientsDirectoryWithSuccess:
Indicate whether the identifier.plist file was deleted successfully from the document’s DeletedClients directory.
- (void)deletedClientIdentifierFileFromDeletedClientsDirectoryWithSuccess:(BOOL)successParameters
- success
YESif the file was deleted successfully, orNOif an error occurred.
Discussion
If an error occurred, call setError: first, then specify NO for success.
Declared In
TICDSDocumentClientDeletionOperation.hdeletedClientIdentifierFileFromRecentSyncsDirectoryWithSuccess:
Indicate whether the client’s file was deleted successfully from the document’s RecentSyncs directory.
- (void)deletedClientIdentifierFileFromRecentSyncsDirectoryWithSuccess:(BOOL)successParameters
- success
YESif the directory was deleted successfully, orNOif an error occurred.
Discussion
If an error occurred, call setError: first, then specify NO for success.
Declared In
TICDSDocumentClientDeletionOperation.hdiscoveredStatusOfClientDirectoryInDocumentSyncChangesDirectory:
Indicate the status of the client’s directory inside the document’s SyncChanges directory.
- (void)discoveredStatusOfClientDirectoryInDocumentSyncChangesDirectory:(TICDSRemoteFileStructureExistsResponseType)statusParameters
- status
The status of the directory: does exist, does not exist, or error (see
TICDSTypesAndEnums.hfor possible values).
Discussion
If an error occurred, call setError: first, then specify TICDSRemoteFileStructureExistsResponseTypeError for status.
Declared In
TICDSDocumentClientDeletionOperation.hdiscoveredStatusOfClientDirectoryInDocumentWholeStoreDirectory:
Indicate the status of the client’s directory inside the document’s WholeStore directory.
- (void)discoveredStatusOfClientDirectoryInDocumentWholeStoreDirectory:(TICDSRemoteFileStructureExistsResponseType)statusParameters
- status
The status of the directory: does exist, does not exist, or error (see
TICDSTypesAndEnums.hfor possible values).
Discussion
If an error occurred, call setError: first, then specify TICDSRemoteFileStructureExistsResponseTypeError for status.
Declared In
TICDSDocumentClientDeletionOperation.hdiscoveredStatusOfClientIdentifierFileInDocumentDeletedClientsDirectory:
Indicate the status of the client’s identifier.plist inside the document’s DeletedClients directory.
- (void)discoveredStatusOfClientIdentifierFileInDocumentDeletedClientsDirectory:(TICDSRemoteFileStructureExistsResponseType)statusParameters
- status
The status of the file: does exist, does not exist, or error (see
TICDSTypesAndEnums.hfor possible values).
Discussion
If an error occurred, call setError: first, then specify TICDSRemoteFileStructureExistsResponseTypeError for status.
Declared In
TICDSDocumentClientDeletionOperation.hdiscoveredStatusOfClientIdentifierFileInDocumentRecentSyncsDirectory:
Indicate the status of the client’s file inside the document’s RecentSyncs directory.
- (void)discoveredStatusOfClientIdentifierFileInDocumentRecentSyncsDirectory:(TICDSRemoteFileStructureExistsResponseType)statusParameters
- status
The status of the directory: does exist, does not exist, or error (see
TICDSTypesAndEnums.hfor possible values).
Discussion
If an error occurred, call setError: first, then specify TICDSRemoteFileStructureExistsResponseTypeError for status.
Declared In
TICDSDocumentClientDeletionOperation.h