|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.deltava.beans.DatabaseBean
org.deltava.beans.DatabaseBlobBean
org.deltava.beans.Person
org.deltava.beans.Applicant
public class Applicant
A class for storing Applicant entries.
| Field Summary | |
|---|---|
static int |
APPROVED
|
static String[] |
FSVERSION
Valid Flight Simulator version strings. |
static int[] |
FSVERSION_CODE
Valid Flight Simulator version values. |
static int |
PENDING
|
static int |
REJECTED
|
static String |
ROLE
The only security role an Applicant can belong to |
static String[] |
STATUS
Valid applicant statuses |
| Fields inherited from class org.deltava.beans.Person |
|---|
_networkIDs, _notifyOptions, AUTH_EMAIL, DISTANCE_KM, DISTANCE_MI, DISTANCE_NAMES, DISTANCE_NM, EVENT, FLEET, HIDE_EMAIL, NEWS, NOTIFY_CODES, NOTIFY_NAMES, PIREP, SHOW_EMAIL |
| Fields inherited from class org.deltava.beans.DatabaseBlobBean |
|---|
_buffer |
| Fields inherited from interface org.deltava.beans.EMailAddress |
|---|
INVALID_ADDR, VALID_ADDR_REGEXP |
| Constructor Summary | |
|---|---|
Applicant(String firstName,
String lastName)
Create an Applicant object with a given first and last name, converted to "proper case". |
|
| Method Summary | |
|---|---|
void |
addRole(String roleName)
Add a security role to an Applicant |
String |
getComments()
Returns any additional Applicant comments. |
String |
getHRComments()
Returns any HR comments. |
String |
getLegacyURL()
Returns the URL for legacy hours verification. |
boolean |
getLegacyVerified()
Returns legacy hours verification status. |
int |
getPilotID()
Returns the Database ID of this Applicant's Pilot record. |
String |
getRegisterAddress()
Returns the address this Applicant registered from. |
String |
getRegisterHostName()
Returns the host name this Applicant registered from. |
Collection<String> |
getRoles()
Returns the security roles this Applicant belongs to. |
String |
getRowClassName()
Selects a table row class based upon the Applicant's status. |
int |
getSimVersion()
The Flight Simulator version preferred by this Applicant. |
String |
getSimVersionCode()
The Flight Simulator version code preferred by this Applicant. |
String |
getStatusName()
Returns the status name. |
Map<Long,String> |
getTypeChoices()
Returns the stage equipment type choices. |
boolean |
isInRole(String roleName)
Queries this applicant's role. |
void |
setComments(String comments)
Updates the Applicant comments. |
void |
setHRComments(String comments)
Updates the HR comments. |
void |
setLegacyURL(String url)
Sets the URL for legacy hours verification |
void |
setLegacyVerified(boolean verified)
Sets the legacy hours verification flag. |
void |
setPilotID(int pilotID)
Updates the Database ID of this Applicant's Pilot record. |
void |
setRegisterAddress(String addr)
Sets the remote address this Applicant registered from. |
void |
setRegisterHostName(String hostName)
Sets the host name this Applicant registered from. |
void |
setSimVersion(int version)
Set the Flight Simulator version used by this Applicant. |
void |
setSimVersion(String version)
Set the Flight Simulator version used by this Applicant. |
void |
setStatus(int status)
Sets the Applicant's status. |
void |
setTypeChoice(int stage,
String eqName)
Sets the preferred equipment program for a stage. |
| Methods inherited from class org.deltava.beans.DatabaseBlobBean |
|---|
clear, getInputStream, getSize, isLoaded, load, load |
| Methods inherited from class org.deltava.beans.DatabaseBean |
|---|
cacheKey, compareTo, equals, getHexID, getID, hashCode, setID, validateID |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.security.Principal |
|---|
equals, hashCode |
| Field Detail |
|---|
public static final int PENDING
public static final int APPROVED
public static final int REJECTED
public static final String[] STATUS
public static final String ROLE
public static final String[] FSVERSION
public static final int[] FSVERSION_CODE
| Constructor Detail |
|---|
public Applicant(String firstName,
String lastName)
firstName - the Applicant's first (given) namelastName - the Applicant's last (family) name
NullPointerException - if either name is nullStringUtils.properCase(String)| Method Detail |
|---|
public String getStatusName()
getStatusName in class PersonPerson.getStatus(),
Person.setStatus(int)public String getLegacyURL()
setLegacyURL(String)public boolean getLegacyVerified()
setLegacyVerified(boolean)public int getPilotID()
setPilotID(int)public String getComments()
setComments(String),
getHRComments()public String getHRComments()
setHRComments(String),
getComments()public String getRegisterHostName()
setRegisterHostName(String),
getRegisterAddress()public String getRegisterAddress()
setRegisterAddress(String),
getRegisterHostName()public int getSimVersion()
getSimVersionCode(),
setSimVersion(int),
setSimVersion(String)public String getSimVersionCode()
getSimVersion(),
setSimVersion(String),
setSimVersion(int)public void setLegacyURL(String url)
url - the URL for legacy hours verificationgetLegacyURL()public void setLegacyVerified(boolean verified)
verified - TRUE if hours have been verified, FALSE otherwisegetLegacyVerified()
public void setTypeChoice(int stage,
String eqName)
stage - the stage numbereqName - the equipment programpublic void setSimVersion(int version)
version - the Flight Simulator version as found in FSVERSION
IllegalArgumentException - if the version cannot be foundsetSimVersion(String),
getSimVersion()public void setSimVersion(String version)
version - the Flight Simulator version as found in FSVERSION
IllegalArgumentException - if the version cannot be foundsetSimVersion(int),
getSimVersion()public void setRegisterHostName(String hostName)
hostName - the host namegetRegisterHostName(),
setRegisterAddress(String)public void setRegisterAddress(String addr)
addr - the IP addressgetRegisterAddress(),
setRegisterHostName(String)public void setComments(String comments)
comments - the commentsgetComments(),
setHRComments(String)public void setHRComments(String comments)
comments - the commentsgetHRComments(),
setComments(String)public void setPilotID(int pilotID)
pilotID - the database ID, if hired as a Pilot
IllegalArgumentException - if pilotID is negative
IllegalStateException - if the Applicant has not been ApprovedgetPilotID()public final void setStatus(int status)
setStatus in class Personstatus - the status code
IllegalArgumentException - if the status code is negative or invalidPerson.setStatus(int),
Person.getStatus()public void addRole(String roleName)
addRole in class PersonroleName - the name of the role
UnsupportedOperationException - always thrown since applicants cannot have rolesgetRoles(),
isInRole(String)public boolean isInRole(String roleName)
isInRole in class PersonroleName - the role name
getRoles()public Collection<String> getRoles()
getRoles in class PersonisInRole(String)public Map<Long,String> getTypeChoices()
public String getRowClassName()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||