Examples of ClearValueResponse


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

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

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

        ensureAssociationModifiableElseThrowException(session, targetAdapter, association);

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

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

        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

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

        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

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

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

        ensureAssociationModifiableElseThrowException(session, targetAdapter, association);

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

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
TOP
Copyright © 2018 www.massapi.com. 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.