View Javadoc

1   package org.rundeck.api.domain;
2   
3   import java.util.List;
4   
5   /**
6    * ArchiveImport describes the result of an {@link org.rundeck.api.RundeckClient#importArchive(String, java.io.File,
7    * boolean, boolean)} request.
8    *
9    * @author greg
10   * @since 2014-03-09
11   */
12  public class ArchiveImport {
13      private boolean successful;
14      private List<String> errorMessages;
15  
16      public ArchiveImport(final boolean successful, final List<String> errorMessages) {
17          this.successful = successful;
18          this.errorMessages = errorMessages;
19      }
20  
21      /**
22       * Return true if successful
23       * @return
24       */
25      public boolean isSuccessful() {
26          return successful;
27      }
28  
29  
30      /**
31       * Return a list of error messages if unsuccessful
32       * @return
33       */
34      public List<String> getErrorMessages() {
35          return errorMessages;
36      }
37  
38  }