-
- All Known Subinterfaces:
IProjectFYPCoordinatorService
- All Known Implementing Classes:
ProjectFYPCoordinatorService,ProjectSupervisorService
public interface IProjectSupervisorServiceTheIProjectSupervisorServiceinterface defines a contract for managing supervisor-related project services.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancreateProjects(java.util.ArrayList<Project> projects)Creates new projects from the provided list of projects.java.util.ArrayList<Project>getSubmittedProjects(java.lang.String supervisorID)Retrieves a list of projects submitted by the supervisor with the specified ID.booleanupdateProjectTitle(Project project, java.lang.String title, java.lang.String supervisorID)Updates the title of the specified project if the supervisor ID matches the project's supervisor.booleanupdateRemainingProjectsToUnavailable(java.lang.String supervisorID)Updates the remaining projects of the specified supervisor to unavailable.booleanupdateUnavailableProjectsToAvailable(java.lang.String supervisorID)Updates the unavailable projects of the specified supervisor to available.
-
-
-
Method Detail
-
getSubmittedProjects
java.util.ArrayList<Project> getSubmittedProjects(java.lang.String supervisorID)
Retrieves a list of projects submitted by the supervisor with the specified ID.- Parameters:
supervisorID- the ID of the supervisor- Returns:
- an
ArrayListofProjectobjects representing the submitted projects
-
createProjects
boolean createProjects(java.util.ArrayList<Project> projects)
Creates new projects from the provided list of projects.- Parameters:
projects- anArrayListofProjectobjects to be created- Returns:
- true if the projects were created successfully, false otherwise
-
updateProjectTitle
boolean updateProjectTitle(Project project, java.lang.String title, java.lang.String supervisorID)
Updates the title of the specified project if the supervisor ID matches the project's supervisor.- Parameters:
project- theProjectobject to updatetitle- the new title for the projectsupervisorID- the ID of the supervisor making the update- Returns:
- true if the project title was updated successfully, false otherwise
-
updateRemainingProjectsToUnavailable
boolean updateRemainingProjectsToUnavailable(java.lang.String supervisorID)
Updates the remaining projects of the specified supervisor to unavailable.- Parameters:
supervisorID- the ID of the supervisor- Returns:
- true if the remaining projects were updated successfully, false otherwise
-
updateUnavailableProjectsToAvailable
boolean updateUnavailableProjectsToAvailable(java.lang.String supervisorID)
Updates the unavailable projects of the specified supervisor to available.- Parameters:
supervisorID- the ID of the supervisor- Returns:
- true if the unavailable projects were updated successfully, false otherwise
-
-