Interface PostSecurity

All Known Implementing Classes:
PostSecurityImpl

public interface PostSecurity
Verifies post ownership for authorization purposes.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    isOwner(Long postId)
    Checks if the authenticated user is the owner of the specified post.
  • Method Details

    • isOwner

      boolean isOwner(Long postId)
      Checks if the authenticated user is the owner of the specified post.
      Parameters:
      postId - the ID of the post to check
      Returns:
      true if the authenticated user owns the post, false otherwise