Package app.entity.camp
Class CampDetails
- All Implemented Interfaces:
IFilterableByAttendee<Camp>,IFilterableByCampCommittee<Camp>,IFilterableByDateRange<Camp>,IFilterableByID<Camp>,IFilterableBySchool<Camp>,IFilterableByStudent<Camp>,IFilterableByVisibility<Camp>,ISerializable,ISortableByEndDate<Camp>,ISortableByID<Camp>,ISortableByLocation<Camp>,ISortableByName<Camp>,ISortableByRegistrationCloseDate<Camp>,ISortableByStartingDate<Camp>,ITaggedItem,Iterable<Camp>
- Direct Known Subclasses:
Camp
Represents the details of a camp, including its ID, name, description, visibility,
start and end dates, registration closure date, school, location, and the total number of slots.
This class implements the ITaggedItem interface.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Dateprotected Stringprotected Dateprotected Stringprotected Stringprotected Stringprotected Stringprotected Dateprotected Integerprotected Integerprotected BooleanFields inherited from class app.entity.RepositoryList
all -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new CampDetails object with default values.CampDetails(String ID, String name, String description, boolean visibility, Date startDate, Date endDate, Date closeRegistrationDate, String school, String location, Integer totalSlots, Integer totalCommitteeSlots) Constructs a new CampDetails object with specified details. -
Method Summary
Modifier and TypeMethodDescriptionReturns the registration closure date of the camp.Returns the description of the camp.Returns the end date of the camp.getID()Returns the ID of the camp.Returns the location of the camp.getName()Returns the name of the camp.Returns the school associated with the camp.Returns the start date of the camp.Returns the total number of committee slots available in the camp.Returns the total number of slots available in the camp.Returns the visibility status of the camp.voidsetCloseRegistrationDate(Date closeRegistrationDate) Sets the registration closure date of the camp.voidsetDescription(String description) Sets the description of the camp.voidsetEndDate(Date endDate) Sets the end date of the camp.voidSets the ID of the camp.voidsetLocation(String location) Sets the location of the camp.voidSets the name of the camp.voidSets the school associated with the camp.voidsetStartDate(Date startDate) Sets the start date of the camp.voidsetTotalCommitteeSlots(int slots) Set the total number of committee slots available in the camp.voidsetTotalSlots(int totalSlots) Sets the total number of slots available in the camp.voidsetVisibility(boolean visibility) Sets the visibility status of the camp.Methods inherited from class app.entity.camp.CampList
filterByAttendee, filterByCampCommittee, filterByDateRange, filterByID, filterByRegistrationDate, filterBySchool, filterByStaff, filterByStudent, filterByVisibility, getAll, serialize, sortByEndDate, sortByID, sortByLocation, sortByName, sortByRegistrationCloseDate, sortByStartingDate, toArrayMethods inherited from class app.entity.RepositoryList
add, clear, get, iterator, remove, size, update, updateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
ID
-
name
-
description
-
visibility
-
startDate
-
endDate
-
closeRegistrationDate
-
school
-
location
-
totalSlots
-
totalCommitteeSlots
-
-
Constructor Details
-
CampDetails
public CampDetails(String ID, String name, String description, boolean visibility, Date startDate, Date endDate, Date closeRegistrationDate, String school, String location, Integer totalSlots, Integer totalCommitteeSlots) Constructs a new CampDetails object with specified details.- Parameters:
ID- The unique identifier of the camp.name- The name of the camp.description- A description of the camp.visibility- The visibility status of the camp.startDate- The start date of the camp.endDate- The end date of the camp.closeRegistrationDate- The last date to register for the camp.school- The school associated with the camp.location- The location of the camp.totalSlots- The total number of slots available in the camp.totalCommitteeSlots- The total number of committee slots available in the camp.
-
CampDetails
public CampDetails()Constructs a new CampDetails object with default values.
-
-
Method Details
-
getID
Returns the ID of the camp.- Specified by:
getIDin interfaceITaggedItem- Returns:
- The camp's unique identifier.
-
getName
Returns the name of the camp.- Returns:
- The camp's name.
-
getDescription
Returns the description of the camp.- Returns:
- The camp's description.
-
isVisible
Returns the visibility status of the camp.- Returns:
- The camp's visibility status.
-
getStartDate
Returns the start date of the camp.- Returns:
- The camp's start date.
-
getEndDate
Returns the end date of the camp.- Returns:
- The camp's end date.
-
getCloseRegistrationDate
Returns the registration closure date of the camp.- Returns:
- The camp's registration closure date.
-
getSchool
Returns the school associated with the camp.- Returns:
- The camp's associated school.
-
getLocation
Returns the location of the camp.- Returns:
- The camp's location.
-
getTotalSlots
Returns the total number of slots available in the camp.- Returns:
- The camp's total number of slots.
-
getTotalCommitteeSlots
Returns the total number of committee slots available in the camp.- Returns:
- The camp's total number of committee slots.
-
setTotalCommitteeSlots
public void setTotalCommitteeSlots(int slots) Set the total number of committee slots available in the camp.- Parameters:
slots- The camp's total number of committee slots.
-
setID
Sets the ID of the camp.- Specified by:
setIDin interfaceITaggedItem- Parameters:
ID- The camp's unique identifier.
-
setName
Sets the name of the camp.- Parameters:
name- The camp's name.
-
setDescription
Sets the description of the camp.- Parameters:
description- The camp's description.
-
setVisibility
public void setVisibility(boolean visibility) Sets the visibility status of the camp.- Parameters:
visibility- The camp's visibility status.
-
setStartDate
Sets the start date of the camp.- Parameters:
startDate- The camp's start date.
-
setEndDate
Sets the end date of the camp.- Parameters:
endDate- The camp's end date.
-
setCloseRegistrationDate
Sets the registration closure date of the camp.- Parameters:
closeRegistrationDate- The camp's registration closure date.
-
setSchool
Sets the school associated with the camp.- Parameters:
school- The camp's associated school.
-
setLocation
Sets the location of the camp.- Parameters:
location- The camp's location.
-
setTotalSlots
public void setTotalSlots(int totalSlots) Sets the total number of slots available in the camp.- Parameters:
totalSlots- The camp's total number of slots.
-