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

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

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

Acl.isSidLoaded介绍

[英]For efficiency reasons an Acl may be loaded and not contain entries for every Sid in the system. If an Acl has been loaded and does not represent every Sid, all methods of the Acl can only be used within the limited scope of the Sid instances it actually represents.

It is normal to load an Acl for only particular Sids if read-only authorization decisions are being made. However, if user interface reporting or modification of Acls are desired, an Acl should be loaded with all Sids. This method denotes whether or not the specified Sids have been loaded or not.
[中]出于效率原因,可能会加载Acl并且包含系统中每个Sid的条目。如果某个Acl已加载且不表示每个Sid,则Acl的所有方法只能在其实际表示的Sid实例的有限范围内使用。
如果正在做出只读授权决策,则通常只为特定的SID加载Acl。但是,如果需要用户界面报告或修改Acl,则Acl应与所有SID一起加载。此方法表示是否已加载指定的SID。

代码示例

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

if (acl.isSidLoaded(sids)) {
  result.put(acl.getObjectIdentity(), acl);
  aclFound = true;

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

if (acl.isSidLoaded(sids)) {
  result.put(acl.getObjectIdentity(), acl);
  aclFound = true;

相关文章