mirror of
				https://github.com/owncloud/android-library.git
				synced 2025-10-31 10:27:45 +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 | ||||
| 	 *  | ||||
| 	 * @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. | ||||
| 	 */ | ||||
|  | ||||
| @ -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; | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user