Constructor
new RemotePage(id, version, title, meta, parentId)
Constructor
Parameters:
Name | Type | Default | Description |
---|---|---|---|
id | number | ||
version | number | ||
title | string | ||
meta | Meta | ||
parentId | number | null |
- Source
Extends
- Page
Members
localPage :LocalPage
The related LocalPage
Type:
- LocalPage
- Source
Methods
repoConflict() → {boolean}
- Source
Returns:
True
if the meta.repo
of this page is other than the meta.repo
of the related localPage
- Type:
- boolean
shouldUpdate() → {boolean}
- Source
Returns:
True
if related to a local page and should be updated
- Type:
- boolean
(async) sync(renderer, confluence) → {Promise.<RemotePage>}
Re-sync this page with Confluence.
- If the page in not related to a
localPage
, it should be deleted. - If the page is related to a
localPage
andshouldUpdate
then update the page using the content from thelocalPage
Parameters:
Name | Type | Description |
---|---|---|
renderer | AssetRenderer | an |
confluence | ConfluenceSdk | ConfluenceSdk instance to use for syncing |
- Source
Returns:
The updated RemotePage
- Type:
- Promise.<RemotePage>