@ExperimentalApi
public interface RemoteSpaceService
SpaceService
implementation that communicates with Confluence remotely using the Confluence REST api.
Provides future returning equivalents for the methods in SpaceService.
Modifier and Type | Interface and Description |
---|---|
static interface |
RemoteSpaceService.RemoteSpaceContentFinder |
static interface |
RemoteSpaceService.RemoteSpaceFinder |
static interface |
RemoteSpaceService.RemoteSpaceSingleFetcher |
Modifier and Type | Method and Description |
---|---|
com.atlassian.util.concurrent.Promise<Space> |
create(Space newSpace,
boolean isPrivate)
Create a new space.
|
com.atlassian.util.concurrent.Promise<LongTaskSubmission> |
delete(Space spaceToDelete)
Delete the given space.
|
RemoteSpaceService.RemoteSpaceFinder |
find(Expansion... expansions) |
RemoteSpaceService.RemoteSpaceContentFinder |
findContent(Space space,
Expansion... expansion)
Create a finder to find content in the given space.
|
com.atlassian.util.concurrent.Promise<com.atlassian.fugue.Option<Space>> |
getSpace(String spaceKey,
Expansion... expansions)
Deprecated.
since 5.6. Use
find(Expansion...) |
com.atlassian.util.concurrent.Promise<Space> |
update(Space space)
Updates a space.
|
SpaceService.Validator |
validator()
Get the validator view of the Space Service.
|
com.atlassian.util.concurrent.Promise<Space> create(Space newSpace, boolean isPrivate) throws ServiceException
Minimum properties to be valid is a key and name.
newSpace
- the space to createisPrivate
- true if the space should only be visible to its creatorServiceException
- if the space cannot be createdcom.atlassian.util.concurrent.Promise<Space> update(Space space) throws ServiceException
Currently limited to changing the space name, description and homepage.
space
- the updated Space
ServiceException
SpaceService.Validator validator()
@Deprecated com.atlassian.util.concurrent.Promise<com.atlassian.fugue.Option<Space>> getSpace(String spaceKey, Expansion... expansions)
find(Expansion...)
RemoteSpaceService.RemoteSpaceFinder find(Expansion... expansions)
RemoteSpaceService.RemoteSpaceContentFinder findContent(Space space, Expansion... expansion)
space
- - the space to fetch content forexpansion
- - the expansions to apply to the content in this spacecom.atlassian.util.concurrent.Promise<LongTaskSubmission> delete(Space spaceToDelete)
The deletion happens asynchronously so a LongTaskSubmission is returned, that can be used to request status.
spaceToDelete
- the space to deleteNotFoundException
- if the space does not exist or you do not have permission to view itPermissionException
- if you do not have permission to delete the spaceCopyright © 2003–2017 Atlassian. All rights reserved.