Package org.exoplatform.caldav.model
Record Class CaldavServerProviderConfig
java.lang.Object
java.lang.Record
org.exoplatform.caldav.model.CaldavServerProviderConfig
- Record Components:
values- the stored non-secret values, keyed by descriptor field; empty when nothing is storedstoredSecretKeys- the keys of the secret fields that have a value stored; never the values
public record CaldavServerProviderConfig(Map<String,String> values, Set<String> storedSecretKeys)
extends Record
A declared server's provider configuration as the administration screen may
see it: the stored values with every secret left out, and which secrets have
a value stored.
The second part is what lets the screen accept a required secret left blank - it means "keep the stored one" - only when one is stored, instead of guessing it from the server having an id.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CaldavServerProviderConfigNothing stored: a server with no provider, or no storage deployed. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thestoredSecretKeysrecord component.final StringtoString()Returns a string representation of this record class.values()Returns the value of thevaluesrecord component.
-
Field Details
-
EMPTY
Nothing stored: a server with no provider, or no storage deployed.
-
-
Constructor Details
-
CaldavServerProviderConfig
Creates an instance of aCaldavServerProviderConfigrecord class.- Parameters:
values- the value for thevaluesrecord componentstoredSecretKeys- the value for thestoredSecretKeysrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
values
Returns the value of thevaluesrecord component.- Returns:
- the value of the
valuesrecord component
-
storedSecretKeys
Returns the value of thestoredSecretKeysrecord component.- Returns:
- the value of the
storedSecretKeysrecord component
-