public PortletTrackingInfo getOutOfServiceList(String fullPortletName) { CacheElement element = trackingCache.get(fullPortletName); if (element != null) { List<String> windows = (List<String>)element.getContent(); return new PortletTrackingInfo(fullPortletName, windows); } else { List<String> windows = new ArrayList<String>(); return new PortletTrackingInfo(fullPortletName, windows); } }
public List<PortletTrackingInfo> getOutOfServiceList() { List<PortletTrackingInfo> result = new ArrayList<PortletTrackingInfo>(); List<String> keys = trackingCache.getKeys(); for (String fullName : keys) { CacheElement element = trackingCache.get(fullName); if (element != null) { List<String> windows = (List<String>) element.getContent(); result.add(new PortletTrackingInfo(fullName, windows)); } } return result; }