public class ContentAdd extends AbstractAddStepHandler
| Modifier and Type | Field and Description |
|---|---|
protected ContentRepository |
contentRepository |
protected ParametersValidator |
managedContentValidator |
protected ParametersValidator |
validator |
attributes| Constructor and Description |
|---|
ContentAdd(ContentRepository contentRepository,
DeploymentFileRepository remoteRepository) |
| Modifier and Type | Method and Description |
|---|---|
protected static OperationFailedException |
createFailureException(String msg) |
protected static InputStream |
getInputStream(OperationContext context,
org.jboss.dmr.ModelNode operation) |
protected void |
performRuntime(OperationContext context,
org.jboss.dmr.ModelNode operation,
org.jboss.dmr.ModelNode model,
ServiceVerificationHandler verificationHandler,
List<org.jboss.msc.service.ServiceController<?>> newControllers)
Make any runtime changes necessary to effect the changes indicated by the given
operation. |
protected void |
populateModel(org.jboss.dmr.ModelNode operation,
org.jboss.dmr.ModelNode model)
Populate the given node in the persistent configuration model based on the values in the given operation.
|
protected void |
populateModel(OperationContext context,
org.jboss.dmr.ModelNode operation,
Resource resource)
Populate the given resource in the persistent configuration model based on the values in the given operation.
|
protected static void |
validateOnePieceOfContent(org.jboss.dmr.ModelNode content) |
createResource, execute, populateModel, requiresRuntime, requiresRuntimeVerification, rollbackRuntimeprotected final ContentRepository contentRepository
protected final ParametersValidator validator
protected final ParametersValidator managedContentValidator
public ContentAdd(ContentRepository contentRepository, DeploymentFileRepository remoteRepository)
protected void populateModel(OperationContext context, org.jboss.dmr.ModelNode operation, Resource resource) throws OperationFailedException
AbstractAddStepHandler
This default implementation simply calls AbstractAddStepHandler.populateModel(ModelNode, Resource).
populateModel in class AbstractAddStepHandlercontext - the operation contextoperation - the operationresource - the resource that corresponds to the address of operationOperationFailedException - if operation is invalid or populating the model otherwise failsprotected void populateModel(org.jboss.dmr.ModelNode operation,
org.jboss.dmr.ModelNode model)
throws OperationFailedException
AbstractAddStepHandlerpopulateModel in class AbstractAddStepHandleroperation - the operationmodel - persistent configuration model node that corresponds to the address of operationOperationFailedException - if operation is invalid or populating the model otherwise failsprotected void performRuntime(OperationContext context, org.jboss.dmr.ModelNode operation, org.jboss.dmr.ModelNode model, ServiceVerificationHandler verificationHandler, List<org.jboss.msc.service.ServiceController<?>> newControllers) throws OperationFailedException
AbstractAddStepHandleroperation. Executes
after AbstractAddStepHandler.populateModel(org.jboss.dmr.ModelNode, org.jboss.dmr.ModelNode), so the given model
parameter will reflect any changes made in that method.
This default implementation does nothing.
performRuntime in class AbstractAddStepHandlercontext - the operation contextoperation - the operation being executedmodel - persistent configuration model node that corresponds to the address of operationverificationHandler - step handler that can be added as a listener to any new services installed in order to
validate the services installed correctly during the
VERIFY stagenewControllers - holder for the ServiceController for any new services installed by the method. The
method should add the ServiceController for any new services to this list. If the
overall operation needs to be rolled back, the list will be used in
AbstractAddStepHandler.rollbackRuntime(OperationContext, ModelNode, ModelNode, java.util.List) to automatically removed
the newly added servicesOperationFailedException - if operation is invalid or updating the runtime otherwise failsprotected static void validateOnePieceOfContent(org.jboss.dmr.ModelNode content)
throws OperationFailedException
OperationFailedExceptionprotected static OperationFailedException createFailureException(String msg)
protected static InputStream getInputStream(OperationContext context, org.jboss.dmr.ModelNode operation) throws OperationFailedException
OperationFailedExceptionCopyright © 2014 JBoss by Red Hat. All rights reserved.