public Set<StreamAction> getEnabledActions(String streamName) { StreamStatusDTO streamStatus = streamStatuses.get(streamName); Set<StreamAction> enabledActions = new HashSet<>(); if (streamStatus != null) { enabledActions = streamStatus.getActionsEnabled(); } return enabledActions; }
public void disableAction(String streamName, StreamAction action) { StreamStatusDTO streamStatus = streamStatuses.get(streamName); streamStatus.getActionsEnabled().remove(action); }