cancel
Showing results for 
Search instead for 
Did you mean: 

[SDK iOS] Retrieve Persons from a site

flecluse
Champ in-the-making
Champ in-the-making
Hi everybody,

I'm working on a collaborative iOS App based onto the Alfresco iOS SDK.
The goal is to focus features on colleagues which are using the solution in order to extends the social dimension of the mobile application.

I'm trying to retreive persons which are working on a site.
Something like :
- (void)retrievePersonsFromSites:(AlfrescoSite *)aSite WithCompletionBlock:(AlfrescoArrayCompletionBlock)completionBlock;
      (completion block returns an NSArray of AlfrescoPerson Objects)
                        
- (void)retrievePersonsWithCompletionBlock:(AlfrescoArrayCompletionBlock)completionBlock;
                 (completion block returns an NSArray of AlfrescoPerson Objects)
                        
- (void)retrieveContentInsertedFromPerson:(AlfrescoPerson *)aPerson WithCompletionBlock:(AlfrescoArrayCompletionBlock)completionBlock;
         (completion block returns an NSArray of Alfersco Node objects)

Do you know if some alfresco community developers are working on this kind of features?
If no, any advices on how to start the development?

Regards,

Florian Lecluse
iOS Developer - INEAT CONSEIL
1 REPLY 1

gavinc
Champ in-the-making
Champ in-the-making
Hi Florian,

It's great to hear that you plan to customise/extend the iOS SDK. I'm not aware of anyone else in the community working on this functionality and these are not areas we plan to implement in the forthcoming release.

If you were to implement and contribute them via a pull request you may get them integrated quicker, however, there would have to be implementations for on-premise servers as well as Cloud using the public API. You could of course also just create a new custom service (follow the pattern of an existing service).

Just a couple of suggestions if you don't mind….

I would call the first 2 methods "retrievePeopleFromSite" and "retrievePeopleWithCompletionBlock", respectively. I presume the 2nd one is to retrieve all users from the repository? If so, I'd suggest also passing an AlfrescoListingContext object so that the results returned can be limited.

I would also make the same suggestion for the last method if the intention is to retrieve all documents a user has created in the whole repository.

If you have any specific questions about implementing a custom service or producing a pull request please let us know.

Regards,