org.wildfly.security.authz.Attributes.entries()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(4.5k)|赞(0)|评价(0)|浏览(126)

本文整理了Java中org.wildfly.security.authz.Attributes.entries()方法的一些代码示例,展示了Attributes.entries()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Attributes.entries()方法的具体详情如下:
包路径:org.wildfly.security.authz.Attributes
类名称:Attributes
方法名:entries

Attributes.entries介绍

[英]Get the entry collection. Changes to the entry collection will modify this attribute collection, if it is writable. The returned entries will remain up to date with the state of this collection.
[中]获取条目集合。对条目集合的更改将修改此属性集合(如果它是可写的)。返回的条目将保持此集合状态的最新状态。

代码示例

代码示例来源:origin: wildfly/wildfly

public Iterator<String> iterator() {
  final Iterator<Entry> entries = entries().iterator();
  return new Iterator<String>() {
    public boolean hasNext() {
      return entries.hasNext();
    }
    public String next() {
      return entries.next().getKey();
    }
    public void remove() {
      entries.remove();
    }
  };
}

代码示例来源:origin: wildfly/wildfly

public boolean removeAll(final Collection<?> c) {
  boolean changed = false;
  for (Entry entries : entries()) {
    changed = entries.removeAll(c) || changed;
  }
  return changed;
}

代码示例来源:origin: wildfly/wildfly

public boolean isEmpty() {
  for (Entry entries : entries()) {
    if (! entries.isEmpty()) {
      return false;
    }
  }
  return true;
}

代码示例来源:origin: wildfly/wildfly

public int size() {
    int size = 0;
    for (Entry entries : entries()) {
      size += entries.size();
    }
    return size;
  }
};

代码示例来源:origin: wildfly/wildfly

public boolean retainAll(final Collection<?> c) {
  boolean changed = false;
  for (Entry entries : entries()) {
    changed = entries.retainAll(c) || changed;
  }
  return changed;
}

代码示例来源:origin: wildfly/wildfly

public Iterator<String> iterator() {
  final Iterator<Entry> entries = entries().iterator();
  return new Iterator<String>() {
    private Iterator<String> values;

代码示例来源:origin: wildfly/wildfly

/**
 * Construct a new instance copying mappings from an original attributes collection.
 *
 * @param original the original collection
 */
public MapAttributes(Attributes original) {
  Assert.checkNotNullParam("original", original);
  Map<String, EntriesList> map = new HashMap<>(original.size());
  for (Entry entry : original.entries()) {
    final EntriesList entriesList = new EntriesList(entry);
    if (! entriesList.isEmpty()) map.put(entry.getKey(), entriesList);
  }
  this.map = map;
}

代码示例来源:origin: wildfly/wildfly

streamWriter.writeEndElement();
final Iterator<Attributes.Entry> entryIter = newIdentity.getAttributes().entries().iterator();
if (entryIter.hasNext()) {
  streamWriter.writeCharacters("\n    ");

代码示例来源:origin: wildfly/wildfly

for(org.wildfly.security.authz.Attributes.Entry entry : attributes.entries()) {
  if (identityMapping.attributes.stream().filter(mp -> mp.getName().equals(entry.getKey())).count() == 0) {
    throw log.ldapRealmCannotSetAttributeWithoutMapping(entry.getKey(), name);

代码示例来源:origin: org.wildfly.security/wildfly-elytron

public boolean retainAll(final Collection<?> c) {
  boolean changed = false;
  for (Entry entries : entries()) {
    changed = entries.retainAll(c) || changed;
  }
  return changed;
}

代码示例来源:origin: org.jboss.eap/wildfly-client-all

public boolean removeAll(final Collection<?> c) {
  boolean changed = false;
  for (Entry entries : entries()) {
    changed = entries.removeAll(c) || changed;
  }
  return changed;
}

代码示例来源:origin: org.jboss.eap/wildfly-client-all

public int size() {
    int size = 0;
    for (Entry entries : entries()) {
      size += entries.size();
    }
    return size;
  }
};

代码示例来源:origin: org.wildfly.security/wildfly-elytron-auth-server

public boolean isEmpty() {
  for (Entry entries : entries()) {
    if (! entries.isEmpty()) {
      return false;
    }
  }
  return true;
}

代码示例来源:origin: org.wildfly.security/wildfly-elytron

public int size() {
    int size = 0;
    for (Entry entries : entries()) {
      size += entries.size();
    }
    return size;
  }
};

代码示例来源:origin: org.wildfly.security/wildfly-elytron

public boolean removeAll(final Collection<?> c) {
  boolean changed = false;
  for (Entry entries : entries()) {
    changed = entries.removeAll(c) || changed;
  }
  return changed;
}

代码示例来源:origin: org.wildfly.security/wildfly-elytron

public boolean isEmpty() {
  for (Entry entries : entries()) {
    if (! entries.isEmpty()) {
      return false;
    }
  }
  return true;
}

代码示例来源:origin: org.wildfly.security/wildfly-elytron-auth-server

public boolean retainAll(final Collection<?> c) {
  boolean changed = false;
  for (Entry entries : entries()) {
    changed = entries.retainAll(c) || changed;
  }
  return changed;
}

代码示例来源:origin: org.wildfly.security/wildfly-elytron-auth-server

public int size() {
    int size = 0;
    for (Entry entries : entries()) {
      size += entries.size();
    }
    return size;
  }
};

代码示例来源:origin: org.wildfly.security/wildfly-elytron-auth-server

public boolean removeAll(final Collection<?> c) {
  boolean changed = false;
  for (Entry entries : entries()) {
    changed = entries.removeAll(c) || changed;
  }
  return changed;
}

代码示例来源:origin: org.jboss.eap/wildfly-client-all

public boolean isEmpty() {
  for (Entry entries : entries()) {
    if (! entries.isEmpty()) {
      return false;
    }
  }
  return true;
}

相关文章