Class Application
java.lang.Object
org.deltava.beans.DatabaseBean
org.deltava.beans.hr.ApplicantData
org.deltava.beans.hr.Application
- All Implemented Interfaces:
Serializable, Comparable<Object>, AuthoredBean, ComboAlias, IDBean, ViewEntry, Cacheable
A bean to store job posting application data.
- Since:
- 3.4
- Version:
- 10.2
- Author:
- Luke
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether the Application has been approved for the position.intReturns the Author of this bean.Returns the CSS class for this object if rendered in a view table.booleanReturns whether the Application has been shortlisted.Returns the Application status.voidsetAuthorID(int id) Updates the author of this bean.voidsetStatus(ApplicantStatus status) Updates the application status.Methods inherited from class ApplicantData
getBody, getComboAlias, getComboName, getCreatedOn, getFirstName, getLastName, getName, setBody, setCreatedOn, setFirstName, setLastNameModifier and TypeMethodDescriptiongetBody()Returns the profile body.Returns the alias to use in the HTML <OPTION> element.Returns the visible name to use in the HTML <OPTION> element.Returns the creation date of this profile.Returns the user's first name.Returns the user's last (family) name.getName()Returns the user's full name.voidUpdates the profile body.voidsetCreatedOn(Instant dt) Updates the date this profile was updated.voidsetFirstName(String fName) Updates the user's first name.voidsetLastName(String lName) Updates the user's last (family) name.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
-
Application
public Application(int jobID, int authorID) Creates the Application bean.- Parameters:
jobID- the Job database IDauthorID- the JobPosting database ID
-
-
Method Details
-
getAuthorID
public int getAuthorID()Description copied from interface:AuthoredBeanReturns the Author of this bean.- Specified by:
getAuthorIDin interfaceAuthoredBean- Overrides:
getAuthorIDin classApplicantData- Returns:
- the author's database ID
- See Also:
-
getStatus
-
getShortlisted
public boolean getShortlisted()Returns whether the Application has been shortlisted.- Returns:
- TRUE if shortlisted, otherwise FALSE
-
getApproved
public boolean getApproved()Returns whether the Application has been approved for the position.- Returns:
- TRUE if approved, otherwise FALSE
-
setAuthorID
public void setAuthorID(int id) Description copied from interface:AuthoredBeanUpdates the author of this bean.- Specified by:
setAuthorIDin interfaceAuthoredBean- Overrides:
setAuthorIDin classApplicantData- Parameters:
id- the author's database ID.- See Also:
-
setStatus
Updates the application status.- Parameters:
status- the ApplicantStatus
-
getRowClassName
Description copied from interface:ViewEntryReturns the CSS class for this object if rendered in a view table.- Specified by:
getRowClassNamein interfaceViewEntry- Returns:
- the CSS class name, or NULL if none
-