org.deltava.taglib.functions
Class PersonFunctions

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

public class PersonFunctions
extends Object

A JSP Function Library for Pilot-related functions.

Since:
1.0
Version:
2.3
Author:
Luke

Constructor Summary
PersonFunctions()
           
 
Method Summary
static String getNetworkID(Person usr, String name)
          Returns a Person's online network ID.
static boolean isActive(Person usr)
          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(String addr)
          Returns whether the supplied e-mail address is valid.
static boolean isPilot(Person usr)
          Returns whether the Person is a Pilot.
static boolean isSuspended(Person usr)
          Returns whether the Person is a Suspended Pilot.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PersonFunctions

public PersonFunctions()
Method Detail

isEMailValid

public static boolean isEMailValid(String addr)
Returns whether the supplied e-mail address is valid.

Parameters:
addr - 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

getNetworkID

public static String getNetworkID(Person usr,
                                  String name)
Returns a Person's online network ID.

Parameters:
usr - the Person
name - the network name
Returns:
the network ID, or null


Copyright © 2004-2009 Global Virtual Airlines Group. All Rights Reserved.