You are here

searchWithStatement:language:listingContext:completionBlock

-(AlfrescoRequest *) searchWithStatement:(NSString *)statement language:(AlfrescoSearchLanguage)language listingContext:(AlfrescoListingContext *)listingContext completionBlock:(AlfrescoPagingResultCompletionBlock)completionBlock - executes a query statement against the contents of the repository using the given search language using a listing context.

Parameters

(NSString *) statement
The query statement.
(AlfrescoSearchLanguage) language
The search language to use.
(AlfrescoListingContext *) listingContext
The listing context with a paging definition that is used to retrieve the search results.
(AlfrescoPagingResultCompletionBlock) completionBlock
The block that is called with the search results on completion of the operation. The block has the format typedef void (^AlfrescoPagingResultCompletionBlock)(AlfrescoPagingResult *pagingResult, NSError *error).

Returns

(AlfrescoRequest *)

Example