test.plugin.versionchildpolicy
Class DummyVersionChildPolicyTestResource

java.lang.Object
  extended by test.plugin.versionchildpolicy.DummyVersionChildPolicyTestResource

public class DummyVersionChildPolicyTestResource
extends Object


Field Summary
static String KEY_CURRENT
           
static String KEY_ORIGINAL
           
static String TITLE
           
 
Constructor Summary
DummyVersionChildPolicyTestResource(CustomContentManager customContentManager, CommentManager commentManager, com.atlassian.sal.api.transaction.TransactionTemplate transactionTemplate, SpaceManager spaceManager)
           
 
Method Summary
 long addComment(String content, long contentId, int version)
           
 long doCreateCurrent(String spaceKey)
           
 long doCreateOriginal(String spaceKey)
           
 long doRevert(long contentId, int version)
           
 long doUpdateOriginal(long contentId)
           
 void removeVersion(long contentId, int version)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TITLE

public static final String TITLE
See Also:
Constant Field Values

KEY_CURRENT

public static final String KEY_CURRENT
See Also:
Constant Field Values

KEY_ORIGINAL

public static final String KEY_ORIGINAL
See Also:
Constant Field Values
Constructor Detail

DummyVersionChildPolicyTestResource

public DummyVersionChildPolicyTestResource(CustomContentManager customContentManager,
                                           CommentManager commentManager,
                                           com.atlassian.sal.api.transaction.TransactionTemplate transactionTemplate,
                                           SpaceManager spaceManager)
Method Detail

doCreateOriginal

public long doCreateOriginal(String spaceKey)

doCreateCurrent

public long doCreateCurrent(String spaceKey)

doUpdateOriginal

public long doUpdateOriginal(long contentId)

doRevert

public long doRevert(long contentId,
                     int version)

addComment

public long addComment(String content,
                       long contentId,
                       int version)

removeVersion

public void removeVersion(long contentId,
                          int version)


Copyright © 2003–2015 Atlassian. All rights reserved.