Package org.apache.isis.applib.services.background

Examples of org.apache.isis.applib.services.background.ActionInvocationMemento


                final List<Object> argObjs = Lists.newArrayList();
                CommandUtil.buildMementoArgLists(mementoService, bookmarkService, proxiedMethod, args, argTypes, argObjs);

                final Command command = commandContext.getCommand();
               
                final ActionInvocationMemento aim =
                        new ActionInvocationMemento(mementoService,
                                actionIdentifier,
                                domainObjectBookmark,
                                argTypes,
                                argObjs);
              
View Full Code Here


        final List<Class<?>> argTypes = Lists.newArrayList();
        final List<Object> argObjs = Lists.newArrayList();
        CommandUtil.buildMementoArgLists(mementoService, bookmarkService, method, args, argTypes, argObjs);

        final ActionInvocationMemento aim =
                new ActionInvocationMemento(mementoService,
                        actionIdentifier,
                        domainObjectBookmark,
                        argTypes,
                        argObjs);
      
View Full Code Here

    /**
     * Not API
     */
    ActionInvocationMemento newActionInvocationMemento(String mementoStr) {
        return new ActionInvocationMemento(mementoService, mementoStr);
    }
View Full Code Here

                    command.setStartedAt(Clock.getTimeAsJavaSqlTimestamp());
                    command.setExecutor(Executor.BACKGROUND);

                    final String memento = command.getMemento();
                    final ActionInvocationMemento aim = new ActionInvocationMemento(mementoService, memento);

                    final String actionId = aim.getActionId();

                    final Bookmark targetBookmark = aim.getTarget();
                    final Object targetObject = bookmarkService.lookup(targetBookmark);

                    final ObjectAdapter targetAdapter = adapterFor(targetObject);
                    final ObjectSpecification specification = targetAdapter.getSpecification();
View Full Code Here

                // the background service is used here merely as a means to capture an invocation memento
                final BackgroundService backgroundService = getServicesInjector().lookupService(BackgroundService.class);
                if(backgroundService != null) {
                    final Object targetObject = unwrap(targetAdapter);
                    final Object[] args = CommandUtil.objectsFor(arguments);
                    ActionInvocationMemento aim = backgroundService.asActionInvocationMemento(method, targetObject, args);

                    if(aim != null) {
                        command.setMemento(aim.asMementoString());
                    } else {
                        throw new IsisException(
                            "Unable to build memento for action " +
                            owningAction.getIdentifier().toClassAndNameIdentityString());
                    }
View Full Code Here

                // the background service is used here merely as a means to capture an invocation memento
                final BackgroundService backgroundService = getServicesInjector().lookupService(BackgroundService.class);
                if(backgroundService != null) {
                    final Object targetObject = unwrap(targetAdapter);
                    final Object[] args = CommandUtil.objectsFor(arguments);
                    ActionInvocationMemento aim = backgroundService.asActionInvocationMemento(method, targetObject, args);

                    if(aim != null) {
                        command.setMemento(aim.asMementoString());
                    } else {
                        throw new IsisException(
                            "Unable to build memento for action " +
                            owningAction.getIdentifier().toClassAndNameIdentityString());
                    }
View Full Code Here

                    try {
                        command.setStartedAt(Clock.getTimeAsJavaSqlTimestamp());
                        command.setExecutor(Executor.BACKGROUND);
                       
                        final String memento = command.getMemento();
                        final ActionInvocationMemento aim = new ActionInvocationMemento(mementoService, memento);
                       
                        final String actionId = aim.getActionId();
              
                        final Bookmark targetBookmark = aim.getTarget();
                        final Object targetObject = bookmarkService.lookup(targetBookmark);
                       
                        final ObjectAdapter targetAdapter = adapterFor(targetObject);
                        final ObjectSpecification specification = targetAdapter.getSpecification();
              
View Full Code Here

                // the background service is used here merely as a means to capture an invocation memento
                final BackgroundService backgroundService = getServicesInjector().lookupService(BackgroundService.class);
                if(backgroundService != null) {
                    final Object targetObject = unwrap(targetAdapter);
                    final Object[] args = CommandUtil.objectsFor(arguments);
                    ActionInvocationMemento aim = backgroundService.asActionInvocationMemento(method, targetObject, args);

                    if(aim != null) {
                        command.setMemento(aim.asMementoString());
                    } else {
                        throw new IsisException(
                                "Unable to build memento for action " +
                                        owningAction.getIdentifier().toClassAndNameIdentityString());
                    }
View Full Code Here

                final List<Object> argObjs = Lists.newArrayList();
                CommandUtil.buildMementoArgLists(mementoService, bookmarkService, proxiedMethod, args, argTypes, argObjs);

                final Command command = commandContext.getCommand();
               
                final ActionInvocationMemento aim =
                        new ActionInvocationMemento(mementoService,
                                actionIdentifier,
                                domainObjectBookmark,
                                argTypes,
                                argObjs);
              
View Full Code Here

        final List<Class<?>> argTypes = Lists.newArrayList();
        final List<Object> argObjs = Lists.newArrayList();
        CommandUtil.buildMementoArgLists(mementoService, bookmarkService, method, args, argTypes, argObjs);

        final ActionInvocationMemento aim =
                new ActionInvocationMemento(mementoService,
                        actionIdentifier,
                        domainObjectBookmark,
                        argTypes,
                        argObjs);
      
View Full Code Here

TOP

Related Classes of org.apache.isis.applib.services.background.ActionInvocationMemento

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.