public class PrefixNameConflictResolver extends Object implements PageNameConflictResolver
Constructor and Description |
---|
PrefixNameConflictResolver(boolean shouldApplyForNewName,
String prefix) |
PrefixNameConflictResolver(boolean shouldApplyForNewName,
String prefix,
int maxRetry) |
PrefixNameConflictResolver(String prefix) |
Modifier and Type | Method and Description |
---|---|
boolean |
couldProvideNewName()
Indicates that this always provides a new name during the copy process, even for non-conflicting pages
|
int |
getMaxRetryNumber()
This is maximum number to retry saving page.
|
String |
resolveConflict(int currentRetryNumber,
String originalName)
Implements the name conflict resolution strategy
|
public PrefixNameConflictResolver(String prefix)
public PrefixNameConflictResolver(boolean shouldApplyForNewName, String prefix)
public PrefixNameConflictResolver(boolean shouldApplyForNewName, String prefix, int maxRetry)
public boolean couldProvideNewName()
PageNameConflictResolver
couldProvideNewName
in interface PageNameConflictResolver
public int getMaxRetryNumber()
PageNameConflictResolver
getMaxRetryNumber
in interface PageNameConflictResolver
public String resolveConflict(int currentRetryNumber, String originalName)
PageNameConflictResolver
resolveConflict
in interface PageNameConflictResolver
Copyright © 2003–2020 Atlassian. All rights reserved.