Class SyncResult


  • public class SyncResult
    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 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
    • Constructor Detail

      • SyncResult

        public SyncResult()
      • SyncResult

        public SyncResult​(long dataSourceId,
                          int type,
                          String actionDescription,
                          String result)
    • 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)