Record Class ActionPermission
java.lang.Object
java.lang.Record
com.svenruppert.jsentinel.action.ActionPermission
- Record Components:
name- non-blank, stable name of the action
Stable, typed identifier for a fine-grained business action.
Use ActionPermission for action-level checks
(USER_ADMINISTRATION_DELETE, REPORT_EXPORT) and reserve
com.svenruppert.jsentinel.authorization.api.permissions.PermissionName
for route- / view-level permission gates. The two are intentionally
separate types so the call sites read differently and so applications
can adopt ActionPermission without depending on the still
experimental permission API.
-
Constructor Summary
ConstructorsConstructorDescriptionActionPermission(String name) Defensive constructor — rejects null and blank names. -
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.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ActionPermission
Defensive constructor — rejects null and blank names.
-
-
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). -
name
-