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.business.fastaction;
35  
36  import java.util.List;
37  
38  public abstract class FastAction implements IAction
39  {
40      private String _strCode;
41      private String _strName;
42      private String _strI18nKeyName;
43      private Integer _strStatus;
44      private boolean _bUsedForStatus;
45      private String _strIconCssClass;
46      private boolean _bDisplay;
47      private List<String> _listParameters;
48      private String _strServerType;
49      private boolean _bStopWorkflowIfExecutionError;
50      private String _strTechnicalCode;
51  
52      /*
53       * (non-Javadoc)
54       * 
55       * @see fr.paris.lutece.plugins.deployment.business.IAction#setCode(java.lang.String)
56       */
57      public void setCode( String _strCode )
58      {
59          this._strCode = _strCode;
60      }
61  
62      /*
63       * (non-Javadoc)
64       * 
65       * @see fr.paris.lutece.plugins.deployment.business.IAction#getCode()
66       */
67      public String getCode( )
68      {
69          return _strCode;
70      }
71  
72      /*
73       * (non-Javadoc)
74       * 
75       * @see fr.paris.lutece.plugins.deployment.business.IAction#setName(java.lang.String)
76       */
77      public void setName( String _strName )
78      {
79          this._strName = _strName;
80      }
81  
82      /*
83       * (non-Javadoc)
84       * 
85       * @see fr.paris.lutece.plugins.deployment.business.IAction#getName()
86       */
87      public String getName( )
88      {
89          return _strName;
90      }
91  
92      /*
93       * (non-Javadoc)
94       * 
95       * @see fr.paris.lutece.plugins.deployment.business.IAction#setI18nKeyName(java.lang.String)
96       */
97      public void setI18nKeyName( String _strI18nKeyName )
98      {
99          this._strI18nKeyName = _strI18nKeyName;
100     }
101 
102     /*
103      * (non-Javadoc)
104      * 
105      * @see fr.paris.lutece.plugins.deployment.business.IAction#getI18nKeyName()
106      */
107     public String getI18nKeyName( )
108     {
109         return _strI18nKeyName;
110     }
111 
112     /*
113      * (non-Javadoc)
114      * 
115      * @see fr.paris.lutece.plugins.deployment.business.IAction#setStatus(java.lang.Integer)
116      */
117     public void setStatus( Integer _strStatus )
118     {
119         this._strStatus = _strStatus;
120     }
121 
122     /*
123      * (non-Javadoc)
124      * 
125      * @see fr.paris.lutece.plugins.deployment.business.IAction#getStatus()
126      */
127     public Integer getStatus( )
128     {
129         return _strStatus;
130     }
131 
132     /*
133      * (non-Javadoc)
134      * 
135      * @see fr.paris.lutece.plugins.deployment.business.IAction#setUsedForStatus(boolean)
136      */
137     public void setUsedForStatus( boolean _bUsedForStatus )
138     {
139         this._bUsedForStatus = _bUsedForStatus;
140     }
141 
142     /*
143      * (non-Javadoc)
144      * 
145      * @see fr.paris.lutece.plugins.deployment.business.IAction#isUsedForStatus()
146      */
147     public boolean isUsedForStatus( )
148     {
149         return _bUsedForStatus;
150     }
151 
152     public void setIconCssClass( String _strIconCssClass )
153     {
154         this._strIconCssClass = _strIconCssClass;
155     }
156 
157     public String getIconCssClass( )
158     {
159         return _strIconCssClass;
160     }
161 
162     public boolean isDisplay( )
163     {
164         // TODO Auto-generated method stub
165         return _bDisplay;
166     }
167 
168     public void setDisplay( boolean bDisplay )
169     {
170         _bDisplay = bDisplay;
171     }
172 
173     public void setParameters( List<String> _listParameters )
174     {
175         this._listParameters = _listParameters;
176     }
177 
178     public List<String> getParameters( )
179     {
180         return _listParameters;
181     }
182 
183     public void setServerType( String _strServerType )
184     {
185         this._strServerType = _strServerType;
186     }
187 
188     public String getServerType( )
189     {
190         return _strServerType;
191     }
192 
193     public boolean isStopWorkflowIfExecutionError( )
194     {
195         return _bStopWorkflowIfExecutionError;
196     }
197 
198     public void setStopWorkflowIfExecutionError( boolean _bStopWorkflowIfExecutionError )
199     {
200         this._bStopWorkflowIfExecutionError = _bStopWorkflowIfExecutionError;
201     }
202 
203     public String getTechnicalCode( )
204     {
205         return _strTechnicalCode;
206     }
207 
208     public void setTechnicalCode( String _strTechnicalCode )
209     {
210         this._strTechnicalCode = _strTechnicalCode;
211     }
212 }