Examples of BulkFacet


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

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

                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

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

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

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

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

                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

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

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

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

                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

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

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

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

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

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