org.xwiki.rest.internal.resources.wikis
Class WikiAttachmentsResourceImpl

java.lang.Object
  extended by org.xwiki.rest.XWikiResource
      extended by org.xwiki.rest.internal.resources.BaseAttachmentsResource
          extended by 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


Nested Class Summary
 
Nested classes/interfaces inherited from class org.xwiki.rest.internal.resources.BaseAttachmentsResource
BaseAttachmentsResource.AttachmentInfo
 
Nested classes/interfaces inherited from class org.xwiki.rest.XWikiResource
XWikiResource.DocumentInfo
 
Field Summary
 
Fields inherited from class org.xwiki.rest.XWikiResource
componentManager, logger, objectFactory, queryManager, uriInfo
 
Constructor Summary
WikiAttachmentsResourceImpl()
           
 
Method Summary
 Attachments getAttachments(String wikiName, String name, String page, String space, String author, String types, Integer start, Integer number, Boolean withPrettyNames)
          Retrieves the attachments by filtering them.
 
Methods inherited from class org.xwiki.rest.internal.resources.BaseAttachmentsResource
getAttachmentsForDocument, storeAttachment
 
Methods inherited from class org.xwiki.rest.XWikiResource
getDocumentInfo, getUriTemplate, getXWikiContext, initialize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WikiAttachmentsResourceImpl

public WikiAttachmentsResourceImpl()
Method Detail

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