Package main.Models
Class Project
java.lang.Object
main.Models.Project
Provide methods to authenticate different user types
- Since:
- 13-4-2023
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetID()
Method to get the ID of projectMethod to get the status of projectMethod to get the email of project's studentMethod to get the ID of project's studentMethod to get the naem of projec's studentMethod to get the email of project's supervisorMethod to get the ID of project's supervisorMethod to get the name of project's supervisorgetTitle()
Method to get the title of projectvoid
Method to assign the project to a studentvoid
Method to assign the project to a supervisor
-
Constructor Details
-
Project
public Project(String projectID, String supervisorName, String supervisorEmail, String title, projectStatus_ENUM status, String studentName, String studentEmail) Constructor of Project class- Parameters:
projectID
- ID of projectsupervisorName
- the name of the project's supervisorsupervisorEmail
- the email of the project's supervisortitle
- the title of the projectstatus
- the status of the projectstudentName
- the name of the project's studentstudentEmail
- the email of the project's student
-
-
Method Details
-
getID
Method to get the ID of project- Returns:
- the projectID
-
getTitle
Method to get the title of project- Returns:
- the project's title
-
getStudentID
Method to get the ID of project's student- Returns:
- the ID of project's student
-
getStudentEmail
Method to get the email of project's student- Returns:
- the email of the project's student
-
getStudentName
Method to get the naem of projec's student- Returns:
- the name of the project's student
-
getSupervisorID
Method to get the ID of project's supervisor- Returns:
- the ID of the project's supervisor
-
getSupervisorName
Method to get the name of project's supervisor- Returns:
- the name of the project's supervisor
-
getSupervisorEmail
Method to get the email of project's supervisor- Returns:
- the email the project's supervisor
-
getStatus
Method to get the status of project- Returns:
- the project's status
-
setStudent
Method to assign the project to a student- Parameters:
s
- student that we want to assign project to
-
setSupervisor
Method to assign the project to a supervisor- Parameters:
f
- supervisor we want to assign project to
-