public class AlternativePagesLocator extends Object
Alternatives are found in the following fashion: 1. If a page with the title and space has been trashed. 2a. If a page had the title in the given space it may have been renamed. 2b. If a page had or has the title in another space it may have been moved. 2c. If a page in the same space has a similar name the user may have mistyped it.
If the page is found in the trash no further searching is done.
Constructor and Description |
---|
AlternativePagesLocator(PageManager pageManager,
PermissionManager permissionManager,
Space space,
String title) |
Modifier and Type | Method and Description |
---|---|
boolean |
foundInTrash() |
List<AbstractPage> |
getBlogsInOtherSpaces()
Returns blog posts in other spaces that have or had the required title.
|
List<AbstractPage> |
getPagesInOtherSpaces()
Returns pages in other spaces that have or had the required title the page may have been moved and potentially
renamed.
|
List<AbstractPage> |
getPagesWithSimilarTitleInSpace()
Returns pages in the space that have similar titles to the one requested.
|
List<AbstractPage> |
getPossiblesInTrash()
Returns any pages in Trash with the given space and title.
|
List<AbstractPage> |
getRenamedPagesInSpace()
Returns pages in the space that had the required title but have been renamed.
|
boolean |
hasAlternatives()
Returns true if at least one alternative page can be found for the supplied title.
|
public AlternativePagesLocator(PageManager pageManager, PermissionManager permissionManager, Space space, String title)
public boolean hasAlternatives()
public boolean foundInTrash()
public List<AbstractPage> getPossiblesInTrash()
public List<AbstractPage> getPagesInOtherSpaces()
Note that many pages may have the same title in different spaces, e.g. "Home".
public List<AbstractPage> getBlogsInOtherSpaces()
public List<AbstractPage> getRenamedPagesInSpace()
public List<AbstractPage> getPagesWithSimilarTitleInSpace()
Copyright © 2003–2018 Atlassian. All rights reserved.