public class RemoteSpaceServiceImpl extends AbstractRemoteService<SpaceService> implements RemoteSpaceService
| Modifier and Type | Class and Description |
|---|---|
class |
RemoteSpaceServiceImpl.RemoteSpaceContentFinderImpl |
RemoteSpaceService.RemoteSpaceContentFinder| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PRIVATE_SPACE_SUBPATH |
static java.lang.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.
|
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(java.lang.String spaceKey,
Expansion... expansions)
Retrieve a space with the given spacekey.
|
SpaceService.Validator |
validator()
Get the validator view of the Space Service.
|
addExpansions, addPageRequest, addPageRequestParams, deleteFuture, getFutureGenericCollection, getFutureMapOfPageResponses, getFutureOption, getFuturePageResponseList, newRestWebResource, postFuture, postFuture, postFuture, postFutureToPageResponse, putFuturepublic static final java.lang.String SPACE_RESOURCE_PATH
public static final java.lang.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
RemoteSpaceServiceMinimum properties to be valid is a key and name.
create in interface RemoteSpaceServicenewSpace - the space to createisPrivate - true if the space should only be visible to its creatorServiceException - if the space cannot be createdpublic SpaceService.Validator validator()
RemoteSpaceServicevalidator in interface RemoteSpaceServicepublic com.atlassian.util.concurrent.Promise<com.atlassian.fugue.Option<Space>> getSpace(java.lang.String spaceKey, Expansion... expansions)
RemoteSpaceServicegetSpace in interface RemoteSpaceServicespaceKey - - the space key of the spacepublic RemoteSpaceService.RemoteSpaceContentFinder findContent(Space space, Expansion... expansion)
RemoteSpaceServicefindContent in interface RemoteSpaceServicespace - - the space to fetch content forexpansion - - the expansions to apply to the content in this spaceCopyright © 2003-2014 Atlassian. All Rights Reserved.