com.atlassian.confluence.spaces.listeners
Class InitialSpaceContentListener

java.lang.Object
  extended by com.atlassian.confluence.spaces.listeners.InitialSpaceContentListener
All Implemented Interfaces:
com.atlassian.event.EventListener

public class InitialSpaceContentListener
extends java.lang.Object
implements com.atlassian.event.EventListener

Listener that generates the initial content of a space when it is first created. Currently only creates the homepage in a space, with the configured content, but a replacement could be written and dropped into the system that did more complicated initialisation, such as importing content from a directory. If a personal space is created or a global space converted into a personal space, the personalInformation object of the user will be blanked.


Field Summary
static java.lang.String DEFAULT_HOMEPAGE_CONTENT
           
static java.lang.String DEFAULT_HOMEPAGE_TITLE
           
static java.lang.String DEFAULT_INDEX_CONTENT
           
static java.lang.String DEFAULT_INDEX_TITLE
           
 
Constructor Summary
InitialSpaceContentListener()
           
 
Method Summary
 java.lang.Class[] getHandledEventClasses()
           
 SettingsManager getSettingsManager()
           
 void handleEvent(com.atlassian.event.Event event)
           
protected  void handleSpaceCreate(com.atlassian.event.Event event)
           
 void setPageManager(PageManager pageManager)
           
 void setPersonalInformationManager(PersonalInformationManager personalInformationManager)
           
 void setSettingsManager(SettingsManager settingsManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_HOMEPAGE_TITLE

public static final java.lang.String DEFAULT_HOMEPAGE_TITLE
See Also:
Constant Field Values

DEFAULT_HOMEPAGE_CONTENT

public static final java.lang.String DEFAULT_HOMEPAGE_CONTENT
See Also:
Constant Field Values

DEFAULT_INDEX_TITLE

public static final java.lang.String DEFAULT_INDEX_TITLE
See Also:
Constant Field Values

DEFAULT_INDEX_CONTENT

public static final java.lang.String DEFAULT_INDEX_CONTENT
See Also:
Constant Field Values
Constructor Detail

InitialSpaceContentListener

public InitialSpaceContentListener()
Method Detail

handleEvent

public void handleEvent(com.atlassian.event.Event event)
Specified by:
handleEvent in interface com.atlassian.event.EventListener

handleSpaceCreate

protected void handleSpaceCreate(com.atlassian.event.Event event)

getHandledEventClasses

public java.lang.Class[] getHandledEventClasses()
Specified by:
getHandledEventClasses in interface com.atlassian.event.EventListener

setPageManager

public void setPageManager(PageManager pageManager)

getSettingsManager

public SettingsManager getSettingsManager()

setSettingsManager

public void setSettingsManager(SettingsManager settingsManager)

setPersonalInformationManager

public void setPersonalInformationManager(PersonalInformationManager personalInformationManager)


Copyright © 2003-2008 Atlassian Pty Ltd. All Rights Reserved.