com.atlassian.confluence.content.service.page
Class RevertContentToVersionCommand

java.lang.Object
  extended by com.atlassian.confluence.content.service.page.RevertContentToVersionCommand

public class RevertContentToVersionCommand
extends java.lang.Object


Field Summary
static java.lang.String NON_UNIQUE_TITLE_ERROR
           
 
Constructor Summary
RevertContentToVersionCommand(PermissionManager permissionManager, ContentEntityManager contentEntityManager)
           
 
Method Summary
 void execute(ContentEntityObject ceo, int version, java.lang.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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NON_UNIQUE_TITLE_ERROR

public static final java.lang.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,
                    java.lang.String revertComment,
                    boolean revertTitle)

getVersionToRevert

public ContentEntityObject getVersionToRevert(ContentEntityObject latestVersion,
                                              int version)


Copyright © 2003-2010 Atlassian. All Rights Reserved.