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

Examples of org.apache.isis.core.progmodel.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 object = unwrap(targetAdapter);
           
            final BulkFacet bulkFacet = getFacetHolder().getFacet(BulkFacet.class);
            if (bulkFacet != null &&
                bulkInteractionContext != null &&
                bulkInteractionContext.getInvokedAs() == null) {
               
                bulkInteractionContext.setInvokedAs(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

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

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

        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

       
        // 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

            final Object object = unwrap(inObject);
           
            final Object result;
           
            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);
View Full Code Here

TOP

Related Classes of org.apache.isis.core.progmodel.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.