Class PrefixNameConflictResolver
java.lang.Object
com.atlassian.confluence.pages.persistence.dao.bulk.impl.PrefixNameConflictResolver
- All Implemented Interfaces:
PageNameConflictResolver
Will apply a prefix before a conflicting page title
- Since:
- 5.10
-
Constructor Summary
ConstructorsConstructorDescriptionPrefixNameConflictResolver
(boolean shouldApplyForNewName, String prefix) PrefixNameConflictResolver
(boolean shouldApplyForNewName, String prefix, int maxRetry) PrefixNameConflictResolver
(String prefix) -
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
-
Constructor Details
-
PrefixNameConflictResolver
-
PrefixNameConflictResolver
-
PrefixNameConflictResolver
-
-
Method Details
-
couldProvideNewName
public boolean couldProvideNewName()Description copied from interface:PageNameConflictResolver
Indicates that this always provides a new name during the copy process, even for non-conflicting pages- Specified by:
couldProvideNewName
in interfacePageNameConflictResolver
- Returns:
- true if yes otherwise false
-
getMaxRetryNumber
public int getMaxRetryNumber()Description copied from interface:PageNameConflictResolver
This is maximum number to retry saving page. In case, there is duplication still happen even we already try to rename the page- Specified by:
getMaxRetryNumber
in interfacePageNameConflictResolver
- Returns:
- max retry to save page with new name
-
resolveConflict
Description copied from interface:PageNameConflictResolver
Implements the name conflict resolution strategy- Specified by:
resolveConflict
in interfacePageNameConflictResolver
- Returns:
- new name which could solve conflict
-