Skip to content

Commit

Permalink
BVERSION-82: Do not publish comments from master space, keep or reset…
Browse files Browse the repository at this point in the history
… comments from target page

* Comments from master space are never published
  • Loading branch information
mathpce committed Jan 22, 2025
1 parent 2b0402f commit 4b8854f
Showing 1 changed file with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@
*/
public interface BookVersionsConstants
{
/**
* The reference of the XWiki location.
*/
EntityReference XWIKI_REFERENCE = new EntityReference("XWiki", org.xwiki.model.EntityType.SPACE);

/**
* The reference of the code location.
*/
Expand Down Expand Up @@ -130,6 +135,12 @@ public interface BookVersionsConstants
EntityReference PUBLISHEDCOLLECTION_CLASS_REFERENCE =
new EntityReference("PublishedBookClass", EntityType.DOCUMENT, BOOKVERSIONS_CODE_REFERENCE);

/**
* The XWiki comments class.
*/
EntityReference XWIKICOMMENTS_CLASS_REFERENCE =
new EntityReference("XWikiComments", EntityType.DOCUMENT, XWIKI_REFERENCE);

/**
* The masterName property of a published collection data.
*/
Expand Down Expand Up @@ -371,7 +382,8 @@ public interface BookVersionsConstants
BookVersionsConstants.BOOKPAGE_CLASS_REFERENCE,
BookVersionsConstants.MARKEDDELETED_CLASS_REFERENCE,
BookVersionsConstants.VARIANTLIST_CLASS_REFERENCE,
BookVersionsConstants.PUBLICATION_CLASS_REFERENCE
BookVersionsConstants.PUBLICATION_CLASS_REFERENCE,
BookVersionsConstants.XWIKICOMMENTS_CLASS_REFERENCE
);

/**
Expand Down

0 comments on commit 4b8854f

Please sign in to comment.