public final class RemoveRoles extends UpdateActionImpl<Channel>
See also ChannelUpdateCommand.
withUpdatableChannelOfRole(client(), asSet(ORDER_IMPORT, PRIMARY), channel -> { final Set<ChannelRole> roles = asSet(ORDER_IMPORT); final Channel updatedChannel = client().executeBlocking(ChannelUpdateCommand.of(channel, RemoveRoles.of(roles))); assertThat(updatedChannel.getRoles()).containsOnly(PRIMARY); return updatedChannel; });
See the test code.
Modifier and Type | Method and Description |
---|---|
Set<ChannelRole> |
getRoles() |
static RemoveRoles |
of(Set<ChannelRole> roles) |
getAction
public Set<ChannelRole> getRoles()
public static RemoveRoles of(Set<ChannelRole> roles)