From: David A. Velasco Date: Fri, 23 Oct 2015 09:38:53 +0000 (+0200) Subject: Adaption to refactoring of library from GetRemoteUsersOrGroupsOperation to GetRemoteS... X-Git-Tag: oc-android-1.9^2~30^2~17 X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/commitdiff_plain/eb9890f32fc3f6dd93bbf3cf65e6260b425be400?ds=inline Adaption to refactoring of library from GetRemoteUsersOrGroupsOperation to GetRemoteShareesOperation --- diff --git a/src/com/owncloud/android/operations/GetUsersOrGroupsOperation.java b/src/com/owncloud/android/operations/GetUsersOrGroupsOperation.java deleted file mode 100644 index 6ecd9303..00000000 --- a/src/com/owncloud/android/operations/GetUsersOrGroupsOperation.java +++ /dev/null @@ -1,64 +0,0 @@ -/** - * ownCloud Android client application - * - * @author masensio - * Copyright (C) 2015 ownCloud Inc. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2, - * as published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - */ -package com.owncloud.android.operations; - -import com.owncloud.android.lib.common.OwnCloudClient; -import com.owncloud.android.lib.common.operations.RemoteOperationResult; -import com.owncloud.android.lib.resources.shares.GetRemoteShareesOperation; -import com.owncloud.android.operations.common.SyncOperation; - -/** - * Get the users from the server - */ -public class GetUsersOrGroupsOperation extends SyncOperation{ - - private static final String TAG = GetUsersOrGroupsOperation.class.getSimpleName(); - - private String mSearchString; - private int mLimit; - private int mOffset; - private boolean mGetGroups; - - /** - * Constructor - * - * @param searchString string for searching users, optional - * @param limit limit, optional - * @param offset offset, optional - * @param getGroups true: for searching groups, false: for searching users - */ - public GetUsersOrGroupsOperation(String searchString, int limit, int offset, - boolean getGroups) { - mSearchString = searchString; - mLimit = limit; - mOffset = offset; - mGetGroups = getGroups; - } - - @Override - protected RemoteOperationResult run(OwnCloudClient client) { - GetRemoteShareesOperation operation = - new GetRemoteShareesOperation(mSearchString, - mOffset, mLimit); - RemoteOperationResult result = operation.execute(client); - - return result; - } -}