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

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


                        final SetAssociationResponse response = serverFacade.setAssociation(request);
                        updates = response.getUpdates();
                    } else {
                        final EncodableObjectData val = encoder.encodeAsValue(associateAdapter);
                        final SetValueRequest request = new SetValueRequest(getAuthenticationSession(), name, targetReference, val);
                        final SetValueResponse response = serverFacade.setValue(request);
                        updates = response.getUpdates();
                    }
                    encoder.decode(updates);
                }
            } catch (final ConcurrencyException e) {
                throw ProxyUtil.concurrencyException(e);
View Full Code Here


        });

        IsisContext.getTransactionManager().startTransaction();
        final SetValueRequest request = new SetValueRequest(session, "name", movieData, new DummyEncodeableObjectData("name of movie"));
        final SetValueResponse response = server.setValue(request);
        final ObjectData[] updates = response.getUpdates();
        IsisContext.getTransactionManager().endTransaction();

        nameField.assertField(object, "name of movie");
        assertEquals(0, updates.length);
    }
View Full Code Here

        final ObjectSpecification specification = association.getSpecification();
        final ObjectAdapter adapter = restoreLeafObject(encodedObject, specification);
        association.setAssociation(targetAdapter, adapter);

        return new SetValueResponse(getUpdates());
    }
View Full Code Here

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

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

                        updates = response.getUpdates();
                    } else {
                        final EncodableObjectData val = encoder.encodeAsValue(associateAdapter);
                        final SetValueRequest request =
                            new SetValueRequest(getAuthenticationSession(), name, targetReference, val);
                        final SetValueResponse response = serverFacade.setValue(request);
                        updates = response.getUpdates();
                    }
                    encoder.decode(updates);
                }
            } catch (final ConcurrencyException e) {
                throw ProxyUtil.concurrencyException(e);
View Full Code Here

        final IdentityData target = request.getTarget();
        final EncodableObjectData value = request.getValue();

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

        final ObjectSpecification specification = association.getSpecification();
        final ObjectAdapter adapter = restoreLeafObject(encodedObject, specification);
        association.setAssociation(targetAdapter, adapter);

        return new SetValueResponse(getUpdates());
    }
View Full Code Here

        });

        IsisContext.getTransactionManager().startTransaction();
        final SetValueRequest request =
            new SetValueRequest(session, "name", movieData, new DummyEncodeableObjectData("name of movie"));
        final SetValueResponse response = server.setValue(request);
        final ObjectData[] updates = response.getUpdates();
        IsisContext.getTransactionManager().endTransaction();

        nameField.assertField(object, "name of movie");
        assertEquals(0, updates.length);
    }
View Full Code Here

TOP

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

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.