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

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


     */
    @Test
    public void testClearAssociation() {
        IsisContext.getTransactionManager().startTransaction();
        final ClearValueRequest request = new ClearValueRequest(session, "name", movieData);
        final ClearValueResponse response = server.clearValue(request);
        final ObjectData[] updatesData = response.getUpdates();
        IsisContext.getTransactionManager().endTransaction();

        nameField.assertFieldEmpty(object);
        assertEquals(0, updatesData.length);
    }
View Full Code Here


        final OneToOneAssociation association = (OneToOneAssociation) targetAdapter.getSpecification().getAssociation(fieldIdentifier);

        ensureAssociationModifiableElseThrowException(session, targetAdapter, association);

        association.clearAssociation(targetAdapter);
        return new ClearValueResponse(getUpdates());
    }
View Full Code Here

        final String fieldIdentifier = request.getFieldIdentifier();
        final IdentityData target = request.getTarget();

        log("clear value " + fieldIdentifier + indentedNewLine() + "target: " + dump(target));
        final ClearValueResponse response = decorated.clearValue(request);
        final ObjectData[] updates = response.getUpdates();
        log("  <-- changes: " + dump(updates));
        return response;
    }
View Full Code Here

        final String fieldIdentifier = request.getFieldIdentifier();
        final IdentityData target = request.getTarget();

        log("clear value " + fieldIdentifier + indentedNewLine() + "target: " + dump(target));
        final ClearValueResponse response = decorated.clearValue(request);
        final ObjectData[] updates = response.getUpdates();
        log("  <-- changes: " + dump(updates));
        return response;
    }
View Full Code Here

            (OneToOneAssociation) targetAdapter.getSpecification().getAssociation(fieldIdentifier);

        ensureAssociationModifiableElseThrowException(session, targetAdapter, association);

        association.clearAssociation(targetAdapter);
        return new ClearValueResponse(getUpdates());
    }
View Full Code Here

     */
    @Test
    public void testClearAssociation() {
        IsisContext.getTransactionManager().startTransaction();
        final ClearValueRequest request = new ClearValueRequest(session, "name", movieData);
        final ClearValueResponse response = server.clearValue(request);
        final ObjectData[] updatesData = response.getUpdates();
        IsisContext.getTransactionManager().endTransaction();

        nameField.assertFieldEmpty(object);
        assertEquals(0, updatesData.length);
    }
View Full Code Here

TOP

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

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.