Class FacultyRepository

java.lang.Object
main.utils.iocontrol.Savable<ModelObject>
main.repository.Repository<Supervisor>
main.repository.user.FacultyRepository
All Implemented Interfaces:
Iterable<Supervisor>

public class FacultyRepository extends Repository<Supervisor>
The FacultyRepository class is a repository for storing and managing Supervisor objects in a file through file I/O operations. It extends the Repository class, which provides basic CRUD operations for the repository.
  • Field Details

  • Constructor Details

    • FacultyRepository

      public FacultyRepository()
      Constructor for creating a new instance of the FacultyRepository class.
  • Method Details

    • getInstance

      public static FacultyRepository getInstance()
      Gets a new instance of the FacultyRepository class.
      Returns:
      a new instance of the FacultyRepository class
    • getFilePath

      public String getFilePath()
      Gets the path of the repository file.
      Specified by:
      getFilePath in class Repository<Supervisor>
      Returns:
      the path of the repository file
    • setAll

      public void setAll(List<Map<String,String>> listOfMappableObjects)
      Sets the list of mappable objects to a list of Supervisor objects.
      Specified by:
      setAll in class Savable<Supervisor>
      Parameters:
      listOfMappableObjects - the list of mappable objects