SkyVaultModelDefinitionService
This section describes the SkyVaultModelDefinitionService class.
The SkyVaultModelDefinitionService class provides methods and models to manage type definitions.
Class declaration
@interface SkyVaultModelDefinitionService : SkyVaultBaseService
- retrieveDefinitionForDocumentType- (AlfrescoRequest *)retrieveDefinitionForDocumentType:(NSString *)type completionBlock:(AlfrescoDocumentTypeDefinitionCompletionBlock)block; - Returns the type definition for the given document type, for example "cm:content". An error with a code of 1301 is returned if the type is null or unknown.
- retrieveDefinitionForDocument- (AlfrescoRequest *)retrieveDefinitionForDocument:(AlfrescoDocument *)document completionBlock:(AlfrescoDocumentTypeDefinitionCompletionBlock)block; - Returns the complete type definition for the given Document, the returned definition will also include all properties from all applied aspects.
- retrieveDefinitionForFolderType- (AlfrescoRequest *)retrieveDefinitionForFolderType:(NSString *)type completionBlock:(AlfrescoFolderTypeDefinitionCompletionBlock)completionBlock; - Returns the type definition for the given document type, for example "cm:folder". An error with a code of 1301 is returned if the type is null or unknown.
- retrieveDefinitionForFolder- (AlfrescoRequest *)retrieveDefinitionForFolder:(AlfrescoFolder *)folder completionBlock:(AlfrescoFolderTypeDefinitionCompletionBlock)completionBlock; - Returns the type definition for the given Folder, the returned definition will also include all properties from all applied aspects.
- retrieveDefinitionForAspect- (AlfrescoRequest *)retrieveDefinitionForAspect:(NSString *)aspect completionBlock:(AlfrescoAspectDefinitionCompletionBlock)completionBlock; - Returns the definition for the given aspect, for example "exif:exif". An error with a code of 1301 is returned if the type is null or unknown.
- retrieveDefinitionForTaskType- (AlfrescoRequest *)retrieveDefinitionForTaskType:(NSString *)type completionBlock:(AlfrescoTaskTypeDefinitionCompletionBlock)completionBlock; - Returns the type definition for the given task type, for example "wf:adhocTask". An error with a code of 1301 is returned if the type is null or unknown.
- retrieveDefinitionForTask- (AlfrescoRequest *)retrieveDefinitionForTask:(AlfrescoWorkflowTask *)task completionBlock:(AlfrescoTaskTypeDefinitionCompletionBlock)completionBlock; - Returns the type definition for the given workflow task, the returned definition will also include all properties from all applied aspects.
Parent topic: Services