public class RevertContentToVersionCommand extends Object
Modifier and Type | Field and Description |
---|---|
static String |
NON_UNIQUE_TITLE_ERROR |
Constructor and Description |
---|
RevertContentToVersionCommand(PermissionManager permissionManager,
ContentEntityManager contentEntityManager) |
Modifier and Type | Method and Description |
---|---|
void |
execute(ContentEntityObject ceo,
int version,
String revertComment,
boolean revertTitle) |
ContentEntityObject |
getVersionToRevert(ContentEntityObject latestVersion,
int version) |
boolean |
isAuthorized(com.atlassian.user.User currentUser,
ContentEntityObject contentEntityObject) |
void |
validate(ServiceCommandValidator validator,
ContentEntityObject ceo,
ContentEntityObject possibleConflictingCeo,
int versionToRevert,
boolean revertTitle) |
public static final String NON_UNIQUE_TITLE_ERROR
public RevertContentToVersionCommand(PermissionManager permissionManager, ContentEntityManager contentEntityManager)
public void validate(ServiceCommandValidator validator, ContentEntityObject ceo, ContentEntityObject possibleConflictingCeo, int versionToRevert, boolean revertTitle)
public boolean isAuthorized(com.atlassian.user.User currentUser, ContentEntityObject contentEntityObject)
public void execute(ContentEntityObject ceo, int version, String revertComment, boolean revertTitle)
public ContentEntityObject getVersionToRevert(ContentEntityObject latestVersion, int version)
Copyright © 2003–2015 Atlassian. All rights reserved.