public class PageIndexNamingCriterion extends Object implements NamingCriterion
NamingCriterion based on the name of the main document being split.INDEX_SEPERATOR| Constructor and Description |
|---|
PageIndexNamingCriterion(String baseDocumentName,
DocumentAccessBridge docBridge)
Constructs a new
PageIndexNamingCriterion. |
| Modifier and Type | Method and Description |
|---|---|
String |
getDocumentName(org.xwiki.rendering.block.XDOM newDoc)
Generates a suitable name for the new document represented by 'newDoc' which is a result of the splitting
operation.
|
public PageIndexNamingCriterion(String baseDocumentName, DocumentAccessBridge docBridge)
PageIndexNamingCriterion.baseDocumentName - base name to be used for generating new document names.docBridge - DocumentAccessBridge used to lookup for documents.public String getDocumentName(org.xwiki.rendering.block.XDOM newDoc)
NamingCriteriongetDocumentName in interface NamingCriterionnewDoc - the XDOM representing the newly split document.Copyright © 2004–2021 XWiki. All rights reserved.