Examples of checkLock()


Examples of org.apache.isis.core.metamodel.adapter.ObjectAdapter.checkLock()

                        }
                        break;

                    case ClientTransactionEvent.CHANGE:
                        final ObjectAdapter obj = getPersistentObjectAdapter(data[i]);
                        obj.checkLock(data[i].getVersion());

                        object = encoderDecoder.decode(data[i], knownObjects);
                        LOG.debug("  objectChanged " + data[i]);
                        getPersistenceSession().objectChanged(object);
                        changedObjects[i] = object;
View Full Code Here

Examples of org.apache.isis.core.metamodel.adapter.ObjectAdapter.checkLock()

                        changedObjects[i] = object;
                        break;

                    case ClientTransactionEvent.DELETE:
                        final ObjectAdapter inObject = getPersistentObjectAdapter(data[i]);
                        inObject.checkLock(data[i].getVersion());

                        LOG.debug("  destroyObject " + data[i] + " for " + session);
                        disposedObjects[i] = inObject;
                        getPersistenceSession().destroyObject(inObject);
                        break;
View Full Code Here

Examples of org.apache.isis.core.metamodel.adapter.ObjectAdapter.checkLock()

    private ObjectAdapter getPersistentObjectAdapter(final AuthenticationSession session, final IdentityData object) {
        final ObjectAdapter obj = getPersistentObjectAdapter(object);
        if (LOG.isDebugEnabled()) {
            LOG.debug("get object " + object + " for " + session + " --> " + obj);
        }
        obj.checkLock(object.getVersion());
        return obj;
    }

    private ObjectAdapter getPersistentObjectAdapter(final ReferenceData object) {
        final ObjectSpecification spec = getSpecification(object.getType());
View Full Code Here

Examples of org.apache.isis.core.metamodel.adapter.ObjectAdapter.checkLock()

            final AuthenticationSession session = context.getSession();
            if (session == null && action.isUsable(new AnonymousSession(), object).isVetoed()) {
                throw new NotLoggedInException();
            }

            object.checkLock(context.getVersion(version));
            /*
             * Version adapterVersion = object.getVersion(); if (adapterVersion.different(context.getVersion(version)))
             * {
             *
             * IsisContext.getMessageBroker().addMessage("The " + object.getSpecification().getSingularName() +
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.