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  
35  package fr.paris.lutece.plugins.appcenter.modules.fastdeployapplication.business;
36  
37  import fr.paris.lutece.plugins.appcenter.business.ApplicationData;
38  import org.hibernate.validator.constraints.NotEmpty;
39  
40  /**
41   * This is the business class for the object OpenamAgentData
42   */
43  public class FastDeployApplicationData extends ApplicationData
44  {
45  
46      public static final String APPLICATION_TYPE_ANSIBLE = "ansible";
47      public static final String APPLICATION_TYPE_CLOUDMGR = "cloudmgr";
48      private String strApplicationCode;
49      @NotEmpty( message = "#i18n{module.appcenter.fastdeployapplication.validation.applicationName.notEmpty}" )
50      private String _strName;
51      @NotEmpty( message = "#i18n{module.appcenter.fastdeployapplication.validation.applicationWebApp.notEmpty}" )
52      private String _strWebApp;
53      @NotEmpty( message = "#i18n{module.appcenter.fastdeployapplication.validation.applicationSiteUrl.notEmpty}" )
54      private String _strUrlSite;
55      private String _strRepoType;
56      private boolean _bLuteceSite;
57      private String _strMavenDeployCustomGoal;
58      private String _strArtifactId;
59      private String _strApplicationType;
60      private int _nIdApplication;
61  
62      /**
63       * 
64       * @return
65       */
66      public String getName( )
67      {
68          return _strName;
69      }
70  
71      /**
72       * 
73       * @param _strName
74       */
75      public void setName( String _strName )
76      {
77          this._strName = _strName;
78      }
79  
80      public String getWebApp( )
81      {
82          return _strWebApp;
83      }
84  
85      public void setWebApp( String _strWebApp )
86      {
87          this._strWebApp = _strWebApp;
88      }
89  
90      public String getUrlSite( )
91      {
92          return _strUrlSite;
93      }
94  
95      public void setUrlSite( String _strUrlSite )
96      {
97          this._strUrlSite = _strUrlSite;
98      }
99  
100     /**
101      * Get the repo type of the application
102      * 
103      * @return the repo type
104      */
105     public String getRepoType( )
106     {
107         return _strRepoType;
108     }
109 
110     /**
111      * Set the repo type of the application
112      * 
113      * @param strRepoType
114      *            the repo type
115      */
116     public void setRepoType( String strRepoType )
117     {
118         _strRepoType = strRepoType;
119     }
120 
121     /**
122      * Get the is LuteceSite boolean
123      * 
124      * @return return true if the application is a Lutece App, false otherwise
125      */
126     public boolean isLuteceSite( )
127     {
128         return _bLuteceSite;
129     }
130 
131     /**
132      * Set the Lutece Site boolean
133      * 
134      * @param bLuteceSite
135      *            the Lutece Site boolean
136      */
137     public void setLuteceSite( boolean bLuteceSite )
138     {
139         _bLuteceSite = bLuteceSite;
140     }
141 
142     /**
143      * Get the maven custom deploy goal
144      * 
145      * @return the custom maven deploy goal
146      */
147     public String getMavenDeployCustomGoal( )
148     {
149         return _strMavenDeployCustomGoal;
150     }
151 
152     /**
153      * Get the maven custom deploy goal
154      * 
155      * @param strMavenCustomDeployGoal
156      *            The custom Maven Custom deploy goal
157      */
158     public void setMavenDeployCustomGoal( String strMavenDeployCustomGoal )
159     {
160         _strMavenDeployCustomGoal = strMavenDeployCustomGoal;
161     }
162 
163     public String getApplicationCode( )
164     {
165         return strApplicationCode;
166     }
167 
168     public void setApplicationCode( String strApplicationCode )
169     {
170         this.strApplicationCode = strApplicationCode;
171     }
172 
173     /**
174      * Get the artifact id of the application
175      * 
176      * @return the artifact id of the application
177      */
178     public String getArtifactId( )
179     {
180         return _strArtifactId;
181     }
182 
183     /**
184      * Set the artifact if of the application
185      * 
186      * @param strArtifactId
187      *            the artifact id of the application
188      */
189     public void setArtifactId( String strArtifactId )
190     {
191         this._strArtifactId = strArtifactId;
192     }
193 
194     public String getApplicationType( )
195     {
196         return _strApplicationType;
197     }
198 
199     public void setApplicationType( String _strApplicationType )
200     {
201         this._strApplicationType = _strApplicationType;
202     }
203 
204     public int getIdApplication( )
205     {
206         return _nIdApplication;
207     }
208 
209     public void setIdApplication( int _nIdApplication )
210     {
211         this._nIdApplication = _nIdApplication;
212     }
213 
214 }