Esempio n. 1
0
  /**
   * 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);
  }
Esempio n. 2
0
 /**
  * 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);
 }
Esempio n. 3
0
 /**
  * Returns globus credential
  *
  * @param dref
  * @param idP
  * @return
  * @throws RemoteException
  */
 public GlobusCredential getGlobusCredential(String serializedDCR) throws RemoteException {
   return AuthenticationUtility.getGlobusCredential(serializedDCR);
 }