The GSUser object represents a GeoShop user. GSUser objects
have to be initialized by the login()
method.
Constructor | GSUser() |
Description | Creates a new GSUser object. |
Example |
|
Method | login(String user,String password, function successCallback(), function errorCallback(String)) |
Description | Initializes the GSUser
object. All other methods of GSUser can only be used
after successCallback() is called.
Calls successCallback() asynchronously
if the user exists, calls
errorCallback() asynchronously if the
user does not exist or the password is wrong. |
Example |
|
Method | GSHashtable getProducts() |
Description | Delivers a GSHashtable with (name / display_name) entries of all available data products for the user. |
Example |
|
Method | getProductByName(String name, function successCallback(GSHashtable), function errorCallback(String)) |
Description | Calls
successCallback() asynchronously with a
detailed description of the product by name. Calls
errorCallback() asynchronously if the
product is not found or some other error occurs. |
Example |
|
Method | getProductByDisplayName(String display_name, function successCallback(GSHashtable), function errorCallback(String)) |
Description | Variant of getProductByName(). Delivers a detailed description of the product by display_name. |
Example |
|
Method | GSHashtable getPreferences() |
Description | Delivers a all user preferences as a GSHashtable. |
Example |
|