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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
couldProvideNewName()
Indicates that this always provides a new name during the copy process, even for non-conflicting pagesint
getMaxRetryNumber()
This is maximum number to retry saving page.String
resolveConflict(int currentRetryNumber, String originalName)
Implements the name conflict resolution strategy
-
-
-
Method Detail
-
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
-
-