Package org.jasig.portal.events.aggr.portlets

Examples of org.jasig.portal.events.aggr.portlets.AggregatedPortletMapping


       
        final DateDimension dateDimension = intervalInfo.getDateDimension();
        final TimeDimension timeDimension = intervalInfo.getTimeDimension();
        final AggregationInterval aggregationInterval = intervalInfo.getAggregationInterval();
       
        final AggregatedPortletMapping mappedPortlet = aggregatedPortletLookupDao.getMappedPortletForFname("Foo");
       
        return new PortletExecutionAggregationKeyImpl(dateDimension, timeDimension, aggregationInterval, aggregatedGroup, mappedPortlet, ExecutionType.ALL);
    }
View Full Code Here


    @Override
    protected PortletExecutionAggregationKey createAggregationKey(AggregationInterval interval,
            AggregatedGroupMapping aggregatedGroup) {
       
        final AggregatedPortletMapping mappedPortlet = aggregatedPortletLookupDao.getMappedPortletForFname("Foo");
        return new PortletExecutionAggregationKeyImpl(interval, aggregatedGroup, mappedPortlet, ExecutionType.ALL);
    }
View Full Code Here

            AggregationIntervalInfo intervalInfo, AggregatedGroupMapping aggregatedGroup) {
       
        final DateDimension dateDimension = intervalInfo.getDateDimension();
        final TimeDimension timeDimension = intervalInfo.getTimeDimension();
        final AggregationInterval aggregationInterval = intervalInfo.getAggregationInterval();
        final AggregatedPortletMapping mappedPortlet = aggregatedPortletLookupDao.getMappedPortletForFname("Foo");
        final PortletExecutionAggregationKeyImpl key = new PortletExecutionAggregationKeyImpl(
                dateDimension, timeDimension, aggregationInterval, aggregatedGroup, mappedPortlet, ExecutionType.ALL);
        final PortletExecutionAggregationImpl aggr = portletExecutionAggregationDao.createAggregation(key);
        return Collections.<PortletExecutionAggregationKey, PortletExecutionAggregationImpl>singletonMap(key, aggr);
    }
View Full Code Here

        List<Long> groups = form.getGroups();
        Set<String> portletFNames = form.getPortlets();
        for (final Long queryGroupId : groups) {
            AggregatedGroupMapping groupMapping = this.aggregatedGroupLookupDao.getGroupMapping(queryGroupId);
            for (final String portletFName : portletFNames) {
                AggregatedPortletMapping tabMapping = this.aggregatedPortletLookupDao.getMappedPortletForFname(portletFName);
                final PortletLayoutAggregationDiscriminator mapping =
                        new PortletLayoutAggregationDiscriminatorImpl(groupMapping, tabMapping);
                //Create the set the aggregations for this report column will be stored in, sorted chronologically
                final SortedSet<PortletLayoutAggregation> aggregations =
                        new TreeSet<PortletLayoutAggregation>(BaseAggregationDateTimeComparator.INSTANCE);
View Full Code Here

    protected PortletExecutionAggregationImpl createAggregationInstance(PortletExecutionAggregationKey key) {
        final TimeDimension timeDimension = key.getTimeDimension();
        final DateDimension dateDimension = key.getDateDimension();
        final AggregationInterval interval = key.getInterval();
        final AggregatedGroupMapping aggregatedGroup = key.getAggregatedGroup();
        final AggregatedPortletMapping portletMapping = key.getPortletMapping();
        final ExecutionType executionType = key.getExecutionType();
        return new PortletExecutionAggregationImpl(timeDimension, dateDimension, interval, aggregatedGroup, portletMapping, executionType);
    }
View Full Code Here

            mappedPortlets = new HashMap<String, AggregatedPortletMapping>();
            eventAggregationContext.setAttribute(MAPPED_PORTLETS_CACHE_KEY, mappedPortlets);
        }
       
        final String fname = e.getFname();
        AggregatedPortletMapping mappedPortlet = mappedPortlets.get(fname);
        if (mappedPortlet == null) {
            mappedPortlet = this.aggregatedPortletLookupDao.getMappedPortletForFname(fname);
            mappedPortlets.put(fname, mappedPortlet);
        }
       
View Full Code Here


    @Override
    protected LrsObject getLrsObject(PortalEvent event) {
        final String fname = ((PortletExecutionEvent)event).getFname();
        final AggregatedPortletMapping mappedPortletForFname = this.aggregatedPortletLookupDao.getMappedPortletForFname(fname);

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

        return new LrsObject(
                buildUrn("portlet", fname),
                getDefaultObjectType(),
                definitionBuilder.build());
View Full Code Here

        Set<String> portletFNames = form.getPortlets();
        Set<String> executionTypes = form.getExecutionTypeNames();
        for (final Long queryGroupId : groups) {
            AggregatedGroupMapping groupMapping = this.aggregatedGroupLookupDao.getGroupMapping(queryGroupId);
            for (final String portletFName : portletFNames) {
                AggregatedPortletMapping tabMapping = this.aggregatedPortletLookupDao.getMappedPortletForFname(portletFName);
                for (String executionType : executionTypes) {
                    final PortletExecutionAggregationDiscriminator mapping =
                            new PortletExecutionAggregationDiscriminatorImpl(groupMapping, tabMapping,
                                    ExecutionType.valueOf(executionType));
                    //Create the set the aggregations for this report column will be stored in, sorted chronologically
View Full Code Here

    protected PortletLayoutAggregationImpl createAggregationInstance(PortletLayoutAggregationKey key) {
        final TimeDimension timeDimension = key.getTimeDimension();
        final DateDimension dateDimension = key.getDateDimension();
        final AggregationInterval interval = key.getInterval();
        final AggregatedGroupMapping aggregatedGroup = key.getAggregatedGroup();
        final AggregatedPortletMapping portletMapping = key.getPortletMapping();
        return new PortletLayoutAggregationImpl(timeDimension, dateDimension, interval, aggregatedGroup,portletMapping);
    }
View Full Code Here

            eventAggregationContext.setAttribute(MAPPED_PORTLETS_CACHE_KEY, mappedPortlets);
        }


        final String fname = e.getFname();
        AggregatedPortletMapping mappedPortlet = mappedPortlets.get(fname);
        if (mappedPortlet == null) {
            mappedPortlet = this.aggregatedPortletLookupDao.getMappedPortletForFname(fname);
            mappedPortlets.put(fname, mappedPortlet);
        }
View Full Code Here

TOP

Related Classes of org.jasig.portal.events.aggr.portlets.AggregatedPortletMapping

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.