Permalink
Comparing changes
Open a pull request
- 13 commits
- 11 files changed
- 0 commit comments
- 9 contributors
Commits on Apr 15, 2019
Commits on Apr 28, 2019
…them out later. Also resolve some IDE warns in the class.
Commits on Apr 29, 2019
Unified
Split
Showing
with
298 additions
and 303 deletions.
- +12 −6 controller/src/main/java/org/jboss/as/controller/operations/MultistepUtil.java
- +1 −3 controller/src/main/java/org/jboss/as/controller/operations/validation/EnumValidator.java
- +95 −0 core-galleon-pack/pom.xml
- +0 −3 core-galleon-pack/src/main/resources/packages/bin/package.xml
- +1 −1 domain-http/interface/src/main/java/org/jboss/as/domain/http/server/ManagementHttpServer.java
- +9 −0 domain-management/src/main/java/org/jboss/as/domain/management/SecurityRealm.java
- +29 −36 host-controller/src/main/java/org/jboss/as/host/controller/operations/HttpManagementAddHandler.java
- +4 −4 pom.xml
- +19 −27 server/src/main/java/org/jboss/as/server/mgmt/HttpShutdownService.java
- +97 −182 server/src/main/java/org/jboss/as/server/mgmt/UndertowHttpManagementService.java
- +31 −41 server/src/main/java/org/jboss/as/server/operations/HttpManagementAddHandler.java
| @@ -65,7 +65,10 @@ private MultistepUtil() {} | ||
| * in the {@code operations} list. Cannot be {@code null} but may be empty in which case this method will | ||
| * create the response nodes and add them to this list. | ||
| * @throws OperationFailedException if there is a problem registering a step for any of the operations | ||
| * | ||
| * @deprecated Do not use. Will be removed. | ||
| */ | ||
| @Deprecated | ||
| public static void recordOperationSteps(final OperationContext context, final List<ModelNode> operations, | ||
| final List<ModelNode> responses) throws OperationFailedException { | ||
| assert responses.isEmpty() || operations.size() == responses.size(); | ||
| @@ -84,12 +87,10 @@ public static void recordOperationSteps(final OperationContext context, final Li | ||
| } | ||
| i++; | ||
| } | ||
| recordOperationSteps(context, operationMap, responseMap, OperationHandlerResolver.DEFAULT, false); | ||
| recordOperationSteps(context, operationMap, responseMap, OperationHandlerResolver.DEFAULT, false, true); | ||
|
|
||
| if (!responsesProvided) { | ||
| for (ModelNode response : responseMap.values()) { | ||
| responses.add(response); | ||
| } | ||
| responses.addAll(responseMap.values()); | ||
| } | ||
| } | ||
|
|
||
| @@ -110,8 +111,9 @@ public static void recordOperationSteps(final OperationContext context, final Li | ||
| * @param <T> the type of the keys in the maps | ||
| * @throws OperationFailedException if there is a problem registering a step for any of the operations | ||
| */ | ||
| @SuppressWarnings("unused") | ||
| public static <T> void recordOperationSteps(final OperationContext context, final Map<T, ModelNode> operations, | ||
| final Map<T, ModelNode> responses) throws OperationFailedException { | ||
| final Map<T, ModelNode> responses) throws OperationFailedException { | ||
| recordOperationSteps(context, operations, responses, OperationHandlerResolver.DEFAULT, false, true); | ||
| } | ||
|
|
||
| @@ -132,7 +134,9 @@ public static void recordOperationSteps(final OperationContext context, final Li | ||
| * | ||
| * @throws OperationFailedException if there is a problem registering a step for any of the operations | ||
| * | ||
| * @deprecated Do not use. Will be removed. | ||
| */ | ||
| @Deprecated | ||
| public static <T> void recordOperationSteps(final OperationContext context, | ||
| final Map<T, ModelNode> operations, | ||
| final Map<T, ModelNode> responses, | ||
| @@ -155,7 +159,9 @@ public static void recordOperationSteps(final OperationContext context, final Li | ||
| * @param handlerResolver an object that can provide the {@code OperationStepHandler} to use for the operation | ||
| * @param adjustAddresses {@code true} if the address of each operation should be adjusted to become a child of the context's | ||
| * {@link OperationContext#getCurrentAddress() current address} | ||
| * @param rejectPrivateOperations | ||
| * @param rejectPrivateOperations {@code true} if an {@link OperationFailedException} should be thrown if the | ||
| * {@link OperationEntry} for any of the {@code operations} is | ||
| * {@link OperationEntry.EntryType#PRIVATE} | ||
| * | ||
| * @throws OperationFailedException if there is a problem registering a step for any of the operations | ||
| * | ||
| @@ -234,10 +234,8 @@ public void validateParameter(String parameterName, ModelNode value) throws Oper | ||
| throw ControllerLogger.ROOT_LOGGER.invalidEnumValue(tuString, parameterName, toStringMap.keySet()); | ||
| } | ||
| // Hack to store the allowed value in the model, not the user input | ||
| try { | ||
| if (!value.isProtected()) { | ||
| value.set(enumValue.toString()); | ||
| } catch (Exception e) { | ||
| // node must be protected. | ||
| } | ||
| } | ||
| } | ||
Oops, something went wrong.