def grantedDBs( withembeddedtables = nil, excludeparents = nil, adminOnly = nil, includeancestors = nil, showAppData = nil )

      @withembeddedtables, @excludeparents, @adminOnly, @includeancestors, @showAppData = withembeddedtables, excludeparents, adminOnly, includeancestors, showAppData

      xmlRequestData = ""
      xmlRequestData << toXML( :withembeddedtables, @withembeddedtables ) if @withembeddedtables
      xmlRequestData << toXML( "Excludeparents", @excludeparents ) if @excludeparents
      xmlRequestData << toXML( :adminOnly, @adminOnly ) if @adminOnly
      xmlRequestData << toXML( :includeancestors, @includeancestors ) if @includeancestors
      xmlRequestData << toXML( :showAppData, @showAppData ) if @showAppData

      sendRequest( :grantedDBs, xmlRequestData )

      @databases = getResponseElement( :databases )

      return self if @chainAPIcalls

      if @databases and block_given?
         @databases.each { |element| yield element }
      else
         @databases
      end
   end
def grantedDBs( withembeddedtables = nil, excludeparents = nil, adminOnly = nil, includeancestors = nil, showAppData = nil )

      @withembeddedtables, @excludeparents, @adminOnly, @includeancestors, @showAppData = withembeddedtables, excludeparents, adminOnly, includeancestors, showAppData

      xmlRequestData = ""
      xmlRequestData << toXML( :withembeddedtables, @withembeddedtables ) if @withembeddedtables
      xmlRequestData << toXML( "Excludeparents", @excludeparents ) if @excludeparents
      xmlRequestData << toXML( :adminOnly, @adminOnly ) if @adminOnly
      xmlRequestData << toXML( :includeancestors, @includeancestors ) if @includeancestors
      xmlRequestData << toXML( :showAppData, @showAppData ) if @showAppData

      sendRequest( :grantedDBs, xmlRequestData )

      @databases = getResponseElement( :databases )

      return self if @chainAPIcalls

      if @databases and block_given?
         @databases.each { |element| yield element }
      else
         @databases
      end
   end
API_GrantedDBs