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