Package org.eurekastreams.server.domain.stream

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


    @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");
View Full Code Here


            EventBus.getInstance().addObserver(SwitchedToGroupStreamEvent.getEvent(),
                    new Observer<SwitchedToGroupStreamEvent>()
                    {
                        public void update(final SwitchedToGroupStreamEvent arg1)
                        {
                            GroupStreamDTO group = arg1.getView();

                            // If the group has disabled posting, make "my activity stream" the default destination. The
                            // one case where this would be the incorrect thing to do is if the user is a group or org
                            // coordinator. But it is better for coordinators to have to explicitly choose the group
                            // than the alternative: a non-postable group pre-selected for regular users and their posts
                            // just going nowhere.
                            if (!group.isPostable())
                            {
                                selectMyActivityStream();
                            }
                            else
                            {
                                other.setChecked(true);
                                autoComplete.setVisible(false);
                                autoComplete.setDefaultText(OTHER_TEXT);
                                removeScopePanel(thisBuffered);

                                typedInScope = new StreamScope(ScopeType.GROUP, group.getShortName());
                                typedInScope.setDisplayName(group.getName());

                                scopePanel = new StreamScopePanel(typedInScope);
                                thisBuffered.add(scopePanel);
                            }
                        }
View Full Code Here

            // if stream is marked as not postable, check if user has group coordinator access and
            // modify isStreamPostable accordingly
            isStreamPostable = isStreamPostable ? isStreamPostable : groupPermissionsChecker
                    .hasGroupCoordinatorAccessRecursively(userEntityId, group.getEntityId());

            groupStreams.add(new GroupStreamDTO(group.getEntityId(), group.getName(), group.getShortName(),
                    isStreamPostable));

            if (log.isInfoEnabled())
            {
                log.info("created groupstreamDTO: " + group.getEntityId() + "; " + group.getName() + "; "
View Full Code Here

TOP

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

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.