Package org.jasig.portal.events.aggr.tabs

Examples of org.jasig.portal.events.aggr.tabs.AggregatedTabMapping


            AggregatedGroupMapping aggregatedGroup) {
       
        final DateDimension dateDimension = intervalInfo.getDateDimension();
        final TimeDimension timeDimension = intervalInfo.getTimeDimension();
        final AggregationInterval aggregationInterval = intervalInfo.getAggregationInterval();
        final AggregatedTabMapping mappedTab = this.aggregatedTabLookupDao.getMappedTabForLayoutId("u1l1n1");
        return new TabRenderAggregationKeyImpl(dateDimension, timeDimension, aggregationInterval, aggregatedGroup, mappedTab);
    }
View Full Code Here


    }

    @Override
    protected TabRenderAggregationKey createAggregationKey(AggregationInterval interval,
            AggregatedGroupMapping aggregatedGroup) {
        final AggregatedTabMapping mappedTab = this.aggregatedTabLookupDao.getMappedTabForLayoutId("u1l1n1");
        return new TabRenderAggregationKeyImpl(interval, aggregatedGroup, mappedTab);
    }
View Full Code Here

            AggregationIntervalInfo intervalInfo, AggregatedGroupMapping aggregatedGroup) {
       
        final DateDimension dateDimension = intervalInfo.getDateDimension();
        final TimeDimension timeDimension = intervalInfo.getTimeDimension();
        final AggregationInterval aggregationInterval = intervalInfo.getAggregationInterval();
        final AggregatedTabMapping mappedTab = this.aggregatedTabLookupDao.getMappedTabForLayoutId("u1l1n1");
        final TabRenderAggregationKeyImpl key = new TabRenderAggregationKeyImpl(
                dateDimension, timeDimension, aggregationInterval, aggregatedGroup, mappedTab);
        final TabRenderAggregationImpl aggr = renderAggregationDao.createAggregation(key);
        return Collections.<TabRenderAggregationKey, TabRenderAggregationImpl>singletonMap(key, aggr);
    }
View Full Code Here


    @Override
    protected LrsObject getLrsObject(PortalEvent event) {
        final String targetedLayoutNodeId = ((PortalRenderEvent)event).getTargetedLayoutNodeId();
        final AggregatedTabMapping aggregatedTabMapping = aggregatedTabLookupDao.getMappedTabForLayoutId(targetedLayoutNodeId);

        final Builder<String, LocalizedString> definitionBuilder = ImmutableMap.builder();
        definitionBuilder.put("name", new LocalizedString(Locale.US, aggregatedTabMapping.getDisplayString()));

        return new LrsObject(buildUrn("tab", aggregatedTabMapping.getFragmentName()),
                getDefaultObjectType(),
                definitionBuilder.build());
    }
View Full Code Here

    protected TabRenderAggregationImpl createAggregationInstance(TabRenderAggregationKey key) {
        final TimeDimension timeDimension = key.getTimeDimension();
        final DateDimension dateDimension = key.getDateDimension();
        final AggregationInterval interval = key.getInterval();
        final AggregatedGroupMapping aggregatedGroup = key.getAggregatedGroup();
        final AggregatedTabMapping tabMapping = key.getTabMapping();
        return new TabRenderAggregationImpl(timeDimension, dateDimension, interval, aggregatedGroup, tabMapping);
    }
View Full Code Here

            mappedTabs = new HashMap<String, AggregatedTabMapping>();
            eventAggregationContext.setAttribute(MAPPED_TABS_CACHE_KEY, mappedTabs);
        }
       
        final String targetedLayoutNodeId = e.getTargetedLayoutNodeId();
        AggregatedTabMapping mappedTab = mappedTabs.get(targetedLayoutNodeId);
        if (mappedTab == null) {
            mappedTab = this.aggregatedTabLookupDao.getMappedTabForLayoutId(targetedLayoutNodeId);
            mappedTabs.put(targetedLayoutNodeId, mappedTab);
        }
       
View Full Code Here

        List<Long> groups = form.getGroups();
        List<Long> tabs = form.getTabs();
        for (final Long queryGroupId : groups) {
            AggregatedGroupMapping groupMapping = this.aggregatedGroupDao.getGroupMapping(queryGroupId);
            for (final Long tabId : tabs) {
                AggregatedTabMapping tabMapping = this.aggregatedTabLookupDao.getTabMapping(tabId);
                final TabRenderAggregationDiscriminator mapping =
                        new TabRenderAggregationDiscriminatorImpl(groupMapping, tabMapping);
                //Create the set the aggregations for this report column will be stored in, sorted chronologically
                final SortedSet<TabRenderAggregation> aggregations =
                        new TreeSet<TabRenderAggregation>(BaseAggregationDateTimeComparator.INSTANCE);
View Full Code Here

    public void setAggregatedTabLookupDao(AggregatedTabLookupDao aggregatedTabLookupDao) {
        XalanLayoutElementTabOwnerHelper.aggregatedTabLookupDao = aggregatedTabLookupDao;
    }

    public static String getFragementOwner(String layoutNodeId) {
        final AggregatedTabMapping mappedTabForLayoutId = aggregatedTabLookupDao.getMappedTabForLayoutId(layoutNodeId);
        if (mappedTabForLayoutId == null) {
            return AggregatedTabMapping.MISSING_TAB_FRAGMENT_NAME;
        }
        return mappedTabForLayoutId.getFragmentName();
    }
View Full Code Here

        final IPortalRequestInfo portalRequestInfo = urlSyntaxProvider.getPortalRequestInfo(request);
        pageData.put("urlState", portalRequestInfo.getUrlState());
       
        final String targetedLayoutNodeId = portalRequestInfo.getTargetedLayoutNodeId();
        if (targetedLayoutNodeId != null) {
            final AggregatedTabMapping mappedTabForLayoutId = aggregatedTabLookupDao.getMappedTabForLayoutId(targetedLayoutNodeId);
            pageData.put("tab", mappedTabForLayoutId);
        }
       

        try {
View Full Code Here

TOP

Related Classes of org.jasig.portal.events.aggr.tabs.AggregatedTabMapping

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.