public interface ResourceClient
| Modifier and Type | Method and Description |
|---|---|
Long |
count()
Retrieve the number of the Resources the user has access to.
|
net.sparkworks.cargo.common.dto.ResourceDTO |
create(String systemName,
String userFriendlyName,
net.sparkworks.cargo.common.enumerator.ResourceType type,
String phenomenon,
String unit,
String controls,
UUID groupUUID)
Create a new Resource.
|
void |
delete(UUID uuid)
Delete a Resource by its UUID.
|
net.sparkworks.cargo.common.dto.ResourceDTO |
getBySystemName(String systemName)
Retrieve a Resource by its name
|
net.sparkworks.cargo.common.dto.ResourceDTO |
getByUUID(UUID uuid)
Retrieve a Resource by its UUID
|
Collection<net.sparkworks.cargo.common.dto.ResourceDTO> |
listAll()
Retrieve all the Resources the user has access to.
|
net.sparkworks.cargo.common.dto.ResourceDTO |
move(UUID resourceUuid,
UUID targetGroupUuid)
Move a Resource to a Group
|
net.sparkworks.cargo.common.dto.ResourceDTO |
update(UUID uuid,
String userFriendlyName,
net.sparkworks.cargo.common.enumerator.ResourceType typeUuid,
String controls,
UUID phenomenonUuid,
UUID unitUuid) |
Collection<net.sparkworks.cargo.common.dto.ResourceDTO> listAll()
Collection containing all the ResourceDTO the user has access to.net.sparkworks.cargo.common.dto.ResourceDTO getByUUID(UUID uuid)
uuid - the UUID of the Resource to retrieveResourceDTO foundnet.sparkworks.cargo.common.dto.ResourceDTO getBySystemName(String systemName)
systemName - the system name of the Resource to retrieveResourceDTO foundnet.sparkworks.cargo.common.dto.ResourceDTO create(String systemName, String userFriendlyName, net.sparkworks.cargo.common.enumerator.ResourceType type, String phenomenon, String unit, String controls, UUID groupUUID)
systemName - the uri of the new ResourceuserFriendlyName - the user friendly name of the Resourcetype - Sensor/Actuatorphenomenon - the phenomenon name of the Resource observesunit - the unit of measurement the Resourcecontrols - // TODO: 3/12/2018 add description to controlsgroupUUID - the UUID of the Group the new Resource will belong toResourceDTOLong count()
void delete(UUID uuid)
uuid - the UUID of the Resource to deletenet.sparkworks.cargo.common.dto.ResourceDTO move(UUID resourceUuid, UUID targetGroupUuid)
Copyright © 2018. All rights reserved.