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 |
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)
Create a new space.
|
com.atlassian.util.concurrent.Promise<LongTaskSubmission> |
delete(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)
Updates a space.
|
SpaceService.Validator |
validator()
Get the validator view of the Space Service.
|
addExpansions, addPageRequest, addPageRequestParams, deleteFuture, deleteFuture, getFuture, getFutureGenericCollection, getFutureMap, getFutureMapOfPageResponses, getFutureOption, getFuturePageResponseList, newExperimentalRestWebResource, newRestWebResource, postFuture, postFuture, postFuture, postFutureToPageResponse, 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)
public com.atlassian.util.concurrent.Promise<Space> create(Space newSpace, boolean isPrivate) throws ServiceException
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 createdpublic com.atlassian.util.concurrent.Promise<Space> update(Space space) throws ServiceException
RemoteSpaceService
Currently limited to changing the space name, description and homepage.
update
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 spacepublic com.atlassian.util.concurrent.Promise<LongTaskSubmission> delete(Space space)
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 deleteCopyright © 2003–2018 Atlassian. All rights reserved.