Confluence page DTO.
Наследование: PageSummary
Пример #1
0
		private static RemotePage ToRemotePage(Page page)
		{
			return new RemotePage
			{
				id = page.Id,
				parentId = page.ParentId,
				title = page.Name,
				space = page.Space,
				version = page.Version,
				content = page.Content
			};
		}
Пример #2
0
		private bool UpdateProjectPage(IProjectPage page, Page existing)
		{
			var updated = page.RenderPage();
			var content = updated.Render();

			var before = NormalizeForComparison(existing.Content);
			var after = NormalizeForComparison(content);

			if (after == before)
				return false;

			existing.Content = content;
			m_confluence.UpdatePage(existing);
			return true;
		}
Пример #3
0
		public void UpdatePage(Page page)
		{
			var options = new RemotePageUpdateOptions { minorEdit = true };
			m_client.updatePage(m_token, ToRemotePage(page), options);
		}