public interface OperationService
Operation entities. Can be injected via CDI into managed beans as follows:
@Inject OperationService operationService;
Concrete implementations do not hold any state, but it's advised to get an instance through CDI or as an EJB.| Modifier and Type | Interface and Description |
|---|---|
static interface |
OperationService.Setup
Convenience builder-style interface for setting up operations with the required roles.
|
| Modifier and Type | Method and Description |
|---|---|
Operation |
getById(UUID id)
Retrieves the operation by its ID
|
Operation |
getByName(String name)
Retrieves the
Operation object for the given name |
Operation |
produceOperationByName(javax.enterprise.inject.spi.InjectionPoint injectionPoint)
CDI producer method for Operation beans annotated with
NamedOperation. |
OperationService.Setup |
setup(Operation operation)
Returns a builder-style instance for fluidly assigning permitted roles for a given operation.
|
OperationService.Setup |
setup(String operationName)
Returns a builder-style instance for fluidly assigning permitted roles for an operation with the given name.
|
Operation getByName(String name)
Operation object for the given namename - unique operation nameIllegalStateException - if more than one operation exists for the given nameOperation getById(UUID id)
id - the operation's IDOperationService.Setup setup(Operation operation)
OperationService.Setup instance.OperationService.Setup setup(String operationName)
If no operations are found by that name, a new one is created.
operationName - the operation nameOperation produceOperationByName(javax.enterprise.inject.spi.InjectionPoint injectionPoint)
NamedOperation. This method is not intended to be called by
consumers of the API.injectionPoint - the CDI InjectionPointCopyright © 2015 Red Hat, Inc.. All rights reserved.