Examples of GetCurrentUserStreamFiltersResponse


Examples of org.eurekastreams.server.service.actions.response.GetCurrentUserStreamFiltersResponse

     * Test.
     */
    @Test
    public void execute()
    {
        final GetCurrentUserStreamFiltersResponse groupResponse = new GetCurrentUserStreamFiltersResponse();
        final List<StreamFilter> filters = new ArrayList<StreamFilter>();
        GroupStreamDTO groupFilter = new GroupStreamDTO(1L, "", "shortName", false);
        filters.add(groupFilter);
        groupResponse.setStreamFilters(filters);

        final List<StreamPopularHashTagsReportDTO> responses = new ArrayList<StreamPopularHashTagsReportDTO>();
        final StreamPopularHashTagsReportDTO response1 = context.mock(StreamPopularHashTagsReportDTO.class, "r1");
        final StreamPopularHashTagsReportDTO response2 = context.mock(StreamPopularHashTagsReportDTO.class, "r2");
        responses.add(response1);
View Full Code Here

Examples of org.eurekastreams.server.service.actions.response.GetCurrentUserStreamFiltersResponse

                oneOf(peopleMapper).execute(with(any(List.class)));
                will(returnValue(Arrays.asList(person)));
            }
        });

        GetCurrentUserStreamFiltersResponse response = sut.execute(actionContext);

        assertEquals(3, response.getStreamFilters().size());
        assertEquals(HIDDEN_LINE_INDEX, response.getHiddenLineIndex().intValue());
        context.assertIsSatisfied();
    }
View Full Code Here

Examples of org.eurekastreams.server.service.actions.response.GetCurrentUserStreamFiltersResponse

     *                not expected.
     */
    public Serializable execute(final PrincipalActionContext inActionContext) throws ExecutionException
    {
        final List<StreamFilter> streams = getUserStreamsMapper.execute(inActionContext.getPrincipal().getId());
        return new GetCurrentUserStreamFiltersResponse(streams.size(), streams);
    }
View Full Code Here

Examples of org.eurekastreams.server.service.actions.response.GetCurrentUserStreamFiltersResponse

        }

        List<PersonModelView> people = peopleMapper.execute(Arrays.asList(userEntityId));

        // Returns the list of group streams and related info.
        GetCurrentUserStreamFiltersResponse response = new GetCurrentUserStreamFiltersResponse(people.get(0)
                .getGroupStreamHiddenLineIndex(), groupStreams);

        return response;
    }
View Full Code Here

Examples of org.eurekastreams.server.service.actions.response.GetCurrentUserStreamFiltersResponse

     *             on error
     */
    @Override
    public Serializable execute(final PrincipalActionContext inActionContext) throws ExecutionException
    {
        GetCurrentUserStreamFiltersResponse groupResponse = (GetCurrentUserStreamFiltersResponse) getGroups
                .execute(inActionContext);
        List<StreamPopularHashTagsRequest> requests = new ArrayList<StreamPopularHashTagsRequest>();

        for (StreamFilter filter : groupResponse.getStreamFilters())
        {
            StreamPopularHashTagsRequest request = new StreamPopularHashTagsRequest(ScopeType.GROUP,
                    ((GroupStreamDTO) filter).getShortName());
            requests.add(request);
        }
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.