mirror of
				https://github.com/owncloud/android-library.git
				synced 2025-10-31 18:37:17 +00:00 
			
		
		
		
	Changes after cr
This commit is contained in:
		
							parent
							
								
									4d9ff3e022
								
							
						
					
					
						commit
						bfe4fcd977
					
				| @ -60,7 +60,8 @@ public class CreateRemoteShareOperation extends RemoteOperation { | |||||||
| 	 * Constructor | 	 * Constructor | ||||||
| 	 * @param remoteFilePath	Full path of the file/folder being shared. Mandatory argument | 	 * @param remoteFilePath	Full path of the file/folder being shared. Mandatory argument | ||||||
| 	 * @param shareType			0 = user, 1 = group, 3 = Public link. Mandatory argument | 	 * @param shareType			0 = user, 1 = group, 3 = Public link. Mandatory argument | ||||||
| 	 * @param shareWith			User/group ID with who the file should be shared.  This is mandatory for shareType of 0 or 1 | 	 * @param shareWith			User/group ID with who the file should be shared.  This is mandatory for shareType | ||||||
|  | 	 *                          of 0 or 1 | ||||||
| 	 * @param publicUpload		If false (default) public cannot upload to a public shared folder. | 	 * @param publicUpload		If false (default) public cannot upload to a public shared folder. | ||||||
| 	 * 							If true public can upload to a shared folder. Only available for public link shares | 	 * 							If true public can upload to a shared folder. Only available for public link shares | ||||||
| 	 * @param password			Password to protect a public link share. Only available for public link shares | 	 * @param password			Password to protect a public link share. Only available for public link shares | ||||||
| @ -140,15 +141,14 @@ public class CreateRemoteShareOperation extends RemoteOperation { | |||||||
| 				parser.setServerBaseUri(client.getBaseUri()); | 				parser.setServerBaseUri(client.getBaseUri()); | ||||||
| 				result = parser.parse(response); | 				result = parser.parse(response); | ||||||
| 
 | 
 | ||||||
| 				if (result.isSuccess()) { | 				if (result.isSuccess() && mGetShareDetails) { | ||||||
| 					Log_OC.d(TAG, "Created " + result.getData().size() + " share(s)");	// should be one | 					// retrieve more info - POST only returns the index of the new share | ||||||
| 					if (mGetShareDetails) { |  | ||||||
| 						// retrieve more info - POST operation only returns the index of the new share |  | ||||||
| 					OCShare emptyShare = (OCShare) result.getData().get(0); | 					OCShare emptyShare = (OCShare) result.getData().get(0); | ||||||
| 						GetRemoteShareOperation getInfo = new GetRemoteShareOperation(emptyShare.getIdRemoteShared()); | 					GetRemoteShareOperation getInfo = new GetRemoteShareOperation( | ||||||
|  | 							emptyShare.getIdRemoteShared() | ||||||
|  | 					); | ||||||
| 					result = getInfo.execute(client); | 					result = getInfo.execute(client); | ||||||
| 				} | 				} | ||||||
| 				} |  | ||||||
| 
 | 
 | ||||||
| 			} else { | 			} else { | ||||||
| 				result = new RemoteOperationResult(false, status, post.getResponseHeaders()); | 				result = new RemoteOperationResult(false, status, post.getResponseHeaders()); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user