Class RevertContentToVersionCommand
java.lang.Object
com.atlassian.confluence.content.service.page.RevertContentToVersionCommand
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRevertContentToVersionCommand(PermissionManager permissionManager, ContentEntityManager contentEntityManager) -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(ContentEntityObject ceo, int version, String revertComment, boolean revertTitle) getVersionToRevert(ContentEntityObject latestVersion, int version) booleanisAuthorized(ConfluenceUser currentUser, ContentEntityObject contentEntityObject) voidvalidate(ServiceCommandValidator validator, ContentEntityObject ceo, ContentEntityObject possibleConflictingCeo, int versionToRevert, boolean revertTitle)
-
Field Details
-
NON_UNIQUE_TITLE_ERROR
- See Also:
-
-
Constructor Details
-
RevertContentToVersionCommand
public RevertContentToVersionCommand(PermissionManager permissionManager, ContentEntityManager contentEntityManager)
-
-
Method Details
-
validate
public void validate(ServiceCommandValidator validator, ContentEntityObject ceo, ContentEntityObject possibleConflictingCeo, int versionToRevert, boolean revertTitle) -
isAuthorized
-
execute
public void execute(ContentEntityObject ceo, int version, String revertComment, boolean revertTitle) -
getVersionToRevert
-