-
- All Known Implementing Classes:
CsvDataService
public interface IFileDataServiceTheIFileDataServiceinterface defines a contract for classes that handle the import and export of data related to users, camps, enquiries, and suggestions. Implementations of this interface should provide methods to import and export data for students, staff, committees, camps, enquiries, and suggestions.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanexportCampData(java.lang.String campsFilePath, java.util.Map<java.lang.Integer,Camp> campMap)Exports camp data to the specified file.booleanexportCommitteeData(java.lang.String usersFilePath, java.lang.String committeesFilePath, java.util.Map<java.lang.String,Committee> committeeMap)Exports committee data to specified files.booleanexportEnquiryData(java.lang.String inquiryFilePath, java.util.Map<java.lang.Integer,Enquiry> enquiryMap)Exports enquiry data to the specified file.booleanexportStaffData(java.lang.String usersFilePath, java.lang.String staffsFilePath, java.util.Map<java.lang.String,Staff> staffMap)Exports staff data to specified files.booleanexportStudentData(java.lang.String usersFilePath, java.lang.String studentsFilePath, java.util.Map<java.lang.String,Student> studentMap)Exports student data to specified files.booleanexportSuggestionData(java.lang.String enquiryFilePath, java.util.Map<java.lang.Integer,Suggestion> suggestionMap)Exports suggestion data to the specified file.java.util.Map<java.lang.Integer,Camp>importCampData(java.lang.String campsFilePath)Imports camp data from the specified file.java.util.Map<java.lang.String,Committee>importCommitteeData(java.lang.String usersFilePath, java.lang.String committeesFilePath)Imports committee data from specified files.java.util.Map<java.lang.Integer,Enquiry>importEnquiryData(java.lang.String inquiryFilePath)Imports enquiry data from the specified file.java.util.Map<java.lang.String,Staff>importStaffData(java.lang.String usersFilePath, java.lang.String staffsFilePath)Imports staff data from specified files.java.util.Map<java.lang.String,Student>importStudentData(java.lang.String usersFilePath, java.lang.String studentsFilePath)Imports student data from specified files.java.util.Map<java.lang.Integer,Suggestion>importSuggestionData(java.lang.String enquiryFilePath)Imports suggestion data from the specified file.
-
-
-
Method Detail
-
importStudentData
java.util.Map<java.lang.String,Student> importStudentData(java.lang.String usersFilePath, java.lang.String studentsFilePath)
Imports student data from specified files.- Parameters:
usersFilePath- The file path for user data.studentsFilePath- The file path for student data.- Returns:
- A
MapcontainingStudentdata with user IDs as keys.
-
exportStudentData
boolean exportStudentData(java.lang.String usersFilePath, java.lang.String studentsFilePath, java.util.Map<java.lang.String,Student> studentMap)Exports student data to specified files.- Parameters:
usersFilePath- The file path for user data.studentsFilePath- The file path for student data.studentMap- AMapcontainingStudentdata with user IDs as keys.- Returns:
trueif the export is successful,falseotherwise.
-
importStaffData
java.util.Map<java.lang.String,Staff> importStaffData(java.lang.String usersFilePath, java.lang.String staffsFilePath)
Imports staff data from specified files.- Parameters:
usersFilePath- The file path for user data.staffsFilePath- The file path for staff data.- Returns:
- A
MapcontainingStaffdata with user IDs as keys.
-
exportStaffData
boolean exportStaffData(java.lang.String usersFilePath, java.lang.String staffsFilePath, java.util.Map<java.lang.String,Staff> staffMap)Exports staff data to specified files.- Parameters:
usersFilePath- The file path for user data.staffsFilePath- The file path for staff data.staffMap- AMapcontainingStaffdata with user IDs as keys.- Returns:
trueif the export is successful,falseotherwise.
-
importCommitteeData
java.util.Map<java.lang.String,Committee> importCommitteeData(java.lang.String usersFilePath, java.lang.String committeesFilePath)
Imports committee data from specified files.- Parameters:
usersFilePath- The file path for user data.committeesFilePath- The file path for committee data.- Returns:
- A
MapcontainingCommitteedata with user IDs as keys.
-
exportCommitteeData
boolean exportCommitteeData(java.lang.String usersFilePath, java.lang.String committeesFilePath, java.util.Map<java.lang.String,Committee> committeeMap)Exports committee data to specified files.- Parameters:
usersFilePath- The file path for user data.committeesFilePath- The file path for committee data.committeeMap- AMapcontainingCommitteedata with user IDs as keys.- Returns:
trueif the export is successful,falseotherwise.
-
importCampData
java.util.Map<java.lang.Integer,Camp> importCampData(java.lang.String campsFilePath)
Imports camp data from the specified file.- Parameters:
campsFilePath- The file path for camp data.- Returns:
- A
MapcontainingCampdata with camp IDs as keys.
-
exportCampData
boolean exportCampData(java.lang.String campsFilePath, java.util.Map<java.lang.Integer,Camp> campMap)Exports camp data to the specified file.- Parameters:
campsFilePath- The file path for camp data.campMap- AMapcontainingCampdata with camp IDs as keys.- Returns:
trueif the export is successful,falseotherwise.
-
importEnquiryData
java.util.Map<java.lang.Integer,Enquiry> importEnquiryData(java.lang.String inquiryFilePath)
Imports enquiry data from the specified file.- Parameters:
inquiryFilePath- The file path for enquiry data.- Returns:
- A
MapcontainingEnquirydata with enquiry IDs as keys.
-
exportEnquiryData
boolean exportEnquiryData(java.lang.String inquiryFilePath, java.util.Map<java.lang.Integer,Enquiry> enquiryMap)Exports enquiry data to the specified file.- Parameters:
inquiryFilePath- The file path for enquiry data.enquiryMap- AMapcontainingEnquirydata with enquiry IDs as keys.- Returns:
trueif the export is successful,falseotherwise.
-
importSuggestionData
java.util.Map<java.lang.Integer,Suggestion> importSuggestionData(java.lang.String enquiryFilePath)
Imports suggestion data from the specified file.- Parameters:
enquiryFilePath- The file path for suggestion data.- Returns:
- A
MapcontainingSuggestiondata with suggestion IDs as keys.
-
exportSuggestionData
boolean exportSuggestionData(java.lang.String enquiryFilePath, java.util.Map<java.lang.Integer,Suggestion> suggestionMap)Exports suggestion data to the specified file.- Parameters:
enquiryFilePath- The file path for suggestion data.suggestionMap- AMapcontainingSuggestiondata with suggestion IDs as keys.- Returns:
trueif the export is successful,falseotherwise.
-
-