@Override public void onSubmit(final AjaxRequestTarget target) { modal.close(target); } };
@Override protected void onSubmit(final AjaxRequestTarget target) { modal.close(target); } };
@Override public void onSubmit(final AjaxRequestTarget target) { modal.close(target); } };
@Override public void onSubmit(final AjaxRequestTarget target) { modal.close(target); } };
@Override protected void closeAction(final AjaxRequestTarget target) { modal.close(target); }
@Override public void onEvent(final IEvent<?> event) { super.onEvent(event); if (event.getPayload() instanceof WizardMgtPanel.ExitEvent && modal != null) { final AjaxRequestTarget target = WizardMgtPanel.ExitEvent.class.cast(event.getPayload()).getTarget(); baseModal.show(false); baseModal.close(target); } }
@Override public void onSubmit(final AjaxRequestTarget target) { try { restClient.set(attr); modal.close(target); SyncopeConsoleSession.get().info(getString(Constants.OPERATION_SUCCEEDED)); } catch (Exception e) { LOG.error("While creating or updating conf prarameter", e); SyncopeConsoleSession.get().error(StringUtils.isBlank(e.getMessage()) ? e.getClass().getName() : e.getMessage()); } ((BasePage) pageRef.getPage()).getNotificationPanel().refresh(target); } }
@Override public void onEvent(final IEvent<?> event) { super.onEvent(event); if (event.getPayload() instanceof ExitEvent && modal != null) { final AjaxRequestTarget target = ExitEvent.class.cast(event.getPayload()).getTarget(); baseModal.show(false); baseModal.close(target); } } }
@Override public void onEvent(final IEvent<?> event) { super.onEvent(event); if (event.getPayload() instanceof ExitEvent && modal != null) { final AjaxRequestTarget target = ExitEvent.class.cast(event.getPayload()).getTarget(); baseModal.show(false); baseModal.close(target); } } }
@Override public void onEvent(final IEvent<?> event) { super.onEvent(event); if (event.getPayload() instanceof ExitEvent && modal != null) { final AjaxRequestTarget target = ExitEvent.class.cast(event.getPayload()).getTarget(); baseModal.show(false); baseModal.close(target); } } }
@Override public void onEvent(final IEvent<?> event) { super.onEvent(event); if (event.getPayload() instanceof ExitEvent && modal != null) { final AjaxRequestTarget target = ExitEvent.class.cast(event.getPayload()).getTarget(); baseModal.show(false); baseModal.close(target); } }
@Override public void onEvent(final IEvent<?> event) { super.onEvent(event); if (event.getPayload() instanceof ExitEvent && modal != null) { final AjaxRequestTarget target = ExitEvent.class.cast(event.getPayload()).getTarget(); baseModal.show(false); baseModal.close(target); } } }
@Override public void onSubmit(final AjaxRequestTarget target) { try { if (create) { restClient.create(application); } else { restClient.update(application); } SyncopeConsoleSession.get().info(getString(Constants.OPERATION_SUCCEEDED)); this.modal.close(target); } catch (Exception e) { LOG.error("While creating/updating application", e); SyncopeConsoleSession.get().error( StringUtils.isBlank(e.getMessage()) ? e.getClass().getName() : e.getMessage()); } ((BasePage) pageRef.getPage()).getNotificationPanel().refresh(target); }
@Override public void onSubmit(final AjaxRequestTarget target) { try { if (create) { restClient.create(implementation); } else { restClient.update(implementation); } modal.close(target); SyncopeConsoleSession.get().info(getString(Constants.OPERATION_SUCCEEDED)); } catch (Exception e) { LOG.error("While creating or updating Implementation", e); SyncopeConsoleSession.get().error(StringUtils.isBlank(e.getMessage()) ? e.getClass().getName() : e.getMessage()); } ((BasePage) pageRef.getPage()).getNotificationPanel().refresh(target); }
@Override public void onSubmit(final AjaxRequestTarget target) { try { if (securityQuestionTO.getKey() == null) { restClient.create(securityQuestionTO); } else { restClient.update(securityQuestionTO); } SyncopeConsoleSession.get().info(getString(Constants.OPERATION_SUCCEEDED)); modal.close(target); } catch (Exception e) { LOG.error("While creating or updating {}", securityQuestionTO, e); SyncopeConsoleSession.get().error(StringUtils.isBlank(e.getMessage()) ? e.getClass().getName() : e.getMessage()); } ((BasePage) pageRef.getPage()).getNotificationPanel().refresh(target); } }
@Override @SuppressWarnings("unchecked") public void onEvent(final IEvent<?> event) { if (event.getPayload() instanceof AjaxWizard.NewItemEvent) { final AjaxRequestTarget target = AjaxWizard.NewItemEvent.class.cast(event.getPayload()).getTarget(); if (event.getPayload() instanceof AjaxWizard.NewItemCancelEvent || event.getPayload() instanceof AjaxWizard.NewItemFinishEvent) { jobModal.close(target); } } super.onEvent(event); } }
@Override public void onSubmit(final AjaxRequestTarget target) { try { dynRealmWrapper.fillDynamicConditions(); if (create) { restClient.create(dynRealmWrapper.getInnerObject()); } else { restClient.update(dynRealmWrapper.getInnerObject()); } SyncopeConsoleSession.get().info(getString(Constants.OPERATION_SUCCEEDED)); this.modal.close(target); } catch (Exception e) { LOG.error("While creating/updating dynamic realm", e); SyncopeConsoleSession.get().error( StringUtils.isBlank(e.getMessage()) ? e.getClass().getName() : e.getMessage()); } ((BasePage) pageRef.getPage()).getNotificationPanel().refresh(target); }
@Override public void onSubmit(final AjaxRequestTarget target) { try { restClient.createTemplate(templateTO); SyncopeConsoleSession.get().info(getString(Constants.OPERATION_SUCCEEDED)); modal.close(target); } catch (SyncopeClientException e) { LOG.error("While creating template for {}", templateTO.getKey(), e); SyncopeConsoleSession.get().error(StringUtils.isBlank(e.getMessage()) ? e.getClass().getName() : e.getMessage()); } ((BasePage) pageRef.getPage()).getNotificationPanel().refresh(target); } }
@Override public void onSubmit(final AjaxRequestTarget target) { if (selectedDetails.size() + selectedPlainSchemas.size() + selectedDerSchemas.size() > MAX_SELECTIONS) { SyncopeConsoleSession.get().error(getString("tooManySelections")); onError(target); } else { final Map<String, List<String>> prefs = new HashMap<>(); prefs.put(DisplayAttributesModalPanel.getPrefDetailView(type), selectedDetails); prefs.put(DisplayAttributesModalPanel.getPrefPlainAttributeView(type), selectedPlainSchemas); prefs.put(DisplayAttributesModalPanel.getPrefDerivedAttributeView(type), selectedDerSchemas); prefMan.setList(getRequest(), getResponse(), prefs); SyncopeConsoleSession.get().info(getString(Constants.OPERATION_SUCCEEDED)); modal.close(target); ((BasePage) pageRef.getPage()).getNotificationPanel().refresh(target); } }
@Override public void onSubmit(final AjaxRequestTarget target) { GroupUR req = new GroupUR(); req.setKey(groupTO.getKey()); req.getTypeExtensions().addAll(groupTO.getTypeExtensions()); try { new GroupRestClient().update(groupTO.getETagValue(), req); this.baseModal.show(false); this.baseModal.close(target); SyncopeConsoleSession.get().info(getString(Constants.OPERATION_SUCCEEDED)); } catch (Exception e) { LOG.error("Group update failure", e); SyncopeConsoleSession.get().error(getString(Constants.ERROR) + ": " + e.getMessage()); } ((BasePage) pageRef.getPage()).getNotificationPanel().refresh(target); }