public class DefaultRestSpaceManager extends Object implements RestSpaceManager
RestSpaceManager
.
The default maximum size for the SpaceEntityList
s returned is 50.Constructor and Description |
---|
DefaultRestSpaceManager(SpaceManager spaceManager,
PageManager pageManager,
DefaultRestContentManager restContentManager,
DateEntityFactory dateEntityHelper,
SettingsManager settingsManager,
EntityBuilderFactory entityBuilderFactory) |
DefaultRestSpaceManager(SpaceManager spaceManager,
PageManager pageManager,
DefaultRestContentManager restContentManager,
DateEntityHelper dateEntityHelper,
SettingsManager settingsManager,
EntityBuilderFactory entityBuilderFactory)
Deprecated.
since 4.3. DateEntityFactory replaces DateEntityHelper.
|
Modifier and Type | Method and Description |
---|---|
SpaceEntity |
expand(SpaceEntity spaceEntity)
Expands and returns the given
SpaceEntity . |
SpaceEntity |
getSpaceEntity(Space space) |
SpaceEntity |
getSpaceEntity(String spaceKey,
boolean expand)
Gets the
SpaceEntity for the given spaceKey and expands it if necessary. |
SpaceEntityList |
getSpaceEntityList(SpaceEntityListContext ctx)
Gets the
SpaceEntityList for the given SpaceEntityListContext . |
@Deprecated public DefaultRestSpaceManager(SpaceManager spaceManager, PageManager pageManager, DefaultRestContentManager restContentManager, DateEntityHelper dateEntityHelper, SettingsManager settingsManager, EntityBuilderFactory entityBuilderFactory)
spaceManager
- pageManager
- restContentManager
- dateEntityHelper
- settingsManager
- entityBuilderFactory
- public DefaultRestSpaceManager(SpaceManager spaceManager, PageManager pageManager, DefaultRestContentManager restContentManager, DateEntityFactory dateEntityHelper, SettingsManager settingsManager, EntityBuilderFactory entityBuilderFactory)
public SpaceEntity expand(SpaceEntity spaceEntity)
RestSpaceManager
SpaceEntity
.expand
in interface RestSpaceManager
spaceEntity
- the space entity to expandpublic SpaceEntity getSpaceEntity(Space space)
public SpaceEntity getSpaceEntity(String spaceKey, boolean expand)
RestSpaceManager
SpaceEntity
for the given spaceKey and expands it if necessary.
It is responsible for doing any permission checking and conversion from Confluence's
Space
to a SpaceEntity
.
null
is returned, if the current user is not permitted to view the space.getSpaceEntity
in interface RestSpaceManager
spaceKey
- the space key of the space to retrieveexpand
- whether to expand the space entitypublic SpaceEntityList getSpaceEntityList(SpaceEntityListContext ctx)
RestSpaceManager
SpaceEntityList
for the given SpaceEntityListContext
.
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.getSpaceEntityList
in interface RestSpaceManager
ctx
- the context for which the space entity list is retrieved inCopyright © 2003–2015 Atlassian. All rights reserved.