Package org.apache.commons.collections.map

Examples of org.apache.commons.collections.map.LinkedMap.lastKey()


                context = new SessionContext();
               
                // Set event index to current last index, so events fired before creation of this context are not executed for it
                LinkedMap list = TMLPortlet.getFiredEventsQueue(session);
                if (!list.isEmpty()) {
                    PortletEvent event = (PortletEvent) list.get(list.lastKey());
                    context.setLastProcessedEventIndex(event.getIndex());
                }
                               
                contexts.put(completeKey, context);
            }
View Full Code Here


        SessionContext sessionContext = getSessionContext();
        LinkedMap list = TMLPortlet.getFiredEventsQueue(tag.getPageContext().getSession());
       
        // Look if the event queue proceeded since the last processed event
        if (list.size() > 0) {
            PortletEvent lastEvent = (PortletEvent) list.get(list.lastKey());
            if (lastEvent != null) {
                if (lastEvent.getIndex() > sessionContext.getLastProcessedEventIndex()) {
                   
                    // Find the start index for processing new events
                    Long startIndex;
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.