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:
parent
249cb901eb
commit
275c042f78
@ -56,9 +56,9 @@ public class GetRemoteSharesForFileOperation extends RemoteOperation {
|
|||||||
* Constructor
|
* Constructor
|
||||||
*
|
*
|
||||||
* @param remoteFilePath Path to file or folder
|
* @param remoteFilePath Path to file or folder
|
||||||
* @param reshares If set to false (default), only shares from the current user are
|
* @param reshares If set to false (default), only shares owned by the current user are
|
||||||
* returned
|
* returned.
|
||||||
* If set to true, all shares from the given file 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
|
* @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.
|
* If set to true, all shared files within the folder are returned.
|
||||||
*/
|
*/
|
||||||
|
@ -52,6 +52,16 @@ public class OCShare implements Parcelable, Serializable {
|
|||||||
public static final int CREATE_PERMISSION_FLAG = 4;
|
public static final int CREATE_PERMISSION_FLAG = 4;
|
||||||
public static final int DELETE_PERMISSION_FLAG = 8;
|
public static final int DELETE_PERMISSION_FLAG = 8;
|
||||||
public static final int SHARE_PERMISSION_FLAG = 16;
|
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 mId;
|
||||||
private long mFileSource;
|
private long mFileSource;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user