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 StringgetExternalID(Person usr, String idType) Returns a Person's external ID.static StringgetNetworkID(Person usr, String netName) Returns a Person's external ID.static booleanReturns whether the Person is a member of a security role.static booleanReturns whether the Person is an Active or On Leave Pilot.static booleanisApplicant(Person usr) Returns whether the Person is an Applicant.static booleanisEMailValid(Person usr) Returns whether the user's supplied e-mail address is valid.static booleanReturns whether the Person is a Pilot.static booleanisSuspended(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
-