Package org.apache.sling.jcr.jackrabbit.server.security.accessmanager

Examples of org.apache.sling.jcr.jackrabbit.server.security.accessmanager.AccessManagerPluginFactory


        return super.canAccess(workspaceName);
    }

    private boolean sanityCheck() throws RepositoryException {
        if (this.accessManagerPlugin == null) {
            AccessManagerPluginFactory factory = this.accessManagerFactoryTracker.getFactory(this);
            if (factory == null) {
                if ( pluginWarning  == 0 ) {
                    pluginWarning++;
                    log.warn("No pluggable AccessManager available, falling back to DefaultAccessManager");
                } else {
                    log.debug("No pluggable AccessManager available, falling back to DefaultAccessManager");
                }
                return false;

            }
            this.accessManagerPlugin = factory.getAccessManager();
            try {
                this.accessManagerPlugin.init(this.subject, this.session);
            } catch (Exception e) {
                throw new RepositoryException(e);
            }
View Full Code Here


        }
    }

    private boolean sanityCheck() throws RepositoryException {
        if (this.accessManagerPlugin == null) {
            AccessManagerPluginFactory factory = this.accessManagerFactoryTracker.getFactory(this);
            if (factory == null) {
                log.warn("No pluggable AccessManager available, falling back to DefaultAccessManager");
                return false;

            } else {
                this.accessManagerPlugin = factory.getAccessManager();
                try {
                    this.accessManagerPlugin.init(this.subject, this.session);
                } catch (Exception e) {
                    throw new RepositoryException(e);
                }
View Full Code Here

TOP

Related Classes of org.apache.sling.jcr.jackrabbit.server.security.accessmanager.AccessManagerPluginFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.