Package com.almis.awe.model.dto
Class ServiceData
java.lang.Object
com.almis.awe.model.dto.ServiceData
- All Implemented Interfaces:
Copyable
,Serializable
- Direct Known Subclasses:
ServiceDataWrapper
ServiceData Class
This class is used to generate objects as return of a service call
- Author:
- Pablo VIDAL - 20/MAR/2015
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddClientAction
(ClientAction clientAction) Adds a client action to the listaddResultDetails
(MaintainResultDetails details) Adds details about an operationaddVariable
(String name, CellData variable) Adds a variable to the mapaddVariable
(String name, String value) Adds a variable to the mapcopy()
Get a copy of this elementgetVariable
(String name) Get variable from the mapStore the service response from one row of DatalistStore the service response from column list of DatalistsetType
(AnswerType type) Stores the service response message type (ERROR, OK, WARNING, INFO)
-
Constructor Details
-
ServiceData
Copy constructor- Parameters:
other
- Other service data- Throws:
AWException
-
-
Method Details
-
copy
Description copied from interface:Copyable
Get a copy of this element -
setData
Store the service response from one row of Datalist- Parameters:
dataList
- DataList to storerowNum
- Row index of DataList to store- Returns:
- this
-
setData
Store the service response from column list of Datalist- Parameters:
dataList
- DataList to storecolumnList
- Column name of DataList to store- Returns:
- this
-
setType
Stores the service response message type (ERROR, OK, WARNING, INFO)- Parameters:
type
- Service output type- Returns:
- this
-
addClientAction
Adds a client action to the list- Parameters:
clientAction
- Client action to be added- Returns:
- this
-
addVariable
Adds a variable to the map- Parameters:
name
- Variable namevariable
- Variable value (as CellData)- Returns:
- this
-
addVariable
Adds a variable to the map- Parameters:
name
- Variable namevalue
- Variable value- Returns:
- this
-
getVariable
Get variable from the map- Parameters:
name
- Variable name- Returns:
- this
-
addResultDetails
Adds details about an operation- Parameters:
details
- Details- Returns:
- this
-