org.xwiki.rest.resources.wikis
Class WikiAttachmentsResource

java.lang.Object
  extended by org.xwiki.rest.XWikiResource
      extended by org.xwiki.rest.resources.BaseAttachmentsResource
          extended by org.xwiki.rest.resources.wikis.WikiAttachmentsResource
All Implemented Interfaces:
org.xwiki.component.phase.Initializable, XWikiRestComponent

@Component(value="org.xwiki.rest.resources.wikis.WikiAttachmentsResource")
public class WikiAttachmentsResource
extends BaseAttachmentsResource

Version:
$Id: WikiAttachmentsResource.java 21281 2009-06-13 19:22:09Z sdumitriu $

Nested Class Summary
 
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, xwiki, xwikiApi, xwikiContext, xwikiUser
 
Constructor Summary
WikiAttachmentsResource()
           
 
Method Summary
 Attachments getAttachments(java.lang.String wikiName, java.lang.String name, java.lang.String page, java.lang.String space, java.lang.String author, java.lang.String types, java.lang.Integer start, java.lang.Integer number)
          Retrieves the attachments by filtering them.
 
Methods inherited from class org.xwiki.rest.XWikiResource
getDocumentInfo, getUriTemplate, initialize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WikiAttachmentsResource

public WikiAttachmentsResource()
Method Detail

getAttachments

public Attachments getAttachments(java.lang.String wikiName,
                                  java.lang.String name,
                                  java.lang.String page,
                                  java.lang.String space,
                                  java.lang.String author,
                                  java.lang.String types,
                                  java.lang.Integer start,
                                  java.lang.Integer number)
                           throws org.xwiki.query.QueryException
Description copied from class: BaseAttachmentsResource
Retrieves the attachments by filtering them.

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:
org.xwiki.query.QueryException


Copyright © 2004-2009 XWiki. All Rights Reserved.