com.atlassian.confluence.util
Class ContentFacade

java.lang.Object
  extended by com.atlassian.confluence.util.ContentFacade

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 Summary
ContentFacade()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentFacade

public ContentFacade()
Method Detail

spaceHasBlogPosts

public boolean spaceHasBlogPosts(String spaceKey)
Parameters:
spaceKey -
Returns:
true if the given space key correlates to a space containing blog content

spaceHasMail

@Deprecated
public boolean spaceHasMail(String spaceKey)
Deprecated. since 4.2 - archived mail is no longer live in the core product.

Deprecated. Returns false.

Parameters:
spaceKey -
Returns:
false

getWelcomeMessage

@Deprecated
public String getWelcomeMessage()
Deprecated. since 4.2. Use WelcomeMessageService.getWelcomeMessage() instead

Returns:
String the site welcome message held in com.atlassian.confluence.setup.settings.Settings

getRecentlyUpdatedPagesForUserOnSpaceSince

public List<Page> getRecentlyUpdatedPagesForUserOnSpaceSince(com.atlassian.user.User user,
                                                             String spaceKey,
                                                             Date previousLoginDate)
Returns:
a list of pages, added or updated since the user last logged in, which they are permitted to see.

getRecentlyUpdatedPagesForUserSince

public List getRecentlyUpdatedPagesForUserSince(com.atlassian.user.User user,
                                                Date previousLoginDate)
Returns:
a list of pages, added or updated since the user last logged in, which they are permitted to see.

getPageManager

public PageManager getPageManager()

getSettingsManager

public SettingsManager getSettingsManager()

getWikiStyleRenderer

public com.atlassian.renderer.WikiStyleRenderer getWikiStyleRenderer()

setPageManager

public void setPageManager(PageManager pageManager)

setSettingsManager

public void setSettingsManager(SettingsManager settingsManager)

setWikiStyleRenderer

public void setWikiStyleRenderer(com.atlassian.renderer.WikiStyleRenderer wikiStyleRenderer)

setPermissionManager

public void setPermissionManager(PermissionManager permissionManager)

setSpaceManager

public void setSpaceManager(SpaceManager spaceManager)

setWelcomeMessageService

public void setWelcomeMessageService(WelcomeMessageService welcomeMessageService)


Copyright © 2003-2012 Atlassian. All Rights Reserved.