\GnInsertCommand
Perform a insert request to a GeoNetwork node.
Synopsis
class GnInsertCommand
extends GnAuthenticationCommand
{
- // members
- public static string $api_url = 'srv/en/xml.metadata.insert';
- public static boolean $automatic_publishing = false;
- private $gnID = NULL;
- private $uuid = NULL;
- // methods
- public string get_uuid()
- public int get_gnid()
- public static void get_automatic_publishing()
- public static void set_automatic_publishing()
- public int execute()
- // Inherited methods from GnAuthenticationCommand
- public void setUsername()
- public string getUsername()
- public void setPassword()
- public string getPassword()
- public void execute()
Hierarchy
Extends
Tasks
Line | Task |
---|---|
123 | bad! use JSON |
Members
private
- $gnID
- $uuid
public
- $api_url
- $automatic_publishing
Methods
public
- execute() — Command execute
- get_automatic_publishing()
- get_gnid() — Returns the GeoNetwork internal ID of the new metadata record.
- get_uuid() — Returns the UUID of the new metadata record.
- set_automatic_publishing()
Inherited from GnAuthenticationCommand
public
- execute()
- getPassword() — Returns password for GeoNetwork authentication.
- getUsername() — Returns username for GeoNetwork authentication.
- setPassword() — Sets password for GeoNetwork authentication.
- setUsername() — Sets username for GeoNetwork authentication.