public final class SetRoles 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, SetRoles.of(roles))); assertThat(updatedChannel.getRoles()).containsOnly(ORDER_EXPORT, INVENTORY_SUPPLY); return updatedChannel; });
See the test code.
Modifier and Type | Method and Description |
---|---|
Set<ChannelRole> |
getRoles() |
static SetRoles |
of(Set<ChannelRole> roles) |
getAction
public Set<ChannelRole> getRoles()
public static SetRoles of(Set<ChannelRole> roles)