Examples of StreamPopularHashTagsRequest


Examples of org.eurekastreams.server.action.request.stream.StreamPopularHashTagsRequest

            {
                streamInterests.removeClassName(style.emptyDetailStyle());
            }

            PopularHashTagsModel.getInstance().fetch(
                    new StreamPopularHashTagsRequest(ScopeType.GROUP, group.getShortName()), true);
            UsageMetricModel.getInstance().fetch(
                    new UsageMetricStreamSummaryRequest(NUM_DAYS_FOR_METRICS, group.getStreamId()), true);
        }

    }
View Full Code Here

Examples of org.eurekastreams.server.action.request.stream.StreamPopularHashTagsRequest

        {
            contactInfo.removeClassName(style.emptyDetailStyle());
        }

        PopularHashTagsModel.getInstance().fetch(
                new StreamPopularHashTagsRequest(ScopeType.PERSON, person.getAccountId()), true);

        UsageMetricModel.getInstance().fetch(
                new UsageMetricStreamSummaryRequest(NUM_DAYS_FOR_METRICS, person.getStreamId()), true);

    }
View Full Code Here

Examples of org.eurekastreams.server.action.request.stream.StreamPopularHashTagsRequest

     *             when the stream represents a private group that the user doesn't have access to
     */
    @Override
    public void authorize(final PrincipalActionContext inActionContext) throws AuthorizationException
    {
        StreamPopularHashTagsRequest request = (StreamPopularHashTagsRequest) inActionContext.getParams();
        if (request.getStreamEntityScopeType() == ScopeType.GROUP)
        {
            // only private groups require authorization
            DomainGroupModelView group = groupsMapper.fetchUniqueResult(request.getStreamEntityUniqueKey());
            if (!group.isPublic())
            {
                Set<Long> groupsUserCanAccess = groupAccessMapper.execute(inActionContext.getPrincipal().getId());
                if (!groupsUserCanAccess.contains(group.getId()))
                {
View Full Code Here

Examples of org.eurekastreams.server.action.request.stream.StreamPopularHashTagsRequest

                "activityDate", Calendar.getInstance().getTime()).executeUpdate();

        StreamPopularHashTagsDbMapper sut = new StreamPopularHashTagsDbMapper(9, 9);
        sut.setEntityManager(getEntityManager());

        StreamPopularHashTagsReportDTO tagsReport = sut.execute(new StreamPopularHashTagsRequest(ScopeType.PERSON,
                "smithers"));
        List<String> tags = tagsReport.getPopularHashTags();
        assertEquals(2, tags.size());

        // Smithers has tags #soda(5), one of #foo(1)
View Full Code Here

Examples of org.eurekastreams.server.action.request.stream.StreamPopularHashTagsRequest

     */
    @Override
    public Serializable execute(final PrincipalActionContext inActionContext) throws ExecutionException
    {
        log.debug("Entering");
        StreamPopularHashTagsRequest request = (StreamPopularHashTagsRequest) inActionContext.getParams();
        StreamPopularHashTagsReportDTO response = popularHashTagsMapper.execute(request);

        List<String> hashTags = response.getPopularHashTags();
       
        ArrayList<String> result = new ArrayList<String>();
View Full Code Here

Examples of org.eurekastreams.server.action.request.stream.StreamPopularHashTagsRequest

                .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);
        }

        StreamPopularHashTagsRequest personRequest = new StreamPopularHashTagsRequest(ScopeType.PERSON, inActionContext
                .getPrincipal().getAccountId());
        requests.add(personRequest);

        List<StreamPopularHashTagsReportDTO> responses = popularHashTagsMapper.execute(requests);
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.