Class RevertContentToVersionCommand
- java.lang.Object
-
- com.atlassian.confluence.content.service.page.RevertContentToVersionCommand
-
public class RevertContentToVersionCommand extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
NON_UNIQUE_TITLE_ERROR
-
Constructor Summary
Constructors Constructor Description RevertContentToVersionCommand(PermissionManager permissionManager, ContentEntityManager contentEntityManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Field Detail
-
NON_UNIQUE_TITLE_ERROR
public static final String NON_UNIQUE_TITLE_ERROR
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RevertContentToVersionCommand
public RevertContentToVersionCommand(PermissionManager permissionManager, ContentEntityManager contentEntityManager)
-
-
Method Detail
-
validate
public void validate(ServiceCommandValidator validator, ContentEntityObject ceo, ContentEntityObject possibleConflictingCeo, int versionToRevert, boolean revertTitle)
-
isAuthorized
public boolean isAuthorized(com.atlassian.user.User currentUser, ContentEntityObject contentEntityObject)
-
execute
public void execute(ContentEntityObject ceo, int version, String revertComment, boolean revertTitle)
-
getVersionToRevert
public ContentEntityObject getVersionToRevert(ContentEntityObject latestVersion, int version)
-
-