org.springframework.security.acls.domain.PermissionFactory Java Examples

The following examples show how to use org.springframework.security.acls.domain.PermissionFactory. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AclRecord.java    From kylin-on-parquet-v2 with Apache License 2.0 6 votes vote down vote up
public void init(Acl parentAcl, PermissionFactory aclPermissionFactory,
        PermissionGrantingStrategy permissionGrantingStrategy) {
    this.aclPermissionFactory = aclPermissionFactory;
    this.permissionGrantingStrategy = permissionGrantingStrategy;
    this.parentAcl = parentAcl;

    if (entries == null)
        entries = new ArrayList<>();

    // convert legacy ace
    if (legacyAceInfo != null) {
        for (LegacyAceInfo legacy : legacyAceInfo.values()) {
            entries.add(new AceImpl(legacy));
        }
        Collections.sort(entries, AceImpl.SID_ORDER);
        legacyAceInfo = null;
    }

    for (int i = 0; i < entries.size(); i++) {
        entries.get(i).init(this, i);
    }
}
 
Example #2
Source File: AclRecord.java    From kylin with Apache License 2.0 6 votes vote down vote up
public void init(Acl parentAcl, PermissionFactory aclPermissionFactory,
        PermissionGrantingStrategy permissionGrantingStrategy) {
    this.aclPermissionFactory = aclPermissionFactory;
    this.permissionGrantingStrategy = permissionGrantingStrategy;
    this.parentAcl = parentAcl;

    if (entries == null)
        entries = new ArrayList<>();

    // convert legacy ace
    if (legacyAceInfo != null) {
        for (LegacyAceInfo legacy : legacyAceInfo.values()) {
            entries.add(new AceImpl(legacy));
        }
        Collections.sort(entries, AceImpl.SID_ORDER);
        legacyAceInfo = null;
    }

    for (int i = 0; i < entries.size(); i++) {
        entries.get(i).init(this, i);
    }
}
 
Example #3
Source File: KylinAclPermissionEvaluator.java    From kylin-on-parquet-v2 with Apache License 2.0 4 votes vote down vote up
public KylinAclPermissionEvaluator(AclService aclService, PermissionFactory permissionFactory) {
    super(aclService);
    super.setPermissionFactory(permissionFactory);
    this.kylinPermissionFactory = permissionFactory;
}
 
Example #4
Source File: KylinAclPermissionEvaluator.java    From kylin with Apache License 2.0 4 votes vote down vote up
public KylinAclPermissionEvaluator(AclService aclService, PermissionFactory permissionFactory) {
    super(aclService);
    super.setPermissionFactory(permissionFactory);
    this.kylinPermissionFactory = permissionFactory;
}