public class CreateShareWithShareeOperation extends SyncOperation {
- private static final int READ_ONLY = 1;
- private static final int ALL_PRIVILEGES = 31;
-
protected FileDataStorageManager mStorageManager;
private String mPath;
mShareeName,
false,
"",
- ALL_PRIVILEGES
+ OCShare.DEFAULT_PERMISSION
);
operation.setGetShareDetails(true);
RemoteOperationResult result = operation.execute(client);
// Update DB with the response
share.setPath(mPath);
share.setIsFolder(mPath.endsWith(FileUtils.PATH_SEPARATOR));
- share.setPermissions(READ_ONLY);
-
+
getStorageManager().saveShare(share);
// Update OCFile with data from share: ShareByLink and publicLink