/** * Create an instance of {@link ObjectDeltaOperationListType } * */ public ObjectDeltaOperationListType createObjectDeltaOperationListType() { return new ObjectDeltaOperationListType(); }
/** * Create an instance of {@link ObjectDeltaOperationListType } * */ public ObjectDeltaOperationListType createObjectDeltaOperationListType() { return new ObjectDeltaOperationListType(); }
/** * Create an instance of {@link ObjectDeltaOperationListType } * */ public ObjectDeltaOperationListType createObjectDeltaOperationListType() { return new ObjectDeltaOperationListType(); }
public ObjectDeltaOperationListType beginDeltaOperationList() { ObjectDeltaOperationListType value = new ObjectDeltaOperationListType(); deltaOperationList(value); return value; }
@Override public ObjectDeltaOperationListType executeChanges(ObjectDeltaListType deltaList, ModelExecuteOptionsType optionsType) throws FaultMessage { notNullArgument(deltaList, "Object delta list must not be null."); Task task = createTaskInstance(EXECUTE_CHANGES); auditLogin(task); OperationResult operationResult = task.getResult(); try { Collection<ObjectDelta> deltas = DeltaConvertor.createObjectDeltas(deltaList, prismContext); for (ObjectDelta delta : deltas) { prismContext.adopt(delta); } ModelExecuteOptions options = ModelExecuteOptions.fromModelExecutionOptionsType(optionsType); Collection<ObjectDeltaOperation<? extends ObjectType>> objectDeltaOperations = modelService.executeChanges((Collection) deltas, options, task, operationResult); // brutally eliminating type-safety compiler barking ObjectDeltaOperationListType retval = new ObjectDeltaOperationListType(); for (ObjectDeltaOperation objectDeltaOperation : objectDeltaOperations) { ObjectDeltaOperationType objectDeltaOperationType = DeltaConvertor.toObjectDeltaOperationType(objectDeltaOperation, null); retval.getDeltaOperation().add(objectDeltaOperationType); } return retval; } catch (Exception ex) { LoggingUtils.logException(LOGGER, "# MODEL executeChanges() failed", ex); throwFault(ex, operationResult); // notreached return null; } finally { auditLogout(task); } }