Class RemoteSyncResult
- java.lang.Object
-
- org.neotropic.kuwaiba.northbound.ws.model.application.RemoteSyncResult
-
public class RemoteSyncResult extends Object
Instances of this class are intended to inform about the results of a synchronization process. In principle a simple list of strings would suffice, however this class could be extended in the future to provide mechanisms to retry a sync action- Author:
- Charles Edward Bedon Cortazar <charles.bedon@kuwaiba.org>
-
-
Field Summary
Fields Modifier and Type Field Description static int
TYPE_ERROR
An unexpected error was found while execute the sync actionstatic int
TYPE_INFORMATION
The sync action was executed and an information message was generatedstatic int
TYPE_SUCCESS
The sync action was executed successfullystatic int
TYPE_WARNING
The sync action was executed with warnings
-
Constructor Summary
Constructors Constructor Description RemoteSyncResult()
RemoteSyncResult(long dataSourceId, int type, String actionDescription, String result)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getActionDescription()
long
getDataSourceId()
String
getResult()
int
getType()
String
getTypeAsString()
void
setActionDescription(String actionDescription)
void
setDataSourceId(long dataSourceId)
void
setResult(String result)
void
setType(int type)
-
-
-
Field Detail
-
TYPE_ERROR
public static int TYPE_ERROR
An unexpected error was found while execute the sync action
-
TYPE_SUCCESS
public static int TYPE_SUCCESS
The sync action was executed successfully
-
TYPE_WARNING
public static int TYPE_WARNING
The sync action was executed with warnings
-
TYPE_INFORMATION
public static int TYPE_INFORMATION
The sync action was executed and an information message was generated
-
-
Method Detail
-
getTypeAsString
public String getTypeAsString()
-
getType
public int getType()
-
setType
public void setType(int type)
-
getActionDescription
public String getActionDescription()
-
setActionDescription
public void setActionDescription(String actionDescription)
-
getResult
public String getResult()
-
setResult
public void setResult(String result)
-
getDataSourceId
public long getDataSourceId()
-
setDataSourceId
public void setDataSourceId(long dataSourceId)
-
-