use of com.evolveum.midpoint.xml.ns._public.common.common_3.AccessCertificationDefinitionType in project midpoint by Evolveum.
the class PageCertDefinitions method deleteDefinitionPerformed.
private void deleteDefinitionPerformed(AjaxRequestTarget target, AccessCertificationDefinitionType definition) {
OperationResult result = new OperationResult(OPERATION_DELETE_DEFINITION);
try {
Task task = createSimpleTask(OPERATION_DELETE_DEFINITION);
ObjectDelta<AccessCertificationDefinitionType> delta = ObjectDelta.createDeleteDelta(AccessCertificationDefinitionType.class, definition.getOid(), getPrismContext());
getModelService().executeChanges(WebComponentUtil.createDeltaCollection(delta), null, task, result);
} catch (Exception ex) {
result.recordPartialError("Couldn't delete campaign definition.", ex);
LoggingUtils.logUnexpectedException(LOGGER, "Couldn't delete campaign definition", ex);
}
result.computeStatusIfUnknown();
if (result.isSuccess()) {
result.recordStatus(OperationResultStatus.SUCCESS, "The definition has been successfully deleted.");
}
getDefinitionsTable().clearCache();
showResult(result);
target.add(getFeedbackPanel(), getDefinitionsTable());
}
Aggregations