Interface PageNameConflictResolver
-
- All Known Implementing Classes:
AggregateNameConflictResolver,DefaultPageNameConflictResolver,FindAndReplaceNameConflictResolver,PrefixNameConflictResolver
public interface PageNameConflictResolverHelp 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 booleancouldProvideNewName()Indicates that this always provides a new name during the copy process, even for non-conflicting pagesintgetMaxRetryNumber()This is maximum number to retry saving page.StringresolveConflict(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
-
-