View Javadoc
1   /*
2    * Copyright (c) 2002-2020, City of Paris
3    * All rights reserved.
4    *
5    * Redistribution and use in source and binary forms, with or without
6    * modification, are permitted provided that the following conditions
7    * are met:
8    *
9    *  1. Redistributions of source code must retain the above copyright notice
10   *     and the following disclaimer.
11   *
12   *  2. Redistributions in binary form must reproduce the above copyright notice
13   *     and the following disclaimer in the documentation and/or other materials
14   *     provided with the distribution.
15   *
16   *  3. Neither the name of 'Mairie de Paris' nor 'Lutece' nor the names of its
17   *     contributors may be used to endorse or promote products derived from
18   *     this software without specific prior written permission.
19   *
20   * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21   * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22   * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23   * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
24   * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25   * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26   * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27   * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28   * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29   * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30   * POSSIBILITY OF SUCH DAMAGE.
31   *
32   * License 1.0
33   */
34  package fr.paris.lutece.plugins.appcenter.modules.fastdeployapplication.web.dto;
35  
36  import java.io.InputStream;
37  
38  import org.hibernate.validator.constraints.NotEmpty;
39  
40  public class FormDeployScriptDTO extends AbstractDeployDTO
41  {
42      @NotEmpty( message = "#i18n{module.appcenter.fastdeployapplication.message.mandatory_field.code_server_application_instance_sql}" )
43      private String _strCodeServerApplicationInstanceSql;
44      @NotEmpty( message = "#i18n{module.appcenter.fastdeployapplication.message.mandatory_field.code_database.code_database}" )
45      private String _strDatabaseCode;
46      private boolean _bDoDump;
47      private InputStream _scriptFileItem;
48      private String _scriptFileItemName;
49      private String _scriptFileSelected;
50      private String _strTagToDeploy;
51      private boolean _bExecuteRemoteScript;
52      private String _scriptRemoteFileSelected;
53  
54      public String getCodeServerApplicationInstanceSql( )
55      {
56          return _strCodeServerApplicationInstanceSql;
57      }
58  
59      public void setCodeServerApplicationInstanceSql( String strCodeServerApplicationInstanceSql )
60      {
61          _strCodeServerApplicationInstanceSql = strCodeServerApplicationInstanceSql;
62      }
63  
64      public String getTagToDeploy( )
65      {
66          return _strTagToDeploy;
67      }
68  
69      public void setTagToDeploy( String strTagToDeploy )
70      {
71          _strTagToDeploy = strTagToDeploy;
72      }
73  
74      public String getCodeDatabase( )
75      {
76          return _strDatabaseCode;
77      }
78  
79      public void setCodeDatabase( String _strDatabaseCode )
80      {
81          this._strDatabaseCode = _strDatabaseCode;
82      }
83  
84      public boolean getDoDump( )
85      {
86          return _bDoDump;
87      }
88  
89      public void setDoDump( boolean _bDoDump )
90      {
91          this._bDoDump = _bDoDump;
92      }
93  
94      public InputStream getScriptFileItem( )
95      {
96          return _scriptFileItem;
97      }
98  
99      public void setScriptFileItem( InputStream _scriptFileItem )
100     {
101         this._scriptFileItem = _scriptFileItem;
102     }
103 
104     public String getScriptFileItemName( )
105     {
106         return _scriptFileItemName;
107     }
108 
109     public void setScriptFileItemName( String _scriptFileItemName )
110     {
111         this._scriptFileItemName = _scriptFileItemName;
112     }
113 
114     public String getScriptFileSelected( )
115     {
116         return _scriptFileSelected;
117     }
118 
119     public void setScriptFileSelected( String _scriptFileSelected )
120     {
121         this._scriptFileSelected = _scriptFileSelected;
122     }
123 
124     public String getScriptRemoteFileSelected( )
125     {
126         return _scriptRemoteFileSelected;
127     }
128 
129     public void setScriptRemoteFileSelected( String _scriptRemoteFileSelected )
130     {
131         this._scriptRemoteFileSelected = _scriptRemoteFileSelected;
132     }
133 
134     public boolean isExecuteRemoteScript( )
135     {
136         return _bExecuteRemoteScript;
137     }
138 
139     public void setExecuteRemoteScript( boolean _bExecuteRemoteScript )
140     {
141         this._bExecuteRemoteScript = _bExecuteRemoteScript;
142     }
143 
144 }