Package org.apache.isis.core.metamodel.facets.actions.bulk

Examples of org.apache.isis.core.metamodel.facets.actions.bulk.BulkFacet


        public static Filter<ObjectAction> notBulkOnly() {
            return new Filter<ObjectAction>(){

                @Override
                public boolean accept(ObjectAction t) {
                    BulkFacet facet = t.getFacet(BulkFacet.class);
                    return facet == null || facet.value() != Bulk.AppliesTo.BULK_ONLY;
                }};
        }
View Full Code Here


                executionParameters[i] = unwrap(arguments[i]);
            }

            final Object targetPojo = unwrap(targetAdapter);

            final BulkFacet bulkFacet = getFacetHolder().getFacet(BulkFacet.class);
            if (bulkFacet != null &&
                    bulkInteractionContext != null &&
                    bulkInteractionContext.getInvokedAs() == null) {

                bulkInteractionContext.setInvokedAs(Bulk.InteractionContext.InvokedAs.REGULAR);
View Full Code Here

       
        // this code also exists in ActionInvocationFacetViaMethod
        // we need to repeat it here because the target adapter should be the contributee, not the contributing service.
        final Bulk.InteractionContext bulkInteractionContext = getServicesProvider().lookupService(Bulk.InteractionContext.class);

        final BulkFacet bulkFacet = getFacet(BulkFacet.class);
        if (bulkFacet != null &&
            bulkInteractionContext != null &&
            bulkInteractionContext.getInvokedAs() == null) {
           
            bulkInteractionContext.setInvokedAs(InvokedAs.REGULAR);
View Full Code Here

TOP

Related Classes of org.apache.isis.core.metamodel.facets.actions.bulk.BulkFacet

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.