public interface UnitClient
| Modifier and Type | Method and Description |
|---|---|
net.sparkworks.cargo.common.dto.UnitDTO |
create(String name)
Create a Unit
|
void |
delete(UUID uuid)
Delete a Unit by its UUID
|
net.sparkworks.cargo.common.dto.UnitDTO |
getByUUID(UUID uuid)
Get a Unit by its UUID
|
Collection<net.sparkworks.cargo.common.dto.UnitDTO> |
listAll()
Retrieve all the Units
|
net.sparkworks.cargo.common.dto.UnitDTO |
query(String name,
UUID uuid)
Retrieve a Unit by its name or UUID
|
net.sparkworks.cargo.common.dto.UnitDTO |
update(UUID uuid,
String name) |
Collection<net.sparkworks.cargo.common.dto.UnitDTO> listAll()
Collection containing all the UnitDTO.net.sparkworks.cargo.common.dto.UnitDTO getByUUID(UUID uuid)
uuid - the UUID of the Unit to retrieveUnitDTO foundnet.sparkworks.cargo.common.dto.UnitDTO create(String name)
name - the name of the UnitUnitDTOvoid delete(UUID uuid)
uuid - the UUID of the Unit to deletenet.sparkworks.cargo.common.dto.UnitDTO query(String name, UUID uuid)
name - the name of the Unituuid - the UUID of the UnitUnitDTO foundCopyright © 2018. All rights reserved.