Class MutabilityContextState

java.lang.Object
com.broadleafcommerce.adminuser.resource.domain.MutabilityContextState
All Implemented Interfaces:
Serializable

public class MutabilityContextState extends Object implements Serializable
Can be added as a field to an entity for reporting whether or not it is mutable from the request's context.

Analogous to ContextState but for a much simpler use-case.

Author:
Samarth Dhruva (samarthd)
See Also:
  • Constructor Details

    • MutabilityContextState

      public MutabilityContextState()
  • Method Details

    • isMutable

      public boolean isMutable()
      Reports whether the owning entity is mutable from the request's context.
    • setMutable

      public void setMutable(boolean mutable)
      Reports whether the owning entity is mutable from the request's context.
    • 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