|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.confluence.api.impl.service.content.SpaceServiceImpl
public class SpaceServiceImpl
| Nested Class Summary | |
|---|---|
class |
SpaceServiceImpl.SpaceContentImpl
|
class |
SpaceServiceImpl.SpaceFinderImpl
|
class |
SpaceServiceImpl.ValidatorImpl
|
| Nested classes/interfaces inherited from interface com.atlassian.confluence.api.service.content.SpaceService |
|---|
SpaceService.SingleSpaceFetcher, SpaceService.SpaceContentFinder, SpaceService.SpaceFinder, SpaceService.Validator |
| Constructor Summary | |
|---|---|
SpaceServiceImpl(SpaceManagerInternal spaceManager,
SpaceFactory spaceFactory,
PageManagerInternal pageManager,
ContentFactory contentFactory,
PaginationService paginationService,
PermissionManager permissionManager,
org.springframework.aop.Advisor txAdvisor)
|
|
| Method Summary | |
|---|---|
Space |
create(Space space,
boolean isPrivate)
Create a new space. |
SpaceService.SpaceFinder |
find(Expansion... expansions)
Create a space finder to locate spaces, the expansions will be applied to each Space matching the restrictions on the finder. |
SpaceService.SpaceContentFinder |
findContent(Space space,
Expansion... expansions)
A finder to locate content in the space |
com.atlassian.fugue.Option<Space> |
getSpace(java.lang.String spaceKey,
Expansion... expansions)
Retrieve a space with the given spacekey. |
SpaceServiceImpl.ValidatorImpl |
validator()
Get the validator view of the Space Service. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SpaceServiceImpl(SpaceManagerInternal spaceManager,
SpaceFactory spaceFactory,
PageManagerInternal pageManager,
ContentFactory contentFactory,
PaginationService paginationService,
PermissionManager permissionManager,
org.springframework.aop.Advisor txAdvisor)
| Method Detail |
|---|
public Space create(Space space,
boolean isPrivate)
throws ServiceException
SpaceServiceIf 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.
create in interface SpaceServicespace - the space to createisPrivate - whether the space is private (true) or has default permissions (false)
ServiceException - if the space cannot be createdpublic SpaceService.SpaceFinder find(Expansion... expansions)
SpaceService
spaceService.find()
.withKeys("DEV","PROD")
.fetchMany(new SimplePageRequest(0, 10);
find in interface SpaceServiceexpansions - - the expansion to apply to each fetched space
public SpaceServiceImpl.ValidatorImpl validator()
SpaceService
validator in interface SpaceService
public SpaceService.SpaceContentFinder findContent(Space space,
Expansion... expansions)
throws NotFoundException
SpaceService
findContent in interface SpaceServiceNotFoundException - if the space does not exist or you do not have permission to view it
public com.atlassian.fugue.Option<Space> getSpace(java.lang.String spaceKey,
Expansion... expansions)
SpaceService
getSpace in interface SpaceServicespaceKey - - the space key of the space
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||