Package org.jasig.portal.events.aggr

Examples of org.jasig.portal.events.aggr.DateDimension


    @Override
    protected PortletExecutionAggregationKey createAggregationKey(PortletExecutionEvent e, EventAggregationContext eventAggregationContext,
            AggregationIntervalInfo intervalInfo, AggregatedGroupMapping aggregatedGroup) {
       
        final TimeDimension timeDimension = intervalInfo.getTimeDimension();
        final DateDimension dateDimension = intervalInfo.getDateDimension();
        final AggregationInterval aggregationInterval = intervalInfo.getAggregationInterval();
       
        Map<String, AggregatedPortletMapping> mappedPortlets = eventAggregationContext.getAttribute(MAPPED_PORTLETS_CACHE_KEY);
        if (mappedPortlets == null) {
            mappedPortlets = new HashMap<String, AggregatedPortletMapping>();
View Full Code Here


    @Override
    protected ConcurrentUserAggregationKey createAggregationKey(PortalEvent e,
            EventAggregationContext eventAggregationContext, AggregationIntervalInfo intervalInfo,
            AggregatedGroupMapping aggregatedGroup) {
        final TimeDimension timeDimension = intervalInfo.getTimeDimension();
        final DateDimension dateDimension = intervalInfo.getDateDimension();
        final AggregationInterval aggregationInterval = intervalInfo.getAggregationInterval();
        return new ConcurrentUserAggregationKeyImpl(dateDimension, timeDimension, aggregationInterval, aggregatedGroup);
    }
View Full Code Here

    }

    @Override
    protected ConcurrentUserAggregationImpl createAggregationInstance(ConcurrentUserAggregationKey key) {
        final TimeDimension timeDimension = key.getTimeDimension();
        final DateDimension dateDimension = key.getDateDimension();
        final AggregationInterval interval = key.getInterval();
        final AggregatedGroupMapping aggregatedGroup = key.getAggregatedGroup();
        return new ConcurrentUserAggregationImpl(timeDimension, dateDimension, interval, aggregatedGroup);
    }
View Full Code Here

    }
   
    @Override
    @AggrEventsTransactional
    public DateDimension createDateDimension(DateMidnight date, int quarter, String term) {
        final DateDimension dateDimension = new DateDimensionImpl(date, quarter, term);
       
        this.getEntityManager().persist(dateDimension);
       
        return dateDimension;
    }
View Full Code Here

            return true;
        if (obj == null)
            return false;
        if (!(obj instanceof DateDimension))
            return false;
        DateDimension other = (DateDimension) obj;
        if (getDate() == null) {
            if (other.getDate() != null)
                return false;
        }
        else if (!getDate().equals(other.getDate()))
            return false;
        return true;
    }
View Full Code Here

    protected SearchRequestAggregationKey createAggregationKey(PortletActionExecutionEvent e,
                                                               EventAggregationContext eventAggregationContext, AggregationIntervalInfo intervalInfo,
                                                               AggregatedGroupMapping aggregatedGroup) {

        final TimeDimension timeDimension = intervalInfo.getTimeDimension();
        final DateDimension dateDimension = intervalInfo.getDateDimension();
        final AggregationInterval aggregationInterval = intervalInfo.getAggregationInterval();
        String query = e.getParameters().get(TARGET_PARAM).get(0);
        SearchRequestAggregationKey key = new SearchRequestAggregationKeyImpl(dateDimension,timeDimension,aggregationInterval,aggregatedGroup,query);
        return key;
    }
View Full Code Here

    }

    @Override
    protected SearchRequestAggregationImpl createAggregationInstance(SearchRequestAggregationKey key) {
        final TimeDimension timeDimension = key.getTimeDimension();
        final DateDimension dateDimension = key.getDateDimension();
        final AggregationInterval interval = key.getInterval();
        final AggregatedGroupMapping aggregatedGroup = key.getAggregatedGroup();
        final String searchTerm = key.getSearchTerm();
        return new SearchRequestAggregationImpl(timeDimension, dateDimension, interval, aggregatedGroup,searchTerm);
    }
View Full Code Here

    @Override
    protected LoginAggregationKey createAggregationKey(LoginEvent e, EventAggregationContext eventAggregationContext,
            AggregationIntervalInfo intervalInfo, AggregatedGroupMapping aggregatedGroup) {
        final TimeDimension timeDimension = intervalInfo.getTimeDimension();
        final DateDimension dateDimension = intervalInfo.getDateDimension();
        final AggregationInterval aggregationInterval = intervalInfo.getAggregationInterval();
        return new LoginAggregationKeyImpl(dateDimension, timeDimension, aggregationInterval, aggregatedGroup);
    }
View Full Code Here

    }

    @Override
    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

    protected TabRenderAggregationKey createAggregationKey(PortalRenderEvent e,
            EventAggregationContext eventAggregationContext, AggregationIntervalInfo intervalInfo,
            AggregatedGroupMapping aggregatedGroup) {

        final TimeDimension timeDimension = intervalInfo.getTimeDimension();
        final DateDimension dateDimension = intervalInfo.getDateDimension();
        final AggregationInterval aggregationInterval = intervalInfo.getAggregationInterval();
       
       
        Map<String, AggregatedTabMapping> mappedTabs = eventAggregationContext.getAttribute(MAPPED_TABS_CACHE_KEY);
        if (mappedTabs == null) {
View Full Code Here

TOP

Related Classes of org.jasig.portal.events.aggr.DateDimension

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.