Class LockResult
java.lang.Object
fr.paris.lutece.plugins.forms.service.lock.LockResult
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LockResultcreateLockSuccess(String nameLock, String idLock, Timestamp expiredDate) Create a LockResultThe expired date of the LockThe unique identifier of the lockThe name of the lockstatic LockResultrefreshLockSuccess(LockResult oldLock, Timestamp newExpiredDate) refresh a LockResult
-
Constructor Details
-
LockResult
public LockResult()
-
-
Method Details
-
createLockSuccess
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
refresh a LockResult- Parameters:
oldLock- the old lockResultnewExpiredDate- the new expiredDate- Returns:
- LockResult
-
getNameLock
The name of the lock- Returns:
- nameLock
-
getExpiredDate
The expired date of the Lock- Returns:
- expiredDate
-
getIdLock
The unique identifier of the lock- Returns:
- idLock
-