Package org.eurekastreams.server.domain.stream

Examples of org.eurekastreams.server.domain.stream.StreamEntityDTO


    @Override
    public NotificationBatch translate(final ActivityNotificationsRequest inRequest)
    {
        // Get the activity
        ActivityDTO activity = activityDAO.execute(inRequest.getActivityId());
        StreamEntityDTO stream = activity.getDestinationStream();

        // Get the list of admins, remove actor (in case actor is an admin)
        // NOTE: This code assumes that the DAO returns a list which can be safely altered, specifically that it
        // supports removing elements and is not used elsewhere (e.g. stored off).
        List<Long> adminIds = systemAdminsDAO.execute(null);
View Full Code Here


        // post the activity
        ActivityDTO activityToPost = new ActivityDTO();
        activityToPost.setBaseObjectType(BaseObjectType.NOTE);
        activityToPost.setVerb(ActivityVerb.POST);
        activityToPost.setDestinationStream(new StreamEntityDTO(request.getEntityType(), uniqueId));
        activityToPost.setBaseObjectProperties(new HashMap<String, String>(Collections.singletonMap("content",
                pieces.get(0))));
        TaskHandlerAction postActivityAction = postActivityActions.get(request.getEntityType());
        ActivityDTO postedActivity = (ActivityDTO) executor.execute(postActivityAction, inActionContext,
                new PostActivityRequest(activityToPost));
View Full Code Here

                    SetFollowingStatusByGroupCreatorRequest currentRequest = // \n
                    (SetFollowingStatusByGroupCreatorRequest) params;
                    targetStream = currentRequest.getTargetUniqueId();
                }

                StreamEntityDTO destination = new StreamEntityDTO();
                destination.setUniqueIdentifier(followerAccountId);
                destination.setType(EntityType.PERSON);

                ActivityDTO activity = new ActivityDTO();
                HashMap<String, String> props = new HashMap<String, String>();
                activity.setBaseObjectProperties(props);
View Full Code Here

TOP

Related Classes of org.eurekastreams.server.domain.stream.StreamEntityDTO

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.