Examples of representsPersistent()


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

        final CellBinding performBinding = performContext.getPeer().getPerformBinding();
        if (valid.isVetoed()) {
            throw ScenarioBoundValueException.current(performBinding, valid.getReason());
        }

        if (onAdapter.representsPersistent()) {
            throw ScenarioBoundValueException.current(performBinding, "(already persistent)");
        }

        // persist
View Full Code Here

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

        final String persistent = request.getOptionalProperty("persistent");
        if (persistent != null) {
            final ObjectAdapter object = request.getContext().getMappedObjectOrResult(persistent);
            checkMade = true;
            allConditionsMet &= object.representsPersistent();
        }
        /*
         * String type = request.getOptionalProperty(TYPE); if (type != null) {
         * ObjectAdapter object = MethodsUtils.findObject(request.getContext(),
         * id); Class<?> cls = forClass(request); boolean hasType = object !=
View Full Code Here

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

class TestObjectPersistent extends Test {
    @Override
    boolean test(final Request request, final String attributeName, final String targetId) {
        final ObjectAdapter object = request.getContext().getMappedObjectOrResult(attributeName);
        return object.representsPersistent();
    }
}

class TestObjectType extends TestObjectPersistent {
    @Override
View Full Code Here

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

    @Override
    public LinkAndLabel newLink(final ObjectAdapterMemento adapterMemento, final ObjectAction action, final String linkId, final ActionPromptProvider actionPromptModalWindowProvider) {
        final ObjectAdapter adapter = adapterMemento.getObjectAdapter(ConcurrencyChecking.NO_CHECK);
       
        final Boolean persistent = adapter.representsPersistent();
        if (!persistent) {
            throw new IllegalArgumentException("Object '" + adapter.titleString(null) + "' is not persistent.");
        }
       
        // check visibility and whether enabled
View Full Code Here

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

        }
        final ObjectAdapter referenceAdapter = field.get(objectAdapter);
        if (referenceAdapter == null || referenceAdapter.isResolved()) {
            return;
        }
        if (!referenceAdapter.representsPersistent()) {
            return;
        }
        if (LOG.isInfoEnabled()) {
            // don't log object - it's toString() may use the unresolved field
            // or unresolved collection
View Full Code Here

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

    // //////////////////////////////////////////////////////////////////

    @Override
    public boolean isPersistent(final Object domainObject) {
        final ObjectAdapter adapter = getAdapterManager().adapterFor(domainObject);
        return adapter.representsPersistent();
    }

    /**
     * {@inheritDoc}
     */
 
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.