if (currentUser.equals(acl.getOwner()) && ((changeType == CHANGE_GENERAL) || (changeType == CHANGE_OWNERSHIP))) { return;
if (currentUser.equals(acl.getOwner()) && ((changeType == CHANGE_GENERAL) || (changeType == CHANGE_OWNERSHIP))) { return;
Assert.notNull(userDetailsService, "userDetailsService is null"); final Sid ownerSid = acl.getOwner(); final String ownerTenantId = getTenantFromSid(ownerSid); if(ownerTenantId == MultiTenancySupport.NO_TENANT) {
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; }