Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 275c042f authored by David A. Velasco's avatar David A. Velasco
Browse files

Added constants for maximum Share permissions

parent 249cb901
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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.
	 */
+10 −0
Original line number Diff line number Diff line
@@ -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;