1 /*
2 * Copyright (c) 2002-2025, 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.forms.business.form.lock;
35
36 import java.io.Serializable;
37 import java.sql.Timestamp;
38
39 public class Lock implements Serializable {
40
41
42 // Variables declarations
43 private String _indexName;
44 private String _instanceName;
45 private boolean _isLocked;
46 private Timestamp _dateBegin;
47 private Timestamp _expiredDate;
48 private String _uuid;
49
50 /**
51 * Returns the indexName
52 *
53 * @return The indexName
54 */
55 public String getIndexName() {
56 return _indexName;
57 }
58
59 /**
60 * Sets the indexName
61 *
62 * @param indexName
63 * The indexName
64 */
65 public void setIndexName(String indexName) {
66 this._indexName = indexName;
67 }
68
69 /**
70 * Returns the instanceName
71 *
72 * @return The instanceName
73 */
74 public String getInstanceName() {
75 return _instanceName;
76 }
77
78 /**
79 * Sets the instanceName
80 *
81 * @param instanceName
82 * The instanceName
83 */
84 public void setInstanceName(String instanceName) {
85 this._instanceName = instanceName;
86 }
87
88 /**
89 * Returns the isLocked
90 *
91 * @return true if the lock is taken
92 */
93 public boolean isLocked() {
94 return _isLocked;
95 }
96
97 /**
98 * Sets the isLocked
99 *
100 * @param isLocked
101 * The isLocked
102 */
103 public void setIsLocked(boolean isLocked) {
104 this._isLocked = isLocked;
105 }
106
107 /**
108 * Returns the dateBegin
109 *
110 * @return The dateBegin
111 */
112 public Timestamp getDateBegin() {
113 return _dateBegin;
114 }
115
116 /**
117 * Sets the dateBegin
118 *
119 * @param dateBegin
120 * The dateBegin
121 */
122 public void setDateBegin(Timestamp dateBegin) {
123 this._dateBegin = dateBegin;
124 }
125
126 /**
127 * Returns the expiredDate
128 *
129 * @return The expiredDate
130 */
131 public Timestamp getExpiredDate() {
132 return _expiredDate;
133 }
134
135 /**
136 * Sets the expiredDate
137 *
138 * @param expiredDate
139 * The expiredDate
140 */
141 public void setExpiredDate(Timestamp expiredDate) {
142 this._expiredDate = expiredDate;
143 }
144
145 /**
146 * Returns the uuid
147 *
148 * @return The uuid
149 */
150 public String getUuid() {
151 return _uuid;
152 }
153
154 /**
155 * Sets the uuid
156 *
157 * @param uuid
158 * The uuid
159 */
160 public void setUuid(String uuid) {
161 this._uuid = uuid;
162 }
163
164 }