org.xwiki.rest.internal.resources.wikis
Class WikiAttachmentsResourceImpl
java.lang.Object
org.xwiki.rest.XWikiResource
org.xwiki.rest.internal.resources.BaseAttachmentsResource
org.xwiki.rest.internal.resources.wikis.WikiAttachmentsResourceImpl
- All Implemented Interfaces:
- Initializable, WikiAttachmentsResource, XWikiRestComponent
@Component(value="org.xwiki.rest.internal.resources.wikis.WikiAttachmentsResourceImpl")
public class WikiAttachmentsResourceImpl
- extends BaseAttachmentsResource
- implements WikiAttachmentsResource
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WikiAttachmentsResourceImpl
public WikiAttachmentsResourceImpl()
getAttachments
public Attachments getAttachments(String wikiName,
String name,
String page,
String space,
String author,
String types,
Integer start,
Integer number,
Boolean withPrettyNames)
throws XWikiRestException
- Description copied from class:
BaseAttachmentsResource
- Retrieves the attachments by filtering them.
- Specified by:
getAttachments
in interface WikiAttachmentsResource
- Overrides:
getAttachments
in class BaseAttachmentsResource
- Parameters:
wikiName
- The virtual wiki.name
- Name filter (include only attachments that matches this name)page
- Page filter (include only attachments are attached to a page matches this string)space
- Space filter (include only attachments are attached to a page in a space matching this string)author
- Author filter (include only attachments from an author who matches this string)types
- A comma separated list of string that will be matched against the actual mime type of the
attachments.
- Returns:
- The list of the retrieved attachments.
- Throws:
XWikiRestException