com.atlassian.confluence.plugins.rest.resources
Class SpaceResource
java.lang.Object
com.atlassian.confluence.plugins.rest.resources.AbstractResource
com.atlassian.confluence.plugins.rest.resources.SpaceResource
public class SpaceResource
- extends AbstractResource
Rest layer for accessing Confluence spaces.
Currently, only read access to spaces is supported.
Method Summary |
javax.ws.rs.core.Response |
get(java.lang.String spaceTypeString,
java.lang.String startIndexString,
java.lang.String maxResultsString)
Retrieves a list of spaces visible to the currently logged in user, alphabetically by space name. |
javax.ws.rs.core.Response |
getSpace(java.lang.String key)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SpaceResource
public SpaceResource(UserAccessor userAccessor,
RestSpaceManager restSpaceManager,
SpacePermissionManager spacePermissionManager)
get
public javax.ws.rs.core.Response get(java.lang.String spaceTypeString,
java.lang.String startIndexString,
java.lang.String maxResultsString)
- Retrieves a list of spaces visible to the currently logged in user, alphabetically by space name. An optional
parameter "type" allows filtering on space type. The standard paging parameters "start-index" and "max-results"
can be used to page through the list. A maximum of 50 (defined by
DefaultRestSpaceManager.DEFAULT_MAX_SIZE
)
spaces will be listed.
- Parameters:
spaceTypeString
- the space type paramater to filter the list by spacestartIndexString
- the start-index paramatermaxResultsString
- the max-results paramater
getSpace
public javax.ws.rs.core.Response getSpace(java.lang.String key)
Copyright © 2003-2010 Atlassian. All Rights Reserved.