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 Person
_networkIDs, _notifyOptions, AUTH_EMAIL, HIDE_EMAIL, SHOW_EMAILModifier and TypeFieldDescriptionprotected final Map<OnlineNetwork, String> protected final Collection<Notification> static final intHide e-mail address from unauthenticated users.static final intHide e-mail address from all non-staff users.static final intShow e-mail address to all users.Fields inherited from class DatabaseBlobBean
_bufferFields inherited from interface EMailAddress
VALID_ADDR_REGEXPModifier and TypeFieldDescriptionstatic final StringE-mail address validation regular expression. -
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 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, toStringModifier and TypeMethodDescriptionReturns the Person's preferred airport code type (IATA/ICAO).Return the date/time this Person registered.Returns the Person's preferred date format pattern.Returns the Person's preferred distance unit.getDN()Return this Person's LDAP/JNDI Directory Name.getEmail()Return the Person's e-mail address.intReturns the access to a Person's e-mail address.Returns this person's e-mail domain.Return the Person's equipment type program.getExternalID(ExternalID service) Returns the Person's external IDs.Returns a Map containing this Person's external IDs.Return this Person's First Name.Return the Person's home airport code.Return the Person's latest login date/time.Return the Person's last logoff date/time.Return this Person's Last Name.doubleReturn this Person's legacy flight hours.Return the Person's location.intReturn the number of times this Person has logged into the system.Return the hostname or IP address that this Person last logged in from.getName()Returns this Person's Full name.Returns this Person's online network IDReturns the Online Networks this used has provided an ID for.intReturns the aggregated notification code.Returns all selected notification options.Returns the Person's preferred number format pattern.Return the Person's password.getRank()Return the Person's rank.Returns the Person's preferred time format pattern.getTZ()Return this Person's Time Zone.Returns the Person's preferred web site UI scheme.intReturns the Person's preferred view window size.Returns the Person's preferred weight unit.booleanhasID(ExternalID svc) Returns whether a Person has a specific Instant Messenger handle.booleanRetuns if this Person is a memebr of an online network.booleanhasNotifyOption(Notification notifyType) Return a particular e-mail notification option for this Person.booleanReturns whether this recipient has an invalid e-mail address.voidUpdates the Person's preferred airport code type (IATA/ICAO).voidsetCreatedOn(Instant cd) Update this Person's createdOn date/timevoidsetDateFormat(String pattern) Updates the Person's preferred date format.voidUpdates the Person's preferred distance units.voidUpdate the Person's directory name.voidUpdate the Person's e-mail address.voidsetEmailAccess(int accessLevel) Update the Person's e-mail address acess level.voidsetEmailInvalid(boolean isInvalid) Marks the email address as invalid.voidsetEquipmentType(String eqType) Update the Person's Equipment Type.voidsetExternalID(ExternalID svc, String handle) Update this Person's Instant Messaging handle.voidsetFirstName(String name) Updates the Person's first (given) name.voidsetHomeAirport(String aCode) Update this Person's home airportvoidsetLastLogin(Instant lld) Update this Person's last Login date/time.voidsetLastLogoff(Instant lld) Update the Person's last Logoff date/time.voidsetLastName(String name) Updates the Person's last (family) name.voidsetLegacyHours(double legacyHours) Update this Person's legacy flight hours.voidsetLocation(String location) Update this Person's location.voidsetLoginCount(int count) Update this person's login countvoidsetLoginHost(String hostName) Updates the hostname or IP address that this Person last logged in fromvoidsetNetworkID(OnlineNetwork network, CharSequence id) Update the Person's network ID for a given online network.voidsetNotificationCode(int code) Sets the notification options for a user from a single bitmap value.voidsetNotifyOption(Notification option, boolean notify) Update this Person's notification option for a given notificaiton type.voidsetNumberFormat(String pattern) Updates the Person's preferred number format.voidsetPassword(String pwd) Update the Person's password.voidUpdate the person's Rank.voidsetTimeFormat(String pattern) Updates the Person's preferred time format.voidSets the Time Zone for this Person.voidsetUIScheme(String schemeName) Updates this Person's preferred web site UI scheme.voidsetViewCount(int size) Sets the size of the Person's preferred view window.voidUpdates the Person's preferred weight units.toString()Returns the person's full name.Methods inherited from class DatabaseBlobBean
clear, getInputStream, getSize, isLoaded, load, loadModifier and TypeMethodDescriptionvoidclear()Clears the buffer.Returns the content of the buffer.intgetSize()Returns the size of the image/file data.booleanisLoaded()Returns whether the buffer has been populated.voidload(byte[] buffer) Replaces the buffer data.voidload(InputStream is) Loads the contents of a stream into the buffer.Methods inherited from class DatabaseBean
cacheKey, compareTo, equals, getHexID, getID, hashCode, setID, validateID, validateIDModifier and TypeMethodDescriptioncacheKey()Returns the cache key for this object.intbooleangetHexID()Returns the hexadecimal database ID of this object.intgetID()Returns the database ID of this object.inthashCode()voidsetID(int id) Update the database row ID of this bean.static voidvalidateID(int oldID, int newID) Validates a database ID.static voidvalidateID(int oldID, int newID, boolean allowZero) Validates a database ID.
-
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
-