lib/gooddata/models/domain.rb
def find_user_by_login(domain, login, opts = { :client => GoodData.connection, :project => GoodData.project })
        c = client(opts)
        escaped_login = CGI.escape(login)
        domain = c.domain(domain)
        GoodData.logger.warn("Retrieving particular user \"#{login.inspect}\" from domain #{domain.name}")
        url = "#{domain.uri}/users?login=#{escaped_login}"
        tmp = c.get url
        items = tmp['accountSettings']['items'] if tmp['accountSettings']
        items && !items.empty? ? c.factory.create(GoodData::Profile, items.first) : nil
      end
# Finds user in domain by login
#
# @param domain [String] Domain name
# @param login [String] User login
# @return [GoodData::Profile] User profile
Finds user in domain by login
Finds user in domain by login
def find_user_by_login(domain, login, opts = { :client => GoodData.connection, :project => GoodData.project })
        c = client(opts)
        escaped_login = CGI.escape(login)
        domain = c.domain(domain)
        GoodData.logger.warn("Retrieving particular user \"#{login.inspect}\" from domain #{domain.name}")
        url = "#{domain.uri}/users?login=#{escaped_login}"
        tmp = c.get url
        items = tmp['accountSettings']['items'] if tmp['accountSettings']
        items && !items.empty? ? c.factory.create(GoodData::Profile, items.first) : nil
      end
def find_user_by_login ( domain , login , opts = { :client => GoodData . connection , :project => GoodData . project } ) c = client ( opts ) escaped_login = CGI . escape ( login ) domain = c . domain ( domain ) GoodData . logger . warn ( "Retrieving particular user \"#{login.inspect}\" from domain #{domain.name}" ) url = "#{domain.uri}/users?login=#{escaped_login}" tmp = c . get url items = tmp [ 'accountSettings' ] [ 'items' ] if tmp [ 'accountSettings' ] items && ! items . empty? ? c . factory . create ( GoodData :: Profile , items . first ) : nil end
Finds user in domain by login
Finds user in domain by login
None
GoodData::Profile
domain
None
login
None
opts
connection
project