Package org.deltava.beans
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 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
-
Method Summary
Modifier and TypeMethodDescriptionint
Compare two Staff Memebr profiles.getArea()
Returns the Staff Member's functional area.getBody()
Returns the Staff Member's biograpy.int
Get the sort order for this Staff Member profile.getTitle()
Returns the Staff Member's title.void
Updates the Staff Member's functional area.void
Sets the Staff Member's biography.void
setSortOrder
(int sortOrder) Sets the new sort order for this Staff Member profile.void
Updates the Staff Member's title.Methods inherited from class org.deltava.beans.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, getMapType, 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, setMapType, setMiles, setMotto, setNoCooler, setNoExams, setNoTimeCompression, setNoVoice, setOnlineHours, setOnlineLegs, setPilotCode, setPilotNumber, setProficiencyCheckRides, setShowNavBar, setShowNewPosts, setShowSignatures, setShowSSThreads, setSignatureExtension, setSignatureModified, setStatus, setTotalHours, setTotalLegs
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, equals, getHexID, getID, hashCode, setID, validateID, validateID
-
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:
compareTo
in interfaceComparable<Object>
- Overrides:
compareTo
in classDatabaseBean
- Throws:
ClassCastException
- if o2 is not a Staff profile- See Also:
-