@Test public void mayCreateChildShouldReturnUnsupportedWhenNoUserRights() { assertThat(Rights.EMPTY.mayCreateChild(USERNAME)) .isEqualTo(Rights.UNSUPPORTED); }
public Optional<Boolean> mayCreateChild(Username username) { return UNSUPPORTED; }
Rights { public Optional<Boolean> mayCreateChild(Username username) { return UNSUPPORTED; } }
Rights { public Optional<Boolean> mayCreateChild(Username username) { return UNSUPPORTED; } @JsonCreator  Rights(Map<Username, List<Right>> rights); private  Rights(Multimap<Username, Right> rights); }
Rights { public Optional<Boolean> mayCreateChild(Username username) { return UNSUPPORTED; } @JsonCreator  Rights(Map<Username, List<Right>> rights); private  Rights(Multimap<Username, Right> rights); static Builder builder(); static Rights fromACL(MailboxACL acl); @JsonAnyGetter Map<Username, Collection<Right>> getRights(); Rights removeEntriesFor(Username username); MailboxACL toMailboxAcl(); Optional<Boolean> mayReadItems(Username username); Optional<Boolean> mayAddItems(Username username); Optional<Boolean> mayCreateChild(Username username); Optional<Boolean> mayRemoveItems(Username username); Optional<Boolean> mayRename(Username username); Optional<Boolean> mayDelete(Username username); @Override final boolean equals(Object o); @Override final int hashCode(); }
Rights { public Optional<Boolean> mayCreateChild(Username username) { return UNSUPPORTED; } @JsonCreator  Rights(Map<Username, List<Right>> rights); private  Rights(Multimap<Username, Right> rights); static Builder builder(); static Rights fromACL(MailboxACL acl); @JsonAnyGetter Map<Username, Collection<Right>> getRights(); Rights removeEntriesFor(Username username); MailboxACL toMailboxAcl(); Optional<Boolean> mayReadItems(Username username); Optional<Boolean> mayAddItems(Username username); Optional<Boolean> mayCreateChild(Username username); Optional<Boolean> mayRemoveItems(Username username); Optional<Boolean> mayRename(Username username); Optional<Boolean> mayDelete(Username username); @Override final boolean equals(Object o); @Override final int hashCode(); static final Rights EMPTY; }