Class LockResult
- java.lang.Object
-
- fr.paris.lutece.plugins.forms.service.lock.LockResult
-
public class LockResult extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description LockResult()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LockResultcreateLockSuccess(java.lang.String nameLock, java.lang.String idLock, java.sql.Timestamp expiredDate)Create a LockResultjava.sql.TimestampgetExpiredDate()The expired date of the Lockjava.lang.StringgetIdLock()The unique identifier of the lockjava.lang.StringgetNameLock()The name of the lockstatic LockResultrefreshLockSuccess(LockResult oldLock, java.sql.Timestamp newExpiredDate)refresh a LockResult
-
-
-
Method Detail
-
createLockSuccess
public static LockResult createLockSuccess(java.lang.String nameLock, java.lang.String idLock, java.sql.Timestamp expiredDate)
Create a LockResult- Parameters:
nameLock- the name of the lockidLock- the unique identifier of the current lockexpiredDate- the expired date of the lock- Returns:
- LockResult
-
refreshLockSuccess
public static LockResult refreshLockSuccess(LockResult oldLock, java.sql.Timestamp newExpiredDate)
refresh a LockResult- Parameters:
oldLock- the old lockResultnewExpiredDate- the new expiredDate- Returns:
- LockResult
-
getNameLock
public java.lang.String getNameLock()
The name of the lock- Returns:
- nameLock
-
getExpiredDate
public java.sql.Timestamp getExpiredDate()
The expired date of the Lock- Returns:
- expiredDate
-
getIdLock
public java.lang.String getIdLock()
The unique identifier of the lock- Returns:
- idLock
-
-