@Unstable
@Role
public interface ReferenceRenamer
Modifier and Type | Method and Description |
---|---|
boolean |
renameReferences(org.xwiki.rendering.block.Block block,
org.xwiki.model.reference.DocumentReference currentDocumentReference,
org.xwiki.model.reference.DocumentReference oldTarget,
org.xwiki.model.reference.DocumentReference newTarget,
boolean relative)
Change references of the given block so that the references pointing to the old target points to the new target.
|
boolean renameReferences(org.xwiki.rendering.block.Block block, org.xwiki.model.reference.DocumentReference currentDocumentReference, org.xwiki.model.reference.DocumentReference oldTarget, org.xwiki.model.reference.DocumentReference newTarget, boolean relative)
block
- the Block
to modifycurrentDocumentReference
- the current document referenceoldTarget
- the previous reference of the renamed documentnewTarget
- the new reference of the renamed documentrelative
- true
if the link should be serialized relatively to the current document
(see LinkRefactoring.updateRelativeLinks(org.xwiki.model.reference.DocumentReference, org.xwiki.model.reference.DocumentReference)
)true
if the given Block
was modifiedCopyright © 2004–2021 XWiki. All rights reserved.