Package org.eurekastreams.server.action.request.notification

Examples of org.eurekastreams.server.action.request.notification.TargetEntityNotificationsRequest


            asyncRequests.add(new UserActionRequest("refreshFollowedByActivities", null, followerPersonId));

            // queues up new follower notifications.
            asyncRequests
                    .add(new UserActionRequest(CreateNotificationsRequest.ACTION_NAME, null,
                            new TargetEntityNotificationsRequest(RequestType.FOLLOW_PERSON, followerPersonId,
                                    followedPersonId)));

            break;
        case NOTFOLLOWING:
            logger.trace("Remove new following from the list of following.");
View Full Code Here


        // trigger notification if group will be pending approval
        if (isPending)
        {
            inActionContext.getUserActionRequests().add(
                    new UserActionRequest(CreateNotificationsRequest.ACTION_NAME, null,
                            new TargetEntityNotificationsRequest(RequestType.REQUEST_NEW_GROUP, creatorPersonId,
                                    inGroup.getId())));
        }
    }
View Full Code Here

        // send notification
        // Note: doesn't check whether the request was freshly added or whether it was already found, thus allowing a
        // user to "nag" the coordinators for access
        inActionContext.getUserActionRequests().add(
                new UserActionRequest(CreateNotificationsRequest.ACTION_NAME, null,
                        new TargetEntityNotificationsRequest(RequestType.REQUEST_GROUP_ACCESS, personId, target
                                .getId())));

        return null;
    }
View Full Code Here

            // remove person modelview from cache as groupstreamhiddenlineindex will be changed.
            deleteCacheKeyMapper.execute(Collections.singleton(CacheKeys.PERSON_BY_ID + followerId));

            // Sends new follower notifications.
            asyncRequests.add(new UserActionRequest(CreateNotificationsRequest.ACTION_NAME, null,
                    new TargetEntityNotificationsRequest(RequestType.FOLLOW_GROUP, followerId, targetId)));

            // Posts a message to the user's personal stream unless this is a new pending group
            if (!isPending)
            {
                String targetStream = "";
View Full Code Here

            final DomainGroup group, final ReviewPendingGroupRequest request) throws Exception
    {
        CreateNotificationsRequest notifRequest;
        if (request.getApproved())
        {
            notifRequest = new TargetEntityNotificationsRequest(RequestType.REQUEST_NEW_GROUP_APPROVED, 0L,
                    group.getId());
        }
        else
        {
            List<Long> recipients = new ArrayList<Long>();
View Full Code Here

TOP

Related Classes of org.eurekastreams.server.action.request.notification.TargetEntityNotificationsRequest

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.