public class InitialSpaceContentListener extends AbstractSpaceContentListener
Listener that generates the initial content of a space when it is first created. Currently only creates the home page 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.
This listener doesn't handle the content for personal spaces. See the CreatePersonalSpaceListener
for this
functionality.
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_HOMEPAGE_TITLE
Deprecated.
Space homepage titles are internationalised since Confluence 4.3. See the default.space.homepage.title key
|
formatConverter, i18NBeanFactory, localeManager, pageManager, pluginAccessor, systemTemplateManager, xhtmlContent
Constructor and Description |
---|
InitialSpaceContentListener() |
Modifier and Type | Method and Description |
---|---|
static String |
getDefaultHomePageContent()
Deprecated.
since 5.0 Do not use anymore. Get default space home content via the
SystemTemplateManager now. |
protected void |
handleSpaceCreate(SpaceCreateEvent event) |
getDefaultHomePageContent, getHandledEventClasses, handleEvent, setFormatConverter, setI18NBeanFactory, setLocaleManager, setPageManager, setPluginAccessor, setSystemTemplateManager, setXhtmlContent
@Deprecated public static final String DEFAULT_HOMEPAGE_TITLE
protected void handleSpaceCreate(SpaceCreateEvent event)
handleSpaceCreate
in class AbstractSpaceContentListener
@Deprecated public static String getDefaultHomePageContent()
SystemTemplateManager
now.Copyright © 2003–2015 Atlassian. All rights reserved.