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() |
com.atlassian.renderer.WikiStyleRenderer |
getWikiStyleRenderer() |
void |
setPageManager(PageManager pageManager) |
void |
setPermissionManager(PermissionManager permissionManager) |
void |
setSettingsManager(SettingsManager settingsManager) |
void |
setSpaceManager(SpaceManager spaceManager) |
void |
setWikiStyleRenderer(com.atlassian.renderer.WikiStyleRenderer wikiStyleRenderer) |
boolean |
spaceHasBlogPosts(String spaceKey) |
public boolean spaceHasBlogPosts(String spaceKey)
spaceKey
- 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)
Copyright © 2003–2020 Atlassian. All rights reserved.