Package org.apache.isis.runtimes.dflt.remoting.common.exchange

Examples of org.apache.isis.runtimes.dflt.remoting.common.exchange.AuthorizationRequestUsability


    public boolean isUsable(final AuthenticationSession session, final ObjectAdapter target, final Identifier identifier) {
        final IdentityData targetData = encoderDecoder.encodeIdentityData(target);

        final String idString = identifier.toIdentityString(Identifier.CLASS_MEMBERNAME_PARAMETERS);
        if (!usabilityCache.containsKey(idString)) {
            final AuthorizationResponse response = serverFacade.authorizeUsability(new AuthorizationRequestUsability(session, targetData, idString));
            final Boolean authorized = isAuthorized(response);
            usabilityCache.put(idString, authorized);
        }
        return usabilityCache.get(idString);
    }
View Full Code Here


        final IdentityData targetData = encoderDecoder.encodeIdentityData(target);

        final String idString = identifier.toIdentityString(Identifier.CLASS_MEMBERNAME_PARAMETERS);
        if (!usabilityCache.containsKey(idString)) {
            final AuthorizationResponse response =
                serverFacade.authorizeUsability(new AuthorizationRequestUsability(session, targetData, idString));
            final Boolean authorized = isAuthorized(response);
            usabilityCache.put(idString, authorized);
        }
        return usabilityCache.get(idString);
    }
View Full Code Here

TOP

Related Classes of org.apache.isis.runtimes.dflt.remoting.common.exchange.AuthorizationRequestUsability

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.