示例#1
0
		protected AutomobileHandler(NodeToken token) : base(token) { }
 protected HttpEndpointDemoContent(NodeToken nt) : base(nt) { }
示例#3
0
 protected JournalNode(NodeToken nt) : base(nt) { }
示例#4
0
 protected Domain(NodeToken token) : base(token) { }
示例#5
0
 protected Device(NodeToken nt) : base(nt) { }
示例#6
0
 protected ExpenseClaim(NodeToken nt) : base(nt) { }
示例#7
0
		protected PortalRoot(NodeToken nt) : base(nt) { }
示例#8
0
 protected ViewBase(NodeToken nt) : base(nt) {}
示例#9
0
		public TestNode2(NodeToken token) : base(token) { }
示例#10
0
		protected SmartFolder(NodeToken nt) : base(nt) { }
示例#11
0
		protected PageTemplate(NodeToken nt) : base(nt) { }
示例#12
0
 protected HttpStatusApplication(NodeToken nt) : base(nt) { }
示例#13
0
 protected UserProfile(NodeToken nt) : base(nt) { }
示例#14
0
 protected Webform(NodeToken nt) : base(nt) { }
示例#15
0
 protected Group(NodeToken token) : base(token) { }
示例#16
0
        //====================================================================== 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;
        }
示例#17
0
 protected WorkflowHandlerBase(NodeToken nt) : base(nt) { }
示例#18
0
        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();
        }
示例#19
0
 protected Image(NodeToken nt) : base(nt) { }
示例#20
0
 protected FileBase(NodeToken nt) : base(nt) { }
示例#21
0
 protected NewsArticle(NodeToken nt) : base(nt) { }
示例#22
0
		protected DocumentLibrary(NodeToken nt) : base(nt) { }
		protected TestNodeWithBinaryProperty(NodeToken token) : base(token) { }
示例#24
0
 protected BlogPost(NodeToken nt) : base(nt) { }
示例#25
0
 protected ContentLink(NodeToken tk) : base(tk) { }
示例#26
0
 protected RegistrationWorkflow(NodeToken nt) : base(nt) { }
示例#27
0
 protected FormItem(NodeToken nt) : base(nt) { }
示例#28
0
 protected ForumEntry(NodeToken nt) : base(nt) { }
示例#29
0
		protected ContentList(NodeToken nt) : base(nt)
		{
			Initialize();
			//Build();
		}
示例#30
0
 protected SurveyItem(NodeToken nt)
     : base(nt)
 {    
 }