public interface GatewayClient
| Modifier and Type | Method and Description |
|---|---|
Long |
count()
Retrieve the number of the Gateways the user has access to.
|
net.sparkworks.cargo.common.dto.GatewayDTO |
create(String systemName,
UUID groupUUID)
Create a new Gateway.
|
void |
delete(UUID uuid)
Delete a Gateway by its UUID.
|
net.sparkworks.cargo.common.dto.GatewayDTO |
getBySystemName(String systemName)
Retrieve a Gateway by its name if the user has access to it.
|
net.sparkworks.cargo.common.dto.GatewayDTO |
getByUUID(UUID uuid)
Retrieve a Gateway by its UUID if the user has access to it.
|
Collection<net.sparkworks.cargo.common.dto.ResourceDTO> |
getResources(UUID gatewayUuid)
Retrieve the Resources of a Gateway with specific UUID.
|
Collection<net.sparkworks.cargo.common.dto.GatewayDTO> |
listAll()
Retrieve a list of all the Gateways the user has access to.
|
Collection<net.sparkworks.cargo.common.dto.GatewayDTO> listAll()
Collection GatewayDTO containst all the Gateways the user has access to.net.sparkworks.cargo.common.dto.GatewayDTO getByUUID(UUID uuid)
uuid - the UUID of the Gateway to retrieveGatewayDTO found with the requested UUIDnet.sparkworks.cargo.common.dto.GatewayDTO getBySystemName(String systemName)
systemName - the system name of the Gateway to retrieveGatewayDTO found with the requested system namenet.sparkworks.cargo.common.dto.GatewayDTO create(String systemName, UUID groupUUID)
systemName - the name of the new GatewaygroupUUID - the Group UUID of the Group the Gateway will belong toGatewayDTOLong count()
void delete(UUID uuid)
uuid - the UUID of the Gateway to deleteCollection<net.sparkworks.cargo.common.dto.ResourceDTO> getResources(UUID gatewayUuid)
gatewayUuid - the Gateway UUID to retrieve the Resources fromCollection containing the ResourceDTOs of the GatewayCopyright © 2018. All rights reserved.