2 * ownCloud Android client application
5 * Copyright (C) 2015 ownCloud Inc.
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2,
9 * as published by the Free Software Foundation.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
20 package com
.owncloud
.android
.operations
;
22 import com
.owncloud
.android
.lib
.common
.OwnCloudClient
;
23 import com
.owncloud
.android
.lib
.common
.operations
.RemoteOperationResult
;
24 import com
.owncloud
.android
.lib
.resources
.users
.GetRemoteUsersOperation
;
25 import com
.owncloud
.android
.operations
.common
.SyncOperation
;
28 * Get the users from the server
30 public class GetUsersOperation
extends SyncOperation
{
32 private static final String TAG
= GetUsersOperation
.class.getSimpleName();
34 private String mSearchString
;
41 * @param searchString string for searching users, optional
42 * @param limit limit, optional
43 * @param offset offset, optional
45 public GetUsersOperation(String searchString
, int limit
, int offset
) {
46 mSearchString
= searchString
;
52 protected RemoteOperationResult
run(OwnCloudClient client
) {
53 GetRemoteUsersOperation operation
= new GetRemoteUsersOperation(mSearchString
,
55 RemoteOperationResult result
= operation
.execute(client
);