this function can search if the email of
the user that try to make a request of
TrainingPlan is just registered
into the RequiredTrainingPlan Document.
this function can search if the email of
the user that try to make a request of
TrainingPlan is just registered
into the RequiredTrainingPlan Document.
Parameters:
email - to find the user into the db
Returns:
the object if the email exists,
and "null" if the email isn't registered
Throws:
java.io.IOException
java.util.concurrent.ExecutionException
java.lang.InterruptedException
updateRequest
booleanupdateRequest(java.lang.String email,
int status)
throws java.io.IOException,
java.util.concurrent.ExecutionException,
java.lang.InterruptedException
This DAO method changes the status of
a TrainingPlanRequest of an account.
Parameters:
email - of the account
status - updated
Returns:
true after the change has taken place
false instead.