@PermitAll public class ResourceServiceImpl extends Object implements ResourceService
ResourceService. Consumers should get an instance of
this via CDI. This class should not be directly instantiated by the consumers.| Constructor and Description |
|---|
ResourceServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
Resource |
create(String id,
Persona persona)
|
Resource |
create(String id,
Resource parent)
Creates a new sub resource, based on a given ID and owning resource
|
Resource |
create(String id,
Resource parent,
Persona persona)
Creates a new sub resource, based on a given ID, parent and owned by the specified
Persona |
void |
delete(String id)
Removes a
Resource based on its ID. |
Resource |
get(String id)
Retrieves a
Resource based on its ID. |
public Resource get(String id)
ResourceServiceResource based on its ID.get in interface ResourceServiceid - the resource's IDResource or null if the resource doesn't exists.public Resource create(String id, Persona persona)
ResourceServicecreate in interface ResourceServiceid - the ID to be assigned to this resource or null for a new UUIDpersona - a valid owner for this resourceResourcepublic Resource create(String id, Resource parent)
ResourceServicecreate in interface ResourceServiceid - the ID to be assigned to this resource or null for a new UUIDparent - a valid resource to serve as the parent of this sub resourceResourcepublic Resource create(String id, Resource parent, Persona persona)
ResourceServicePersonacreate in interface ResourceServiceid - the ID to be assigned to this resource or null for a new UUIDparent - the resource's parent or null if the owner is providedpersona - the resource's owner or null if the parent is providedResourcepublic void delete(String id)
ResourceServiceResource based on its ID.delete in interface ResourceServiceid - the resource's IDCopyright © 2015 Red Hat, Inc.. All rights reserved.