Package org.apache.lenya.ac

Examples of org.apache.lenya.ac.Identity.belongsTo()


            getLogger().debug("Trying to authorize identity: " + identity);
        }

        boolean authorized;

        if (identity.belongsTo(getAccreditableManager())) {
            authorized = authorizePolicy(identity, request);
        } else {
            getLogger().debug(
                "Identity ["
                    + identity
View Full Code Here


            getLogger().debug("Trying to authorize identity: " + identity);
        }

        boolean authorized;

        if (identity.belongsTo(getAccreditableManager())) {
            authorized = authorizePolicy(identity, request, webappUrl);
        } else {
            getLogger().debug(
                "Identity ["
                    + identity
View Full Code Here

        String webappUrl = ServletHelper.getWebappURI(request);
        Session session = request.getSession(true);
        Identity identity = (Identity) session.getAttribute(Identity.class.getName());

        Role[] roles;
        if (identity.belongsTo(this.accreditableManager)) {
            roles = this.policyManager.getGrantedRoles(this.accreditableManager, identity, webappUrl);
        } else {
            roles = new Role[0];
            getLogger().debug(
                    "No roles resolved for identity [" + identity
View Full Code Here

       
        Identity defaultIdentity = new Identity(getLogger());
        defaultIdentity.addIdentifiable(defaultUser);
       
        assertTrue(testIdentity.belongsTo(testMgr));
        assertTrue(defaultIdentity.belongsTo(defaultMgr));
       
        assertTrue(testIdentity.belongsTo(defaultMgr));
        assertTrue(defaultIdentity.belongsTo(testMgr));
    }
View Full Code Here

       
        assertTrue(testIdentity.belongsTo(testMgr));
        assertTrue(defaultIdentity.belongsTo(defaultMgr));
       
        assertTrue(testIdentity.belongsTo(defaultMgr));
        assertTrue(defaultIdentity.belongsTo(testMgr));
    }

}
View Full Code Here

            getLogger().debug("Trying to authorize identity: " + identity);
        }

        boolean authorized;

        if (identity.belongsTo(getAccreditableManager())) {
            authorized = authorizePolicy(identity, request);
        } else {
            getLogger().debug(
                "Identity ["
                    + identity
View Full Code Here

            getLogger().debug("Trying to authorize identity: " + identity);
        }

        boolean authorized;

        if (identity.belongsTo(getAccreditableManager())) {
            authorized = authorizePolicy(identity, request);
        } else {
            getLogger().debug(
                "Identity ["
                    + identity
View Full Code Here

            getLogger().debug("Trying to authorize identity: " + identity);
        }

        boolean authorized;

        if (identity.belongsTo(getAccreditableManager())) {
            authorized = authorizePolicy(identity, request);
        } else {
            getLogger().debug(
                "Identity ["
                    + identity
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.