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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the permission to view the top 5 movies by overall ratingsbooleanGets the permission to view the top 5 movies by movie ticket salesvoidsetMovieSalesPermission(boolean permission) Sets the permission to view the top 5 movies by movie ratingsvoidsetOverallRatingsPermission(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:
trueif permission granted,falseotherwise
-
setMovieSalesPermission
public void setMovieSalesPermission(boolean permission) Sets the permission to view the top 5 movies by movie ratings- Parameters:
permission-trueif permission granted,falseotherwise
-
getOverallRatingsPermission
public boolean getOverallRatingsPermission()Gets the permission to view the top 5 movies by movie ticket sales- Returns:
trueif permission granted,falseotherwise
-
setOverallRatingsPermission
public void setOverallRatingsPermission(boolean permission) Sets the permission to view the top 5 movies by movie ticket sales- Parameters:
permission-trueif permission granted,falseotherwise
-