Class LockResult
- java.lang.Object
-
- fr.paris.lutece.plugins.forms.service.lock.LockResult
-
public class LockResult extends Object
-
-
Constructor Summary
Constructors Constructor Description LockResult()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LockResultcreateLockSuccess(String nameLock, String idLock, Timestamp expiredDate)Create a LockResultTimestampgetExpiredDate()The expired date of the LockStringgetIdLock()The unique identifier of the lockStringgetNameLock()The name of the lockstatic LockResultrefreshLockSuccess(LockResult oldLock, Timestamp newExpiredDate)refresh a LockResult
-
-
-
Method Detail
-
createLockSuccess
public static LockResult createLockSuccess(String nameLock, String idLock, 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, Timestamp newExpiredDate)
refresh a LockResult- Parameters:
oldLock- the old lockResultnewExpiredDate- the new expiredDate- Returns:
- LockResult
-
getNameLock
public String getNameLock()
The name of the lock- Returns:
- nameLock
-
getExpiredDate
public Timestamp getExpiredDate()
The expired date of the Lock- Returns:
- expiredDate
-
getIdLock
public String getIdLock()
The unique identifier of the lock- Returns:
- idLock
-
-