public static RenderingResponseHandlerResult GetDataResponseHandling(string handlerName, DataEntityToken requestedItemEntityToken) { IDataRenderingResponseHandler handler = GetRenderingResponseHandler(handlerName) as IDataRenderingResponseHandler; Verify.IsNotNull(handler, "The Rendering Response Handler named '{0}' does not implement the required interface '{1}'", handlerName, typeof(IDataRenderingResponseHandler)); return handler.GetDataResponseHandling(requestedItemEntityToken); }
public RenderingResponseHandlerResult GetDataResponseHandling(DataEntityToken requestedItemEntityToken) { foreach (string name in RenderingResponseHandlerRegistry.RenderingResponseHandlerNames) { if (RenderingResponseHandlerPluginFacade.IsDataRenderingResponseHandler(name) == false) continue; RenderingResponseHandlerResult result = RenderingResponseHandlerPluginFacade.GetDataResponseHandling(name, requestedItemEntityToken); if ((result != null) && (result.PreventPublicCaching || result.EndRequest || (result.RedirectRequesterTo != null))) { return result; } } return null; }
public static void ReloadDataElementInConsole(DataEntityToken dataEntityToken) { var parentEntityTokens = AuxiliarySecurityAncestorFacade.GetParents(dataEntityToken); foreach (var parentEntityToken in parentEntityTokens) { ConsoleMessageQueueFacade.Enqueue(new RefreshTreeMessageQueueItem { EntityToken = parentEntityToken }, null); } }
/// <summary> /// Pass information about a request through all <see cref="Composite.Core.WebClient.Renderings.Plugins.RenderingResponseHandler.IDataRenderingResponseHandler"/> /// plugins registered on the Orckestra CMS site. The resulting <see cref="RenderingResponseHandlerResult"/> define how you should treat the request. /// </summary> /// <param name="requestedItemEntityToken">The data being rendered. This can be <see cref="Composite.Data.Types.IPage"/> and <see cref="Composite.Data.Types.IMediaFile"/>.</param> /// <returns>A <see cref="RenderingResponseHandlerResult"/> object detailing what should happen to the user request. Returning null means no special handling should be done (request should continue).</returns> public static RenderingResponseHandlerResult GetDataResponseHandling(DataEntityToken requestedItemEntityToken) { return _implementation.GetDataResponseHandling(requestedItemEntityToken); }
public XmlPageTemplateDeleter(DataEntityToken entityToken) { var dataEntityToken = entityToken; _pageTemplate = (IXmlPageTemplate)dataEntityToken.Data; }