Class ReadEnvironment
- java.lang.Object
-
- org.jboss.hal.client.bootstrap.tasks.ReadEnvironment
-
- All Implemented Interfaces:
Task<FlowContext>
public final class ReadEnvironment extends Object implements Task<FlowContext>
Reads important information from the root resource like product name and version, operation mode and management version. Executes the:whoamioperation to get the current user / roles.
-
-
Constructor Summary
Constructors Constructor Description ReadEnvironment(Dispatcher dispatcher, Environment environment, User user)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description elemental2.promise.Promise<FlowContext>apply(FlowContext context)Executes the task.
-
-
-
Constructor Detail
-
ReadEnvironment
@Inject public ReadEnvironment(Dispatcher dispatcher, Environment environment, User user)
-
-
Method Detail
-
apply
public elemental2.promise.Promise<FlowContext> apply(FlowContext context)
Description copied from interface:TaskExecutes the task.- Specified by:
applyin interfaceTask<FlowContext>- Parameters:
context- the context shared between tasks- Returns:
- a promise containing the shared context
-
-