public interface GroupClient
| Modifier and Type | Method and Description |
|---|---|
Long |
count()
Retrieve the number of the Groups the user has access to.
|
net.sparkworks.cargo.common.dto.GroupDTO |
create(String name,
String path)
Create a new Group.
|
void |
delete(UUID uuid)
Delete a Group by its UUID.
|
net.sparkworks.cargo.common.dto.GroupDTO |
getByUUID(UUID uuid)
Retrieve a Group by its UUID if the user has access to it.
|
Collection<net.sparkworks.cargo.common.dto.GatewayDTO> |
getGroupGateways(UUID uuid)
Retrieve the Gateways that belong to a specific Group
|
Collection<net.sparkworks.cargo.common.dto.ResourceDTO> |
getGroupResources(UUID uuid)
Retrieve the Resources of a Group with specific UUID.
|
net.sparkworks.cargo.common.dto.GroupNodeDTO |
getGroupsTree()
Retrieve the Tree structure of the Groups starting from the Root
|
Collection<net.sparkworks.cargo.common.dto.GroupDTO> |
getRootGroups()
Retrieve the Main Groups of the current User
|
Collection<net.sparkworks.cargo.common.dto.GroupDTO> |
getSubGroups(UUID uuid,
int depth)
Retrieve the SubGroups of a specific Group in certain depth.
|
Collection<net.sparkworks.cargo.common.dto.GroupDTO> |
listAll()
Retrieve a list of all the Groups the user has access to.
|
void |
move(UUID sourceUUID,
UUID targetUUID)
Move a Group under another Group.
|
net.sparkworks.cargo.common.dto.GroupDTO |
update(UUID uuid,
String name)
Update a Group by its UUID
|
Collection<net.sparkworks.cargo.common.dto.GroupDTO> listAll()
Collection containing all the GroupDTO the user has access to.net.sparkworks.cargo.common.dto.GroupDTO create(String name, String path)
name - the name of the new Grouppath - the path of the Parent GroupGroupDTOnet.sparkworks.cargo.common.dto.GroupDTO getByUUID(UUID uuid)
uuid - the UUID of the Group to retrieveGroupDTO found by the UUIDLong count()
void delete(UUID uuid)
uuid - the UUID of the Group to deletevoid move(UUID sourceUUID, UUID targetUUID)
sourceUUID - the UUID of the Group to be movedtargetUUID - the UUID of the target GroupCollection<net.sparkworks.cargo.common.dto.ResourceDTO> getGroupResources(UUID uuid)
uuid - the the UUID of the Group to get the Resources fromCollection of ResourceDTOs that belong to the GroupCollection<net.sparkworks.cargo.common.dto.GroupDTO> getSubGroups(UUID uuid, int depth)
uuid - the UUID of the Group to get the SubGroups fromdepth - the depth of the SubGroupsCollection of GroupDTO containing the SubGroups of the GroupCollection<net.sparkworks.cargo.common.dto.GatewayDTO> getGroupGateways(UUID uuid)
uuid - the UUID of the GroupCollection of GatewayDTO that belong to the GroupCollection<net.sparkworks.cargo.common.dto.GroupDTO> getRootGroups()
Collection of GroupDTO that contains the main Groups of the usernet.sparkworks.cargo.common.dto.GroupDTO update(UUID uuid, String name)
uuid - the UUID of the Groupname - the new name of the GroupGroupDTOnet.sparkworks.cargo.common.dto.GroupNodeDTO getGroupsTree()
GroupNodeDTO that contains all the TreeCopyright © 2018. All rights reserved.