Package src.cli
Class RepMenu
java.lang.Object
src.cli.RepMenu
CLI for
CompanyRepresentative-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ApplicationControllerprivate InternshipOpportunityControllerprivate CompanyRepresentative -
Constructor Summary
ConstructorsConstructorDescriptionRepMenu(CompanyRepresentative rep, UserController userController, ApplicationController applicationController, InternshipOpportunityController internshipOpportunityController) Constructs aRepMenufor aCompanyRepresentativefrom the required controllers -
Method Summary
Modifier and TypeMethodDescriptionprivate voidprivate voidrunMenu()Displays the CLI menu forCompanyRepresentative.private voidprivate void
-
Field Details
-
rep
-
applicationController
-
internshipOpportunityController
-
-
Constructor Details
-
RepMenu
public RepMenu(CompanyRepresentative rep, UserController userController, ApplicationController applicationController, InternshipOpportunityController internshipOpportunityController) Constructs aRepMenufor aCompanyRepresentativefrom the required controllers- Parameters:
rep- theCompanyRepresentativethat the CLI is foruserController- theUserControllerusedapplicationController- theApplicationControllerusedinternshipOpportunityController- theInternshipOpportunityControllerused
-
-
Method Details
-
runMenu
Displays the CLI menu forCompanyRepresentative.- Returns:
- the
CompanyRepresentativeinstance after therepinteracts with the menu.
-
createInternshipOpportunity
private void createInternshipOpportunity() -
viewCreatedInternships
private void viewCreatedInternships() -
viewStudentApplications
private void viewStudentApplications() -
changePassword
private void changePassword()
-