Search in sources :

Example 1 with StylesheetDescriptorImpl

use of org.apereo.portal.layout.dao.jpa.StylesheetDescriptorImpl in project uPortal by Jasig.

the class PortletEntityImpl method getWindowStates.

@Override
public Map<Long, WindowState> getWindowStates() {
    final Map<Long, WindowState> simpleWindowStates = new LinkedHashMap<Long, WindowState>();
    synchronized (this.windowStates) {
        for (Map.Entry<StylesheetDescriptorImpl, WindowState> windowStateEntry : windowStates.entrySet()) {
            final StylesheetDescriptorImpl stylesheetDescriptor = windowStateEntry.getKey();
            final long stylesheetDescriptorId = stylesheetDescriptor.getId();
            final WindowState windowState = windowStateEntry.getValue();
            simpleWindowStates.put(stylesheetDescriptorId, windowState);
        }
    }
    return Collections.unmodifiableMap(simpleWindowStates);
}
Also used : WindowState(javax.portlet.WindowState) StylesheetDescriptorImpl(org.apereo.portal.layout.dao.jpa.StylesheetDescriptorImpl) HashMap(java.util.HashMap) LinkedHashMap(java.util.LinkedHashMap) Map(java.util.Map) LinkedHashMap(java.util.LinkedHashMap)

Aggregations

HashMap (java.util.HashMap)1 LinkedHashMap (java.util.LinkedHashMap)1 Map (java.util.Map)1 WindowState (javax.portlet.WindowState)1 StylesheetDescriptorImpl (org.apereo.portal.layout.dao.jpa.StylesheetDescriptorImpl)1