public static ServiceName getSecurityDomainServiceName(PathAddress pathAddress) { PathAddress domain = Util.getParentAddressByKey(pathAddress, Constants.SECURITY_DOMAIN); if (domain == null) throw SecurityLogger.ROOT_LOGGER.addressDidNotContainSecurityDomain(); return SecurityDomainService.SERVICE_NAME.append(domain.getLastElement().getValue()); }
protected PathAddress getParentAddress(PathAddress address) { return Util.getParentAddressByKey(address, parentKeyName); }
protected PathAddress getParentAddress(PathAddress address) { return Util.getParentAddressByKey(address, parentKeyName); }
protected PathAddress getParentAddress(PathAddress address) { return Util.getParentAddressByKey(address, parentKeyName); }
protected PathAddress getParentAddress(PathAddress address) { return Util.getParentAddressByKey(address, parentKeyName); }
protected PathAddress getParentAddress(PathAddress address) { return Util.getParentAddressByKey(address, parentKeyName); }
protected PathAddress getParentAddress(PathAddress address) { return Util.getParentAddressByKey(address, parentKeyName); }
protected PathAddress getParentAddress(PathAddress address) { return Util.getParentAddressByKey(address, parentKeyName); }
protected PathAddress getParentAddress(PathAddress address) { return Util.getParentAddressByKey(address, parentKeyName); }
public static ServiceName getSecurityDomainServiceName(PathAddress pathAddress) { PathAddress domain = Util.getParentAddressByKey(pathAddress, Constants.SECURITY_DOMAIN); if (domain == null) throw SecurityMessages.MESSAGES.addressDidNotContainSecurityDomain(); return SecurityDomainService.SERVICE_NAME.append(domain.getLastElement().getValue()); }
public static ServiceName getSecurityDomainServiceName(PathAddress pathAddress) { PathAddress domain = Util.getParentAddressByKey(pathAddress, Constants.SECURITY_DOMAIN); if (domain == null) throw SecurityLogger.ROOT_LOGGER.addressDidNotContainSecurityDomain(); return SecurityDomainService.SERVICE_NAME.append(domain.getLastElement().getValue()); }
public static ServiceName getSecurityDomainServiceName(PathAddress pathAddress) { PathAddress domain = Util.getParentAddressByKey(pathAddress, Constants.SECURITY_DOMAIN); if (domain == null) throw SecurityMessages.MESSAGES.addressDidNotContainSecurityDomain(); return SecurityDomainService.SERVICE_NAME.append(domain.getLastElement().getValue()); }
private void checkIfLastIdentityStore(OperationContext context) throws OperationFailedException { PathAddress parentAddress = Util.getParentAddressByKey(context.getCurrentAddress(), ModelElement.IDENTITY_CONFIGURATION.getName()); if (context.readResourceFromRoot(parentAddress, false).getChildTypes().size() == 1) { throw ROOT_LOGGER.idmNoIdentityStoreProvided(parentAddress.getLastElement().getValue()); } } }
private void checkIfLastIdentityStore(OperationContext context) throws OperationFailedException { PathAddress parentAddress = Util.getParentAddressByKey(context.getCurrentAddress(), ModelElement.IDENTITY_CONFIGURATION.getName()); if (context.readResourceFromRoot(parentAddress, false).getChildTypes().size() == 1) { throw ROOT_LOGGER.idmNoIdentityStoreProvided(parentAddress.getLastElement().getValue()); } } }
protected void validateOccurrence(OperationContext context, ModelNode operation) throws OperationFailedException { PathAddress address = PathAddress.pathAddress(operation.require(OP_ADDR)); PathAddress parentAddress = Util.getParentAddressByKey(address, this.parentElement.getName()); Set<String> elements = context.readResourceFromRoot(parentAddress, false).getChildrenNames(this.element.getName()); if (elements.size() > this.maxOccurs) { throw ROOT_LOGGER.invalidChildTypeOccurrence(parentAddress.getLastElement().toString(), this.maxOccurs, this.element .getName()); } } }
protected void validateOccurrence(OperationContext context, ModelNode operation) throws OperationFailedException { PathAddress address = PathAddress.pathAddress(operation.require(OP_ADDR)); PathAddress parentAddress = Util.getParentAddressByKey(address, this.parentElement.getName()); Set<String> elements = context.readResourceFromRoot(parentAddress, false).getChildrenNames(this.element.getName()); if (elements.size() > this.maxOccurs) { throw ROOT_LOGGER.invalidChildTypeOccurrence(parentAddress.getLastElement().toString(), this.maxOccurs, this.element .getName()); } } }