public class SpaceResource extends AbstractResource
authContext, uriInfo, userAccessor
Constructor and Description |
---|
SpaceResource(UserAccessor userAccessor,
RestSpaceManager restSpaceManager,
SpacePermissionManager spacePermissionManager) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
get(String spaceTypeString,
String startIndexString,
String maxResultsString,
Set<String> spaceKey)
Retrieves a list of spaces visible to the currently logged in user, alphabetically by space name.
|
javax.ws.rs.core.Response |
getSpace(String key)
Returns information about a space identified by the key passed.
|
createRequestContext, getAnonymousUserUriBuilder, getAttachmentUriBuilder, getContentUriBuilder, getCurrentUser, getMissingUserUriBuilder, getSpaceUriBuilder, getUserUriBuilder
public SpaceResource(UserAccessor userAccessor, RestSpaceManager restSpaceManager, SpacePermissionManager spacePermissionManager)
public javax.ws.rs.core.Response get(String spaceTypeString, String startIndexString, String maxResultsString, Set<String> spaceKey)
DefaultRestSpaceManager.DEFAULT_MAX_SIZE
)
spaces will be listed.spaceTypeString
- The space type parameter to filter the list by. Type can be one of: GLOBAL, PERSONAL, ALLstartIndexString
- The first (inclusive) index to return. Can be any integer zero or greater.maxResultsString
- The number of results to return. Can be any positive integer.spaceKey
- a list of space keys to viewpublic javax.ws.rs.core.Response getSpace(String key)
key
- Copyright © 2003–2015 Atlassian. All rights reserved.