|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.confluence.pages.AlternativePagesLocator
public class AlternativePagesLocator
Finds possible content matches for a supplied title and space.
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 Summary | |
|---|---|
AlternativePagesLocator(PageManager pageManager,
PermissionManager permissionManager,
Space space,
java.lang.String title)
|
|
| Method Summary | |
|---|---|
boolean |
foundInTrash()
|
java.util.List<AbstractPage> |
getPagesInOtherSpaces()
Returns pages in other spaces that have or had the required title the page may have been moved and potentially renamed. |
java.util.List<AbstractPage> |
getPagesWithSimilarTitleInSpace()
Returns pages in the space that have similar titles to the one requested. |
java.util.List<AbstractPage> |
getPossiblesInTrash()
Returns any pages in Trash with the given space and title. |
java.util.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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AlternativePagesLocator(PageManager pageManager,
PermissionManager permissionManager,
Space space,
java.lang.String title)
| Method Detail |
|---|
public boolean hasAlternatives()
public boolean foundInTrash()
public java.util.List<AbstractPage> getPossiblesInTrash()
public java.util.List<AbstractPage> getPagesInOtherSpaces()
public java.util.List<AbstractPage> getRenamedPagesInSpace()
public java.util.List<AbstractPage> getPagesWithSimilarTitleInSpace()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||