/** * Insert given user as a new user in database * * @param dref * @param idP * @return User that has been inserted * @throws RemoteException */ public UserInterface insertUser(String serializedDCR) throws RemoteException { String usersGridId = AuthenticationUtility.getUsersGridId(serializedDCR); User user = new User(usersGridId, null, false); return new UserOperations().insertUser(user); }
/** * Get user by user name. If user of that name not found in database, it returns null. * * @param dref * @param idP * @return * @throws RemoteException */ public UserInterface getUserByName(String serializedDCR) throws RemoteException { String usersGridId = AuthenticationUtility.getUsersGridId(serializedDCR); return new UserOperations().getUserByName(usersGridId); }
/** * Returns globus credential * * @param dref * @param idP * @return * @throws RemoteException */ public GlobusCredential getGlobusCredential(String serializedDCR) throws RemoteException { return AuthenticationUtility.getGlobusCredential(serializedDCR); }