public int sendCommand(String command, Map<String, Object> args) { checkInit(); final Set<Property> notifys = new HashSet<Property>(); Event evt = null; //ZK-3133 if (args != null && args.containsKey(BinderCtrl.CLIENT_INFO)) { Map<String, Object> inf = new HashMap<String, Object>(); inf.put("", args.get(BinderCtrl.CLIENT_INFO)); evt = ClientInfoEvent.getClientInfoEvent(new AuRequest(_rootComp.getDesktop(), command, inf)); } //args come from user, we don't eval it. int result = doCommand(_rootComp, null, command, evt, args, notifys); if (result == COMMAND_FAIL_VALIDATE && _validationMessages != null) { notifys.add(new PropertyImpl(_validationMessages, ".", null)); } fireNotifyChanges(notifys); return result; }
Events.postEvent(evt); } else if (Events.ON_CLIENT_INFO.equals(cmd)) { Events.postEvent(ClientInfoEvent.getClientInfoEvent(request)); } else if (Events.ON_VISIBILITY_CHANGE.equals(cmd)) { Events.postEvent(VisibilityChangeEvent.getVisibilityChangeEvent(request));