java.lang.Object
fr.paris.lutece.plugins.forms.business.form.lock.LockDAO
All Implemented Interfaces:
ILockDAO

@ApplicationScoped public class LockDAO extends Object implements ILockDAO
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    acquire(Lock lock, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    acquire a lock
    void
    closeAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Release all
    boolean
    refresh(Lock lock, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    refresh expired date for a lock
    void
    release(Lock lock, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    release a lock

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • LockDAO

      public LockDAO()
  • Method Details

    • acquire

      public boolean acquire(Lock lock, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Description copied from interface: ILockDAO
      acquire a lock
      Specified by:
      acquire in interface ILockDAO
      Returns:
      true if the lock is acquire, false if not
    • release

      public void release(Lock lock, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Description copied from interface: ILockDAO
      release a lock
      Specified by:
      release in interface ILockDAO
    • refresh

      public boolean refresh(Lock lock, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Description copied from interface: ILockDAO
      refresh expired date for a lock
      Specified by:
      refresh in interface ILockDAO
      Returns:
      return true if the lock is extended, false if the lock was been lost
    • closeAll

      public void closeAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Description copied from interface: ILockDAO
      Release all
      Specified by:
      closeAll in interface ILockDAO