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 TypeMethodDescriptionboolean
Returns whether the Application has been approved for the position.int
Returns the Author of this bean.Returns the CSS class for this object if rendered in a view table.boolean
Returns whether the Application has been shortlisted.Returns the Application status.void
setAuthorID
(int id) Updates the author of this bean.void
setStatus
(ApplicantStatus status) Updates the application status.Methods inherited from class org.deltava.beans.hr.ApplicantData
getBody, getComboAlias, getComboName, getCreatedOn, getFirstName, getLastName, getName, setBody, setCreatedOn, setFirstName, setLastName
Methods inherited from class org.deltava.beans.DatabaseBean
cacheKey, compareTo, equals, getHexID, getID, hashCode, setID, validateID, validateID
-
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:AuthoredBean
Returns the Author of this bean.- Specified by:
getAuthorID
in interfaceAuthoredBean
- Overrides:
getAuthorID
in 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:AuthoredBean
Updates the author of this bean.- Specified by:
setAuthorID
in interfaceAuthoredBean
- Overrides:
setAuthorID
in classApplicantData
- Parameters:
id
- the author's database ID.- See Also:
-
setStatus
Updates the application status.- Parameters:
status
- the ApplicantStatus
-
getRowClassName
Description copied from interface:ViewEntry
Returns the CSS class for this object if rendered in a view table.- Specified by:
getRowClassName
in interfaceViewEntry
- Returns:
- the CSS class name, or NULL if none
-