Class ChangeDocumentIdBuilder
java.lang.Object
com.atlassian.confluence.internal.search.ChangeDocumentIdBuilder
This class is used to generate the ids used to identify change documents and
groups of change document in the Lucene index
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetChangeDocumentAndAuthorId
(Searchable entityObject) Creates an id that uniquely identifies a change document in the index.getGroupId
(Handle handle) Creates an id that uniquely identifies a group of change documents in the index.getGroupId
(Searchable searchable) Creates an id that uniquely identifies a group of change documents in the index.
-
Constructor Details
-
ChangeDocumentIdBuilder
public ChangeDocumentIdBuilder()
-
-
Method Details
-
getChangeDocumentAndAuthorId
Creates an id that uniquely identifies a change document in the index. The format of the id is "[handle-of-latest-version]-[author-of-the-change]", for example "com.atlassian.confluence.pages.Page-123-foo" -
getGroupId
Creates an id that uniquely identifies a group of change documents in the index. The format of the id is "[handle-of-latest-version]", for example "com.atlassian.confluence.pages.Page-123"- Parameters:
handle
- the handle of an entity. Note:If the referenced entity is an instance ofVersioned
it expects the handle for the latest version of that entity
-
getGroupId
Creates an id that uniquely identifies a group of change documents in the index. The format of the id is "[handle-of-latest-version]", for example "com.atlassian.confluence.pages.Page-123"- Parameters:
searchable
- an entity.
-