Package com.io7m.looseleaf.server.api
Record Class LLServerConfiguration
java.lang.Object
java.lang.Record
com.io7m.looseleaf.server.api.LLServerConfiguration
- Record Components:
schema- The schema identifieraddresses- The server bind addressesdatabaseFile- The server's database fileroles- The set of user rolesusers- The set of users
public record LLServerConfiguration(String schema, List<LLServerAddress> addresses, Path databaseFile, List<LLServerRole> roles, List<LLServerUser> users)
extends Record
A server configuration.
-
Constructor Summary
ConstructorsConstructorDescriptionLLServerConfiguration(String schema, List<LLServerAddress> addresses, Path databaseFile, List<LLServerRole> roles, List<LLServerUser> users) A server configuration. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaddressesrecord component.Returns the value of thedatabaseFilerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.roles()Returns the value of therolesrecord component.schema()Returns the value of theschemarecord component.final StringtoString()Returns a string representation of this record class.users()Returns the value of theusersrecord component.
-
Constructor Details
-
LLServerConfiguration
public LLServerConfiguration(String schema, List<LLServerAddress> addresses, Path databaseFile, List<LLServerRole> roles, List<LLServerUser> users) A server configuration.- Parameters:
schema- The schema identifieraddresses- The server bind addressesdatabaseFile- The server's database fileroles- The set of user rolesusers- The set of users
-
-
Method Details
-
toSecurityContext
- Returns:
- The configuration as a security context
-
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). -
schema
Returns the value of theschemarecord component.- Returns:
- the value of the
schemarecord component
-
addresses
Returns the value of theaddressesrecord component.- Returns:
- the value of the
addressesrecord component
-
databaseFile
Returns the value of thedatabaseFilerecord component.- Returns:
- the value of the
databaseFilerecord component
-
roles
Returns the value of therolesrecord component.- Returns:
- the value of the
rolesrecord component
-
users
Returns the value of theusersrecord component.- Returns:
- the value of the
usersrecord component
-