com.atlassian.confluence.spaces.listeners
Class InitialSpaceContentListener

java.lang.Object
  extended bycom.atlassian.confluence.spaces.listeners.InitialSpaceContentListener
All Implemented Interfaces:
EventListener

public class InitialSpaceContentListener
extends Object
implements 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 String DEFAULT_HOMEPAGE_CONTENT
           
static String DEFAULT_HOMEPAGE_TITLE
           
static String DEFAULT_INDEX_CONTENT
           
static String DEFAULT_INDEX_TITLE
           
 
Constructor Summary
InitialSpaceContentListener()
           
 
Method Summary
 Class[] getHandledEventClasses()
           
 SettingsManager getSettingsManager()
           
 void handleEvent(Event event)
           
protected  void handleSpaceCreate(Event event)
           
 void setPageManager(PageManager pageManager)
           
 void setPersonalInformationManager(PersonalInformationManager personalInformationManager)
           
 void setSettingsManager(SettingsManager settingsManager)
           
 void setSpaceManager(SpaceManager spaceManager)
           
 
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 String DEFAULT_HOMEPAGE_TITLE
See Also:
Constant Field Values

DEFAULT_HOMEPAGE_CONTENT

public static final String DEFAULT_HOMEPAGE_CONTENT
See Also:
Constant Field Values

DEFAULT_INDEX_TITLE

public static final String DEFAULT_INDEX_TITLE
See Also:
Constant Field Values

DEFAULT_INDEX_CONTENT

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

InitialSpaceContentListener

public InitialSpaceContentListener()
Method Detail

handleEvent

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

handleSpaceCreate

protected void handleSpaceCreate(Event event)

getHandledEventClasses

public Class[] getHandledEventClasses()
Specified by:
getHandledEventClasses in interface EventListener

setPageManager

public void setPageManager(PageManager pageManager)

setSpaceManager

public void setSpaceManager(SpaceManager spaceManager)

getSettingsManager

public SettingsManager getSettingsManager()

setSettingsManager

public void setSettingsManager(SettingsManager settingsManager)

setPersonalInformationManager

public void setPersonalInformationManager(PersonalInformationManager personalInformationManager)


Confluence is developed by Atlassian.