com.atlassian.confluence.spaces.listeners
Class CreatePersonalSpaceListener

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

public class CreatePersonalSpaceListener
extends AbstractSpaceContentListener

Responds to a personal space being created. This listener's purpose is to copy across any user created personal info into the default personal space content.

The default personal space content can have up to 3 place holders which are -

  1. full name
  2. e-mail address
  3. wiki markup personal information
- in the order given above.

The default home page title can have a single place holder which is the full name of the user represented.

This listener will blank out the old personal information when it is finished so that it no longer gets retrieved in searches.


Field Summary
static java.lang.String DEFAULT_HOMEPAGE_TITLE
          Deprecated. Space homepage titles are internationalised since Confluence 4.3. See the default.personal.space.homepage.title key
 
Fields inherited from class com.atlassian.confluence.spaces.listeners.AbstractSpaceContentListener
formatConverter, i18NBeanFactory, localeManager, pageManager, pluginAccessor, systemTemplateManager, xhtmlContent
 
Constructor Summary
CreatePersonalSpaceListener()
           
 
Method Summary
static java.lang.String getDefaultHomePageContent()
          Deprecated. since 5.0 Do not use anymore. Get default space home content via the SystemTemplateManager now.
protected  void handleSpaceCreate(SpaceCreateEvent event)
           
 void setPersonalInformationManager(PersonalInformationManager personalInformationManager)
           
 void setUserAccessor(UserAccessor userAccessor)
           
 
Methods inherited from class com.atlassian.confluence.spaces.listeners.AbstractSpaceContentListener
getDefaultHomePageContent, getHandledEventClasses, handleEvent, setFormatConverter, setI18NBeanFactory, setLocaleManager, setPageManager, setPluginAccessor, setSystemTemplateManager, setXhtmlContent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_HOMEPAGE_TITLE

@Deprecated
public static final java.lang.String DEFAULT_HOMEPAGE_TITLE
Deprecated. Space homepage titles are internationalised since Confluence 4.3. See the default.personal.space.homepage.title key
See Also:
Constant Field Values
Constructor Detail

CreatePersonalSpaceListener

public CreatePersonalSpaceListener()
Method Detail

handleSpaceCreate

protected void handleSpaceCreate(SpaceCreateEvent event)
Specified by:
handleSpaceCreate in class AbstractSpaceContentListener

getDefaultHomePageContent

@Deprecated
public static java.lang.String getDefaultHomePageContent()
Deprecated. since 5.0 Do not use anymore. Get default space home content via the SystemTemplateManager now.


setPersonalInformationManager

public void setPersonalInformationManager(PersonalInformationManager personalInformationManager)

setUserAccessor

public void setUserAccessor(UserAccessor userAccessor)


Copyright © 2003-2014 Atlassian. All Rights Reserved.