Class Staff
- All Implemented Interfaces:
Serializable, Cloneable, Comparable<Object>, Principal, ComboAlias, EMailAddress, FormattedEMailRecipient, IDBean, PushAddress, ViewEntry, Cacheable
A class for storing Staff Profiles.
- Since:
- 1.0
- Version:
- 8.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 TypeMethodDescriptionintCompare two Staff Memebr profiles.getArea()Returns the Staff Member's functional area.getBody()Returns the Staff Member's biograpy.intGet the sort order for this Staff Member profile.getTitle()Returns the Staff Member's title.voidUpdates the Staff Member's functional area.voidSets the Staff Member's biography.voidsetSortOrder(int sortOrder) Sets the new sort order for this Staff Member profile.voidUpdates the Staff Member's title.Methods inherited from class Pilot
addAccomplishmentID, addCertification, addCertifications, addPushEndpoint, addRating, addRatings, addRole, addRoles, clone, cloneExceptID, getACARSHours, getACARSLegs, getACARSRestriction, getACARSUpdateChannel, getAccomplishmentIDs, getAirlineCode, getCertifications, getComboAlias, getComboName, getDispatchFlights, getDispatchHours, getEliteStatus, getEventHours, getEventLegs, getEventSignups, getHasDefaultSignature, getHasSignature, getHours, getIsForgotten, getIsPermanent, getLastFlight, getLDAPName, getLegs, getMiles, getMotto, getNoCooler, getNoExams, getNoTimeCompression, getNoVoice, getOnlineHours, getOnlineLegs, getPilotCode, getPilotNumber, getProficiencyCheckRides, getPushEndpoints, getRatings, getRoleData, getRoles, getRowClassName, getShowNavBar, getShowNewPosts, getShowSignatures, getShowSSThreads, getSignatureExtension, getSignatureModified, getStatus, getTotalHours, getTotalLegs, hasRating, isInRole, removeRatings, removeRoles, setACARSHours, setACARSLegs, setACARSRestriction, setACARSUpdateChannel, setDispatchFlights, setDispatchHours, setEliteStatus, setEventHours, setEventLegs, setEventSignups, setHasDefaultSignature, setHours, setIsForgotten, setIsPermanent, setLastFlight, setLDAPName, setLegs, setMiles, setMotto, setNoCooler, setNoExams, setNoTimeCompression, setNoVoice, setOnlineHours, setOnlineLegs, setPilotCode, setPilotNumber, setProficiencyCheckRides, setShowNavBar, setShowNewPosts, setShowSignatures, setShowSSThreads, setSignatureExtension, setSignatureModified, setStatus, setTotalHours, setTotalLegsModifier and TypeMethodDescriptionvoidAdds an Accomplishment to this Pilot.voidaddCertification(String certCode) Adds a Flight Academy certification code for this Pilot.voidaddCertifications(Collection<String> certCodes) Adds Flight Academy certification codes for this Pilot.voidAdds a Push Notification endpoint for this Pilot.voidAdd a rated equipment type for this Pilot.voidaddRatings(Collection<String> ratings) Add a number of equipment type ratings for this Pilot.voidAdd a security role to the Person's list of roles.voidaddRoles(Collection<String> roles) Adds membership in a group of security roles to this Pilot.clone()Shallow-clone a Pilot by copying everything except FlightReport/StatusUpdate beans.Shallow-clone a Pilot by copying everything except FlightReport/StatusUpdate beans and the database ID.doubleReturn the number of ACARS flight hours logged by this Pilot.intReturns the number of ACARS flight legs logged by this Pilot.Returns the Pilot's ACARS restrictions.Returns the Pilot's ACARS client update channel.Returns the Pilot's Accomplishments.Returns the airline code for this Pilot.Returns the Pilot's Flight Academy certification codes.Returns the alias to use in the HTML <OPTION> element.Returns the visible name to use in the HTML <OPTION> element.intReturns the total number of flights the user has Dispatched.doubleReturns the number of hours spent providing Dispatch services.Returns the Pilot's current Elite status.doubleReturns the number of Online Event flight hours logged by this Pilot.intReturns the number of Online Event flight legs logged by this Pilot.intReturns the number of times this Pilot has signed up for an Online Event.booleanQueries if the default signature image should be shown.booleanQueries if the Pilot has a signature image.doublegetHours()Returns the number of flight hours logged by this Pilot.booleanReturns whether the Pilot has been marked as "forgotten" for GDPR reasons.booleanReturns whether this Pilot cannot be marked Inactive.Returns the date of the Pilot's last flight.Returns the Pilot's LDAP uid, used for SubVersion and raw HTTP access.intgetLegs()Return the number of legs flown by this Pilot.longgetMiles()Returns the number of miles flown by this PilotgetMotto()Returns the Pilot's mottobooleanReturns whether the Pilot has been locked out of the Water Cooler.booleanReturns whether the Pilot has been locked out of the Testing Center.booleanReturns whether the Pilot cannot submit flight reports with Time Compression.booleanReturns whether the Pilot has been locked out of the Voice server.doubleReturns the number of online flight hours logged by this Pilot.intReturns the number of online flight legs logged by this Pilot.Return the Pilot Code.intReturn the pilot number.booleanReturns whether this Pilot has opted for recurring check rides.Returns the user's Push Notification endpoints.Return the Pilot's rated equipment Types.Returns role name and persistence data.getRoles()Returns a list of security roles this Person belongs to.Returns the CSS class for this object if rendered in a view table.booleanReturns whether a navigation bar or a side menu will be rendered.booleanReturns whether new Water Cooler posts will be scrolled to.booleanReturns whether the pilot will see Water Cooler signatures.booleanReturns whether the Pilot will see Water Cooler screen shot message threads.Returns the extension of the Signature Image.Returns the last modification date of the Signature Image.Returns the Pilot's status.doubleReturns the total number of flight hours logged by this pilot across all Airlines.intReturns the total number of flight legs logged by this Pilot across all Airlines.booleanQueries whether this Pilot is rated in a particular equipment type.booleanQueries whether this Pilot is a member of a particular security role.voidremoveRatings(Collection<String> ratings) Remove a number of equipment type ratings for this Pilot.voidremoveRoles(Collection<String> roles) Removes this Pilot's membership in a group fo security roles.voidsetACARSHours(double hours) Updates this Pilot's logged ACARS hours.voidsetACARSLegs(int legs) Update this Pilot's logged ACARS flight legs.voidUpdates whether the Pilot is locked out of the ACARS server.voidUpdates the Pilot's ACARS client update channel.voidsetDispatchFlights(int legs) Updates the number of flights the Pilot has dispactched as a Dispatcher.voidsetDispatchHours(double hours) Updates the number of hours spent providng Dispatch services.voidUpdates the Pilot's Elite program status.voidsetEventHours(double hours) Updates this Pilot's logged hours as part of an Online Event.voidsetEventLegs(int legs) Updates the number of flight legs flown as part of an Online Event.voidsetEventSignups(int signups) Updates the number of times this Pilot has signed up for an Online Event.voidsetHasDefaultSignature(boolean hasSig) Sets if this Pilot's signature should be the default siganture.voidsetHours(double hours) Update this Pilot's logged hours.voidsetIsForgotten(boolean isForgotten) Marks this Pilot account as Forgotten for GDPR purposes.voidsetIsPermanent(boolean isPerm) Marks this account as being unable to be marked Inactive.voidsetLastFlight(Instant dt) Updates this Pilot's last flight report date.voidsetLDAPName(String uid) Updates this Pilot's LDAP uid attribute, for use by Subversion and raw HTTP access.voidsetLegs(int legs) Update this Pilot's logged flight legs.voidsetMiles(long miles) Update this pilot's logged miles.voidUpdates the Pilot's motto.voidsetNoCooler(boolean noCooler) Updates whether the Pilot is locked out from the Water Cooler.voidsetNoExams(boolean noExams) Updates whether this Pilot is locked out from taking new Examinations.voidsetNoTimeCompression(boolean noCompress) Updates whether the Pilot cannot submit flight reports with Time Compression.voidsetNoVoice(boolean noVoice) Updates whether the Pilot is locked out from the Voice server.voidsetOnlineHours(double hours) Updates this Pilot's logged online hours.voidsetOnlineLegs(int legs) Update this Pilot's logged onlne flight legs.voidsetPilotCode(CharSequence code) Set the pilot code for this Pilot.voidsetPilotNumber(int pNumber) Updates the Pilot's seniority number.voidsetProficiencyCheckRides(boolean isPCR) Marks this Pilot as having opted for proficiency check rides.voidsetShowNavBar(boolean showNavBar) Sets whether a Navigation Bar or side menu should be rendered.voidsetShowNewPosts(boolean newPosts) Updates whether new Water Cooler posts will be scrolled to.voidsetShowSignatures(boolean showSigs) Updates this Pilot's "Show Water Cooler signatures" flag.voidsetShowSSThreads(boolean showThreads) Updates whether this Pilot will see Water Cooler screen shot threads.voidSets if this Pilot has a signature image available.voidSets the last modified date the Pilot's signature image.final voidUpdate this Pilot's status.voidsetTotalHours(double hours) Updates the Pilot's total logged hours between all airlines.voidsetTotalLegs(int legs) Updates the Pilot's total flight legs between all airlines.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, equals, getHexID, getID, hashCode, setID, validateID, validateIDModifier and TypeMethodDescriptioncacheKey()Returns the cache key for this object.booleangetHexID()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
-
Staff
Create a new Staff Profile with a given first and last name.- Parameters:
fName- the Staff Member's first (given) namelName- the Staff Member's last (family) name- Throws:
NullPointerException- if either fName or lName are null
-
-
Method Details
-
getTitle
-
getArea
-
getBody
-
getSortOrder
public int getSortOrder()Get the sort order for this Staff Member profile.- Returns:
- the sort order value
-
setTitle
Updates the Staff Member's title.- Parameters:
title- the new title
-
setArea
Updates the Staff Member's functional area.- Parameters:
area- the area
-
setBody
Sets the Staff Member's biography.- Parameters:
body- the new biography
-
setSortOrder
public void setSortOrder(int sortOrder) Sets the new sort order for this Staff Member profile.- Parameters:
sortOrder- the new sort order
-
compareTo
Compare two Staff Memebr profiles. Check the sort order, then the last name.- Specified by:
compareToin interfaceComparable<Object>- Overrides:
compareToin classDatabaseBean- Throws:
ClassCastException- if o2 is not a Staff profile- See Also:
-