java.lang.Object
com.broadleafcommerce.orderoperation.domain.subscription.LockStatus

public class LockStatus extends Object
Informative DTO about the subscription lock status.
Since:
Order Operation Service 2.2.0, Release Train 2.3.0
  • Method Details

    • builder

      public static LockStatus.LockStatusBuilder builder()
    • getState

      public String getState()
      The current state of the lock
    • getSubscriptionId

      public String getSubscriptionId()
      The subscription ID that the lock is associated with
    • isChildLock

      public boolean isChildLock()
      Whether the lock is a child lock
    • getCreated

      public Instant getCreated()
      The time the lock was created
    • getExpires

      public Instant getExpires()
      The time the lock will expire
    • getLockId

      public String getLockId()
      The ID of the lock
    • getReservationTokens

      public Stack<String> getReservationTokens()
      The tokens associated with each of the optional child locks. Used when releasing child locks.
    • getRemainingReservations

      public int getRemainingReservations()
      The quantity of reservations remaining for the lock
    • getAdditionalAttributes

      public Map<String,String> getAdditionalAttributes()
      Additional information about the lock
    • setState

      public void setState(String state)
      The current state of the lock
    • setSubscriptionId

      public void setSubscriptionId(String subscriptionId)
      The subscription ID that the lock is associated with
    • setChildLock

      public void setChildLock(boolean isChildLock)
      Whether the lock is a child lock
    • setCreated

      public void setCreated(Instant created)
      The time the lock was created
    • setExpires

      public void setExpires(Instant expires)
      The time the lock will expire
    • setLockId

      public void setLockId(String lockId)
      The ID of the lock
    • setReservationTokens

      public void setReservationTokens(Stack<String> reservationTokens)
      The tokens associated with each of the optional child locks. Used when releasing child locks.
    • setRemainingReservations

      public void setRemainingReservations(int remainingReservations)
      The quantity of reservations remaining for the lock
    • setAdditionalAttributes

      public void setAdditionalAttributes(Map<String,String> additionalAttributes)
      Additional information about the lock
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object