for (Property attrProp : nodeDescription.require(ATTRIBUTES).asPropertyList()) { ModelNode attributeResult = new ModelNode(); Storage storage = Storage.valueOf(attrProp.getValue().get(STORAGE).asString().toUpperCase(Locale.ENGLISH)); addAttributeAuthorizationResults(attributeResult, attrProp.getName(), authResp, storage == Storage.RUNTIME); if (attributeResult.isDefined()) {
AttributeAccess.AccessType.READ_ONLY.toString() : accessType.toString(); attrNode.get(ACCESS_TYPE).set(displayedAccessType); attrNode.get(STORAGE).set(storage.toString()); if (accessType == AttributeAccess.AccessType.READ_WRITE) { Set<AttributeAccess.Flag> flags = access.getFlags();
AttributeAccess.AccessType.READ_ONLY.toString() : accessType.toString(); attrNode.get(ACCESS_TYPE).set(displayedAccessType); attrNode.get(STORAGE).set(storage.toString()); if (accessType == AttributeAccess.AccessType.READ_WRITE) { Set<AttributeAccess.Flag> flags = access.getFlags();
for (Property attrProp : nodeDescription.require(ATTRIBUTES).asPropertyList()) { ModelNode attributeResult = new ModelNode(); Storage storage = Storage.valueOf(attrProp.getValue().get(STORAGE).asString().toUpperCase(Locale.ENGLISH)); addAttributeAuthorizationResults(attributeResult, attrProp.getName(), authResp, storage == Storage.RUNTIME); if (attributeResult.isDefined()) {
for (Property attrProp : nodeDescription.require(ATTRIBUTES).asPropertyList()) { ModelNode attributeResult = new ModelNode(); Storage storage = Storage.valueOf(attrProp.getValue().get(STORAGE).asString().toUpperCase()); addAttributeAuthorizationResults(attributeResult, attrProp.getName(), authResp, storage == Storage.RUNTIME); if (attributeResult.isDefined()) {
public String validate(ModelType currentType, ModelNode currentNode, String descriptor) { if (currentNode.hasDefined(descriptor)) { try { AttributeAccess.Storage.valueOf(currentNode.get(descriptor).asString().toUpperCase(Locale.ENGLISH)); } catch (Exception e) { return "'" + descriptor + "' is not a storage type"; } } return null; } }