@ExperimentalApi
public interface SpaceService
| Modifier and Type | Interface and Description | 
|---|---|
| static interface  | SpaceService.SingleSpaceFetcher | 
| static interface  | SpaceService.SpaceContentFinderA finder interface to encapsulate finding content in a particular space | 
| static interface  | SpaceService.SpaceFinder | 
| static interface  | SpaceService.ValidatorProvides methods for validating the create, update and delete methods. | 
| Modifier and Type | Method and Description | 
|---|---|
| Space | create(Space newSpace,
      boolean isPrivate)Create a new space. | 
| SpaceService.SpaceFinder | find(Expansion... expansion) | 
| SpaceService.SpaceContentFinder | findContent(Space space,
           Expansion... expansion)A finder to locate content in the space | 
| com.atlassian.fugue.Option<Space> | getSpace(java.lang.String spaceKey,
        Expansion... expansions)Deprecated. 
 use find().withKey(String).fetchOne(); | 
| SpaceService.Validator | validator()Get the validator view of the Space Service. | 
Space create(Space newSpace, boolean isPrivate) throws ServiceException
If the "isPrivate" flag is set to true the new space will only be visible to the creator.
Minimum properties to be valid is a key and name.
newSpace - the space to createisPrivate - whether the space is private (true) or has default permissions (false)ServiceException - if the space cannot be created@Deprecated com.atlassian.fugue.Option<Space> getSpace(java.lang.String spaceKey, Expansion... expansions)
spaceKey - - the space key of the spaceSpaceService.SpaceFinder find(Expansion... expansion)
SpaceService.SpaceContentFinder findContent(Space space, Expansion... expansion) throws NotFoundException
NotFoundException - if the space does not exist or you do not have permission to view itSpaceService.Validator validator()
Copyright © 2003-2014 Atlassian. All Rights Reserved.