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

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


    public void testHasInstances() {
        final HasInstancesRequest request = new HasInstancesRequest(session, "pkg.Class");
        serverFacade.hasInstances(request);
        final boolean data = true;
        control.setReturnValue(new HasInstancesResponse(data));

        control.replay();
        final HasInstancesResponse response = serverFacadeProxy.hasInstances(request);
        final boolean ret = response.hasInstances();
        control.verify();

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


        if (LOG.isDebugEnabled()) {
            LOG.debug("request hasInstances of " + specificationName + " for " + session);
        }
        final boolean hasInstances = getPersistenceSession().hasInstances(getSpecification(specificationName));
        return new HasInstancesResponse(hasInstances);
    }
View Full Code Here

    public HasInstancesResponse hasInstances(final HasInstancesRequest request) {

        final String specificationName = request.getSpecificationName();

        log("has instances " + specificationName);
        final HasInstancesResponse response = decorated.hasInstances(request);
        final boolean hasInstances = response.hasInstances();
        log(" <-- instances: " + (hasInstances ? "yes" : "no"));
        return response;
    }
View Full Code Here

        final String specFullName = specification.getFullIdentifier();
        return getTransactionManager().executeWithinTransaction(new TransactionalClosureWithReturnAbstract<Boolean>() {
            @Override
            public Boolean execute() {
                final HasInstancesRequest request = new HasInstancesRequest(getAuthenticationSession(), specFullName);
                final HasInstancesResponse response = serverFacade.hasInstances(request);
                return response.hasInstances();
            }
        });
    }
View Full Code Here

        final String specFullName = specification.getFullIdentifier();
        return getTransactionManager().executeWithinTransaction(new TransactionalClosureWithReturnAbstract<Boolean>() {
            @Override
            public Boolean execute() {
                final HasInstancesRequest request = new HasInstancesRequest(getAuthenticationSession(), specFullName);
                final HasInstancesResponse response = serverFacade.hasInstances(request);
                return response.hasInstances();
            }
        });
    }
View Full Code Here

    public HasInstancesResponse hasInstances(final HasInstancesRequest request) {

        final String specificationName = request.getSpecificationName();

        log("has instances " + specificationName);
        final HasInstancesResponse response = decorated.hasInstances(request);
        final boolean hasInstances = response.hasInstances();
        log(" <-- instances: " + (hasInstances ? "yes" : "no"));
        return response;
    }
View Full Code Here

        if (LOG.isDebugEnabled()) {
            LOG.debug("request hasInstances of " + specificationName + " for " + session);
        }
        final boolean hasInstances = getPersistenceSession().hasInstances(getSpecification(specificationName));
        return new HasInstancesResponse(hasInstances);
    }
View Full Code Here

    public void testHasInstances() {
        final HasInstancesRequest request = new HasInstancesRequest(session, "pkg.Class");
        serverFacade.hasInstances(request);
        final boolean data = true;
        control.setReturnValue(new HasInstancesResponse(data));

        control.replay();
        final HasInstancesResponse response = serverFacadeProxy.hasInstances(request);
        final boolean ret = response.hasInstances();
        control.verify();

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

TOP

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

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.