public HostEffectConstraint(List<String> allowed) { super(); this.user = true; this.global = false; this.hostsHolder = new HostsHolder(allowed); this.readOnly = false; this.readOnlyConstraint = new HostEffectConstraint(this.hostsHolder, true); }
public HostEffectConstraint(List<String> allowed) { super(); this.user = true; this.global = false; this.hostsHolder = new HostsHolder(allowed); this.readOnly = false; this.readOnlyConstraint = new HostEffectConstraint(this.hostsHolder, true); }
public HostEffectConstraint(List<String> allowed) { super(); this.user = true; this.global = false; this.hostsHolder = new HostsHolder(allowed); this.readOnly = false; this.readOnlyConstraint = new HostEffectConstraint(this.hostsHolder, true); }
static void addScopedRole(final String roleName, final String baseRole, final List<ModelNode> hostNodes, final WritableAuthorizerConfiguration authorizerConfiguration, final Map<String, HostEffectConstraint> constraintMap) { List<String> hosts = new ArrayList<String>(); for (ModelNode host : hostNodes) { hosts.add(host.asString()); } HostEffectConstraint constraint = new HostEffectConstraint(hosts); authorizerConfiguration.addScopedRole(new AuthorizerConfiguration.ScopedRole(roleName, baseRole, constraint)); constraintMap.put(roleName, constraint); } }
static void addScopedRole(final String roleName, final String baseRole, final List<ModelNode> hostNodes, final WritableAuthorizerConfiguration authorizerConfiguration, final Map<String, HostEffectConstraint> constraintMap) { List<String> hosts = new ArrayList<String>(); for (ModelNode host : hostNodes) { hosts.add(host.asString()); } HostEffectConstraint constraint = new HostEffectConstraint(hosts); authorizerConfiguration.addScopedRole(new AuthorizerConfiguration.ScopedRole(roleName, baseRole, constraint)); constraintMap.put(roleName, constraint); } }
private Constraint getRequiredConstraint(HostEffect hostEffect) { if (hostEffect == null || hostEffect.isHostEffectGlobal()) { return GLOBAL_REQUIRED; } return new HostEffectConstraint(hostEffect.getAffectedHosts()); }
private Constraint getRequiredConstraint(HostEffect hostEffect) { if (hostEffect == null || hostEffect.isHostEffectGlobal()) { return GLOBAL_REQUIRED; } return new HostEffectConstraint(hostEffect.getAffectedHosts()); }
private Constraint getRequiredConstraint(HostEffect hostEffect) { if (hostEffect == null || hostEffect.isHostEffectGlobal()) { return GLOBAL_REQUIRED; } return new HostEffectConstraint(hostEffect.getAffectedHosts()); }