Class HDBManager

All Implemented Interfaces:
CSVEncodable

public class HDBManager extends User
This represents a user that is of HDB Manager role.
  • Constructor Details

    • HDBManager

      public HDBManager(List<CSVCell> cells)
      Constructor for CSVParser class This constructor constructs values based on CSV encoded rows representing this object.
      Parameters:
      cells -
  • Method Details

    • canApplyProject

      boolean canApplyProject()
      Description copied from class: User
      For checking on whether a user should be allowed to apply for a project, based on eligibility criteria.
      Specified by:
      canApplyProject in class User
      Returns:
      if user's eligibility criteria matches, returns true, otherwise false.
    • sourceFileType

      public CSVFileTypes sourceFileType()
      Description copied from interface: CSVEncodable
      Override 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

      ArrayList<String> getMenu()
      Prepares a list of menu options that includes options specific to managers only.
      Specified by:
      getMenu in class User
      Returns:
      list of menu options, including both common and access control scoped options.
    • getReadableTypeName

      String getReadableTypeName()
      Description copied from class: User
      User-readable name for the type of user.
      Specified by:
      getReadableTypeName in class User
      Returns:
      the type of the user, such as "Applicant".