public static bool Restore(PortletBase portlet, out PortletState state) { var requestNodePath = PortalContext.Current.ContextNodePath; if (requestNodePath == null) { var cbPortlet = portlet as ContextBoundPortlet; if (cbPortlet != null) { var node = cbPortlet.ContextNode; if (node != null) { requestNodePath = node.Path; } } } state = HttpContext.Current.Session[Math.Abs((requestNodePath + portlet.ClientID).GetHashCode()).ToString()] as PortletState; if (state != null) { state.Portlet = portlet; } return(state != null); }
public ContentCollectionPortletState(PortletBase portlet) : base(portlet) { }
public ContentSearchPortletState(PortletBase portlet) : base(portlet) { }
public PortletState(PortletBase portlet) { this.Portlet = portlet; }