@Test(expectedExceptions = FaultMessage.class) public void nullChangeModify() throws FaultMessage { try { modelService.executeChanges(null, null); } catch (FaultMessage ex) { ModelTUtil.assertIllegalArgumentFault(ex); } }
@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); 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); return null; } finally { auditLogout(task); } }
ModelWebService extends AbstractModelWebService implements ModelPortType, ModelPort { @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); 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); return null; } finally { auditLogout(task); } } }
ModelWebService extends AbstractModelWebService implements ModelPortType, ModelPort { @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); 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); return null; } finally { auditLogout(task); } }  }
ModelWebService extends AbstractModelWebService implements ModelPortType, ModelPort { @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); 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); return null; } finally { auditLogout(task); } }  @Override void getObject(QName objectType, String oid, SelectorQualifiedGetOptionsType optionsType,
			Holder<ObjectType> objectHolder, Holder<OperationResultType> resultHolder); @Override void searchObjects(QName objectType, QueryType query, SelectorQualifiedGetOptionsType optionsType,
                  Holder<ObjectListType> objectListHolder, Holder<OperationResultType> result); @Override ObjectDeltaOperationListType executeChanges(ObjectDeltaListType deltaList, ModelExecuteOptionsType optionsType); @Override void findShadowOwner(String accountOid, Holder<UserType> userHolder, Holder<OperationResultType> result); @Override OperationResultType testResource(String resourceOid); @Override ExecuteScriptsResponseType executeScripts(ExecuteScriptsType parameters); static PipelineDataType prepareXmlData(List<PipelineItem> output,
			ScriptingExpressionEvaluationOptionsType options); FaultMessage createIllegalArgumentFault(String message); void throwFault(Throwable ex, OperationResult result); @Override TaskType importFromResource(String resourceOid, QName objectClass); @Override TaskType notifyChange(ResourceObjectShadowChangeDescriptionType changeDescription); }
ModelWebService extends AbstractModelWebService implements ModelPortType, ModelPort { @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); 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); return null; } finally { auditLogout(task); } }  @Override void getObject(QName objectType, String oid, SelectorQualifiedGetOptionsType optionsType,
			Holder<ObjectType> objectHolder, Holder<OperationResultType> resultHolder); @Override void searchObjects(QName objectType, QueryType query, SelectorQualifiedGetOptionsType optionsType,
                  Holder<ObjectListType> objectListHolder, Holder<OperationResultType> result); @Override ObjectDeltaOperationListType executeChanges(ObjectDeltaListType deltaList, ModelExecuteOptionsType optionsType); @Override void findShadowOwner(String accountOid, Holder<UserType> userHolder, Holder<OperationResultType> result); @Override OperationResultType testResource(String resourceOid); @Override ExecuteScriptsResponseType executeScripts(ExecuteScriptsType parameters); static PipelineDataType prepareXmlData(List<PipelineItem> output,
			ScriptingExpressionEvaluationOptionsType options); FaultMessage createIllegalArgumentFault(String message); void throwFault(Throwable ex, OperationResult result); @Override TaskType importFromResource(String resourceOid, QName objectClass); @Override TaskType notifyChange(ResourceObjectShadowChangeDescriptionType changeDescription);  }