Permissions Manager
The PermissionsManager class is responsible for managing the permission validation system within the Matthiesen Core library.
Obtaining the PermissionsManager Instance
Section titled “Obtaining the PermissionsManager Instance”To obtain the instance of the PermissionsManager, you can use the following code:
PermissionsManager permissionsManager = MatthiesenCoreCommon.INSTANCE.getPermissionsManager();Available Methods
Section titled “Available Methods”registerPermission(Permission permission)- Registers a new permission within the system. You need to provide the permission object that defines the permission’s properties and behavior.
Permission Type is available from:
import dev.matthiesen.matthiesen_core.common.api.permissions.Permission;