Package src.model

Class Permission

Object
Permission
All Implemented Interfaces:
Serializable

public class Permission extends Object implements Serializable
Stores and modifies all MovieGoer permissions
Version:
1.0
Author:
Lee Juin
See Also:
  • Constructor Details

    • Permission

      public Permission()
      COnstructor
  • Method Details

    • getMovieSalesPermission

      public boolean getMovieSalesPermission()
      Gets the permission to view the top 5 movies by overall ratings
      Returns:
      true if permission granted, false otherwise
    • setMovieSalesPermission

      public void setMovieSalesPermission(boolean permission)
      Sets the permission to view the top 5 movies by movie ratings
      Parameters:
      permission - true if permission granted, false otherwise
    • getOverallRatingsPermission

      public boolean getOverallRatingsPermission()
      Gets the permission to view the top 5 movies by movie ticket sales
      Returns:
      true if permission granted, false otherwise
    • setOverallRatingsPermission

      public void setOverallRatingsPermission(boolean permission)
      Sets the permission to view the top 5 movies by movie ticket sales
      Parameters:
      permission - true if permission granted, false otherwise