Interface AuthorizationChecker


public interface AuthorizationChecker
Application-facing authorization contract for editing operations.

Framework boundary: SimplyPages does not implement policy decisions. Implementations must enforce authorization based on application identity, ownership, and role rules.

  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canDelete(String moduleId, String userId)
    Returns whether a user can delete the specified module.
    boolean
    canEdit(String moduleId, String userId)
    Returns whether a user can edit the specified module.
    getEditMode(String moduleId, String userId)
    Resolves edit mode for the user/module pair.
  • Method Details

    • canEdit

      boolean canEdit(String moduleId, String userId)
      Returns whether a user can edit the specified module.
      Parameters:
      moduleId - the unique identifier of the module
      userId - the unique identifier of the user
      Returns:
      true if the user has edit permission, false otherwise
    • canDelete

      boolean canDelete(String moduleId, String userId)
      Returns whether a user can delete the specified module.
      Parameters:
      moduleId - the unique identifier of the module
      userId - the unique identifier of the user
      Returns:
      true if the user has delete permission, false otherwise
    • getEditMode

      EditMode getEditMode(String moduleId, String userId)
      Resolves edit mode for the user/module pair.
      Parameters:
      moduleId - the unique identifier of the module
      userId - the unique identifier of the user
      Returns:
      the appropriate EditMode for this user