Class CourseProgress
java.lang.Object
org.deltava.beans.DatabaseBean
org.deltava.beans.academy.CertificationRequirement
org.deltava.beans.academy.CourseProgress
- All Implemented Interfaces:
Serializable,Comparable<Object>,AuthoredBean,IDBean,ViewEntry,Cacheable
A bean to track Flight Academy Course requirements. Each Certification has a number of
requirements that need to be completed before the Course is done.
- Since:
- 1.0
- Version:
- 11.0
- Author:
- Luke
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCourseProgress(int courseID, int sequenceID) Creates a new Course Progress entry. -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks for equality by comparing sequence numbers.intReturns the Author of this bean.booleanReturns whether this requirement has been completed.Returns the completion date for this entry.intReturns the Course ID.Returns the CSS row class name if rendered in a view table.voidsetAuthorID(int id) Updates the author of this bean.voidsetComplete(boolean done) Updates whether this requirement has been completed.voidUpdates the complation date of this requirement.voidsetCourseID(int id) Updates the Course ID for this Progress entry.Methods inherited from class org.deltava.beans.academy.CertificationRequirement
getExamName, getText, setExamName, setTextMethods inherited from class org.deltava.beans.DatabaseBean
cacheKey, compareTo, getHexID, getID, hashCode, setID, validateID, validateID
-
Constructor Details
-
CourseProgress
public CourseProgress(int courseID, int sequenceID) Creates a new Course Progress entry.- Parameters:
courseID- the database ID of the CoursesequenceID- the order number- Throws:
IllegalArgumentException- if courseID or sequenceID are zero or negative
-
-
Method Details
-
getComplete
public boolean getComplete()Returns whether this requirement has been completed.- Returns:
- TRUE if the requirement is complete, otherwise FALSE
- See Also:
-
getCompletedOn
Returns the completion date for this entry.- Returns:
- the date/time this was marked complete, otherwise FALSE
- See Also:
-
getCourseID
public int getCourseID()Returns the Course ID.- Returns:
- the database ID of the Course
- See Also:
-
getAuthorID
public int getAuthorID()Description copied from interface:AuthoredBeanReturns the Author of this bean.- Specified by:
getAuthorIDin interfaceAuthoredBean- Returns:
- the author's database ID
- See Also:
-
setCourseID
public void setCourseID(int id) Updates the Course ID for this Progress entry.- Parameters:
id- the database ID of the Course- Throws:
IllegalArgumentException- if id is negative- See Also:
-
setAuthorID
public void setAuthorID(int id) Description copied from interface:AuthoredBeanUpdates the author of this bean.- Specified by:
setAuthorIDin interfaceAuthoredBean- Parameters:
id- the author's database ID.- See Also:
-
setComplete
public void setComplete(boolean done) Updates whether this requirement has been completed.- Parameters:
done- TRUE if the requirement is complete, otherwise FALSE- See Also:
-
setCompletedOn
Updates the complation date of this requirement.- Parameters:
dt- the date/time it was completed or null if incomplete- See Also:
-
getRowClassName
Returns the CSS row class name if rendered in a view table.- Specified by:
getRowClassNamein interfaceViewEntry- Returns:
- the CSS class name
-
equals
Checks for equality by comparing sequence numbers.- Overrides:
equalsin classDatabaseBean
-