|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LinkManager
Field Summary | |
---|---|
static java.lang.String |
CAMELCASE_LINK_PATTERN
|
static java.lang.String |
NORMAL_LINK_PATTERN
|
Method Summary | |
---|---|
java.util.List |
extractLinksFromContent(ContentEntityObject content)
|
java.lang.String |
getContentWithRenamedLinks(ContentEntityObject referringContent,
SpaceContentEntityObject pageBeingRenamed,
java.lang.String newSpaceKey,
java.lang.String newPageTitle)
extracts the text from the referring page, renames links with newSpaceKey and newPageTitle and returns the content with updated links |
java.util.List |
getIncomingLinksToContent(ContentEntityObject content)
|
java.util.Collection<ContentEntityObject> |
getReferringContent(ContentEntityObject content)
|
java.lang.String |
getSelfContentWithRenamedLinks(ContentEntityObject referringContent,
java.lang.String newSpaceKey)
extracts the text from the page to be moved, renames links which target the old space and returns the content with the updated links |
void |
removeCorruptOutgoingLinks()
|
void |
removeLink(OutgoingLink link)
Remove an internal link |
void |
renameOutgoingLinksToAttachments(ContentEntityObject refContent,
java.lang.String existingFileName,
java.lang.String newFileName)
Renames all attachments links on the current page (srcContent) Used for simple renaming of attachments |
void |
renameOutgoingLinksToMovedAttachments(ContentEntityObject refContent,
java.lang.String existingFileName,
java.lang.String newFileName,
ContentEntityObject srcContent,
ContentEntityObject destContent)
Renames all attachment links on the current page. |
void |
saveLink(OutgoingLink link)
Save an internal link |
void |
updateOutgoingLinks(ContentEntityObject content)
|
Field Detail |
---|
static final java.lang.String CAMELCASE_LINK_PATTERN
static final java.lang.String NORMAL_LINK_PATTERN
Method Detail |
---|
void saveLink(OutgoingLink link)
void removeLink(OutgoingLink link)
java.lang.String getSelfContentWithRenamedLinks(ContentEntityObject referringContent, java.lang.String newSpaceKey)
referringContent
- newSpaceKey
-
java.util.List getIncomingLinksToContent(ContentEntityObject content)
java.lang.String getContentWithRenamedLinks(ContentEntityObject referringContent, SpaceContentEntityObject pageBeingRenamed, java.lang.String newSpaceKey, java.lang.String newPageTitle)
referringContent
- page that contains a link to the pageBeingRenamedpageBeingRenamed
- page that is being renamed or movednewSpaceKey
- the new space key of 'pageBeingRenamed'newPageTitle
- the new title for 'pageBeingRenamed'void renameOutgoingLinksToAttachments(ContentEntityObject refContent, java.lang.String existingFileName, java.lang.String newFileName)
refContent
- existingFileName
- newFileName
- void renameOutgoingLinksToMovedAttachments(ContentEntityObject refContent, java.lang.String existingFileName, java.lang.String newFileName, ContentEntityObject srcContent, ContentEntityObject destContent)
refContent
- existingFileName
- newFileName
- srcContent
- destContent
- void updateOutgoingLinks(ContentEntityObject content)
java.util.List extractLinksFromContent(ContentEntityObject content)
java.util.Collection<ContentEntityObject> getReferringContent(ContentEntityObject content)
void removeCorruptOutgoingLinks()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |