Class OnlineEventFunctions

java.lang.Object
org.deltava.taglib.functions.OnlineEventFunctions

public class OnlineEventFunctions extends Object
A JSP Function Library to store Online Event-related functions.
Since:
1.0
Version:
5.0
Author:
Luke
  • Method Details

    • isOpen

      public static boolean isOpen(Event e)
      Returns whether an Online Event is in progress.
      Parameters:
      e - the Event bean
      Returns:
      TRUE if the Event is active, otherwise FALSE
    • isSignedUp

      public static boolean isSignedUp(Event e, int pilotID)
      Returns whether a Pilot is signed up for an Online Event. The Signups for the Online Event must be populated prior to this being called.
      Parameters:
      e - the Event bean
      pilotID - the Pilot's database ID
      Returns:
      TRUE if the Pilot is signed up, otherwise FALSE
      See Also:
    • isAssigned

      public static boolean isAssigned(Event e, int pilotID)
      Returns whether a Pilot has a Flight Assignment for an Online Event. The Flight Assignments for the Online Event must be populated prior to this being called.
      Parameters:
      e - the Event bean
      pilotID - the Pilot's database ID
      Returns:
      TRUE if the Pilot has a Flight Assignment, otherwise FALSE
    • routeSignups

      public static Collection<Signup> routeSignups(Event e, int routeID)
      Returns all Signups for a particular Online Event route. The Signups for the Online Event must be populated prior to this being called.
      Parameters:
      e - the Event bean
      routeID - the route database ID
      Returns:
      a Collection of Signup beans