|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.util.ContentFacade
public class ContentFacade
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 Summary | |
---|---|
ContentFacade()
|
Method Summary | |
---|---|
PageManager |
getPageManager()
|
java.util.List<Page> |
getRecentlyUpdatedPagesForUserOnSpaceSince(com.atlassian.user.User user,
java.lang.String spaceKey,
java.util.Date previousLoginDate)
|
java.util.List |
getRecentlyUpdatedPagesForUserSince(com.atlassian.user.User user,
java.util.Date previousLoginDate)
|
SettingsManager |
getSettingsManager()
|
java.lang.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(java.lang.String spaceKey)
|
boolean |
spaceHasMail(java.lang.String spaceKey)
Deprecated. since 4.2 - archived mail is no longer live in the core product. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ContentFacade()
Method Detail |
---|
public boolean spaceHasBlogPosts(java.lang.String spaceKey)
spaceKey
-
@Deprecated public boolean spaceHasMail(java.lang.String spaceKey)
spaceKey
-
@Deprecated public java.lang.String getWelcomeMessage()
WelcomeMessageService.getWelcomeMessage()
instead
com.atlassian.confluence.setup.settings.Settings
public java.util.List<Page> getRecentlyUpdatedPagesForUserOnSpaceSince(com.atlassian.user.User user, java.lang.String spaceKey, java.util.Date previousLoginDate)
public java.util.List getRecentlyUpdatedPagesForUserSince(com.atlassian.user.User user, java.util.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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |