Package org.apache.isis.core.metamodel.spec

Examples of org.apache.isis.core.metamodel.spec.ObjectList


    @Override
    public ObjectAdapter findInstances(final PersistenceQuery persistenceQuery) {
        final ObjectAdapter[] instances = getInstances(persistenceQuery);
        final ObjectSpecification specification = persistenceQuery.getSpecification();
        final ObjectList results = new ObjectList(specification, instances);
        return getAdapterManager().adapterFor(results);
    }
View Full Code Here


        final ObjectAdapter instances = persistenceSessionProxy.findInstances(criteria);

        // the proxy should return one instance, which will be the dummy object
        // created by the encoder's
        // restore call
        final ObjectList objects = (ObjectList) instances.getObject();
        assertEquals(1, objects.size());
        assertEquals(dummyObjectAdapter, objects.elements().nextElement());
    }
View Full Code Here

                for (final Object object : services) {
                    final AdapterManager adapterManager = IsisContext.getPersistenceSession().getAdapterManager();
                    serviceObjects[i++] = adapterManager.adapterFor(object);
                }
                final ObjectSpecification spec = getSpecificationLoader().loadSpecification(Object.class);
                final ObjectList collection = new ObjectList(spec, serviceObjects);
                addWindowFor(getAdapterManager().adapterFor(collection), new Placement(at));
            }
        });

        menuForChangingLook(options);
View Full Code Here

    @Override
    public ObjectAdapter findInstances(final PersistenceQuery persistenceQuery) {
        final ObjectAdapter[] instances = getInstances(persistenceQuery);
        final ObjectSpecification specification = persistenceQuery.getSpecification();
        final ObjectList results = new ObjectList(specification, instances);
        return getAdapterManager().adapterFor(results);
    }
View Full Code Here

                for (final Object object : services) {
                    final AdapterManager adapterManager = IsisContext.getPersistenceSession().getAdapterManager();
                    serviceObjects[i++] = adapterManager.adapterFor(object);
                }
                final ObjectSpecification spec = getSpecificationLoader().loadSpecification(Object.class);
                final ObjectList collection = new ObjectList(spec, serviceObjects);
                addWindowFor(getAdapterManager().adapterFor(collection), new Placement(at));
            }
        });

        menuForChangingLook(options);
View Full Code Here

        final ObjectAdapter instances = persistenceSessionProxy.findInstances(criteria);

        // the proxy should return one instance, which will be the dummy object created by the encoder's
        // restore call
        final ObjectList objects = (ObjectList) instances.getObject();
        assertEquals(1, objects.size());
        assertEquals(dummyObjectAdapter, objects.elements().nextElement());
    }
View Full Code Here

TOP

Related Classes of org.apache.isis.core.metamodel.spec.ObjectList

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.