Package src.model
Class Permission
Object
Permission
- All Implemented Interfaces:
Serializable
Stores and modifies all
MovieGoer
permissions- Version:
- 1.0
- Author:
- Lee Juin
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Gets the permission to view the top 5 movies by overall ratingsboolean
Gets the permission to view the top 5 movies by movie ticket salesvoid
setMovieSalesPermission
(boolean permission) Sets the permission to view the top 5 movies by movie ratingsvoid
setOverallRatingsPermission
(boolean permission) Sets the permission to view the top 5 movies by movie ticket sales
-
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
-