Class ServiceData

java.lang.Object
com.almis.awe.model.dto.ServiceData
All Implemented Interfaces:
Copyable, Serializable
Direct Known Subclasses:
ServiceDataWrapper

public class ServiceData extends Object implements Serializable, Copyable
ServiceData Class This class is used to generate objects as return of a service call
Author:
Pablo VIDAL - 20/MAR/2015
See Also:
  • Constructor Details

  • Method Details

    • copy

      public ServiceData copy()
      Description copied from interface: Copyable
      Get a copy of this element
      Specified by:
      copy in interface Copyable
      Returns:
      element copy
    • setData

      public ServiceData setData(DataList dataList, Integer rowNum)
      Store the service response from one row of Datalist
      Parameters:
      dataList - DataList to store
      rowNum - Row index of DataList to store
      Returns:
      this
    • setData

      public ServiceData setData(DataList dataList, List<String> columnList)
      Store the service response from column list of Datalist
      Parameters:
      dataList - DataList to store
      columnList - Column name of DataList to store
      Returns:
      this
    • setType

      public ServiceData setType(AnswerType type)
      Stores the service response message type (ERROR, OK, WARNING, INFO)
      Parameters:
      type - Service output type
      Returns:
      this
    • addClientAction

      public ServiceData addClientAction(ClientAction clientAction)
      Adds a client action to the list
      Parameters:
      clientAction - Client action to be added
      Returns:
      this
    • addVariable

      public ServiceData addVariable(String name, CellData variable)
      Adds a variable to the map
      Parameters:
      name - Variable name
      variable - Variable value (as CellData)
      Returns:
      this
    • addVariable

      public ServiceData addVariable(String name, String value)
      Adds a variable to the map
      Parameters:
      name - Variable name
      value - Variable value
      Returns:
      this
    • getVariable

      public CellData getVariable(String name)
      Get variable from the map
      Parameters:
      name - Variable name
      Returns:
      this
    • addResultDetails

      public ServiceData addResultDetails(MaintainResultDetails details)
      Adds details about an operation
      Parameters:
      details - Details
      Returns:
      this