Skip to content

Permissions Manager

The PermissionsManager class is responsible for managing the permission validation system within the Matthiesen Core library.

To obtain the instance of the PermissionsManager, you can use the following code:

PermissionsManager permissionsManager = MatthiesenCoreCommon.INSTANCE.getPermissionsManager();
  • 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;