Interface UserPermissionProvider

All Known Implementing Classes:
UserPermissionProviderImpl

public interface UserPermissionProvider
This interface defines methods for managing user permissions. It allows checking, adding, removing, and retrieving permissions for users. It also provides methods to manage permission expiration and track who created or updated a permission.
  • Method Details

    • closeCache

      void closeCache()
    • refreshCache

      void refreshCache()
    • getPermission

      UserPermission getPermission(int userId, String permission)
    • getPermissions

      List<UserPermission> getPermissions(int userId)
    • add

      UserPermission add(int userId, String permission, long duration, int createdBy)
    • remove

      int remove(int userId, String permission)
    • clear

      int clear(int userId)
    • update

      UserPermission update(int userId, String permission, long duration, int changedBy)
    • loadExpired

      int loadExpired()