use of com.evolveum.midpoint.xml.ns._public.common.common_3.ModelExecuteOptionsType in project midpoint by Evolveum.
the class ExecuteChangesHandlerDto method getOptions.
public String getOptions() {
ModelExecuteOptionsType options = taskDto.getExtensionPropertyRealValue(SchemaConstants.MODEL_EXTENSION_EXECUTE_OPTIONS, ModelExecuteOptionsType.class);
if (options == null) {
return null;
}
PrismContext prismContext = MidPointApplication.get().getPrismContext();
try {
return WebXmlUtil.stripNamespaceDeclarations(prismContext.xmlSerializer().serializeAnyData(options, SchemaConstants.MODEL_EXTENSION_EXECUTE_OPTIONS));
} catch (SchemaException e) {
throw new SystemException("Couldn't serialize model execute options: " + e.getMessage(), e);
}
}
use of com.evolveum.midpoint.xml.ns._public.common.common_3.ModelExecuteOptionsType in project midpoint by Evolveum.
the class ModelExecuteOptions method toModelExecutionOptionsType.
public ModelExecuteOptionsType toModelExecutionOptionsType() {
ModelExecuteOptionsType retval = new ModelExecuteOptionsType();
retval.setForce(force);
retval.setRaw(raw);
retval.setNoCrypt(noCrypt);
retval.setReconcile(reconcile);
retval.setReconcileFocus(reconcileFocus);
retval.setExecuteImmediatelyAfterApproval(executeImmediatelyAfterApproval);
retval.setOverwrite(overwrite);
retval.setIsImport(isImport);
retval.setLimitPropagation(limitPropagation);
retval.setReevaluateSearchFilters(reevaluateSearchFilters);
// preAuthorized is purposefully omitted (security reasons)
retval.setRequestBusinessContext(requestBusinessContext);
retval.setPartialProcessing(partialProcessing);
return retval;
}
Aggregations