Exemplo n.º 1
0
 public ArrayList GetRolesByUser(string userName)
 {
     try {
         this.Log.Debug("Petición de roles para el usuario " + userName);
         if (this.Login(AuthHeader.UserName, AuthHeader.Key)) {
             using (UsersDAO usersDAO = new UsersDAO(this.connection)) {
                 return usersDAO.GetRoles(userName);
             }
         }
         else {
             this.Log.Warn("Error de autentificacion. Usuario: " + AuthHeader.UserName);
             return null;
         }
     }
     catch (Exception e){
         this.Log.ErrorException("Excepcion en SOREWebService.GetRolesByUser: " + e.Message, e);
         throw e;
     }
 }