|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.plugins.rest.manager.DefaultRestSpaceManager
public class DefaultRestSpaceManager
Default implementation of the RestSpaceManager
.
The default maximum size for the SpaceEntityList
s returned is 50.
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
SpaceEntity |
expand(SpaceEntity spaceEntity)
Expands and returns the given SpaceEntity . |
SpaceEntity |
getSpaceEntity(Space space)
|
SpaceEntity |
getSpaceEntity(java.lang.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 . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
@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)
Method Detail |
---|
public SpaceEntity expand(SpaceEntity spaceEntity)
RestSpaceManager
SpaceEntity
.
expand
in interface RestSpaceManager
spaceEntity
- the space entity to expand
public SpaceEntity getSpaceEntity(Space space)
public SpaceEntity getSpaceEntity(java.lang.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 in
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |