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

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


            // this is need when the object store does not load the object fully
            // in the getObject() above
            getPersistenceSession().resolveImmediately(object);
        }

        return new ResolveObjectResponse(encoderDecoder.encodeCompletePersistentGraph(object));
    }
View Full Code Here


    public ResolveObjectResponse resolveImmediately(final ResolveObjectRequest request) {

        final IdentityData target = request.getTarget();

        log("resolve immediately" + dump(target));
        final ResolveObjectResponse response = decorated.resolveImmediately(request);
        final ObjectData objectData = response.getObjectData();
        log("  <-- data: " + dump(objectData));
        return response;
    }
View Full Code Here

    private void reloadFromPersistenceLayer(final IdentityData identityData) {
        getTransactionManager().executeWithinTransaction(new TransactionalClosureAbstract() {
            @Override
            public void execute() {
                final ResolveObjectRequest request = new ResolveObjectRequest(getAuthenticationSession(), identityData);
                final ResolveObjectResponse response = serverFacade.resolveImmediately(request);
                final ObjectData update = response.getObjectData();
                encoderDecoder.decode(update);
            }
        });
    }
View Full Code Here

                final ResolveObjectRequest request = new ResolveObjectRequest(getAuthenticationSession(), adapterData);
                // unlike the server-side implementation we don't invoke the
                // callbacks
                // for loading and loaded (they will already have been called in
                // the server)
                final ResolveObjectResponse response = serverFacade.resolveImmediately(request);
                final ObjectData data = response.getObjectData();
                encoderDecoder.decode(data);
            }
        });
    }
View Full Code Here

    private void reloadFromPersistenceLayer(final IdentityData identityData) {
        getTransactionManager().executeWithinTransaction(new TransactionalClosureAbstract() {
            @Override
            public void execute() {
                final ResolveObjectRequest request = new ResolveObjectRequest(getAuthenticationSession(), identityData);
                final ResolveObjectResponse response = serverFacade.resolveImmediately(request);
                final ObjectData update = response.getObjectData();
                encoderDecoder.decode(update);
            }
        });
    }
View Full Code Here

            @Override
            public void execute() {
                final ResolveObjectRequest request = new ResolveObjectRequest(getAuthenticationSession(), adapterData);
                // unlike the server-side implementation we don't invoke the callbacks
                // for loading and loaded (they will already have been called in the server)
                final ResolveObjectResponse response = serverFacade.resolveImmediately(request);
                final ObjectData data = response.getObjectData();
                encoderDecoder.decode(data);
            }
        });
    }
View Full Code Here

    public ResolveObjectResponse resolveImmediately(final ResolveObjectRequest request) {

        final IdentityData target = request.getTarget();

        log("resolve immediately" + dump(target));
        final ResolveObjectResponse response = decorated.resolveImmediately(request);
        final ObjectData objectData = response.getObjectData();
        log("  <-- data: " + dump(objectData));
        return response;
    }
View Full Code Here

        if (object.getResolveState().canChangeTo(ResolveState.RESOLVING)) {
            // this is need when the object store does not load the object fully in the getObject() above
            getPersistenceSession().resolveImmediately(object);
        }

        return new ResolveObjectResponse(encoderDecoder.encodeCompletePersistentGraph(object));
    }
View Full Code Here

TOP

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

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.