Examples of InlineExecutionStrategyExecutor


Examples of org.eurekastreams.commons.actions.InlineExecutionStrategyExecutor

                // to avoid a circular dependency, must get a new person creator from the factory rather than
                // have it injected by spring
                PersistResourceExecution<Person> personCreator = factory.getCreatePersonAction(personMapper, updater);

                verfiedCoordinator = (Person) new InlineExecutionStrategyExecutor().execute(personCreator, personData,
                        inActionContext);
            }
            verifiedPersons.add(verfiedCoordinator);
        }
View Full Code Here

Examples of org.eurekastreams.commons.actions.InlineExecutionStrategyExecutor

            for (Person coordinator : newCoordinators)
            {
                SetFollowingStatusByGroupCreatorRequest currentRequest = new SetFollowingStatusByGroupCreatorRequest(
                        coordinator.getId(), inGroup.getId(), Follower.FollowerStatus.FOLLOWING, inGroup.getName(),
                        inGroup.getShortName(), false);
                new InlineExecutionStrategyExecutor().execute(followStrategy, currentRequest, new DefaultPrincipal(
                        creatorUserName, inActionContext.getActionContext().getPrincipal().getOpenSocialId(),
                        inActionContext.getActionContext().getPrincipal().getId()), inActionContext
                        .getUserActionRequests());
            }
View Full Code Here

Examples of org.eurekastreams.commons.actions.InlineExecutionStrategyExecutor

        // get Person and set locked before creation.
        Person person = results.get(0);
        person.setAccountLocked(true);

        Person newPerson = (Person) new InlineExecutionStrategyExecutor().execute(createPersonStrategy,
                new CreatePersonRequest(person, false), inActionContext);
        return newPerson;
    }
View Full Code Here

Examples of org.eurekastreams.commons.actions.InlineExecutionStrategyExecutor

        for (Person coordinator : inGroup.getCoordinators())
        {
            SetFollowingStatusByGroupCreatorRequest currentRequest = new SetFollowingStatusByGroupCreatorRequest(
                    coordinator.getId(), inGroup.getId(), Follower.FollowerStatus.FOLLOWING, inGroup.getName(),
                    inGroup.getShortName(), isPending);
            new InlineExecutionStrategyExecutor().execute(followStrategy, currentRequest, new DefaultPrincipal(
                    creatorUserName, principal.getOpenSocialId(), creatorPersonId), inActionContext
                    .getUserActionRequests());
        }

        // trigger notification if group will be pending approval
View Full Code Here

Examples of org.eurekastreams.commons.actions.InlineExecutionStrategyExecutor

        destination.setType(type);
        activity.setDestinationStream(destination);
        activity.setBaseObjectType(BaseObjectType.NOTE);
        activity.setVerb(ActivityVerb.POST);

        new InlineExecutionStrategyExecutor()
                .execute(postActivityExecutor, new PostActivityRequest(activity), context);

        updateMapper.execute(new PersistenceRequest<Feed>(feed));
        return Boolean.TRUE;
    }
View Full Code Here

Examples of org.eurekastreams.commons.actions.InlineExecutionStrategyExecutor

        PersistResourceExecution<Person> persistResourceExecution = createPersonActionFactory.getCreatePersonAction(
                personMapper, new ReflectiveUpdater());

        log.debug("Adding to database: " + inPerson.getAccountId());

        Person person = (Person) new InlineExecutionStrategyExecutor().execute(persistResourceExecution,
                inPerson.getProperties(), inActionContext);

        log.info("Added to database: " + inPerson.getAccountId());

        // Send email notification if necessary
View Full Code Here

Examples of org.eurekastreams.commons.actions.InlineExecutionStrategyExecutor

                y = (scaledImage.getHeight(null) - scaledImage.getWidth(null)) / 2;
            }

            ResizeAvatarRequest resizeRequest = new ResizeAvatarRequest(x, y, cropSize, Boolean.FALSE, entityId);

            T newEntity = (T) new InlineExecutionStrategyExecutor().execute(avatarResizer, resizeRequest,
                    inActionContext);

            // If all is well, delete the old avatar:
            if (oldAvatarId != null)
            {
View Full Code Here

Examples of org.eurekastreams.commons.actions.InlineExecutionStrategyExecutor

                // Note: create a principal for the follower: we want to post on the follower's stream as the
                // follower.
                // The current principal will be different from the follower in some cases, namely when following a
                // private group (the current principal / actor is the coordinator who approved access).
                new InlineExecutionStrategyExecutor().execute(postActivityExecutor, new PostActivityRequest(activity),
                        new DefaultPrincipal(followerAccountId, null, followerId),
                        inActionContext.getUserActionRequests());
            }
            break;
View Full Code Here

Examples of org.eurekastreams.commons.actions.InlineExecutionStrategyExecutor

                    addPrivateGroupIdToCachedListMapper.execute(groupId);
                }
            }
            else
            {
                new InlineExecutionStrategyExecutor().execute(deleteGroupExecution, groupId, inActionContext);
            }
        }
        catch (Exception e)
        {
            throw new ExecutionException(e);
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.