public class ContentFacade extends Object
Just a typical facade - it's useful for avoiding the duplication of behaviours across various actions, helper classes, etc.. There are some circumstances where injecting five or six different managers in different classes or contexts to answer common questions concerning content is inconvenient.
Additionally, by centralizing such miscellaneous calls here, we avoid duplication of behaviours across classes and improve the testability of the common questions asked of the content managers.
Constructor and Description |
---|
ContentFacade() |
Modifier and Type | Method and Description |
---|---|
PageManager |
getPageManager() |
List<Page> |
getRecentlyUpdatedPagesForUserOnSpaceSince(com.atlassian.user.User user,
String spaceKey,
Date previousLoginDate) |
List |
getRecentlyUpdatedPagesForUserSince(com.atlassian.user.User user,
Date previousLoginDate) |
SettingsManager |
getSettingsManager() |
String |
getWelcomeMessage()
Deprecated.
since 4.2. Use
WelcomeMessageService.getWelcomeMessage() instead |
com.atlassian.renderer.WikiStyleRenderer |
getWikiStyleRenderer() |
void |
setPageManager(PageManager pageManager) |
void |
setPermissionManager(PermissionManager permissionManager) |
void |
setSettingsManager(SettingsManager settingsManager) |
void |
setSpaceManager(SpaceManager spaceManager) |
void |
setWelcomeMessageService(WelcomeMessageService welcomeMessageService) |
void |
setWikiStyleRenderer(com.atlassian.renderer.WikiStyleRenderer wikiStyleRenderer) |
boolean |
spaceHasBlogPosts(String spaceKey) |
boolean |
spaceHasMail(String spaceKey)
Deprecated.
since 4.2 - archived mail is no longer live in the core product.
|
public boolean spaceHasBlogPosts(String spaceKey)
spaceKey
- @Deprecated public boolean spaceHasMail(String spaceKey)
spaceKey
- @Deprecated public String getWelcomeMessage()
WelcomeMessageService.getWelcomeMessage()
insteadcom.atlassian.confluence.setup.settings.Settings
public List<Page> getRecentlyUpdatedPagesForUserOnSpaceSince(com.atlassian.user.User user, String spaceKey, Date previousLoginDate)
public List getRecentlyUpdatedPagesForUserSince(com.atlassian.user.User user, Date previousLoginDate)
public PageManager getPageManager()
public SettingsManager getSettingsManager()
public com.atlassian.renderer.WikiStyleRenderer getWikiStyleRenderer()
public void setPageManager(PageManager pageManager)
public void setSettingsManager(SettingsManager settingsManager)
public void setWikiStyleRenderer(com.atlassian.renderer.WikiStyleRenderer wikiStyleRenderer)
public void setPermissionManager(PermissionManager permissionManager)
public void setSpaceManager(SpaceManager spaceManager)
public void setWelcomeMessageService(WelcomeMessageService welcomeMessageService)
Copyright © 2003–2015 Atlassian. All rights reserved.