org.springframework.security.acls.model.Acl.isEntriesInheriting()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(2.0k)|赞(0)|评价(0)|浏览(211)

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

Acl.isEntriesInheriting介绍

[英]Indicates whether the ACL entries from the #getParentAcl() should flow down into the current Acl.

The mere link between an Acl and a parent Acl on its own is insufficient to cause ACL entries to inherit down. This is because a domain object may wish to have entirely independent entries, but maintain the link with the parent for navigation purposes. Thus, this method denotes whether or not the navigation relationship also extends to the actual inheritance of entries.
[中]指示来自#getParentAcl()的ACL条目是否应向下流入当前ACL。
Acl和父Acl之间单独的链接不足以导致Acl条目向下继承。这是因为域对象可能希望具有完全独立的条目,但出于导航目的,需要维护与父对象的链接。因此,此方法表示导航关系是否也扩展到条目的实际继承。

代码示例

代码示例来源:origin: spring-projects/spring-security

if (acl.isEntriesInheriting() && (acl.getParentAcl() != null)) {

代码示例来源:origin: codeabovelab/haven-platform

public Builder from(Acl aclData) {
  if(aclData instanceof MutableAcl) {
    this.setId((Long)((MutableAcl) aclData).getId());
  }
  final List<AccessControlEntry> srcEntries = aclData.getEntries();
  if(srcEntries != null) {
    final int size = srcEntries.size();
    final List<AceData> aceDatas = new ArrayList<>(size);
    for(int i = 0; i < size; ++i) {
      AccessControlEntry entry = srcEntries.get(i);
      AceData aceData = AceDataImpl.builder().from(entry).build();
      aceDatas.add(aceData);
    }
    this.setEntries(aceDatas);
  }
  this.setObjectIdentity(aclData.getObjectIdentity());
  this.setOwner(aclData.getOwner());
  Acl parentAcl = aclData.getParentAcl();
  if(parentAcl != null) {
    this.setParentAclData(AclDataImpl.builder().from(parentAcl).build());
  }
  this.setEntriesInheriting(aclData.isEntriesInheriting());
  return this;
}

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

if (acl.isEntriesInheriting() && (acl.getParentAcl() != null)) {

代码示例来源:origin: apache/servicemix-bundles

if (acl.isEntriesInheriting() && (acl.getParentAcl() != null)) {

相关文章