Class Event
java.lang.Object
org.deltava.beans.DatabaseBean
org.deltava.beans.DatabaseBlobBean
org.deltava.beans.ImageBean
org.deltava.beans.event.Event
- All Implemented Interfaces:
Serializable
,Comparable<Object>
,CalendarEntry
,ComboAlias
,FeedbackBean
,IDBean
,TimeSpan
,Cacheable
A class to store Online Event information.
- Since:
- 1.0
- Version:
- 11.6
- Author:
- Luke
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.deltava.beans.ImageBean
ImageBean.ImageFormat
-
Field Summary
Fields inherited from class org.deltava.beans.DatabaseBlobBean
_buffer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a participatig Airline to this Online Event.void
Adds a Flight Assignment to this Online Event.void
Adds an available Chart to this Online Event.void
addCharts
(Collection<Chart> charts) Adds a number of Charts to this Online Event.void
addContactAddr
(String addr) Adds a contact address to this Online Event.void
addEquipmentType
(String eqType) Adds an available equipment type for this event.void
Adds a featured Airport to this Online Event.void
Adds a feedback element to the bean.void
Adds a Dispatch Route to this Online Event.void
Adds a Flight Route to this Online Event.void
Adds a Signup to this Online Event.int
Returns the active Routes for this Online Event.Returns the Airlines participating in this Online Event.Returns the Airports available for this Online Event, from the available Routes.Returns all Flight Assignments for this Online Event.Returns the Online Event pilot briefing.boolean
Returns whether Pilots may sign up for this Event.Returns the Charts available for this Online Event.Returns the alias to use in the HTML <OPTION> element.Returns the visible name to use in the HTML <OPTION> element.Returns the e-mail contact addresses for this Online Event.getDate()
Returns this entry's date for ordering in the Calendar.Returns the Dispatch Routes for this Online Event.The end date/time of this span.Returns the available equipment types for this Online Event.Returns any featured Airports for this Online Event.Returns the feedback for this bean.Returns the database image type.getName()
Returns the Online Event name.Returns the Online Network for this Event.getOwner()
Returns the Airline that owns this Online Event.getRoute
(int routeID) Retrieves a specifc route for this Online Event.Returns the Routes for this Online Event.getSignup
(int pilotID) Returns a Signup for a particular Pilot.Returns the final date/time for pilots to sign up for this Event.Returns the signups for this Online Event.Returns the external URL used to sign up at.The start date/time of this span.Returns the status of this Online Event.boolean
Returns if an Airport is a destination of any of the Routes.boolean
Returns if an Airport is an origin of any of the Routes.boolean
isSignedUp
(int pilotID) Returns whether a Pilot is signed up for this Online Event.void
Updates the briefing for this Online Event.void
setCanSignup
(boolean doSignup) Updates the signup available flag for this Online Event.void
setEndTime
(Instant dt) Updates the end time for this Online Event.void
Updates the Online Event name.void
setNetwork
(OnlineNetwork net) Updates the Network used for this Online Event.void
Sets the Airline that owns this Online Event.void
Updates the signup deadline for this Online Event.void
setSignupURL
(String url) Updates the external URL used to sign up for this Online Event.void
setStartTime
(Instant dt) Updates this start time of this Online Event.void
Updates the status of this Online Event.Methods inherited from class org.deltava.beans.ImageBean
checkParam, getFormat, getHasImage, getHeight, getSize, getWidth, load, load, setFormat, setHeight, setSize, setWidth
Methods inherited from class org.deltava.beans.DatabaseBlobBean
clear, getInputStream, isLoaded
Methods inherited from class org.deltava.beans.DatabaseBean
cacheKey, equals, getHexID, getID, hashCode, setID, validateID, validateID
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.deltava.beans.FeedbackBean
hasFeedback
Methods inherited from interface org.deltava.beans.TimeSpan
getDuration, hasTimes
-
Constructor Details
-
Event
-
-
Method Details
-
getName
-
getComboName
Description copied from interface:ComboAlias
Returns the visible name to use in the HTML <OPTION> element.- Specified by:
getComboName
in interfaceComboAlias
- Returns:
- The visible name for this entry
-
getComboAlias
Description copied from interface:ComboAlias
Returns the alias to use in the HTML <OPTION> element.- Specified by:
getComboAlias
in interfaceComboAlias
- Returns:
- The alias for this entry
-
getImageType
Description copied from class:ImageBean
Returns the database image type.- Specified by:
getImageType
in classImageBean
- Returns:
- an ImageType
-
getBriefing
-
getStatus
-
getOwner
Returns the Airline that owns this Online Event.- Returns:
- an AirlineInformation bean
- See Also:
-
getAirlines
Returns the Airlines participating in this Online Event.- Returns:
- a Collection of AirlineInformation beans
- See Also:
-
getNetwork
Returns the Online Network for this Event.- Returns:
- the network code
- See Also:
-
getStartTime
Description copied from interface:TimeSpan
The start date/time of this span.- Specified by:
getStartTime
in interfaceTimeSpan
- Returns:
- the start date/time
-
getDate
Description copied from interface:CalendarEntry
Returns this entry's date for ordering in the Calendar.- Specified by:
getDate
in interfaceCalendarEntry
- Returns:
- the date/time
-
getEndTime
Description copied from interface:TimeSpan
The end date/time of this span.- Specified by:
getEndTime
in interfaceTimeSpan
- Returns:
- the end date/time
-
getSignupDeadline
Returns the final date/time for pilots to sign up for this Event.- Returns:
- the date/time signups close
- See Also:
-
getCanSignup
public boolean getCanSignup()Returns whether Pilots may sign up for this Event.- Returns:
- TRUE if signups are permitted, otherwise FALSE
- See Also:
-
getSignupURL
Returns the external URL used to sign up at.- Returns:
- the signup URL
- See Also:
-
getCharts
Returns the Charts available for this Online Event.- Returns:
- a Collection of Chart beans
- See Also:
-
getContactAddrs
Returns the e-mail contact addresses for this Online Event.- Returns:
- a Collection of email addresses
- See Also:
-
getEquipmentTypes
Returns the available equipment types for this Online Event.- Returns:
- a Collection of equipment names
- See Also:
-
getSignups
Returns the signups for this Online Event.- Returns:
- a Collection of Signup beans
- See Also:
-
getFeedback
Description copied from interface:FeedbackBean
Returns the feedback for this bean.- Specified by:
getFeedback
in interfaceFeedbackBean
- Returns:
- a Collection of Feedback beans
-
getDispatchRoutes
Returns the Dispatch Routes for this Online Event.- Returns:
- a Collection of DispatchRoute beans
- See Also:
-
getRoutes
Returns the Routes for this Online Event.- Returns:
- a Collection of Route beans
- See Also:
-
getRoute
Retrieves a specifc route for this Online Event.- Parameters:
routeID
- the Route ID- Returns:
- a Route bean, or null if not found
-
getActiveRoutes
Returns the active Routes for this Online Event.- Returns:
- a Collection of Route beans
- See Also:
-
getAirports
Returns the Airports available for this Online Event, from the available Routes.- Returns:
- a Collection of Airport beans
- See Also:
-
getFeaturedAirports
Returns any featured Airports for this Online Event.- Returns:
- a Collection of Airport beans
- See Also:
-
getSignup
Returns a Signup for a particular Pilot.- Parameters:
pilotID
- the pilot's database ID- Returns:
- a Signup bean, or null if not found
- See Also:
-
getAssignments
Returns all Flight Assignments for this Online Event.- Returns:
- a Collection of AssignmentInfo beans
- See Also:
-
isSignedUp
public boolean isSignedUp(int pilotID) Returns whether a Pilot is signed up for this Online Event.- Parameters:
pilotID
- the Pilot's database ID- Returns:
- TRUE if the Pilot has signed up, otherwise FALSE
- See Also:
-
isDestination
Returns if an Airport is a destination of any of the Routes.- Parameters:
a
- the Airport bean- Returns:
- TRUE if a destination for any Route, otherwise FALSE
- See Also:
-
isOrigin
Returns if an Airport is an origin of any of the Routes.- Parameters:
a
- the Airport bean- Returns:
- TRUE if an origin for any Route, otherwise FALSE
- Throws:
NullPointerException
- if a is null- See Also:
-
setBriefing
Updates the briefing for this Online Event.- Parameters:
b
- the Briefing bean- See Also:
-
setName
Updates the Online Event name.- Parameters:
name
- the name- Throws:
NullPointerException
- if name is null- See Also:
-
addEquipmentType
Adds an available equipment type for this event.- Parameters:
eqType
- the equipment code- See Also:
-
setStartTime
Updates this start time of this Online Event. If no signup deadline is currently set, it will default to one hour before the start time.- Parameters:
dt
- the start date/time- See Also:
-
setEndTime
Updates the end time for this Online Event.- Parameters:
dt
- the end date/time- Throws:
IllegalArgumentException
- if dt is before the start timeNullPointerException
- if the start time is null- See Also:
-
setSignupDeadline
Updates the signup deadline for this Online Event.- Parameters:
dt
- the signup deadline date/time- Throws:
IllegalArgumentException
- if dt is before the start timeNullPointerException
- if the start time is null- See Also:
-
setNetwork
Updates the Network used for this Online Event.- Parameters:
net
- the network- Throws:
IllegalArgumentException
- if id is negative or invalid- See Also:
-
setStatus
Updates the status of this Online Event.- Parameters:
status
- the Status, if not CANCELED then OPEN- See Also:
-
setCanSignup
public void setCanSignup(boolean doSignup) Updates the signup available flag for this Online Event.- Parameters:
doSignup
- TRUE if signups are enabled, otherwise FALSE- See Also:
-
setSignupURL
Updates the external URL used to sign up for this Online Event.- Parameters:
url
- the signup URL- See Also:
-
setOwner
Sets the Airline that owns this Online Event.- Parameters:
ai
- the owning Airline's AirlineInformation bean- See Also:
-
addAirline
Adds a participatig Airline to this Online Event.- Parameters:
ai
- the participating airline's AirlineInformation bean- See Also:
-
addSignup
Adds a Signup to this Online Event.- Parameters:
s
- a Signup bean- See Also:
-
addRoute
Adds a Flight Route to this Online Event.- Parameters:
r
- a Route bean- See Also:
-
addRoute
Adds a Dispatch Route to this Online Event.- Parameters:
dr
- a DispatchRoute bean- See Also:
-
addAssignment
Adds a Flight Assignment to this Online Event.- Parameters:
ai
- an AssignmentInfo bean- See Also:
-
addChart
Adds an available Chart to this Online Event.- Parameters:
c
- the Chart bean- See Also:
-
addCharts
Adds a number of Charts to this Online Event.- Parameters:
charts
- a Collection of Chart beans- See Also:
-
addFeedback
Description copied from interface:FeedbackBean
Adds a feedback element to the bean.- Specified by:
addFeedback
in interfaceFeedbackBean
- Parameters:
f
- a Feedback object
-
addContactAddr
Adds a contact address to this Online Event.- Parameters:
addr
- the e-mail address- See Also:
-
addFeaturedAirport
Adds a featured Airport to this Online Event.- Parameters:
a
- an Airport- See Also:
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Object>
- Overrides:
compareTo
in classDatabaseBean
-