/** * Construct a new instance. * * @param processType the type of process being controlled * @param runningModeControl the controller of the process' running mode * @param configurationPersister the configuration persister * @param processState the controlled process state * @param rootResourceDefinition the root resource definition * @param prepareStep the prepare step to prepend to operation execution * @param expressionResolver the expression resolver * @deprecated Here for backwards compatibility for ModelTestModelControllerService */ @Deprecated protected AbstractControllerService(final ProcessType processType, final RunningModeControl runningModeControl, final ConfigurationPersister configurationPersister, final ControlledProcessState processState, final ResourceDefinition rootResourceDefinition, final OperationStepHandler prepareStep, final ExpressionResolver expressionResolver, final ManagedAuditLogger auditLogger, final DelegatingConfigurableAuthorizer authorizer) { this(processType, runningModeControl, configurationPersister, processState, rootResourceDefinition, null, prepareStep, expressionResolver, auditLogger, authorizer, new ManagementSecurityIdentitySupplier(), new CapabilityRegistry(processType.isServer())); }
/** * This is the constructor to use for current subsystem tests */ protected ModelTestModelControllerService(final ProcessType processType, final RunningModeControl runningModeControl, final TransformerRegistry transformerRegistry, final StringConfigurationPersister persister, final ModelTestOperationValidatorFilter validateOpsFilter, final ResourceDefinition resourceDefinition, ControlledProcessState processState, final CapabilityRegistry capabilityRegistry) { super(processType, runningModeControl, persister, processState == null ? new ControlledProcessState(true) : processState, resourceDefinition, null, ExpressionResolver.TEST_RESOLVER, AuditLogger.NO_OP_LOGGER, new DelegatingConfigurableAuthorizer(), new ManagementSecurityIdentitySupplier(), capabilityRegistry); this.persister = persister; this.transformerRegistry = transformerRegistry; this.validateOpsFilter = validateOpsFilter; this.runningModeControl = runningModeControl; } public boolean isSuccessfulBoot() {
/** * This is the constructor to use for current core model tests */ protected ModelTestModelControllerService(final ProcessType processType, final RunningModeControl runningModeControl, final TransformerRegistry transformerRegistry, final StringConfigurationPersister persister, final ModelTestOperationValidatorFilter validateOpsFilter, final DelegatingResourceDefinition rootResourceDefinition, ControlledProcessState processState, ExpressionResolver expressionResolver, CapabilityRegistry capabilityRegistry) { super(processType, runningModeControl, persister, processState == null ? new ControlledProcessState(true) : processState, rootResourceDefinition, null, expressionResolver, AuditLogger.NO_OP_LOGGER, new DelegatingConfigurableAuthorizer(), new ManagementSecurityIdentitySupplier(), capabilityRegistry); this.persister = persister; this.transformerRegistry = transformerRegistry; this.validateOpsFilter = validateOpsFilter; this.runningModeControl = runningModeControl; }
/** * Construct a new instance. * * @param processType the type of process being controlled * @param runningModeControl the controller of the process' running mode * @param configurationPersister the configuration persister * @param processState the controlled process state * @param rootResourceDefinition the root resource definition * @param prepareStep the prepare step to prepend to operation execution * @param expressionResolver the expression resolver * @deprecated Here for backwards compatibility for ModelTestModelControllerService */ @Deprecated protected AbstractControllerService(final ProcessType processType, final RunningModeControl runningModeControl, final ConfigurationPersister configurationPersister, final ControlledProcessState processState, final ResourceDefinition rootResourceDefinition, final OperationStepHandler prepareStep, final ExpressionResolver expressionResolver, final ManagedAuditLogger auditLogger, final DelegatingConfigurableAuthorizer authorizer) { this(processType, runningModeControl, configurationPersister, processState, rootResourceDefinition, null, prepareStep, expressionResolver, auditLogger, authorizer, new ManagementSecurityIdentitySupplier(), new CapabilityRegistry(processType.isServer())); }
/** * Construct a new instance. * * @param processType the type of process being controlled * @param runningModeControl the controller of the process' running mode * @param configurationPersister the configuration persister * @param processState the controlled process state * @param rootResourceDefinition the root resource definition * @param prepareStep the prepare step to prepend to operation execution * @param expressionResolver the expression resolver * * @deprecated Here for backwards compatibility for ModelTestModelControllerService */ @Deprecated protected AbstractControllerService(final ProcessType processType, final RunningModeControl runningModeControl, final ConfigurationPersister configurationPersister, final ControlledProcessState processState, final ResourceDefinition rootResourceDefinition, final OperationStepHandler prepareStep, final ExpressionResolver expressionResolver) { this(processType, runningModeControl, configurationPersister, processState, rootResourceDefinition, null, prepareStep, expressionResolver, AuditLogger.NO_OP_LOGGER, new DelegatingConfigurableAuthorizer(), new ManagementSecurityIdentitySupplier(), new CapabilityRegistry(processType.isServer())); }
/** * Construct a new instance. * Simplified constructor for test case subclasses. * * @param processType the type of process being controlled * @param runningModeControl the controller of the process' running mode * @param configurationPersister the configuration persister * @param processState the controlled process state * @param rootDescriptionProvider the root description provider * @param prepareStep the prepare step to prepend to operation execution * @param expressionResolver the expression resolver * * @deprecated Here for backwards compatibility for ModelTestModelControllerService */ @Deprecated protected AbstractControllerService(final ProcessType processType, final RunningModeControl runningModeControl, final ConfigurationPersister configurationPersister, final ControlledProcessState processState, final DescriptionProvider rootDescriptionProvider, final OperationStepHandler prepareStep, final ExpressionResolver expressionResolver) { this(processType, runningModeControl, configurationPersister, processState, null, rootDescriptionProvider, prepareStep, expressionResolver, AuditLogger.NO_OP_LOGGER, new DelegatingConfigurableAuthorizer(), new ManagementSecurityIdentitySupplier(), new CapabilityRegistry(processType.isServer())); }
/** * Construct a new instance. * Simplified constructor for test case subclasses. * * @param processType the type of process being controlled * @param runningModeControl the controller of the process' running mode * @param configurationPersister the configuration persister * @param processState the controlled process state * @param rootDescriptionProvider the root description provider * @param prepareStep the prepare step to prepend to operation execution * @param expressionResolver the expression resolver * * @deprecated Here for backwards compatibility for ModelTestModelControllerService */ @Deprecated protected AbstractControllerService(final ProcessType processType, final RunningModeControl runningModeControl, final ConfigurationPersister configurationPersister, final ControlledProcessState processState, final DescriptionProvider rootDescriptionProvider, final OperationStepHandler prepareStep, final ExpressionResolver expressionResolver) { this(processType, runningModeControl, configurationPersister, processState, null, rootDescriptionProvider, prepareStep, expressionResolver, AuditLogger.NO_OP_LOGGER, new DelegatingConfigurableAuthorizer(), new ManagementSecurityIdentitySupplier(), new CapabilityRegistry(processType.isServer())); }
/** * Construct a new instance. * * @param processType the type of process being controlled * @param runningModeControl the controller of the process' running mode * @param configurationPersister the configuration persister * @param processState the controlled process state * @param rootResourceDefinition the root resource definition * @param prepareStep the prepare step to prepend to operation execution * @param expressionResolver the expression resolver * * @deprecated Here for backwards compatibility for ModelTestModelControllerService */ @Deprecated protected AbstractControllerService(final ProcessType processType, final RunningModeControl runningModeControl, final ConfigurationPersister configurationPersister, final ControlledProcessState processState, final ResourceDefinition rootResourceDefinition, final OperationStepHandler prepareStep, final ExpressionResolver expressionResolver) { this(processType, runningModeControl, configurationPersister, processState, rootResourceDefinition, null, prepareStep, expressionResolver, AuditLogger.NO_OP_LOGGER, new DelegatingConfigurableAuthorizer(), new ManagementSecurityIdentitySupplier(), new CapabilityRegistry(processType.isServer())); }
public Configuration(final ServerEnvironment serverEnvironment) { assert serverEnvironment != null : "serverEnvironment is null"; this.serverEnvironment = serverEnvironment; this.runningModeControl = serverEnvironment.getRunningModeControl(); this.auditLogger = serverEnvironment.createAuditLogger(); this.authorizer = new DelegatingConfigurableAuthorizer(); this.securityIdentitySupplier = new ManagementSecurityIdentitySupplier(); this.extensionRegistry = new ExtensionRegistry(serverEnvironment.getLaunchType().getProcessType(), runningModeControl, this.auditLogger, authorizer, securityIdentitySupplier, RuntimeHostControllerInfoAccessor.SERVER); this.capabilityRegistry = new CapabilityRegistry(true); this.startTime = serverEnvironment.getStartTime(); }
public Configuration(final ServerEnvironment serverEnvironment) { assert serverEnvironment != null : "serverEnvironment is null"; this.serverEnvironment = serverEnvironment; this.runningModeControl = serverEnvironment.getRunningModeControl(); this.auditLogger = serverEnvironment.createAuditLogger(); this.authorizer = new DelegatingConfigurableAuthorizer(); this.securityIdentitySupplier = new ManagementSecurityIdentitySupplier(); this.extensionRegistry = new ExtensionRegistry(serverEnvironment.getLaunchType().getProcessType(), runningModeControl, this.auditLogger, authorizer, securityIdentitySupplier, RuntimeHostControllerInfoAccessor.SERVER); this.capabilityRegistry = new CapabilityRegistry(true); this.startTime = serverEnvironment.getStartTime(); }
final ManagedAuditLogger auditLogger = createAuditLogger(environment); final DelegatingConfigurableAuthorizer authorizer = new DelegatingConfigurableAuthorizer(); final ManagementSecurityIdentitySupplier securityIdentitySupplier = new ManagementSecurityIdentitySupplier(); final RuntimeHostControllerInfoAccessor hostControllerInfoAccessor = new DomainHostControllerInfoAccessor(hostControllerInfo); final ProcessType processType = environment.getProcessType();
final ManagedAuditLogger auditLogger = createAuditLogger(environment); final DelegatingConfigurableAuthorizer authorizer = new DelegatingConfigurableAuthorizer(); final ManagementSecurityIdentitySupplier securityIdentitySupplier = new ManagementSecurityIdentitySupplier(); final RuntimeHostControllerInfoAccessor hostControllerInfoAccessor = new DomainHostControllerInfoAccessor(hostControllerInfo); final ProcessType processType = environment.getProcessType();