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