Class InitialSpaceContentListener
- java.lang.Object
-
- com.atlassian.confluence.spaces.listeners.AbstractSpaceContentListener
-
- com.atlassian.confluence.spaces.listeners.InitialSpaceContentListener
-
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.
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_HOMEPAGE_TITLE
Deprecated.Space homepage titles are internationalised since Confluence 4.3.-
Fields inherited from class com.atlassian.confluence.spaces.listeners.AbstractSpaceContentListener
formatConverter, i18NBeanFactory, localeManager, pageManager, pluginAccessor, systemTemplateManager, xhtmlContent
-
-
Constructor Summary
Constructors Constructor Description InitialSpaceContentListener(FormatConverter formatConverter, I18NBeanFactory i18NBeanFactory, LocaleManager localeManager, PageManager pageManager, SystemTemplateManager systemTemplateManager, com.atlassian.plugin.PluginAccessor pluginAccessor, XhtmlContent xhtmlContent)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static String
getDefaultHomePageContent()
Deprecated.since 5.0 Do not use anymore.protected void
handleSpaceCreate(SpaceCreateEvent event)
-
Methods inherited from class com.atlassian.confluence.spaces.listeners.AbstractSpaceContentListener
getDefaultHomePageContent, handleEvent
-
-
-
-
Field Detail
-
DEFAULT_HOMEPAGE_TITLE
@Deprecated public static final String DEFAULT_HOMEPAGE_TITLE
Deprecated.Space homepage titles are internationalised since Confluence 4.3. See the default.space.homepage.title key- See Also:
- Constant Field Values
-
-
Constructor Detail
-
InitialSpaceContentListener
public InitialSpaceContentListener(FormatConverter formatConverter, I18NBeanFactory i18NBeanFactory, LocaleManager localeManager, PageManager pageManager, SystemTemplateManager systemTemplateManager, com.atlassian.plugin.PluginAccessor pluginAccessor, XhtmlContent xhtmlContent)
-
-
Method Detail
-
handleSpaceCreate
protected void handleSpaceCreate(SpaceCreateEvent event)
- Specified by:
handleSpaceCreate
in classAbstractSpaceContentListener
-
getDefaultHomePageContent
@Deprecated public static String getDefaultHomePageContent()
Deprecated.since 5.0 Do not use anymore. Get default space home content via theSystemTemplateManager
now.
-
-