|
||||||||||
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 java.lang.String |
VIEW_ATTACHMENTS_LINK_ID
|
Method Summary | |
---|---|
void |
attachFile(java.lang.String filename,
java.lang.String content)
|
void |
attachFile(java.lang.String filename,
java.lang.String content,
java.lang.String comment)
|
void |
attachFileFromPath(java.lang.String path,
java.lang.String comment)
|
boolean |
canRemove(java.lang.String attachmentFilename)
Returns true if the 'Remove' link is present for the given attachment name. |
boolean |
canRemoveVersion(java.lang.String attachmentFilename,
int version)
Returns true if the 'Remove' link is present for the given attachment name and version. |
int |
countVersions(java.lang.String attachmentFilename)
|
static java.lang.String |
createAttachmentScopedCssSelector(java.lang.String attachmentFilename)
|
static java.lang.String |
createCssSelector(java.lang.String attachmentFilename,
int version)
|
static java.lang.String |
createVersionCssSelector(java.lang.String attachmentFilename)
|
void |
downloadAll()
Clicks the 'Download All' link on the view attachments page. |
void |
downloadAttachment(java.lang.String name)
|
EditAttachmentsBean |
edit(java.lang.String attachmentFilename)
Goes to the edit screen of the given attachment. |
java.lang.String |
getComment(java.lang.String attachmentFilename)
|
java.lang.String |
getCreator(java.lang.String attachmentFilename)
|
java.lang.String |
getEditXPath(java.lang.String attachmentFilename)
|
int |
getNumberOfAttachments()
|
java.lang.String |
getRemoveXPath(java.lang.String attachmentFilename)
|
java.lang.String |
getVersionComment(java.lang.String attachmentFilename,
int version)
|
java.lang.String |
getVersionCreator(java.lang.String attachmentFilename,
int version)
|
static java.lang.String |
getViewAttachmentsPageTitle(Page page)
|
boolean |
hasAttachment(java.lang.String attachmentName)
|
boolean |
hasVersion(java.lang.String attachmentFilename,
int version)
|
void |
remove(java.lang.String attachmentFilename)
Clicks the 'Remove' link on the view attachments page. |
RemoveAttachmentBean |
removeAttachments(long pageId,
java.lang.String attachmentFilename)
|
RemoveAttachmentVersionBean |
removeAttachmentsVersion(long pageId,
java.lang.String attachmentFilename,
int version)
|
void |
removeVersion(java.lang.String attachmentFilename,
int version)
|
void |
renameAttachment(java.lang.String attachmentName,
java.lang.String newAttachmentName)
|
static ViewAttachmentsBean |
viewAttachments()
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(long pageId)
|
static ViewAttachmentsBean |
viewAttachments(long pageId,
net.sourceforge.jwebunit.junit.WebTester tester)
|
static ViewAttachmentsBean |
viewAttachments(Page page)
|
static ViewAttachmentsBean |
viewAttachments(Page page,
net.sourceforge.jwebunit.junit.WebTester tester)
|
static ViewAttachmentsBean |
viewAttachments(net.sourceforge.jwebunit.junit.WebTester tester)
|
static ViewAttachmentsBean |
viewAttachmentsByKeyAndTitle(Page page)
|
static ViewAttachmentsBean |
viewAttachmentsByKeyAndTitle(Page page,
net.sourceforge.jwebunit.junit.WebTester tester1)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String VIEW_ATTACHMENTS_LINK_ID
Method Detail |
---|
public static ViewAttachmentsBean viewAttachments()
public static ViewAttachmentsBean viewAttachments(net.sourceforge.jwebunit.junit.WebTester tester)
public static ViewAttachmentsBean viewAttachments(long pageId)
public RemoveAttachmentBean removeAttachments(long pageId, java.lang.String attachmentFilename)
public RemoveAttachmentVersionBean removeAttachmentsVersion(long pageId, java.lang.String attachmentFilename, int version)
public static ViewAttachmentsBean viewAttachments(long pageId, net.sourceforge.jwebunit.junit.WebTester tester)
public static ViewAttachmentsBean viewAttachmentsByKeyAndTitle(Page page)
public static ViewAttachmentsBean viewAttachmentsByKeyAndTitle(Page page, net.sourceforge.jwebunit.junit.WebTester tester1)
public static ViewAttachmentsBean viewAttachments(Page page)
public static ViewAttachmentsBean viewAttachments(Page page, net.sourceforge.jwebunit.junit.WebTester tester)
public void downloadAll()
public void downloadAttachment(java.lang.String name)
public EditAttachmentsBean edit(java.lang.String attachmentFilename)
attachmentFilename
- filename of the attachment to editpublic java.lang.String getEditXPath(java.lang.String attachmentFilename)
public void remove(java.lang.String attachmentFilename)
attachmentFilename
- filename of the attachment to removepublic boolean canRemove(java.lang.String attachmentFilename)
public java.lang.String getRemoveXPath(java.lang.String attachmentFilename)
public void removeVersion(java.lang.String attachmentFilename, int version)
public boolean canRemoveVersion(java.lang.String attachmentFilename, int version)
public int getNumberOfAttachments()
public int countVersions(java.lang.String attachmentFilename)
public static java.lang.String createAttachmentScopedCssSelector(java.lang.String attachmentFilename)
public static java.lang.String createVersionCssSelector(java.lang.String attachmentFilename)
public static java.lang.String createCssSelector(java.lang.String attachmentFilename, int version)
public boolean hasVersion(java.lang.String attachmentFilename, int version)
public java.lang.String getComment(java.lang.String attachmentFilename)
public java.lang.String getVersionComment(java.lang.String attachmentFilename, int version)
public java.lang.String getCreator(java.lang.String attachmentFilename)
public java.lang.String getVersionCreator(java.lang.String attachmentFilename, int version)
public void attachFile(java.lang.String filename, java.lang.String content)
public void attachFile(java.lang.String filename, java.lang.String content, java.lang.String comment)
public void attachFileFromPath(java.lang.String path, java.lang.String comment)
public void renameAttachment(java.lang.String attachmentName, java.lang.String newAttachmentName)
public boolean hasAttachment(java.lang.String attachmentName)
public static java.lang.String getViewAttachmentsPageTitle(Page page)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |