All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.drools.repository.security.DroolsACLRegistration Maven / Gradle / Ivy

There is a newer version: 5.1.1
Show newest version
package org.drools.repository.security;

import java.util.Collection;

import org.jboss.security.acl.ACLEntry;
import org.jboss.security.acl.ACLPersistenceStrategy;
import org.jboss.security.acl.ACLRegistration;
import org.jboss.security.authorization.Resource;

public class DroolsACLRegistration
    implements
    ACLRegistration {

    private final ACLPersistenceStrategy strategy;

    public DroolsACLRegistration(ACLPersistenceStrategy strategy) {
        this.strategy = strategy;
    }

    public void deRegisterACL(Resource resource) {
        this.strategy.removeACL( resource );
    }

    public void registerACL(Resource resource) {
        this.strategy.createACL( resource );
    }

    public void registerACL(Resource resource,
                            Collection entries) {
        this.strategy.createACL( resource,
                                 entries );
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy