@Override public void onClick(final AjaxRequestTarget target, final GroupTO ignore) { try { restClient.delete(model.getObject().getETagValue(), model.getObject().getKey()); SyncopeConsoleSession.get().info(getString(Constants.OPERATION_SUCCEEDED)); target.add(container); } catch (SyncopeClientException e) { LOG.error("While deleting object {}", model.getObject().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) { 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); }
groupTO.getLastChangeDate() == null ? groupTO.getCreationDate() : groupTO.getLastChangeDate(), groupTO.getETagValue(), location), output(attributes, excludedAttributes, "displayName", groupTO.getName()));
@Override public Response update(final GroupTO groupTO) { groupTO.setKey(getActualKey(getAnyDAO(), groupTO.getKey())); GroupTO before = logic.read(groupTO.getKey()); checkETag(before.getETagValue()); ProvisioningResult<GroupTO> updated = logic.update(AnyOperations.diff(groupTO, before, false), isNullPriorityAsync()); return modificationResponse(updated); }
result.setEntity(inner); } else { result = groupRestClient.update(getOriginalItem().getInnerObject().getETagValue(), groupUR);