Class PersonFunctions

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

public class PersonFunctions extends Object
A JSP Function Library for Pilot-related functions.
Since:
1.0
Version:
11.2
Author:
Luke
  • Method Details

    • isEMailValid

      public static boolean isEMailValid(Person usr)
      Returns whether the user's supplied e-mail address is valid.
      Parameters:
      usr - the e-mail address
      Returns:
      TRUE if the address is valid, otherwise FALSE
    • isApplicant

      public static boolean isApplicant(Person usr)
      Returns whether the Person is an Applicant.
      Parameters:
      usr - the Person
      Returns:
      TRUE if an Applicant, otherwise FALSE
    • isPilot

      public static boolean isPilot(Person usr)
      Returns whether the Person is a Pilot.
      Parameters:
      usr - the Person
      Returns:
      TRUE if a Pilot, otherwise FALSE
    • isSuspended

      public static boolean isSuspended(Person usr)
      Returns whether the Person is a Suspended Pilot.
      Parameters:
      usr - the Person
      Returns:
      TRUE if a Supended Pilot, otherwise FALSE
    • isActive

      public static boolean isActive(Person usr)
      Returns whether the Person is an Active or On Leave Pilot.
      Parameters:
      usr - the Person
      Returns:
      TRUE if an Active or On Leave Pilot, otherwise FALSE
    • hasRole

      public static boolean hasRole(String roleName, Person usr)
      Returns whether the Person is a member of a security role.
      Parameters:
      roleName - the role name
      usr - the Person
      Returns:
      TRUE if the Person is a member of the Role, otherwise FALSE
    • getExternalID

      public static String getExternalID(Person usr, String idType)
      Returns a Person's external ID.
      Parameters:
      usr - the Person
      idType - the external ID type name
      Returns:
      the external ID, or null
    • getNetworkID

      public static String getNetworkID(Person usr, String netName)
      Returns a Person's external ID.
      Parameters:
      usr - the Person
      netName - the OnlineNetwork
      Returns:
      the network ID, or null