public class RemoteSpaceServiceImpl extends AbstractRemoteService<SpaceService> implements RemoteSpaceService
Modifier and Type | Class and Description |
---|---|
class |
RemoteSpaceServiceImpl.RemoteSpaceContentFinderImpl |
class |
RemoteSpaceServiceImpl.RemoteSpaceFinderImpl |
RemoteSpaceService.RemoteSpaceContentFinder, RemoteSpaceService.RemoteSpaceFinder, RemoteSpaceService.RemoteSpaceSingleFetcher
Modifier and Type | Field and Description |
---|---|
static String |
PRIVATE_SPACE_SUBPATH |
static String |
SPACE_RESOURCE_PATH |
provider
Constructor and Description |
---|
RemoteSpaceServiceImpl(AuthenticatedWebResourceProvider provider,
com.google.common.util.concurrent.ListeningExecutorService executor) |
Modifier and Type | Method and Description |
---|---|
com.atlassian.util.concurrent.Promise<Space> |
create(Space newSpace,
boolean isPrivate)
Deprecated.
since 7.0.1. Use
createCompletionStage(Space, boolean) instead. |
CompletionStage<Space> |
createCompletionStage(Space newSpace,
boolean isPrivate)
Create a new space.
|
com.atlassian.util.concurrent.Promise<LongTaskSubmission> |
delete(Space space)
Deprecated.
since 7.0.1. Use
deleteCompletionStage(Space) instead. |
CompletionStage<LongTaskSubmission> |
deleteCompletionStage(Space space)
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)
Deprecated.
since 7.0.1. Use
updateCompletionStage(Space) instead. |
CompletionStage<Space> |
updateCompletionStage(Space space)
Updates a space.
|
SpaceService.Validator |
validator()
Get the validator view of the Space Service.
|
addExpansions, addPageRequest, addPageRequestParams, deleteCompletionStage, deleteCompletionStage, deleteFuture, deleteFuture, getCompletionStage, getCompletionStageGenericCollection, getCompletionStageMap, getCompletionStageMapOfPageResponses, getCompletionStageOptional, getCompletionStagePageResponseList, getCompletionStageSearchPageResponseList, getExecutor, getFuture, getFutureGenericCollection, getFutureMap, getFutureMapOfPageResponses, getFutureOption, getFuturePageResponseList, newExperimentalRestWebResource, newRestWebResource, postCompletionStage, postCompletionStage, postCompletionStage, postCompletionStageToPageResponse, postFuture, postFuture, postFuture, postFutureToPageResponse, putCompletionStage, putFuture
public static final String SPACE_RESOURCE_PATH
public static final String PRIVATE_SPACE_SUBPATH
public RemoteSpaceServiceImpl(AuthenticatedWebResourceProvider provider, com.google.common.util.concurrent.ListeningExecutorService executor)
@Deprecated public com.atlassian.util.concurrent.Promise<Space> create(Space newSpace, boolean isPrivate) throws ServiceException
createCompletionStage(Space, boolean)
instead.RemoteSpaceService
Minimum properties to be valid is a key and name.
create
in interface RemoteSpaceService
newSpace
- the space to createisPrivate
- true if the space should only be visible to its creatorServiceException
- if the space cannot be created@Deprecated public com.atlassian.util.concurrent.Promise<Space> update(Space space) throws ServiceException
updateCompletionStage(Space)
instead.RemoteSpaceService
Currently limited to changing the space name, description and homepage.
update
in interface RemoteSpaceService
space
- the updated Space
ServiceException
public CompletionStage<Space> createCompletionStage(Space newSpace, boolean isPrivate) throws ServiceException
RemoteSpaceService
Minimum properties to be valid is a key and name.
createCompletionStage
in interface RemoteSpaceService
newSpace
- the space to createisPrivate
- true if the space should only be visible to its creatorServiceException
- if the space cannot be createdpublic CompletionStage<Space> updateCompletionStage(Space space) throws ServiceException
RemoteSpaceService
Currently limited to changing the space name, description and homepage.
updateCompletionStage
in interface RemoteSpaceService
space
- the updated Space
ServiceException
public SpaceService.Validator validator()
RemoteSpaceService
validator
in interface RemoteSpaceService
@Deprecated public com.atlassian.util.concurrent.Promise<com.atlassian.fugue.Option<Space>> getSpace(String spaceKey, Expansion... expansions)
find(Expansion...)
getSpace
in interface RemoteSpaceService
public RemoteSpaceService.RemoteSpaceFinder find(Expansion... expansions)
find
in interface RemoteSpaceService
public RemoteSpaceService.RemoteSpaceContentFinder findContent(Space space, Expansion... expansion)
RemoteSpaceService
findContent
in interface RemoteSpaceService
space
- - the space to fetch content forexpansion
- - the expansions to apply to the content in this space@Deprecated public com.atlassian.util.concurrent.Promise<LongTaskSubmission> delete(Space space)
deleteCompletionStage(Space)
instead.RemoteSpaceService
The deletion happens asynchronously so a LongTaskSubmission is returned, that can be used to request status.
delete
in interface RemoteSpaceService
space
- the space to deletepublic CompletionStage<LongTaskSubmission> deleteCompletionStage(Space space)
RemoteSpaceService
The deletion happens asynchronously so a LongTaskSubmission is returned, that can be used to request status.
deleteCompletionStage
in interface RemoteSpaceService
space
- the space to deleteCopyright © 2003–2020 Atlassian. All rights reserved.