Record Class SecuredVisibility.JSentinelView
java.lang.Object
java.lang.Record
com.svenruppert.jsentinel.components.SecuredVisibility.JSentinelView
- Record Components:
roles- caller's role view; non-nullpermissions- caller's permission view; non-null
- Enclosing class:
SecuredVisibility
public static record SecuredVisibility.JSentinelView(com.svenruppert.jsentinel.authorization.api.roles.HasRoles roles, com.svenruppert.jsentinel.authorization.api.permissions.HasPermissions permissions)
extends Record
The slice of the current subject the components consult.
-
Constructor Summary
ConstructorsConstructorDescriptionJSentinelView(com.svenruppert.jsentinel.authorization.api.roles.HasRoles roles, com.svenruppert.jsentinel.authorization.api.permissions.HasPermissions permissions) Validates the components. -
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.com.svenruppert.jsentinel.authorization.api.permissions.HasPermissionsReturns the value of thepermissionsrecord component.com.svenruppert.jsentinel.authorization.api.roles.HasRolesroles()Returns the value of therolesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
JSentinelView
public JSentinelView(com.svenruppert.jsentinel.authorization.api.roles.HasRoles roles, com.svenruppert.jsentinel.authorization.api.permissions.HasPermissions permissions) Validates the components.
-
-
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). -
roles
-
permissions
public com.svenruppert.jsentinel.authorization.api.permissions.HasPermissions permissions()Returns the value of thepermissionsrecord component.- Returns:
- the value of the
permissionsrecord component
-