Interface PageNameConflictResolver
- All Known Implementing Classes:
AggregateNameConflictResolver
,DefaultPageNameConflictResolver
,FindAndReplaceNameConflictResolver
,PrefixNameConflictResolver
public interface PageNameConflictResolver
Help resolve any conflicts that may arise during a copy. Applies a new name for copies pages with conflicting names
- Since:
- 5.10
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Indicates that this always provides a new name during the copy process, even for non-conflicting pagesint
This is maximum number to retry saving page.resolveConflict
(int currentRetryNumber, String originalName) Implements the name conflict resolution strategy
-
Method Details
-
couldProvideNewName
boolean couldProvideNewName()Indicates that this always provides a new name during the copy process, even for non-conflicting pages- Returns:
- true if yes otherwise false
-
getMaxRetryNumber
int getMaxRetryNumber()This is maximum number to retry saving page. In case, there is duplication still happen even we already try to rename the page- Returns:
- max retry to save page with new name
-
resolveConflict
Implements the name conflict resolution strategy- Parameters:
originalName
-- Returns:
- new name which could solve conflict
-