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

The following examples show how to use org.springframework.security.acls.domain.PermissionFactory. These examples are extracted from open source projects. 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 Project: kylin-on-parquet-v2   Source File: AclRecord.java    License: 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 Project: kylin   Source File: AclRecord.java    License: 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
public KylinAclPermissionEvaluator(AclService aclService, PermissionFactory permissionFactory) {
    super(aclService);
    super.setPermissionFactory(permissionFactory);
    this.kylinPermissionFactory = permissionFactory;
}
 
Example 4
Source Project: kylin   Source File: KylinAclPermissionEvaluator.java    License: Apache License 2.0 4 votes vote down vote up
public KylinAclPermissionEvaluator(AclService aclService, PermissionFactory permissionFactory) {
    super(aclService);
    super.setPermissionFactory(permissionFactory);
    this.kylinPermissionFactory = permissionFactory;
}