本文整理了Java中org.springframework.security.acls.model.Acl.getOwner()
方法的一些代码示例,展示了Acl.getOwner()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Acl.getOwner()
方法的具体详情如下:
包路径:org.springframework.security.acls.model.Acl
类名称:Acl
方法名:getOwner
[英]Determines the owner of the Acl. The meaning of ownership varies by implementation and is unspecified.
[中]确定Acl的所有者。所有权的含义因实施情况而异,未具体说明。
代码示例来源:origin: spring-projects/spring-security
if (currentUser.equals(acl.getOwner())
&& ((changeType == CHANGE_GENERAL) || (changeType == CHANGE_OWNERSHIP))) {
return;
代码示例来源:origin: apache/servicemix-bundles
if (currentUser.equals(acl.getOwner())
&& ((changeType == CHANGE_GENERAL) || (changeType == CHANGE_OWNERSHIP))) {
return;
代码示例来源:origin: codeabovelab/haven-platform
Assert.notNull(userDetailsService, "userDetailsService is null");
final Sid ownerSid = acl.getOwner();
final String ownerTenantId = getTenantFromSid(ownerSid);
if(ownerTenantId == MultiTenancySupport.NO_TENANT) {
代码示例来源: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;
}
内容来源于网络,如有侵权,请联系作者删除!