use of org.jboss.as.controller.transform.description.ResourceTransformationDescriptionBuilder in project wildfly by wildfly.
the class SecurityDomainResourceDefinition method registerTransformers_1_3_0.
static void registerTransformers_1_3_0(ResourceTransformationDescriptionBuilder parentBuilder) {
ResourceTransformationDescriptionBuilder builder = parentBuilder.addChildResource(SecurityExtension.SECURITY_DOMAIN_PATH);
AuditResourceDefinition.registerTransformers_1_3_0(builder);
}
use of org.jboss.as.controller.transform.description.ResourceTransformationDescriptionBuilder in project wildfly by wildfly.
the class SecurityExtension method registerTransformers_1_3_0.
private void registerTransformers_1_3_0(SubsystemRegistration subsystemRegistration) {
ResourceTransformationDescriptionBuilder builder = ResourceTransformationDescriptionBuilder.Factory.createSubsystemInstance();
builder.rejectChildResource(PathElement.pathElement(Constants.ELYTRON_REALM));
builder.rejectChildResource(PathElement.pathElement(Constants.ELYTRON_KEY_STORE));
builder.rejectChildResource(PathElement.pathElement(Constants.ELYTRON_TRUST_STORE));
builder.rejectChildResource(PathElement.pathElement(Constants.ELYTRON_KEY_MANAGER));
builder.rejectChildResource(PathElement.pathElement(Constants.ELYTRON_TRUST_MANAGER));
builder.addChildResource(PathElement.pathElement(Constants.SECURITY_MANAGEMENT)).getAttributeBuilder().addRejectCheck(RejectAttributeChecker.DEFINED, SecuritySubsystemRootResourceDefinition.INITIALIZE_JACC).setDiscard(DiscardAttributeChecker.UNDEFINED, SecuritySubsystemRootResourceDefinition.INITIALIZE_JACC);
SecurityDomainResourceDefinition.registerTransformers_1_3_0(builder);
TransformationDescription.Tools.register(builder.build(), subsystemRegistration, ModelVersion.create(1, 3, 0));
}
use of org.jboss.as.controller.transform.description.ResourceTransformationDescriptionBuilder in project wildfly by wildfly.
the class ResourceAdapterResourceDefinition method registerTransformers400.
static void registerTransformers400(ResourceTransformationDescriptionBuilder parentBuilder) {
ResourceTransformationDescriptionBuilder builder = parentBuilder.addChildResource(PathElement.pathElement(RESOURCEADAPTER_NAME)).getAttributeBuilder().setDiscard(DiscardAttributeChecker.UNDEFINED, WM_ELYTRON_SECURITY_DOMAIN).addRejectCheck(RejectAttributeChecker.DEFINED, WM_ELYTRON_SECURITY_DOMAIN).end();
ConnectionDefinitionResourceDefinition.registerTransformer400(builder);
}
use of org.jboss.as.controller.transform.description.ResourceTransformationDescriptionBuilder in project wildfly by wildfly.
the class ResourceAdapterResourceDefinition method registerTransformers200.
static void registerTransformers200(ResourceTransformationDescriptionBuilder parentBuilder) {
ResourceTransformationDescriptionBuilder builder = parentBuilder.addChildResource(PathElement.pathElement(RESOURCEADAPTER_NAME)).getAttributeBuilder().setDiscard(new DiscardAttributeChecker.DiscardAttributeValueChecker(false, true, new ModelNode(false)), STATISTICS_ENABLED).setDiscard(DiscardAttributeChecker.UNDEFINED, WM_ELYTRON_SECURITY_DOMAIN).addRejectCheck(RejectAttributeChecker.DEFINED, WM_ELYTRON_SECURITY_DOMAIN, STATISTICS_ENABLED).end();
ConnectionDefinitionResourceDefinition.registerTransformer200(builder);
}
use of org.jboss.as.controller.transform.description.ResourceTransformationDescriptionBuilder in project wildfly by wildfly.
the class JcaWorkManagerDefinition method registerElytronTransformers.
static void registerElytronTransformers(ResourceTransformationDescriptionBuilder parentBuilder) {
ResourceTransformationDescriptionBuilder builder = parentBuilder.addChildResource(PATH_WORK_MANAGER);
builder.getAttributeBuilder().setDiscard(new DiscardAttributeChecker.DiscardAttributeValueChecker(false, true, new ModelNode(false)), WmParameters.ELYTRON_ENABLED.getAttribute()).addRejectCheck(RejectAttributeChecker.DEFINED, WmParameters.ELYTRON_ENABLED.getAttribute()).end();
}
Aggregations