Class Applicant
java.lang.Object
org.deltava.beans.DatabaseBean
org.deltava.beans.DatabaseBlobBean
org.deltava.beans.Person
org.deltava.beans.Applicant
- All Implemented Interfaces:
Serializable,Comparable<Object>,Principal,EMailAddress,FormattedEMailRecipient,IDBean,ViewEntry,Cacheable
A class for storing Applicant entries.
- Since:
- 1.0
- Version:
- 11.0
- Author:
- Luke
- See Also:
-
Field Summary
Fields inherited from class org.deltava.beans.Person
_networkIDs, _notifyOptions, AUTH_EMAIL, HIDE_EMAIL, SHOW_EMAILFields inherited from class org.deltava.beans.DatabaseBlobBean
_bufferFields inherited from interface org.deltava.beans.EMailAddress
VALID_ADDR_REGEXP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAppends an HR comment to this Applicant.voidAdd a security role to the Person's list of roles.booleanReturns if this Applicant was automatically rejected due to CAPTCHA issues.Returns any additional Applicant comments.booleanReturns whether the CAPTCHA has been verified.Returns any HR comments.Returns the URL for legacy hours verification.booleanReturns legacy hours verification status.intReturns the Database ID of this Applicant's Pilot record.Returns the address this Applicant registered from.Returns the host name this Applicant registered from.getRoles()Returns a list of security roles this Person belongs to.Returns the CSS class for this object if rendered in a view table.Returns the Simulator preferred by this Applicant.Returns the Applicant's status.Returns the stage equipment type choices.booleanQueries if a Person is a member of a particular role.voidsetAutoReject(boolean isAutoReject) Updates whether this Applicant was automatically rejected due to CAPTCHA issues.voidsetComments(String comments) Updates the Applicant comments.voidsetHasCAPTCHA(boolean hasCaptchaVerified) Updates whether this Applicant has passed tha CAPTCHA check.voidsetHRComments(String comments) Updates the HR comments.voidsetLegacyURL(String url) Sets the URL for legacy hours verificationvoidsetLegacyVerified(boolean verified) Sets the legacy hours verification flag.voidsetPilotID(int pilotID) Updates the Database ID of this Applicant's Pilot record.voidsetRegisterAddress(String addr) Sets the remote address this Applicant registered from.voidsetRegisterHostName(String hostName) Sets the host name this Applicant registered from.voidSet the Simulator used by this Applicant.voidUpdates the Applicant's status.voidsetTypeChoice(int stage, String eqName) Sets the preferred equipment program for a stage.Methods inherited from class org.deltava.beans.Person
getAirportCodeType, getCreatedOn, getDateFormat, getDistanceType, getDN, getEmail, getEmailAccess, getEmailDomain, getEquipmentType, getExternalID, getExternalIDs, getFirstName, getHomeAirport, getLastLogin, getLastLogoff, getLastName, getLegacyHours, getLocation, getLoginCount, getLoginHost, getName, getNetworkID, getNetworks, getNotifyCode, getNotifyOptions, getNumberFormat, getPassword, getRank, getTimeFormat, getTZ, getUIScheme, getViewCount, getWeightType, hasID, hasNetworkID, hasNotifyOption, isInvalid, setAirportCodeType, setCreatedOn, setDateFormat, setDistanceType, setDN, setEmail, setEmailAccess, setEmailInvalid, setEquipmentType, setExternalID, setFirstName, setHomeAirport, setLastLogin, setLastLogoff, setLastName, setLegacyHours, setLocation, setLoginCount, setLoginHost, setNetworkID, setNotificationCode, setNotifyOption, setNumberFormat, setPassword, setRank, setTimeFormat, setTZ, setUIScheme, setViewCount, setWeightType, toStringMethods inherited from class org.deltava.beans.DatabaseBlobBean
clear, getInputStream, getSize, isLoaded, load, loadMethods inherited from class org.deltava.beans.DatabaseBean
cacheKey, compareTo, equals, getHexID, getID, hashCode, setID, validateID, validateID
-
Constructor Details
-
Applicant
Create an Applicant object with a given first and last name, converted to "proper case".- Parameters:
firstName- the Applicant's first (given) namelastName- the Applicant's last (family) name- Throws:
NullPointerException- if either name is null- See Also:
-
-
Method Details
-
getStatus
-
getLegacyURL
Returns the URL for legacy hours verification.- Returns:
- the URL for legacy hours verification, null if not available
- See Also:
-
getLegacyVerified
public boolean getLegacyVerified()Returns legacy hours verification status.- Returns:
- TRUE if legacy hours have been verified
- See Also:
-
getAutoReject
public boolean getAutoReject()Returns if this Applicant was automatically rejected due to CAPTCHA issues.- Returns:
- TRUE if automatically rejected, otherwise FALSE
- See Also:
-
getPilotID
public int getPilotID()Returns the Database ID of this Applicant's Pilot record.- Returns:
- the Database ID if hired as a Pilot
- See Also:
-
getComments
Returns any additional Applicant comments.- Returns:
- the comments
- See Also:
-
getHRComments
-
getRegisterHostName
Returns the host name this Applicant registered from.- Returns:
- the host name
- See Also:
-
getRegisterAddress
Returns the address this Applicant registered from.- Returns:
- the IP address
- See Also:
-
getHasCAPTCHA
public boolean getHasCAPTCHA()Returns whether the CAPTCHA has been verified.- Returns:
- TRUE if CAPTCHA verified, otherwise FALSE
- See Also:
-
getSimVersion
Returns the Simulator preferred by this Applicant.- Returns:
- the Simulator
- See Also:
-
addHRComment
Appends an HR comment to this Applicant.- Parameters:
c- the comment
-
setLegacyURL
Sets the URL for legacy hours verification- Parameters:
url- the URL for legacy hours verification- See Also:
-
setLegacyVerified
public void setLegacyVerified(boolean verified) Sets the legacy hours verification flag.- Parameters:
verified- TRUE if hours have been verified, FALSE otherwise- See Also:
-
setAutoReject
public void setAutoReject(boolean isAutoReject) Updates whether this Applicant was automatically rejected due to CAPTCHA issues.- Parameters:
isAutoReject- TRUE if automatically rejected, otherwise FALSE- See Also:
-
setTypeChoice
Sets the preferred equipment program for a stage.- Parameters:
stage- the stage numbereqName- the equipment program
-
setSimVersion
Set the Simulator used by this Applicant.- Parameters:
s- the Simulator- See Also:
-
setRegisterHostName
Sets the host name this Applicant registered from.- Parameters:
hostName- the host name- See Also:
-
setRegisterAddress
Sets the remote address this Applicant registered from.- Parameters:
addr- the IP address- See Also:
-
setComments
Updates the Applicant comments.- Parameters:
comments- the comments- See Also:
-
setHRComments
Updates the HR comments.- Parameters:
comments- the comments- See Also:
-
setPilotID
public void setPilotID(int pilotID) Updates the Database ID of this Applicant's Pilot record.- Parameters:
pilotID- the database ID, if hired as a Pilot- Throws:
IllegalArgumentException- if pilotID is negativeIllegalStateException- if the Applicant has not been Approved- See Also:
-
setStatus
Updates the Applicant's status.- Parameters:
s- an ApplicantStatus
-
setHasCAPTCHA
public void setHasCAPTCHA(boolean hasCaptchaVerified) Updates whether this Applicant has passed tha CAPTCHA check.- Parameters:
hasCaptchaVerified- TRUE if CAPTCHA verified, othersie FALSE
-
addRole
-
isInRole
-
getRoles
Description copied from class:PersonReturns a list of security roles this Person belongs to. -
getTypeChoices
-
getRowClassName
-