Package ru.bgcrm.model

# Class Lock

java.lang.Object
ru.bgcrm.model.Lock

public class Lock extends Object
Lock edited resource for a editor used.

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static final long`
  `LOCK_TIME`
  Default time - 20 seconds.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `Lock(String id, int userId)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `continueTime()`
  `boolean`
  `equals(Object obj)`
  `String`
  `getId()`
  `long`
  `getToTime()`
  `int`
  `getUserId()`
  `int`
  `hashCode()`

  ### Methods inherited from class java.lang.Object

  `clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait`

- ## Field Details

  - ### LOCK_TIME

    public static final long LOCK_TIME
    Default time - 20 seconds.
    See Also:
      - Constant Field Values

- ## Constructor Details

  - ### Lock

    public Lock(String id, int userId)

- ## Method Details

  - ### getId

    public String getId()

  - ### getUserId

    public int getUserId()

  - ### getToTime

    public long getToTime()

  - ### continueTime

    public void continueTime()

  - ### hashCode

    public int hashCode()
    Overrides:
      `hashCode` in class `Object`

  - ### equals

    public boolean equals(Object obj)
    Overrides:
      `equals` in class `Object`