Class FindAndReplaceNameConflictResolver
java.lang.Object
com.atlassian.confluence.pages.persistence.dao.bulk.impl.FindAndReplaceNameConflictResolver
- All Implemented Interfaces:
PageNameConflictResolver
Find and Replace text in page title to resolve conflict
- Since:
- 5.10
-
Constructor Summary
ConstructorsConstructorDescriptionFindAndReplaceNameConflictResolver(String searchString, String replaceString) -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates that this always provides a new name during the copy process, even for non-conflicting pagesintThis is maximum number to retry saving page.resolveConflict(int currentRetryNumber, String originalName) Implements the name conflict resolution strategy
-
Constructor Details
-
FindAndReplaceNameConflictResolver
-
-
Method Details
-
couldProvideNewName
public boolean couldProvideNewName()Description copied from interface:PageNameConflictResolverIndicates that this always provides a new name during the copy process, even for non-conflicting pages- Specified by:
couldProvideNewNamein interfacePageNameConflictResolver- Returns:
- true if yes otherwise false
-
getMaxRetryNumber
public int getMaxRetryNumber()Description copied from interface:PageNameConflictResolverThis is maximum number to retry saving page. In case, there is duplication still happen even we already try to rename the page- Specified by:
getMaxRetryNumberin interfacePageNameConflictResolver- Returns:
- max retry to save page with new name
-
resolveConflict
Description copied from interface:PageNameConflictResolverImplements the name conflict resolution strategy- Specified by:
resolveConflictin interfacePageNameConflictResolver- Parameters:
originalName-- Returns:
- new name which could solve conflict
-