Package sc2002.FCS1.grp2
Class HDBManager
Object
CSVDecodable
User
HDBManager
- All Implemented Interfaces:
CSVEncodable
This represents a user that is of HDB Manager role.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static enumPossible menu options for a HDB Manager role Each option listed here are options that only a HDB Manager can interact with. -
Constructor Summary
ConstructorsConstructorDescriptionHDBManager(List<CSVCell> cells) Constructor forCSVParserclass This constructor constructs values based on CSV encoded rows representing this object. -
Method Summary
Modifier and TypeMethodDescription(package private) booleanFor checking on whether a user should be allowed to apply for a project, based on eligibility criteria.getMenu()Prepares a list of menu options that includes options specific to managers only.(package private) StringUser-readable name for the type of user.Override this to provide which file type the encodable class should be represented as.Methods inherited from class User
checkPassword, encode, equals, getAge, getCommonMenuOptions, getEnquiriesSystem, getListingFilter, getListingSort, getMaritalStatus, getMenuWithScopedOptions, getName, getNric, nameEquals, print, setEnquiriesSystem, setListingFilter, setListingSort, setPassword, toString
-
Constructor Details
-
HDBManager
Constructor forCSVParserclass This constructor constructs values based on CSV encoded rows representing this object.- Parameters:
cells-
-
-
Method Details
-
canApplyProject
boolean canApplyProject()Description copied from class:UserFor checking on whether a user should be allowed to apply for a project, based on eligibility criteria.- Specified by:
canApplyProjectin classUser- Returns:
- if user's eligibility criteria matches, returns
true, otherwisefalse.
-
sourceFileType
Description copied from interface:CSVEncodableOverride this to provide which file type the encodable class should be represented as. This ensures that the right data is written in the right file, depending on the class type.- Returns:
- a CSVFileType, such as
CSVFileType.MANAGER_LIST.
-
getMenu
Prepares a list of menu options that includes options specific to managers only. -
getReadableTypeName
String getReadableTypeName()Description copied from class:UserUser-readable name for the type of user.- Specified by:
getReadableTypeNamein classUser- Returns:
- the type of the user, such as "Applicant".
-