@Override public PortletWindowID getId() { return this.portletWindowData.getPortletWindowId(); }
@Override public IPortletWindowId getPortletWindowId() { return this.portletWindowData.getPortletWindowId(); }
@Override public PortletWindowID getId() { return this.portletWindowData.getPortletWindowId(); }
@Override public PortletWindowID getId() { return this.portletWindowData.getPortletWindowId(); }
@Override public IPortletWindowId getPortletWindowId() { return this.portletWindowData.getPortletWindowId(); }
@Override public PortletWindowID getId() { return this.portletWindowData.getPortletWindowId(); }
@Override public IPortletWindowId getPortletWindowId() { return this.portletWindowData.getPortletWindowId(); }
@Override public IPortletWindowId getPortletWindowId() { return this.portletWindowData.getPortletWindowId(); }
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((this.portletEntity == null) ? 0 : this.portletEntity.hashCode()); result = prime * result + ((this.portletWindowData.getPortletWindowId() == null) ? 0 : this.portletWindowData.getPortletWindowId().hashCode()); result = prime * result + ((this.portletWindowData.getDelegationParentId() == null) ? 0 : this.portletWindowData.getDelegationParentId().hashCode()); return result; }
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((this.portletEntity == null) ? 0 : this.portletEntity.hashCode()); result = prime * result + ((this.portletWindowData.getPortletWindowId() == null) ? 0 : this.portletWindowData.getPortletWindowId().hashCode()); result = prime * result + ((this.portletWindowData.getDelegationParentId() == null) ? 0 : this.portletWindowData.getDelegationParentId().hashCode()); return result; }
protected PortletWindowData getPortletWindowData( HttpServletRequest request, IPortletWindowId portletWindowId) { final PortletWindowCache<PortletWindowData> portletWindowDataMap = getPortletWindowDataMap(request, false); if (portletWindowDataMap == null) { return null; } final PortletWindowData portletWindowData = portletWindowDataMap.getWindow(portletWindowId); if (portletWindowData == null) { logger.trace("No PortletWindowData {} in session cache", portletWindowId); return null; } logger.trace( "Found PortletWindowData {} in session cache", portletWindowData.getPortletWindowId()); return portletWindowData; }
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((this.portletEntity == null) ? 0 : this.portletEntity.hashCode()); result = prime * result + ((this.portletWindowData.getPortletWindowId() == null) ? 0 : this.portletWindowData.getPortletWindowId().hashCode()); result = prime * result + ((this.portletWindowData.getDelegationParentId() == null) ? 0 : this.portletWindowData.getDelegationParentId().hashCode()); return result; }
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((this.portletEntity == null) ? 0 : this.portletEntity.hashCode()); result = prime * result + ((this.portletWindowData.getPortletWindowId() == null) ? 0 : this.portletWindowData.getPortletWindowId().hashCode()); result = prime * result + ((this.portletWindowData.getDelegationParentId() == null) ? 0 : this.portletWindowData.getDelegationParentId().hashCode()); return result; }
protected PortletWindowData getPortletWindowData( HttpServletRequest request, IPortletWindowId portletWindowId) { final PortletWindowCache<PortletWindowData> portletWindowDataMap = getPortletWindowDataMap(request, false); if (portletWindowDataMap == null) { return null; } final PortletWindowData portletWindowData = portletWindowDataMap.getWindow(portletWindowId); if (portletWindowData == null) { logger.trace("No PortletWindowData {} in session cache", portletWindowId); return null; } logger.trace( "Found PortletWindowData {} in session cache", portletWindowData.getPortletWindowId()); return portletWindowData; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (!IPortletWindow.class.isAssignableFrom(obj.getClass())) return false; final IPortletWindow other = (IPortletWindow) obj; if (this.portletEntity == null) { if (other.getPortletEntity() != null) return false; } else if (!this.portletEntity.equals(other.getPortletEntity())) return false; if (this.portletWindowData.getDelegationParentId() == null) { if (other.getDelegationParentId() != null) return false; } else if (!this.portletWindowData .getDelegationParentId() .equals(other.getDelegationParentId())) return false; if (this.portletWindowData.getPortletWindowId() == null) { if (other.getPortletWindowId() != null) return false; } else if (!this.portletWindowData.getPortletWindowId().equals(other.getPortletWindowId())) return false; return true; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (!IPortletWindow.class.isAssignableFrom(obj.getClass())) return false; final IPortletWindow other = (IPortletWindow) obj; if (this.portletEntity == null) { if (other.getPortletEntity() != null) return false; } else if (!this.portletEntity.equals(other.getPortletEntity())) return false; if (this.portletWindowData.getDelegationParentId() == null) { if (other.getDelegationParentId() != null) return false; } else if (!this.portletWindowData .getDelegationParentId() .equals(other.getDelegationParentId())) return false; if (this.portletWindowData.getPortletWindowId() == null) { if (other.getPortletWindowId() != null) return false; } else if (!this.portletWindowData.getPortletWindowId().equals(other.getPortletWindowId())) return false; return true; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (!IPortletWindow.class.isAssignableFrom(obj.getClass())) return false; final IPortletWindow other = (IPortletWindow) obj; if (this.portletEntity == null) { if (other.getPortletEntity() != null) return false; } else if (!this.portletEntity.equals(other.getPortletEntity())) return false; if (this.portletWindowData.getDelegationParentId() == null) { if (other.getDelegationParentId() != null) return false; } else if (!this.portletWindowData .getDelegationParentId() .equals(other.getDelegationParentId())) return false; if (this.portletWindowData.getPortletWindowId() == null) { if (other.getPortletWindowId() != null) return false; } else if (!this.portletWindowData.getPortletWindowId().equals(other.getPortletWindowId())) return false; return true; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (!IPortletWindow.class.isAssignableFrom(obj.getClass())) return false; final IPortletWindow other = (IPortletWindow) obj; if (this.portletEntity == null) { if (other.getPortletEntity() != null) return false; } else if (!this.portletEntity.equals(other.getPortletEntity())) return false; if (this.portletWindowData.getDelegationParentId() == null) { if (other.getDelegationParentId() != null) return false; } else if (!this.portletWindowData .getDelegationParentId() .equals(other.getDelegationParentId())) return false; if (this.portletWindowData.getPortletWindowId() == null) { if (other.getPortletWindowId() != null) return false; } else if (!this.portletWindowData.getPortletWindowId().equals(other.getPortletWindowId())) return false; return true; }
protected void addPortletWindowData( HttpServletRequest request, IPortletEntityId portletEntityId, final Set<IPortletWindow> portletWindows, final PortletWindowCache<IPortletWindow> portletWindowMap, final PortletWindowCache<PortletWindowData> portletWindowDataMap) { final Set<PortletWindowData> windows = portletWindowDataMap.getWindows(portletEntityId); if (windows == null) { return; } for (final PortletWindowData portletWindowData : windows) { final IPortletWindowId portletWindowId = portletWindowData.getPortletWindowId(); // Skip data windows that aren't for this entity and for windows that are already in the // request cache if (!portletEntityId.equals(portletWindowData.getPortletEntityId()) || portletWindowMap.containsWindow(portletWindowId)) { continue; } // Wrap the data in a window and stick it in the request cache IPortletWindow portletWindow = this.wrapPortletWindowData(request, portletWindowData); portletWindow = portletWindowMap.storeIfAbsentWindow(portletWindow); portletWindows.add(portletWindow); } }
protected void addPortletWindowData( HttpServletRequest request, IPortletEntityId portletEntityId, final Set<IPortletWindow> portletWindows, final PortletWindowCache<IPortletWindow> portletWindowMap, final PortletWindowCache<PortletWindowData> portletWindowDataMap) { final Set<PortletWindowData> windows = portletWindowDataMap.getWindows(portletEntityId); if (windows == null) { return; } for (final PortletWindowData portletWindowData : windows) { final IPortletWindowId portletWindowId = portletWindowData.getPortletWindowId(); // Skip data windows that aren't for this entity and for windows that are already in the // request cache if (!portletEntityId.equals(portletWindowData.getPortletEntityId()) || portletWindowMap.containsWindow(portletWindowId)) { continue; } // Wrap the data in a window and stick it in the request cache IPortletWindow portletWindow = this.wrapPortletWindowData(request, portletWindowData); portletWindow = portletWindowMap.storeIfAbsentWindow(portletWindow); portletWindows.add(portletWindow); } }