Package org.apache.isis.applib.annotation.Bulk

Examples of org.apache.isis.applib.annotation.Bulk.InteractionContext


           
            final BulkFacet bulkFacet = getFacetHolder().getFacet(BulkFacet.class);
            if(bulkFacet != null && Bulk.InteractionContext.current.get() == null) {
                // make sure that the Bulk interaction context is set if not already
                try {
                    Bulk.InteractionContext.current.set(new InteractionContext(object));
                    result = method.invoke(object, executionParameters);
                } finally {
                    Bulk.InteractionContext.current.set(null);
                }
            } else {
View Full Code Here


    @CssClass("x-highlight")
    public ToDoItem completed() {
        setComplete(true);
       
        // demonstrating the use of ...
        final InteractionContext ctxt = InteractionContext.current.get();
        @SuppressWarnings("unused")
        List<Object> allObjects = ctxt.getDomainObjects();
       
        LOG.debug("completed: "
                + ctxt.getIndex() +
                " [" + ctxt.getSize() + "]"
                + (ctxt.isFirst() ? " (first)" : "")
                + (ctxt.isLast() ? " (last)" : ""));

        return this;
    }
View Full Code Here

TOP

Related Classes of org.apache.isis.applib.annotation.Bulk.InteractionContext

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.