|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.it.content.ViewAttachmentsBean
public class ViewAttachmentsBean
Represents a View Attachments page for a Page or BlogPost.
Field Summary | |
---|---|
static String |
VIEW_ATTACHMENTS_LINK_ID
|
Method Summary | |
---|---|
void |
attachFile(String filename,
String content)
|
void |
attachFile(String filename,
String content,
String comment)
|
void |
attachFileFromPath(String path,
String comment)
|
boolean |
canRemove(String attachmentFilename)
Returns true if the 'Remove' link is present for the given attachment name. |
void |
downloadAll()
Clicks the 'Download All' link on the view attachments page. |
void |
downloadAttachment(String name)
|
void |
edit(String attachmentFilename)
Goes to the edit screen of the given attachment. |
String |
getEditXPath(String attachmentFilename)
|
int |
getNumberOfAttachments()
|
String |
getRemoveXPath(String attachmentFilename)
|
boolean |
hasAttachment(String attachmentName)
|
void |
remove(String attachmentFilename)
Clicks the 'Remove' link on the view attachments page. |
void |
renameAttachment(String attachmentName,
String newAttachmentName)
|
static ViewAttachmentsBean |
viewAttachments(net.sourceforge.jwebunit.junit.WebTester tester)
Factory method to return a ViewAttachmentsBean from the current location of the web tester, by clicking on the 'Attachments' link on the page. |
static ViewAttachmentsBean |
viewAttachments(net.sourceforge.jwebunit.junit.WebTester tester,
long pageId)
|
static ViewAttachmentsBean |
viewAttachments(net.sourceforge.jwebunit.junit.WebTester tester,
Page page)
|
static ViewAttachmentsBean |
viewAttachmentsByKeyAndTitle(net.sourceforge.jwebunit.junit.WebTester tester,
Page page)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String VIEW_ATTACHMENTS_LINK_ID
Method Detail |
---|
public static ViewAttachmentsBean viewAttachments(net.sourceforge.jwebunit.junit.WebTester tester)
public static ViewAttachmentsBean viewAttachments(net.sourceforge.jwebunit.junit.WebTester tester, long pageId)
public static ViewAttachmentsBean viewAttachmentsByKeyAndTitle(net.sourceforge.jwebunit.junit.WebTester tester, Page page)
public static ViewAttachmentsBean viewAttachments(net.sourceforge.jwebunit.junit.WebTester tester, Page page)
public int getNumberOfAttachments()
public void downloadAll()
public void downloadAttachment(String name)
public void edit(String attachmentFilename)
attachmentFilename
- filename of the attachment to editpublic String getEditXPath(String attachmentFilename)
public void remove(String attachmentFilename)
attachmentFilename
- filename of the attachment to removepublic boolean canRemove(String attachmentFilename)
public String getRemoveXPath(String attachmentFilename)
public void attachFile(String filename, String content)
public void attachFile(String filename, String content, String comment)
public void attachFileFromPath(String path, String comment)
public void renameAttachment(String attachmentName, String newAttachmentName)
public boolean hasAttachment(String attachmentName)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |