Interface Disableable

All Known Subinterfaces:
User, UserGroup
All Known Implementing Classes:
AbstractUser, AbstractUserGroup, DelegatingUser, DelegatingUserGroup, SimpleUser, SimpleUserGroup

public interface Disableable
An interface that defines items that can be enabled or disabled.
  • Method Summary

    Modifier and Type
    Method
    Description
    default boolean
    Returns true if this object is disabled, otherwise false.
    default void
    setDisabled(boolean disabled)
    Set the disabled status of this object to the boolean value provided, true if the object should be disabled, otherwise false.
  • Method Details

    • isDisabled

      default boolean isDisabled()
      Returns true if this object is disabled, otherwise false.
      Returns:
      True if this object is disabled, otherwise false.
    • setDisabled

      default void setDisabled(boolean disabled)
      Set the disabled status of this object to the boolean value provided, true if the object should be disabled, otherwise false.
      Parameters:
      disabled - True if the object should be disabled, otherwise false.