View Javadoc
1   /*
2    * Copyright (c) 2002-2021, 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.elasticdata.modules.workflow.business;
35  
36  import fr.paris.lutece.plugins.elasticdata.business.AbstractDataObject;
37  
38  public class WorkflowResourceHistory extends AbstractDataObject
39  {
40  
41      private String _strId;
42      private String _strActionName;
43      private String _strWorkflowState;
44      private long _lTaskDuration;
45      private long _lCompleteDuration;
46      private int _nIdResource;
47      private String _strResourceType;
48      private String _strUserAccessCode;
49      private int _nIdWorkflow;
50      private String _strWorkflowName;
51      private int _nIdAction;
52  
53      /**
54       * Returns the id id
55       * 
56       * @return The id id
57       */
58      public String getId( )
59      {
60          return _strId;
61      }
62  
63      /**
64       * Sets the id id
65       * 
66       * @param strId
67       *            The id id
68       */
69      public void setId( String strId )
70      {
71          _strId = strId;
72      }
73  
74      /**
75       * Sets the resource id
76       * 
77       * @param strId
78       *            The resource id
79       */
80      public void setIdResource( int nIdResource )
81      {
82          _nIdResource = nIdResource;
83      }
84  
85      /**
86       * Returns the resource id
87       * 
88       * @return The resource id
89       */
90      public int getIdResource( )
91      {
92          return _nIdResource;
93      }
94  
95      /**
96       * Returns the task Duration
97       * 
98       * @return The task Duration
99       */
100     public long getTaskDuration( )
101     {
102         return _lTaskDuration;
103     }
104 
105     /**
106      * Sets the task Duration
107      * 
108      * @param lTaskDuration
109      *            The task Duration
110      */
111     public void setTaskDuration( long lTaskDuration )
112     {
113         _lTaskDuration = lTaskDuration;
114     }
115 
116     /**
117      * Returns the full Duration
118      * 
119      * @return The Duration
120      */
121     public long getCompleteDuration( )
122     {
123         return _lCompleteDuration;
124     }
125 
126     /**
127      * Sets the full Duration
128      * 
129      * @param lCompleteDuration
130      *            The full Duration
131      */
132     public void setCompleteDuration( long lCompleteDuration )
133     {
134         _lCompleteDuration = lCompleteDuration;
135     }
136 
137     /**
138      * Returns the Resource Type
139      * 
140      * @return The Resource Type
141      */
142     public String getResourceType( )
143     {
144         return _strResourceType;
145     }
146 
147     /**
148      * Sets the Resource Type
149      * 
150      * @param strResourceType
151      *            The Resource Type
152      */
153     public void setResourceType( String strResourceType )
154     {
155         _strResourceType = strResourceType;
156     }
157 
158     /**
159      * Returns the Action name
160      * 
161      * @return The Action Name
162      */
163     public String getActionName( )
164     {
165         return _strActionName;
166     }
167 
168     /**
169      * Sets the Action name
170      * 
171      * @param strActionName
172      *            The Action Name
173      */
174     public void setActionName( String strActionName )
175     {
176         _strActionName = strActionName;
177     }
178 
179     /**
180      * Returns the Workflow state
181      * 
182      * @return The Workflow state
183      */
184     public String getWorkflowState( )
185     {
186         return _strWorkflowState;
187     }
188 
189     /**
190      * Sets the Workflow state
191      * 
192      * @param strWorkflowState
193      *            The Workflow state
194      */
195     public void setWorkflowState( String strWorkflowState )
196     {
197         _strWorkflowState = strWorkflowState;
198     }
199 
200     /**
201      * Returns the UserAccessCode
202      * 
203      * @return The UserAccessCode
204      */
205     public String getUserAccessCode( )
206     {
207         return _strUserAccessCode;
208     }
209 
210     /**
211      * Sets the UserAccessCode
212      * 
213      * @param strUserAccessCode
214      *            The UserAccessCode
215      */
216     public void setUserAccessCode( String strUserAccessCode )
217     {
218         _strUserAccessCode = strUserAccessCode;
219     }
220 
221     public String getWorkflowName( )
222     {
223         return _strWorkflowName;
224     }
225 
226     public void setWorkflowName( String strWorkflowName )
227     {
228         _strWorkflowName = strWorkflowName;
229     }
230 
231     public int getIdAction( )
232     {
233         return _nIdAction;
234     }
235 
236     public void setIdAction( int nIdAction )
237     {
238         _nIdAction = nIdAction;
239     }
240 
241     public int getIdWorkflow( )
242     {
243         return _nIdWorkflow;
244     }
245 
246     public void setIdWorkflow( int nIdWorkflow )
247     {
248         _nIdWorkflow = nIdWorkflow;
249     }
250 }