1
0
mirror of https://github.com/owncloud/android-library.git synced 2025-07-23 09:56:02 +00:00

Added constants for maximum Share permissions

This commit is contained in:
David A. Velasco 2016-01-18 13:54:45 +01:00
parent 249cb901eb
commit 275c042f78
2 changed files with 13 additions and 3 deletions

View File

@ -56,9 +56,9 @@ public class GetRemoteSharesForFileOperation extends RemoteOperation {
* Constructor
*
* @param remoteFilePath Path to file or folder
* @param reshares If set to false (default), only shares from the current user are
* returned
* If set to true, all shares from the given file are returned
* @param reshares If set to false (default), only shares owned by the current user are
* returned.
* If set to true, shares owned by any user from the given file are returned.
* @param subfiles If set to false (default), lists only the folder being shared
* If set to true, all shared files within the folder are returned.
*/

View File

@ -52,6 +52,16 @@ public class OCShare implements Parcelable, Serializable {
public static final int CREATE_PERMISSION_FLAG = 4;
public static final int DELETE_PERMISSION_FLAG = 8;
public static final int SHARE_PERMISSION_FLAG = 16;
public static final int MAXIMUM_PERMISSIONS_FOR_FILE =
READ_PERMISSION_FLAG +
UPDATE_PERMISSION_FLAG +
SHARE_PERMISSION_FLAG
;
public static final int MAXIMUM_PERMISSIONS_FOR_FOLDER =
MAXIMUM_PERMISSIONS_FOR_FILE +
CREATE_PERMISSION_FLAG +
DELETE_PERMISSION_FLAG
;
private long mId;
private long mFileSource;