protected AutomobileHandler(NodeToken token) : base(token) { }
protected HttpEndpointDemoContent(NodeToken nt) : base(nt) { }
protected JournalNode(NodeToken nt) : base(nt) { }
protected Domain(NodeToken token) : base(token) { }
protected Device(NodeToken nt) : base(nt) { }
protected ExpenseClaim(NodeToken nt) : base(nt) { }
protected PortalRoot(NodeToken nt) : base(nt) { }
protected ViewBase(NodeToken nt) : base(nt) {}
public TestNode2(NodeToken token) : base(token) { }
protected SmartFolder(NodeToken nt) : base(nt) { }
protected PageTemplate(NodeToken nt) : base(nt) { }
protected HttpStatusApplication(NodeToken nt) : base(nt) { }
protected UserProfile(NodeToken nt) : base(nt) { }
protected Webform(NodeToken nt) : base(nt) { }
protected Group(NodeToken token) : base(token) { }
//====================================================================== Get NodeData internal static NodeToken GetNodeData(NodeHead head, int versionId) { int listId = head.ContentListId; int listTypeId = head.ContentListTypeId; var cacheKey = GenerateNodeDataVersionIdCacheKey(versionId); var nodeData = DistributedApplication.Cache.Get(cacheKey) as NodeData; NodeToken token = new NodeToken(head.Id, head.NodeTypeId, listId, listTypeId, versionId, null); token.NodeHead = head; if (nodeData == null) { DataProvider.Current.LoadNodeData(new NodeToken[] { token }); nodeData = token.NodeData; if (nodeData != null) //-- lost version CacheNodeData(nodeData, cacheKey); } else { token.NodeData = nodeData; } return token; }
protected WorkflowHandlerBase(NodeToken nt) : base(nt) { }
internal static NodeToken[] GetNodeData(NodeHead[] headArray, int[] versionIdArray) { var tokens = new List<NodeToken>(); var tokensToLoad = new List<NodeToken>(); for (var i = 0; i < headArray.Length; i++) { var head = headArray[i]; var versionId = versionIdArray[i]; int listId = head.ContentListId; int listTypeId = head.ContentListTypeId; NodeToken token = new NodeToken(head.Id, head.NodeTypeId, listId, listTypeId, versionId, null); token.NodeHead = head; tokens.Add(token); //-- var cacheKey = GenerateNodeDataVersionIdCacheKey(versionId); var nodeData = DistributedApplication.Cache.Get(cacheKey) as NodeData; if (nodeData == null) tokensToLoad.Add(token); else token.NodeData = nodeData; } if (tokensToLoad.Count > 0) { DataProvider.Current.LoadNodeData(tokensToLoad); foreach (var token in tokensToLoad) { var nodeData = token.NodeData; if (nodeData != null) //-- lost version CacheNodeData(nodeData); } } return tokens.ToArray(); }
protected Image(NodeToken nt) : base(nt) { }
protected FileBase(NodeToken nt) : base(nt) { }
protected NewsArticle(NodeToken nt) : base(nt) { }
protected DocumentLibrary(NodeToken nt) : base(nt) { }
protected TestNodeWithBinaryProperty(NodeToken token) : base(token) { }
protected BlogPost(NodeToken nt) : base(nt) { }
protected ContentLink(NodeToken tk) : base(tk) { }
protected RegistrationWorkflow(NodeToken nt) : base(nt) { }
protected FormItem(NodeToken nt) : base(nt) { }
protected ForumEntry(NodeToken nt) : base(nt) { }
protected ContentList(NodeToken nt) : base(nt) { Initialize(); //Build(); }
protected SurveyItem(NodeToken nt) : base(nt) { }