Record Class CaldavManagedModeRequest

java.lang.Object
java.lang.Record
org.exoplatform.caldav.rest.model.CaldavManagedModeRequest
Record Components:
serverId - technical identifier of the registration
excludedGroups - the eXo group ids whose members keep choosing their own server, null or empty for none

public record CaldavManagedModeRequest(Long serverId, List<String> excludedGroups) extends Record
What the administration drawer sends to point the whole instance at one declared server: the server, and the groups the choice must not reach.

One body for the two facts, on purpose: they are applied by one click and stored by one service call, and two requests would leave a moment where the designation stands without its exclusions.

  • Constructor Details

    • CaldavManagedModeRequest

      public CaldavManagedModeRequest(Long serverId, List<String> excludedGroups)
      Creates an instance of a CaldavManagedModeRequest record class.
      Parameters:
      serverId - the value for the serverId record component
      excludedGroups - the value for the excludedGroups 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • serverId

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

      public List<String> excludedGroups()
      Returns the value of the excludedGroups record component.
      Returns:
      the value of the excludedGroups record component