|
||||||||||
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. |
boolean |
canRemoveVersion(String attachmentFilename,
int version)
Returns true if the 'Remove' link is present for the given attachment name and version. |
int |
countVersions(String attachmentFilename)
|
static String |
createAttachmentScopedCssSelector(String attachmentFilename)
|
static String |
createCssSelector(String attachmentFilename,
int version)
|
static String |
createVersionCssSelector(String attachmentFilename)
|
void |
downloadAll()
Clicks the 'Download All' link on the view attachments page. |
void |
downloadAttachment(String name)
|
EditAttachmentsBean |
edit(String attachmentFilename)
Goes to the edit screen of the given attachment. |
String |
getComment(String attachmentFilename)
|
String |
getCreator(String attachmentFilename)
|
String |
getEditXPath(String attachmentFilename)
|
int |
getNumberOfAttachments()
|
String |
getRemoveXPath(String attachmentFilename)
|
String |
getVersionComment(String attachmentFilename,
int version)
|
String |
getVersionCreator(String attachmentFilename,
int version)
|
boolean |
hasAttachment(String attachmentName)
|
boolean |
hasVersion(String attachmentFilename,
int version)
|
void |
remove(String attachmentFilename)
Clicks the 'Remove' link on the view attachments page. |
void |
removeVersion(String attachmentFilename,
int version)
|
void |
renameAttachment(String attachmentName,
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(Page page)
|
static ViewAttachmentsBean |
viewAttachmentsByKeyAndTitle(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()
public static ViewAttachmentsBean viewAttachments(long pageId)
public static ViewAttachmentsBean viewAttachmentsByKeyAndTitle(Page page)
public static ViewAttachmentsBean viewAttachments(Page page)
public void downloadAll()
public void downloadAttachment(String name)
public EditAttachmentsBean 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 removeVersion(String attachmentFilename, int version)
public boolean canRemoveVersion(String attachmentFilename, int version)
public int getNumberOfAttachments()
public int countVersions(String attachmentFilename)
public static String createAttachmentScopedCssSelector(String attachmentFilename)
public static String createVersionCssSelector(String attachmentFilename)
public static String createCssSelector(String attachmentFilename, int version)
public boolean hasVersion(String attachmentFilename, int version)
public String getComment(String attachmentFilename)
public String getVersionComment(String attachmentFilename, int version)
public String getCreator(String attachmentFilename)
public String getVersionCreator(String attachmentFilename, int version)
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 |