= InteractionDtoUtils
:Notice: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at. http://www.apache.org/licenses/LICENSE-2.0 . Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR  CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

== API

[source,java]
.InteractionDtoUtils.java
----
class InteractionDtoUtils {
  void init()
  DtoMapper<InteractionDto> dtoMapper()
  InteractionDto newInteractionDto(Execution<?, ?> execution)     // <.>
  InteractionDto newInteractionDto(Execution<?, ?> execution, Strategy strategy)     // <.>
  ActionInvocationDto newActionInvocation(int sequence, Bookmark targetBookmark, String actionIdentifier, List<ParamDto> parameterDtos, String user)
  PropertyEditDto newPropertyEdit(int sequence, Bookmark targetBookmark, String propertyIdentifier, ValueWithTypeDto newValueDto, String user)
  String deriveLogicalMemberId(Bookmark bookmark, String memberId)
  List<ParamDto> getParameters(ActionInvocationDto ai)
  List<String> getParameterNames(ActionInvocationDto ai)
  List<ValueType> getParameterTypes(ActionInvocationDto ai)
  ParamDto getParameter(ActionInvocationDto ai, int paramNum)
  ValueDto getParameterArgument(ActionInvocationDto ai, int paramNum)
  String getParameterName(ActionInvocationDto ai, int paramNum)
  ValueType getParameterType(ActionInvocationDto ai, int paramNum)
  boolean isNull(ActionInvocationDto ai, int paramNum)
}
----

<.> xref:#newInteractionDto_Execution[newInteractionDto(Execution)]
+
--
Creates a _InteractionDto_ (serializable to XML) for the provided xref:refguide:applib:index/services/iactn/Execution.adoc[Execution] (the applib object).
--
<.> xref:#newInteractionDto_Execution_Strategy[newInteractionDto(Execution, Strategy)]
+
--
Creates a _InteractionDto_ (serializable to XML) for the provided xref:refguide:applib:index/services/iactn/Execution.adoc[Execution] (the applib object).
--

== Members

[#newInteractionDto_Execution]
=== newInteractionDto(Execution)

Creates a _InteractionDto_ (serializable to XML) for the provided xref:refguide:applib:index/services/iactn/Execution.adoc[Execution] (the applib object).

[#newInteractionDto_Execution_Strategy]
=== newInteractionDto(Execution, Strategy)

Creates a _InteractionDto_ (serializable to XML) for the provided xref:refguide:applib:index/services/iactn/Execution.adoc[Execution] (the applib object).
