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

Examples of org.apache.isis.core.metamodel.facets.actions.publish.PublishedActionFacet


            final CurrentInvocation currentInvocation = ActionInvocationFacet.currentInvocation.get();
            if(currentInvocation == null) {
                return;
            }
            IdentifiedHolder action = currentInvocation.getAction();
            final PublishedActionFacet publishedActionFacet = action.getFacet(PublishedActionFacet.class);
            if(publishedActionFacet == null) {
                return;
            }
            final PublishedAction.PayloadFactory payloadFactory = publishedActionFacet.value();
           
            final RootOid adapterOid = (RootOid) currentInvocation.getTarget().getOid();
            final String oidStr = getOidMarshaller().marshal(adapterOid);
            final Identifier actionIdentifier = action.getIdentifier();
            final String title = oidStr + ": " + actionIdentifier.toNameParmsIdentityString();
View Full Code Here


                        final Bookmark bookmark = CommandUtil.bookmarkFor(resultAdapter);
                        command.setResult(bookmark);
                    }
                }
               
                final PublishedActionFacet publishedActionFacet = getIdentified().getFacet(PublishedActionFacet.class);
                ActionInvocationFacet.currentInvocation.set(
                        publishedActionFacet != null
                            ? new CurrentInvocation(targetAdapter, getIdentified(), arguments, resultAdapter, command)
                            :null);
               
View Full Code Here

                        final Bookmark bookmark = CommandUtil.bookmarkFor(resultAdapter);
                        command.setResult(bookmark);
                    }
                }
               
                final PublishedActionFacet publishedActionFacet = getIdentified().getFacet(PublishedActionFacet.class);
                ActionInvocationFacet.currentInvocation.set(
                        publishedActionFacet != null
                            ? new CurrentInvocation(targetAdapter, getIdentified(), arguments, resultAdapter, command)
                            :null);
               
View Full Code Here

            final CurrentInvocation currentInvocation = ActionInvocationFacet.currentInvocation.get();
            if(currentInvocation == null) {
                return;
            }
            IdentifiedHolder action = currentInvocation.getAction();
            final PublishedActionFacet publishedActionFacet = action.getFacet(PublishedActionFacet.class);
            if(publishedActionFacet == null) {
                return;
            }
            final PublishedAction.PayloadFactory payloadFactory = publishedActionFacet.value();
           
            final RootOid adapterOid = (RootOid) currentInvocation.getTarget().getOid();
            final String oidStr = getOidMarshaller().marshal(adapterOid);
            final Identifier actionIdentifier = action.getIdentifier();
            final String title = oidStr + ": " + actionIdentifier.toNameParmsIdentityString();
View Full Code Here

                        final Bookmark bookmark = CommandUtil.bookmarkFor(resultAdapter);
                        command.setResult(bookmark);
                    }
                }

                final PublishedActionFacet publishedActionFacet = getIdentified().getFacet(PublishedActionFacet.class);
                ActionInvocationFacet.currentInvocation.set(
                        publishedActionFacet != null
                                ? new CurrentInvocation(targetAdapter, getIdentified(), arguments, resultAdapter, command)
                                :null);
View Full Code Here

            final CurrentInvocation currentInvocation = ActionInvocationFacet.currentInvocation.get();
            if(currentInvocation == null) {
                return;
            }
            IdentifiedHolder action = currentInvocation.getAction();
            final PublishedActionFacet publishedActionFacet = action.getFacet(PublishedActionFacet.class);
            if(publishedActionFacet == null) {
                return;
            }
            final PublishedAction.PayloadFactory payloadFactory = publishedActionFacet.value();
           
            final RootOid adapterOid = (RootOid) currentInvocation.getTarget().getOid();
            final String oidStr = getOidMarshaller().marshal(adapterOid);
            final Identifier actionIdentifier = action.getIdentifier();
            final String title = oidStr + ": " + actionIdentifier.toNameParmsIdentityString();
View Full Code Here

        try {
            final CurrentInvocation currentInvocation = ActionInvocationFacet.currentInvocation.get();
            if(currentInvocation == null) {
                return;
            }
            final PublishedActionFacet publishedActionFacet = currentInvocation.getAction().getFacet(PublishedActionFacet.class);
            if(publishedActionFacet == null) {
                return;
            }
            final PublishedAction.PayloadFactory payloadFactory = publishedActionFacet.value();
           
            final RootOid adapterOid = (RootOid) currentInvocation.getTarget().getOid();
            final String oidStr = getOidMarshaller().marshal(adapterOid);
            final String title = oidStr + ": " + currentInvocation.getAction().getIdentifier().toNameParmsIdentityString();
           
View Full Code Here

            final ObjectAdapter resultAdapter = getAdapterManager().adapterFor(result);
            final TypeOfFacet typeOfFacet = getFacetHolder().getFacet(TypeOfFacet.class);
            resultAdapter.setElementSpecificationProvider(ElementSpecificationProviderFromTypeOfFacet.createFrom(typeOfFacet));
           
            PublishedActionFacet publishedActionFacet = getIdentified().getFacet(PublishedActionFacet.class);
            ActionInvocationFacet.currentInvocation.set(
                    publishedActionFacet != null
                        ? new CurrentInvocation(inObject, getIdentified(), parameters, resultAdapter)
                        :null);
           
View Full Code Here

TOP

Related Classes of org.apache.isis.core.metamodel.facets.actions.publish.PublishedActionFacet

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.