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

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


    public void testOidForService() {
        final OidForServiceRequest request = new OidForServiceRequest(session, "domain.Service");
        serverFacade.oidForService(request);
        final IdentityData data = new DummyIdentityData();
        control.setReturnValue(new OidForServiceResponse(data));

        control.replay();
        final OidForServiceResponse response = serverFacadeProxy.oidForService(request);
        final IdentityData ret = response.getOidData();
        control.verify();

        assertEquals(data, ret);
    }
View Full Code Here


        final ObjectAdapter serviceAdapter = getPersistenceSession().getService(serviceId);
        if (serviceAdapter == null) {
            throw new IsisRemoteException("Failed to find service " + serviceId);
        }
        return new OidForServiceResponse(encoderDecoder.encodeIdentityData(serviceAdapter));
    }
View Full Code Here

        final String serviceId = request.getServiceId();

        log("oid for resource " + serviceId);

        final OidForServiceResponse response = decorated.oidForService(request);
        final IdentityData oidData = response.getOidData();
        log(" <-- data: " + dump(oidData));
        return response;
    }
View Full Code Here

        return oid;
    }

    private Oid getOidForServiceFromPersistenceLayer(final String serviceId) {
        final OidForServiceRequest request = new OidForServiceRequest(getAuthenticationSession(), serviceId);
        final OidForServiceResponse response = serverFacade.oidForService(request);
        final IdentityData data = response.getOidData();
        return data.getOid();
    }
View Full Code Here

        return oid;
    }

    private Oid getOidForServiceFromPersistenceLayer(final String serviceId) {
        final OidForServiceRequest request = new OidForServiceRequest(getAuthenticationSession(), serviceId);
        final OidForServiceResponse response = serverFacade.oidForService(request);
        final IdentityData data = response.getOidData();
        return data.getOid();
    }
View Full Code Here

        final String serviceId = request.getServiceId();

        log("oid for resource " + serviceId);

        final OidForServiceResponse response = decorated.oidForService(request);
        final IdentityData oidData = response.getOidData();
        log(" <-- data: " + dump(oidData));
        return response;
    }
View Full Code Here

        final ObjectAdapter serviceAdapter = getPersistenceSession().getService(serviceId);
        if (serviceAdapter == null) {
            throw new IsisRemoteException("Failed to find service " + serviceId);
        }
        return new OidForServiceResponse(encoderDecoder.encodeIdentityData(serviceAdapter));
    }
View Full Code Here

    public void testOidForService() {
        final OidForServiceRequest request = new OidForServiceRequest(session, "domain.Service");
        serverFacade.oidForService(request);
        final IdentityData data = new DummyIdentityData();
        control.setReturnValue(new OidForServiceResponse(data));

        control.replay();
        final OidForServiceResponse response = serverFacadeProxy.oidForService(request);
        final IdentityData ret = response.getOidData();
        control.verify();

        assertEquals(data, ret);
    }
View Full Code Here

TOP

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

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.