|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.deltava.beans.academy.AcademyHistoryHelper
public class AcademyHistoryHelper
A utility class to extract information from a user's Flight Academy history.
| Constructor Summary | |
|---|---|
AcademyHistoryHelper(Collection<Course> courses,
Collection<Certification> allCerts)
Initializes the helper. |
|
| Method Summary | |
|---|---|
void |
addExams(Collection<Test> tests)
Adds the Pilot's Flight Academy examinations and checkrides. |
boolean |
canTake(Certification c)
Returns if the user is eligible to take a particular Flight Academy Course. |
boolean |
canWrite(ExamProfile ep)
Rerturns if the user is eligible to write a particular examination. |
Collection<Certification> |
getCertifications()
Returns all Certifications. |
Collection<Course> |
getCourses()
Returns the Pilot's courses. |
Course |
getCurrentCourse()
Returns the Course that the Pilot is currently enrolled in |
Collection<Test> |
getExams()
Returns the Pilot's examinations. |
boolean |
hasAll(int stage)
Returns whether a Pilot has completed all certifications in a particular stage. |
boolean |
hasAny(int stage)
Returns whether a Pilot has completed a certification in a particular stage. |
boolean |
hasCompleted(String certName)
Returns whether a Pilot has completed the requirements for a Flight Academy certifcation. |
boolean |
hasPassed(String certName)
Returns whether a Pilot has completed a particular certification. |
boolean |
hasSubmitted(String examName)
Returns if a user has submitted a particular Examination. |
boolean |
isLockedOut(int lockoutHours)
Returns if the user is locked out of the Testing Center due to a failed examination. |
boolean |
isPending(String certName)
Returns whether a Pilot has started a particular course. |
boolean |
passedExam(String examName)
Returns whether a Pilot has passed a particular Examination. |
void |
setAllowInactive(boolean doInactive)
Toggles whether the user can enroll in Inactive Courses. |
void |
setDebug(boolean isDebug)
Toggles the debugging log. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AcademyHistoryHelper(Collection<Course> courses,
Collection<Certification> allCerts)
courses - a Collection of course objects, representing this Pilot's Flight Academy historyallCerts - all available Certifications| Method Detail |
|---|
public void setDebug(boolean isDebug)
isDebug - TRUE if the log is active, otherwise FALSEpublic void setAllowInactive(boolean doInactive)
doInactive - TRUE if the usre can enroll in Inactive Courses, otherwise FALSEpublic Collection<Test> getExams()
GetExam DAO a second time.
public Collection<Certification> getCertifications()
GetAcademyCertifications DAO a second time.
public Collection<Course> getCourses()
GetAcademyCourses DAO a second time.
public void addExams(Collection<Test> tests)
tests - a Collection of checkride/examination objects, representing this Pilot's exam historypublic boolean hasPassed(String certName)
certName - the Certification name
public boolean isPending(String certName)
certName - the Certification name
public boolean hasSubmitted(String examName)
examName - the Examination name
public Course getCurrentCourse()
public boolean hasAny(int stage)
stage - the stage number
public boolean passedExam(String examName)
examName - the Examination name
public boolean hasCompleted(String certName)
certName - the Certification name
public boolean hasAll(int stage)
stage - the stage number
public boolean canTake(Certification c)
c - the Certification to take
public boolean canWrite(ExamProfile ep)
ep - the ExamProfile bean
public boolean isLockedOut(int lockoutHours)
lockoutHours - the number of hours to remain locked out, or zero if no lockout
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||