Package org.exoplatform.caldav.model
Record Class CaldavManagedMode
java.lang.Object
java.lang.Record
org.exoplatform.caldav.model.CaldavManagedMode
- Record Components:
serverId- the registration the instance chose, null when managed mode is offserverName- that registration's display name, null when managed mode is off — the screens name the server rather than print its idexcludedGroups- the eXo group ids whose members the choice does not reach, empty when managed mode is off or excludes nobodymanagedForMe- whether the caller is governed by that choice
public record CaldavManagedMode(Long serverId, String serverName, List<String> excludedGroups, boolean managedForMe)
extends Record
Whether this deployment chooses the CalDAV server on its users' behalf, and
which one.
Two answers in one payload, and they are deliberately not the same question.
serverId, serverName and excludedGroups say what the
instance decided — the administration screen renders them.
managedForMe says whether the decision applies to the caller: the
designation exists and the caller is in none of the excluded groups. No
screen acts on it today — managed mode takes no affordance away from anyone;
it is kept as the read contract of the login-time attachment (EXO-89653).
-
Constructor Summary
ConstructorsConstructorDescriptionCaldavManagedMode(Long serverId, String serverName, List<String> excludedGroups, boolean managedForMe) Creates an instance of aCaldavManagedModerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theexcludedGroupsrecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of themanagedForMerecord component.serverId()Returns the value of theserverIdrecord component.Returns the value of theserverNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CaldavManagedMode
public CaldavManagedMode(Long serverId, String serverName, List<String> excludedGroups, boolean managedForMe) Creates an instance of aCaldavManagedModerecord class.- Parameters:
serverId- the value for theserverIdrecord componentserverName- the value for theserverNamerecord componentexcludedGroups- the value for theexcludedGroupsrecord componentmanagedForMe- the value for themanagedForMerecord component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object); primitive components are compared with '=='. -
serverId
Returns the value of theserverIdrecord component.- Returns:
- the value of the
serverIdrecord component
-
serverName
Returns the value of theserverNamerecord component.- Returns:
- the value of the
serverNamerecord component
-
excludedGroups
Returns the value of theexcludedGroupsrecord component.- Returns:
- the value of the
excludedGroupsrecord component
-
managedForMe
public boolean managedForMe()Returns the value of themanagedForMerecord component.- Returns:
- the value of the
managedForMerecord component
-