Package org.ametys.core.right
Record Class RightManager.ContextPermissions
java.lang.Object
java.lang.Record
org.ametys.core.right.RightManager.ContextPermissions
- Record Components:
permissionsForAnonymous- the permissions for anonymous userpermissionsForAnyConnected- the permissions for any connected userpermissionsByUser- the permissions for specific users by user identitypermissionsByGroup- the permissions for specific groups by group identity
- Enclosing class:
RightManager
public static record RightManager.ContextPermissions(Map<AccessController.Permission,List<AccessExplanation>> permissionsForAnonymous, Map<AccessController.Permission,List<AccessExplanation>> permissionsForAnyConnected, Map<UserIdentity,Map<AccessController.Permission,List<AccessExplanation>>> permissionsByUser, Map<GroupIdentity,Map<AccessController.Permission,List<AccessExplanation>>> permissionsByGroup)
extends Record
Record to describe all the permissions granted on a context
-
Constructor Summary
ConstructorsConstructorDescriptionContextPermissions(Map<AccessController.Permission, List<AccessExplanation>> permissionsForAnonymous, Map<AccessController.Permission, List<AccessExplanation>> permissionsForAnyConnected, Map<UserIdentity, Map<AccessController.Permission, List<AccessExplanation>>> permissionsByUser, Map<GroupIdentity, Map<AccessController.Permission, List<AccessExplanation>>> permissionsByGroup) Creates an instance of aContextPermissionsrecord class. -
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 thepermissionsByGrouprecord component.Returns the value of thepermissionsByUserrecord component.Returns the value of thepermissionsForAnonymousrecord component.Returns the value of thepermissionsForAnyConnectedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ContextPermissions
public ContextPermissions(Map<AccessController.Permission, List<AccessExplanation>> permissionsForAnonymous, Map<AccessController.Permission, List<AccessExplanation>> permissionsForAnyConnected, Map<UserIdentity, Map<AccessController.Permission, List<AccessExplanation>>> permissionsByUser, Map<GroupIdentity, Map<AccessController.Permission, List<AccessExplanation>>> permissionsByGroup) Creates an instance of aContextPermissionsrecord class.- Parameters:
permissionsForAnonymous- the value for thepermissionsForAnonymousrecord componentpermissionsForAnyConnected- the value for thepermissionsForAnyConnectedrecord componentpermissionsByUser- the value for thepermissionsByUserrecord componentpermissionsByGroup- the value for thepermissionsByGrouprecord 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
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). -
permissionsForAnonymous
Returns the value of thepermissionsForAnonymousrecord component.- Returns:
- the value of the
permissionsForAnonymousrecord component
-
permissionsForAnyConnected
Returns the value of thepermissionsForAnyConnectedrecord component.- Returns:
- the value of the
permissionsForAnyConnectedrecord component
-
permissionsByUser
public Map<UserIdentity,Map<AccessController.Permission, permissionsByUser()List<AccessExplanation>>> Returns the value of thepermissionsByUserrecord component.- Returns:
- the value of the
permissionsByUserrecord component
-
permissionsByGroup
public Map<GroupIdentity,Map<AccessController.Permission, permissionsByGroup()List<AccessExplanation>>> Returns the value of thepermissionsByGrouprecord component.- Returns:
- the value of the
permissionsByGrouprecord component
-