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_EMAIL
Fields inherited from class org.deltava.beans.DatabaseBlobBean
_buffer
Fields inherited from interface org.deltava.beans.EMailAddress
VALID_ADDR_REGEXP
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Appends an HR comment to this Applicant.void
Add a security role to the Person's list of roles.boolean
Returns if this Applicant was automatically rejected due to CAPTCHA issues.Returns any additional Applicant comments.boolean
Returns whether the CAPTCHA has been verified.Returns any HR comments.Returns the URL for legacy hours verification.boolean
Returns legacy hours verification status.int
Returns 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.boolean
Queries if a Person is a member of a particular role.void
setAutoReject
(boolean isAutoReject) Updates whether this Applicant was automatically rejected due to CAPTCHA issues.void
setComments
(String comments) Updates the Applicant comments.void
setHasCAPTCHA
(boolean hasCaptchaVerified) Updates whether this Applicant has passed tha CAPTCHA check.void
setHRComments
(String comments) Updates the HR comments.void
setLegacyURL
(String url) Sets the URL for legacy hours verificationvoid
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
Set the Simulator used by this Applicant.void
Updates 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.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, toString
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, 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:Person
Returns a list of security roles this Person belongs to. -
getTypeChoices
-
getRowClassName
-