SymbIoTeLibraries
Public Member Functions | List of all members
eu.h2020.symbiote.client.feign.FeignRHClient Class Reference
Inheritance diagram for eu.h2020.symbiote.client.feign.FeignRHClient:
Inheritance graph
Collaboration diagram for eu.h2020.symbiote.client.feign.FeignRHClient:
Collaboration graph

Public Member Functions

 FeignRHClient (ISecurityHandler securityHandler, String homePlatformId)
 
List< CloudResourcegetResources ()
 
CloudResource getResource (String resourceInternalId)
 
CloudResource addL1Resource (CloudResource resource)
 
List< CloudResourceaddL1Resources (List< CloudResource > resources)
 
List< CloudResourceaddL1RdfResources (RdfCloudResourceList resources)
 
CloudResource updateL1Resource (CloudResource resource)
 
List< CloudResourceupdateL1Resources (List< CloudResource > resources)
 
List< CloudResourcesync ()
 
CloudResource deleteL1Resource (String resourceInternalId)
 
List< CloudResourcedeleteL1Resources (List< String > resourceInternalIds)
 
void clearResources ()
 
List< CloudResourceaddL2Resources (List< CloudResource > cloudResources)
 
List< CloudResourceupdateL2Resources (List< CloudResource > cloudResources)
 
List< String > removeL2Resources (List< String > resourceInternalIds)
 
Map< String, List< CloudResource > > shareL2Resources (Map< String, Map< String, Boolean >> input)
 
Map< String, List< CloudResource > > unshareL2Resources (Map< String, List< String >> input)
 

Detailed Description

symbIoTe Registration Handler client based on Feign

Author
Vasilis Glykantzis

Constructor & Destructor Documentation

◆ FeignRHClient()

eu.h2020.symbiote.client.feign.FeignRHClient.FeignRHClient ( ISecurityHandler  securityHandler,
String  homePlatformId 
)
Parameters
securityHandlerthe security handler implementation that is going to be used
homePlatformIdthe home Platform Id

Member Function Documentation

◆ addL1RdfResources()

List<CloudResource> eu.h2020.symbiote.client.feign.FeignRHClient.addL1RdfResources ( RdfCloudResourceList  resources)

Register a list of L1 resources using RDF

Parameters
resourcesa list of RdfCloudResourceList describing the L1 resource metadata
Returns
a list of CloudResource describing the registered resource metadata

Implements eu.h2020.symbiote.client.interfaces.RHClient.

◆ addL1Resource()

CloudResource eu.h2020.symbiote.client.feign.FeignRHClient.addL1Resource ( CloudResource  resource)

Register L1 resource

Parameters
resourcea CloudResource describing the L1 resource metadata
Returns
a CloudResource describing the registered resource metadata

Implements eu.h2020.symbiote.client.interfaces.RHClient.

◆ addL1Resources()

List<CloudResource> eu.h2020.symbiote.client.feign.FeignRHClient.addL1Resources ( List< CloudResource resources)

Register a list of L1 resources

Parameters
resourcesa list of CloudResource describing the L1 resource metadata
Returns
a list of CloudResource describing the registered resources

Implements eu.h2020.symbiote.client.interfaces.RHClient.

◆ addL2Resources()

List<CloudResource> eu.h2020.symbiote.client.feign.FeignRHClient.addL2Resources ( List< CloudResource cloudResources)

Register a list of L2 resources

Parameters
cloudResourcesa list of CloudResource describing the L2 resources
Returns
a list of CloudResource describing the registered L2 resource metadata

Implements eu.h2020.symbiote.client.interfaces.RHClient.

◆ clearResources()

void eu.h2020.symbiote.client.feign.FeignRHClient.clearResources ( )

Clear both L1 and L2 resources

Implements eu.h2020.symbiote.client.interfaces.RHClient.

◆ deleteL1Resource()

CloudResource eu.h2020.symbiote.client.feign.FeignRHClient.deleteL1Resource ( String  resourceInternalId)

Delete a L1 resource based on the internal id

Parameters
resourceInternalIdthe internal id of the resource
Returns
a CloudResource describing the deleted resource

Implements eu.h2020.symbiote.client.interfaces.RHClient.

◆ deleteL1Resources()

List<CloudResource> eu.h2020.symbiote.client.feign.FeignRHClient.deleteL1Resources ( List< String >  resourceInternalIds)

Delete a list of L1 resources based on the internal ids

Parameters
resourceInternalIdsthe internal ids of the resources
Returns
a list of CloudResource describing the deleted resource metadata

Implements eu.h2020.symbiote.client.interfaces.RHClient.

◆ getResource()

CloudResource eu.h2020.symbiote.client.feign.FeignRHClient.getResource ( String  resourceInternalId)

Get specific registered resource

Parameters
resourceInternalIdthe internal id of the resource
Returns
a CloudResource describing the registered resource metadata

Implements eu.h2020.symbiote.client.interfaces.RHClient.

◆ getResources()

List<CloudResource> eu.h2020.symbiote.client.feign.FeignRHClient.getResources ( )

Get all registered resources (both L1 and L2)

Returns
a list of CloudResource describing the registered L1 and L2 resources

Implements eu.h2020.symbiote.client.interfaces.RHClient.

◆ removeL2Resources()

List<String> eu.h2020.symbiote.client.feign.FeignRHClient.removeL2Resources ( List< String >  resourceInternalIds)

Delete a list of L2 resources based on the internal ids

Parameters
resourceInternalIdsthe internal ids of the resources
Returns
a list of strings containing the internal ids of the resources

Implements eu.h2020.symbiote.client.interfaces.RHClient.

◆ shareL2Resources()

Map<String, List<CloudResource> > eu.h2020.symbiote.client.feign.FeignRHClient.shareL2Resources ( Map< String, Map< String, Boolean >>  input)

Share already registered L2 metadata to federations

Parameters
inputa map which has as keys the federation ids and as values another map, which has as keys the internal ids of the resources and as values a flag showing if the resource is bartered or not
Returns
a map which has as keys has the federations ids and as values a list of the resource metadata which have been shared to that federation.

Implements eu.h2020.symbiote.client.interfaces.RHClient.

◆ sync()

List<CloudResource> eu.h2020.symbiote.client.feign.FeignRHClient.sync ( )

Sync the local L1 resources with Core Registry

Returns

Implements eu.h2020.symbiote.client.interfaces.RHClient.

◆ unshareL2Resources()

Map<String, List<CloudResource> > eu.h2020.symbiote.client.feign.FeignRHClient.unshareL2Resources ( Map< String, List< String >>  input)

Unshare already registered L2 metadata from federations

Parameters
inputa map which has as keys the federation ids and as values a list of the resource internal ids where the resource is going to be unshared from
Returns
a map which has as keys the federation ids and as values a list of resource metadata that were removed from that federation.

Implements eu.h2020.symbiote.client.interfaces.RHClient.

◆ updateL1Resource()

CloudResource eu.h2020.symbiote.client.feign.FeignRHClient.updateL1Resource ( CloudResource  resource)

Update the metadata of a L1 resource

Parameters
resourcea CloudResource describing the resource metadata
Returns
a CloudResource describing the updated resource metadata

Implements eu.h2020.symbiote.client.interfaces.RHClient.

◆ updateL1Resources()

List<CloudResource> eu.h2020.symbiote.client.feign.FeignRHClient.updateL1Resources ( List< CloudResource resources)

Update the metadata of a list of L1 resources

Parameters
resourcesa list of CloudResource describing the L1 resource metadata
Returns
a list of CloudResource describing the updated resource metadata

Implements eu.h2020.symbiote.client.interfaces.RHClient.

◆ updateL2Resources()

List<CloudResource> eu.h2020.symbiote.client.feign.FeignRHClient.updateL2Resources ( List< CloudResource cloudResources)

Update a list of L2 resources

Parameters
cloudResourcesa list of CloudResource describing the L2 resources
Returns
a list of CloudResource describing the updated L2 resource metadata

Implements eu.h2020.symbiote.client.interfaces.RHClient.


The documentation for this class was generated from the following file: