Class JobPosting
java.lang.Object
org.deltava.beans.DatabaseBean
org.deltava.beans.hr.JobPosting
- All Implemented Interfaces:
Serializable,Comparable<Object>,IDBean,ViewEntry,Cacheable
A bean to store information about a job posting.
- Since:
- 3.4
- Version:
- 10.2
- Author:
- Luke
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(Application a) Adds an application to this Job posting.voidAdds a comment to this Job posting.intReturns the number of Applications for this posting.Returns the applications for this job posting.Returns the date the job posting is closed to applications.Returns the comments for this job posting.Returns the date the job posting was created on.Returns the posting description.intReturns the database ID of the hiring manager.intReturns the minimum number of days since joining required to apply for this position.intReturns the minimum number of legs required to apply for this position.Returns the CSS class for this object if rendered in a view table.Returns the selected Applications, if any.booleanReturns whether this job posting is only visible to existing staff members.Returns the job posting status.Returns the job summary, a brief description of the position.getTitle()Returns the job title.voidsetAppCount(int cnt) Sets the number of applications to this posting.voidsetClosesOn(Instant dt) Sets the date this posting closes.voidsetCreatedOn(Instant dt) Sets the date this posting was created.voidsetDescription(String desc) Updates the posting description.voidsetHireManagerID(int id) Sets the database ID of the hiring manager.voidsetMinAge(int age) Updates the minimum number of days since joining required to apply for this position.voidsetMinLegs(int legs) Updates the minimum number of legs required to apply for this position.voidsetStaffOnly(boolean staffOnly) Marks this job posting as only visible to staff members.voidUpdates the posting status.voidsetSummary(String summary) Updates the job summary.voidUpdates the job title.Methods inherited from class org.deltava.beans.DatabaseBean
cacheKey, compareTo, equals, getHexID, getID, hashCode, setID, validateID, validateID
-
Constructor Details
-
JobPosting
-
-
Method Details
-
getTitle
-
getSummary
Returns the job summary, a brief description of the position.- Returns:
- the summary
-
getStatus
-
getCreatedOn
Returns the date the job posting was created on.- Returns:
- the creation date/time
-
getClosesOn
Returns the date the job posting is closed to applications.- Returns:
- the closing date/time
-
getMinLegs
public int getMinLegs()Returns the minimum number of legs required to apply for this position.- Returns:
- the number of legs
-
getMinAge
public int getMinAge()Returns the minimum number of days since joining required to apply for this position.- Returns:
- the number of days since joining
-
getHireManagerID
public int getHireManagerID()Returns the database ID of the hiring manager.- Returns:
- the datbase ID
-
getStaffOnly
public boolean getStaffOnly()Returns whether this job posting is only visible to existing staff members.- Returns:
- TRUE if only visible to the staff, otherwise FALSE
-
getDescription
-
getApplications
Returns the applications for this job posting.- Returns:
- a Collection of Application beans
-
getComments
Returns the comments for this job posting.- Returns:
- a Collection of Comment beans
-
getSelectedApplications
Returns the selected Applications, if any.- Returns:
- a Collection of Application beans
-
getAppCount
public int getAppCount()Returns the number of Applications for this posting.- Returns:
- the number of applications
-
add
Adds an application to this Job posting.- Parameters:
a- an Application bean
-
add
-
setCreatedOn
Sets the date this posting was created.- Parameters:
dt- the creation date/time
-
setClosesOn
Sets the date this posting closes.- Parameters:
dt- the closing date/time
-
setStatus
Updates the posting status.- Parameters:
status- the JobStatus
-
setMinLegs
public void setMinLegs(int legs) Updates the minimum number of legs required to apply for this position.- Parameters:
legs- the minimum number of legs
-
setMinAge
public void setMinAge(int age) Updates the minimum number of days since joining required to apply for this position.- Parameters:
age- the minimum number of days since joining
-
setStaffOnly
public void setStaffOnly(boolean staffOnly) Marks this job posting as only visible to staff members.- Parameters:
staffOnly- TRUE if visible to staff members only, otherwise FALSE
-
setAppCount
public void setAppCount(int cnt) Sets the number of applications to this posting.- Parameters:
cnt- the number of applications- Throws:
IllegalStateException- if applications have already been added
-
setHireManagerID
public void setHireManagerID(int id) Sets the database ID of the hiring manager.- Parameters:
id- the database ID of the Hiring manager
-
setTitle
Updates the job title.- Parameters:
title- the title- Throws:
NullPointerException- if title is null
-
setSummary
Updates the job summary.- Parameters:
summary- the summary- Throws:
NullPointerException- if summary is null
-
setDescription
Updates the posting description.- Parameters:
desc- the description
-
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
-