mirror of
https://github.com/owncloud/android-library.git
synced 2025-07-11 08:29:07 +00:00
Update RemoteOperation.ResultCode to include enum value for FORBIDDEN results
This commit is contained in:
parent
5ebf81e26e
commit
0862c66b7d
@ -41,13 +41,13 @@ import org.apache.commons.httpclient.HttpStatus;
|
||||
import org.apache.jackrabbit.webdav.DavException;
|
||||
import org.json.JSONException;
|
||||
|
||||
import com.owncloud.android.lib.common.accounts.AccountUtils.AccountNotFoundException;
|
||||
import com.owncloud.android.lib.common.network.CertificateCombinedException;
|
||||
|
||||
import android.accounts.Account;
|
||||
import android.accounts.AccountsException;
|
||||
import android.util.Log;
|
||||
|
||||
import com.owncloud.android.lib.common.accounts.AccountUtils.AccountNotFoundException;
|
||||
import com.owncloud.android.lib.common.network.CertificateCombinedException;
|
||||
|
||||
|
||||
/**
|
||||
* The result of a remote operation required to an ownCloud server.
|
||||
@ -98,7 +98,8 @@ public class RemoteOperationResult implements Serializable {
|
||||
ACCOUNT_NOT_THE_SAME,
|
||||
INVALID_CHARACTER_IN_NAME,
|
||||
SHARE_NOT_FOUND,
|
||||
LOCAL_STORAGE_NOT_REMOVED
|
||||
LOCAL_STORAGE_NOT_REMOVED,
|
||||
FORBIDDEN
|
||||
}
|
||||
|
||||
private boolean mSuccess = false;
|
||||
@ -140,6 +141,9 @@ public class RemoteOperationResult implements Serializable {
|
||||
case HttpStatus.SC_INSUFFICIENT_STORAGE:
|
||||
mCode = ResultCode.QUOTA_EXCEEDED;
|
||||
break;
|
||||
case HttpStatus.SC_FORBIDDEN:
|
||||
mCode = ResultCode.FORBIDDEN;
|
||||
break;
|
||||
default:
|
||||
mCode = ResultCode.UNHANDLED_HTTP_CODE;
|
||||
Log.d(TAG, "RemoteOperationResult has processed UNHANDLED_HTTP_CODE: " + httpCode);
|
||||
|
Loading…
x
Reference in New Issue
Block a user