@ Override public void invoke ( final ActionRequest req , final ActionResponse res ) throws IOException { final NotificationEntry entry = getTarget ( ) ; /* * The HideAction works like a toggle */ if ( ! isEntrySnoozed ( entry , req ) ) { // Hide it... hide ( entry , req ) ; } else { // Un-hide it... unhide ( entry , req ) ; } }
Invoking a HideAction toggles it .