Record Class CaldavManagedForUser

java.lang.Object
java.lang.Record
org.exoplatform.caldav.rest.model.CaldavManagedForUser
Record Components:
managed - whether managed mode governs the caller
serverId - the registration it keeps them on, null when it does not govern them
refused - whether the connection managed mode made for them on that registration was refused because of their own account, and still would be: their screens then offer no connection and say why (EXO-91017)

public record CaldavManagedForUser(boolean managed, Long serverId, boolean refused) extends Record
Whether managed mode keeps the calling user on a CalDAV server, and which one: what the user's own screens need to offer neither disconnecting nor another server, and to connect the designated one in one click (EXO-90836). The instance's exclusions are the administration screen's facts and are not carried.
  • Constructor Summary

    Constructors
    Constructor
    Description
    CaldavManagedForUser(boolean managed, Long serverId, boolean refused)
    Creates an instance of a CaldavManagedForUser record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    boolean
    Returns the value of the managed record component.
    boolean
    Returns the value of the refused record component.
    Returns the value of the serverId record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • CaldavManagedForUser

      public CaldavManagedForUser(boolean managed, Long serverId, boolean refused)
      Creates an instance of a CaldavManagedForUser record class.
      Parameters:
      managed - the value for the managed record component
      serverId - the value for the serverId record component
      refused - the value for the refused record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • managed

      public boolean managed()
      Returns the value of the managed record component.
      Returns:
      the value of the managed record component
    • serverId

      public Long serverId()
      Returns the value of the serverId record component.
      Returns:
      the value of the serverId record component
    • refused

      public boolean refused()
      Returns the value of the refused record component.
      Returns:
      the value of the refused record component