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

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


    public boolean isVisible(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 (!visibilityCache.containsKey(idString)) {
            final AuthorizationRequestVisibility request = new AuthorizationRequestVisibility(session, targetData, idString);
            final AuthorizationResponse response = serverFacade.authorizeVisibility(request);
            final Boolean authorized = isAuthorized(response);
            visibilityCache.put(idString, authorized);
        }
        return visibilityCache.get(idString);
View Full Code Here


        final Identifier identifier) {
        final IdentityData targetData = encoderDecoder.encodeIdentityData(target);

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

TOP

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

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.