public class AttachmentLinkRenamingBean extends Object implements LinkRenamingBean
Constructor and Description |
---|
AttachmentLinkRenamingBean(ContentEntityObject referringContent,
ContentEntityObject oldLocation,
String newSpaceKey,
String newPageTitle)
Create a bean to update attachment links throughout a given ContentEntityObject's content, changing the page to
which the links refer.
|
AttachmentLinkRenamingBean(ContentEntityObject referringContent,
String oldFileName,
String newFileName)
Create a bean to rename the attachment filename throughout a given ContentEntityObject's content.
|
AttachmentLinkRenamingBean(ContentEntityObject referringContent,
String oldFileName,
String newFileName,
ContentEntityObject oldLocation,
ContentEntityObject newLocation)
Create a bean to update links on a given page to reflect a change to an attachment.
|
Modifier and Type | Method and Description |
---|---|
protected String |
escapeDollars(String s) |
String |
getRenamedContent() |
public AttachmentLinkRenamingBean(ContentEntityObject referringContent, String oldFileName, String newFileName)
getRenamedContent()
.referringContent
- page in which to update links.oldFileName
- the filename as it appears in the contentnewFileName
- the filename as it should appear in the contentpublic AttachmentLinkRenamingBean(ContentEntityObject referringContent, ContentEntityObject oldLocation, String newSpaceKey, String newPageTitle)
getRenamedContent()
. Any possible
simplifications will be performed. EG [space:page^file]
will be simplified to [^file]
when the referringContent
and newLocation
are the same.referringContent
- page in which to update links.oldLocation
- page to which the links currently refer.newSpaceKey
- space the links should refer to.newPageTitle
- page the links should refer to.public AttachmentLinkRenamingBean(ContentEntityObject referringContent, String oldFileName, String newFileName, ContentEntityObject oldLocation, ContentEntityObject newLocation)
getRenamedContent()
. Any possible simplifications will be performed. EG
[space:page^file]
will be simplified to [^file]
when the referringContent
and newLocation
are the same.referringContent
- page in which links will be updated.oldFileName
- The name of the attachment in existing links.newFileName
- The new name of the attachment to which the links should refer.oldLocation
- The page to which the links currently point.newLocation
- The page to which the links will point.public String getRenamedContent()
getRenamedContent
in interface LinkRenamingBean
Copyright © 2003–2021 Atlassian. All rights reserved.
View cookie preferences