Record Class AccessRights
java.lang.Object
java.lang.Record
net.tangly.core.domain.AccessRights
- Record Components:
username- of the userdomain- for which the access rights are definedright- access rights of the user to the domain
public record AccessRights(@NotNull String username, @NotNull String domain, @NotNull AccessRightsCode right)
extends Record
Defines the access rights of a specific user to a specific domain.
-
Constructor Summary
ConstructorsConstructorDescriptionAccessRights(@NotNull String username, @NotNull String domain, @NotNull AccessRightsCode right) Creates an instance of aAccessRightsrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull Stringdomain()Returns the value of thedomainrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull AccessRightsCoderight()Returns the value of therightrecord component.final StringtoString()Returns a string representation of this record class.@NotNull Stringusername()Returns the value of theusernamerecord component.
-
Constructor Details
-
AccessRights
public AccessRights(@NotNull @NotNull String username, @NotNull @NotNull String domain, @NotNull @NotNull AccessRightsCode right) Creates an instance of aAccessRightsrecord class.
-
-
Method Details
-
toString
-
hashCode
-
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). -
username
-
domain
-
right
-