/** * Execute the "getUserFromEmail" operation synchronously * * @return The result of this operation */ public synchronized UserTypPrx getUserFromEmail(String email) { _queryController.destroy(); DBProcedureController queryController; _queryController = queryController = new DBProcedureController(_handler, _session.getCardroidManager()); return queryController.getUserFromEmail(email); }
/** * Execute the "getUserFromEmail" operation asynchronously * * @param listener Implementation of the callback methods that will be called upon the completion * of the operation * @return QueryController containing the context of this operation */ public synchronized DBProcedureController getUserFromEmail(QueryListener listener, String email) { _queryController.destroy(); DBProcedureController queryController; _queryController = queryController = new DBProcedureController(_handler, _session.getCardroidManager()); queryController.getUserFromEmail(listener, email); return queryController; }
private synchronized void setupMyUser() { DBProcedureController functionController = new DBProcedureController(_handler, _session.getCardroidManager()); // Retrieve and keep a proxy to the user owning the current session _myUser = functionController.getUserFromEmail(_session.getUserLogin()); functionController.destroy(); }