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