Interface RestSpaceManager
- All Known Implementing Classes:
DefaultRestSpaceManager
public interface RestSpaceManager
Responsible for managing
SpaceEntity
objects.-
Method Summary
Modifier and TypeMethodDescriptionexpand
(SpaceEntity spaceEntity) Expands and returns the givenSpaceEntity
.getSpaceEntity
(String spaceKey, boolean expand) Gets theSpaceEntity
for the given spaceKey and expands it if necessary.Gets theSpaceEntityList
for the givenSpaceEntityListContext
.
-
Method Details
-
getSpaceEntity
Gets theSpaceEntity
for the given spaceKey and expands it if necessary.It is responsible for doing any permission checking and conversion from Confluence's
Space
to aSpaceEntity
.null
is returned, if the current user is not permitted to view the space.- Parameters:
spaceKey
- the space key of the space to retrieveexpand
- whether to expand the space entity
-
getSpaceEntityList
Gets theSpaceEntityList
for the givenSpaceEntityListContext
.It is up to the implementation to decide on default behaviour when values for in the context are not specified. The context passed in however, must not be null.
- Parameters:
ctx
- the context for which the space entity list is retrieved in
-
expand
Expands and returns the givenSpaceEntity
.- Parameters:
spaceEntity
- the space entity to expand- Returns:
- the expanded space entity
-