org.xwiki.rest.resources.spaces
Class SpaceAttachmentsResource

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

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

Version:
$Id: SpaceAttachmentsResource.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
SpaceAttachmentsResource()
           
 
Method Summary
 Attachments getAttachments(java.lang.String wikiName, java.lang.String spaceName, java.lang.String name, java.lang.String page, 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

SpaceAttachmentsResource

public SpaceAttachmentsResource()
Method Detail

getAttachments

public Attachments getAttachments(java.lang.String wikiName,
                                  java.lang.String spaceName,
                                  java.lang.String name,
                                  java.lang.String page,
                                  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.
spaceName - Name filter (include only attachments that matches this name)
name - Page filter (include only attachments are attached to a page matches this string)
page - 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.