Class PersonFunctions
java.lang.Object
org.deltava.taglib.functions.PersonFunctions
A JSP Function Library for Pilot-related functions.
- Since:
- 1.0
- Version:
- 11.2
- Author:
- Luke
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getExternalID
(Person usr, String idType) Returns a Person's external ID.static String
getNetworkID
(Person usr, String netName) Returns a Person's external ID.static boolean
Returns whether the Person is a member of a security role.static boolean
Returns whether the Person is an Active or On Leave Pilot.static boolean
isApplicant
(Person usr) Returns whether the Person is an Applicant.static boolean
isEMailValid
(Person usr) Returns whether the user's supplied e-mail address is valid.static boolean
Returns whether the Person is a Pilot.static boolean
isSuspended
(Person usr) Returns whether the Person is a Suspended Pilot.
-
Method Details
-
isEMailValid
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
Returns whether the Person is an Applicant.- Parameters:
usr
- the Person- Returns:
- TRUE if an Applicant, otherwise FALSE
-
isPilot
Returns whether the Person is a Pilot.- Parameters:
usr
- the Person- Returns:
- TRUE if a Pilot, otherwise FALSE
-
isSuspended
Returns whether the Person is a Suspended Pilot.- Parameters:
usr
- the Person- Returns:
- TRUE if a Supended Pilot, otherwise FALSE
-
isActive
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
-
getExternalID
-
getNetworkID
-