Java Code Examples for org.jboss.as.controller.AttributeDefinition#getAccessConstraints()

The following examples show how to use org.jboss.as.controller.AttributeDefinition#getAccessConstraints() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ConcreteResourceRegistration.java    From wildfly-core with GNU Lesser General Public License v2.1 5 votes vote down vote up
private void registerAttributeAccessConstraints(AttributeDefinition ad) {
    if (constraintUtilizationRegistry != null) {
        for (AccessConstraintDefinition acd : ad.getAccessConstraints()) {
            constraintUtilizationRegistry.registerAccessConstraintAttributeUtilization(acd.getKey(), getPathAddress(), ad.getName());
        }
    }
}
 
Example 2
Source File: TargetAttribute.java    From wildfly-core with GNU Lesser General Public License v2.1 4 votes vote down vote up
public List<AccessConstraintDefinition> getAccessConstraints() {
    AttributeDefinition def = getAttributeDefinition();
    return def != null ? def.getAccessConstraints() : NO_CONSTRAINTS;
}