|
||||||||||
| 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,
ContentService contentService,
SpacePermissionManager spacePermissionManager,
LongRunningTaskManager longRunningTaskManager,
LongTaskFactory longTaskFactory,
I18NBeanFactory i18NBeanFactory,
org.springframework.aop.Advisor txAdvisor)
|
|
| Method Summary | |
|---|---|
Space |
create(Space space,
boolean isPrivate)
Create a new space. |
LongTaskSubmission |
delete(Space spaceToDelete)
Delete the given 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)
Deprecated. |
Space |
update(Space space)
Updates a space. |
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,
ContentService contentService,
SpacePermissionManager spacePermissionManager,
LongRunningTaskManager longRunningTaskManager,
LongTaskFactory longTaskFactory,
I18NBeanFactory i18NBeanFactory,
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 created
public LongTaskSubmission delete(Space spaceToDelete)
throws ServiceException
SpaceServiceThe deletion happens asynchronously so a LongTaskStatus is returned, that can be used to track progress.
delete in interface SpaceServicespaceToDelete - the space to delete
NotFoundException - if the space does not exist or you do not have permission to view it
PermissionException - if you do not have permission to delete the space
ServiceExceptionpublic 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 Space update(Space space)
throws ServiceException
SpaceServiceCurrently limited to changing the space name, description and homepage.
update in interface SpaceServicespace - the updated Space
ServiceExceptionpublic 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
@Deprecated
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 | |||||||||