Open Data Catalog v2.0.0
Drupal\dkan_datastore\Service Class Reference
Inheritance diagram for Drupal\dkan_datastore\Service:

Public Member Functions

 __construct (Resource $resourceServiceFactory, Import $importServiceFactory, QueueFactory $queue, JobStoreFactory $jobStoreFactory)
 
 import (string $uuid, bool $deferred=FALSE)
 
 drop ($uuid)
 
 list ()
 
 getStorage (string $uuid)
 

Static Public Member Functions

static create (ContainerInterface $container)
 

Detailed Description

Main services for the datastore.

Definition at line 17 of file Service.php.

Constructor & Destructor Documentation

◆ __construct()

Drupal\dkan_datastore\Service::__construct ( Resource  $resourceServiceFactory,
Import  $importServiceFactory,
QueueFactory  $queue,
JobStoreFactory  $jobStoreFactory 
)

Constructor for datastore service.

Definition at line 41 of file Service.php.

Member Function Documentation

◆ create()

static Drupal\dkan_datastore\Service::create ( ContainerInterface  $container)
static

Inherited.

Definition at line 29 of file Service.php.

◆ drop()

Drupal\dkan_datastore\Service::drop (   $uuid)

Drop all datastores for a given node.

Parameters
string$uuidUUID for resource or dataset node. If dataset, will drop datastore for all connected resources.

Definition at line 97 of file Service.php.

◆ getStorage()

Drupal\dkan_datastore\Service::getStorage ( string  $uuid)

Get Storage.

Parameters
string$uuidThe unique identifier of a resource.

Definition at line 149 of file Service.php.

◆ import()

Drupal\dkan_datastore\Service::import ( string  $uuid,
bool  $deferred = FALSE 
)

Start import process for a resource, provided by UUID.

Parameters
string$uuidUUID for resource node.
bool$deferredSend to the queue for later? Will import immediately if FALSE.

Definition at line 56 of file Service.php.

◆ list()

Drupal\dkan_datastore\Service::list ( )

Get a list of all stored importers and filefetchers, and their status.

Returns
\Drupal\dkan_datastore\Service\ImporterList\ImporterList The importer list object.

Definition at line 139 of file Service.php.