Package app.entity.user
Class Staff
java.lang.Object
app.entity.user.User
app.entity.user.Staff
- All Implemented Interfaces:
ITaggedItem
The
Staff class represents a staff member user who can organize camps.
It extends the User class.-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddOrganizedCamp(Camp camp) Adds a camp to the list of camps organized by the staff member.Gets the list of camps organized by the staff member.voidremoveOrganizedCamp(Camp camp) Removes a camp from the list of camps organized by the staff member.Methods inherited from class app.entity.user.User
getEmail, getID, getName, getPassword, getSchool, setID, setName, setPassword, setSchool
-
Constructor Details
-
Staff
Constructs a Staff object with the specified ID, name, and faculty.- Parameters:
ID- The ID of the staff member.name- The name of the staff member.faculty- The faculty of the staff member.
-
Staff
public Staff()Constructs a Staff object with default values.
-
-
Method Details
-
addOrganizedCamp
Adds a camp to the list of camps organized by the staff member.- Parameters:
camp- The camp to be added.
-
removeOrganizedCamp
Removes a camp from the list of camps organized by the staff member.- Parameters:
camp- The camp to be removed.
-
getOrganizedCampList
Gets the list of camps organized by the staff member.- Returns:
- A
CampListrepresenting the organized camps.
-