Skip to content

Commit

Permalink
#498 Open link to a deck board/card directly in the deck app - Add me…
Browse files Browse the repository at this point in the history
…thod signatures to SyncManager
  • Loading branch information
stefan-niedermann committed Jun 27, 2020
1 parent 1bda7aa commit 8b7bf98
Showing 1 changed file with 17 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,22 @@ public LiveData<List<Account>> readAccounts() {
return dataBaseAdapter.readAccounts();
}

/**
* <p>
* Since the return value is a {@link LiveData}, it should immediately return the available values from the database
* and then perform a synchronization (not full but only for the needed data) to update the return value.
* <p>
* See https://github.com/stefan-niedermann/nextcloud-deck/issues/498#issuecomment-631615680
*
* @param host e. g. "example.com:4711"
* @return a {@link List<Account>} of {@link Account}s which are
* - located at the given {@param host}
* - and have the permission to read the board with the given {@param boardRemoteId} (aka the {@link Board} is shared with this {@link User}).
*/
public LiveData<List<Account>> readAccountsForHostWithReadAccessToBoard(String host, long boardRemoteId) {
throw new UnsupportedOperationException("Not yet implemented");
}

public void refreshCapabilities(IResponseCallback<Capabilities> callback) {
doAsync(() -> {
try {
Expand Down Expand Up @@ -925,7 +941,7 @@ public void onError(Throwable throwable) {
* a) If the {@link User} has at least view permission at the target {@link Board}, keep it (<strong>can</strong> be the case if the target {@link Account} is the same as the origin {@link Account} <strong>or</strong> the target {@link Account} is on the same Nextcloud instance as the origin {@link Account}
* b) Else {@link #unassignUserFromCard(User, Card)} (will always be the case if the target {@link Account} is on another Nextcloud isntance as the origin {@link Account})
* <p>
*
* <p>
* https://github.com/stefan-niedermann/nextcloud-deck/issues/453
*/
@SuppressWarnings("JavadocReference")
Expand Down

0 comments on commit 8b7bf98

Please sign in to comment.