public static interface Data.ReadWrite<Role extends DataEntity.Role>
| Modifier and Type | Method and Description |
|---|---|
Data.Single |
create(DataEntity.Blueprint<Role> blueprint)
Creates a new entity at the current position in the inventory traversal.
|
void |
update(Role role,
DataEntity.Update update)
Persists the provided entity on the current position in the inventory traversal.
|
getgetAll, getAlldeleteData.Single create(DataEntity.Blueprint<Role> blueprint) throws EntityAlreadyExistsException, ValidationException
WriteInterfaceblueprint - the blueprint to be used to create the new entityEntityAlreadyExistsException - if the entity already existsValidationExceptionvoid update(Role role, DataEntity.Update update) throws EntityNotFoundException, ValidationException
WriteInterfacerole - the id of the entity to updateupdate - the updates to the entityEntityNotFoundException - if the entity is not found in the databaseValidationExceptionCopyright © 2015 Red Hat, Inc.. All rights reserved.