com.atlassian.confluence.user
Class DefaultPersonalInformationManager

java.lang.Object
  extended bycom.atlassian.confluence.core.DefaultContentEntityManager
      extended bycom.atlassian.confluence.user.DefaultPersonalInformationManager
All Implemented Interfaces:
ContentEntityManager, PersonalInformationManager

public class DefaultPersonalInformationManager
extends DefaultContentEntityManager
implements PersonalInformationManager


Field Summary
 
Fields inherited from class com.atlassian.confluence.core.DefaultContentEntityManager
contentEntityObjectDao, eventManager, indexer, linkManager
 
Fields inherited from interface com.atlassian.confluence.core.ContentEntityManager
ITERATE_ALL
 
Constructor Summary
DefaultPersonalInformationManager()
           
 
Method Summary
protected  PersonalInformation createPersonalInformation(String username)
           
 PersonalInformation createPersonalInformation(User user)
           
 PersonalInformation getPersonalInformation(String username)
          Deprecated: Because it was possible to pass in a string that was not a username, this method could be used accidentally to create personal information for non-users, which caused lots of nasty things to happen.
 PersonalInformation getPersonalInformation(User user)
          Retrieve the personal information for a user.
protected  void publishCreateEvent(ContentEntityObject obj)
          This method publishes *CreateEventss.
protected  void publishRemoveEvent(ContentEntityObject obj)
          This method publishes *RemoveEvents.
protected  void publishUpdateEvent(ContentEntityObject obj, ContentEntityObject origObj, SaveContext saveContext)
          This method publishes *UpdateEvents.
 void removePersonalInformation(String username)
           
 void savePersonalInformation(PersonalInformation newInfo, PersonalInformation oldInfo)
           
 void setAttachmentManager(AttachmentManager attachmentManager)
           
 void setPersonalInformationDao(PersonalInformationDao personalInformationDao)
           
 
Methods inherited from class com.atlassian.confluence.core.DefaultContentEntityManager
getAllCurrentEntities, getById, getEntitiesModifiedSince, getEventManager, getLockedBySpace, getNextVersion, getOtherVersion, getPageDao, getPreviousVersion, getRecentlyAddedEntities, getRecentlyModifiedEntities, getRecentlyModifiedEntities, getRecentlyModifiedEntitiesByType, getRecentlyModifiedEntitiesForUser, getVersionHistorySummaries, refreshContentEntity, removeContentEntity, revertContentEntityBackToVersion, saveContentEntity, saveContentEntity, setContentEntityObjectDao, setEventManager, setIndexer, setLabelManager, setLinkManager, updateContentLinkingTo, updateOutgoingLinksInContent, updateSingleContentLinkinTo, updateSingleContentLinkinTo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultPersonalInformationManager

public DefaultPersonalInformationManager()
Method Detail

getPersonalInformation

public PersonalInformation getPersonalInformation(String username)
Deprecated.  

Description copied from interface: PersonalInformationManager
Deprecated: Because it was possible to pass in a string that was not a username, this method could be used accidentally to create personal information for non-users, which caused lots of nasty things to happen. Instead, use the version of the method that requires a real User object.

Specified by:
getPersonalInformation in interface PersonalInformationManager

getPersonalInformation

public PersonalInformation getPersonalInformation(User user)
Description copied from interface: PersonalInformationManager
Retrieve the personal information for a user. If no personal information exists in the database, one will be created.

Specified by:
getPersonalInformation in interface PersonalInformationManager
Parameters:
user - the user to retrieve personal information for
Returns:
the personal information for that user

createPersonalInformation

public PersonalInformation createPersonalInformation(User user)
Specified by:
createPersonalInformation in interface PersonalInformationManager

createPersonalInformation

protected PersonalInformation createPersonalInformation(String username)

savePersonalInformation

public void savePersonalInformation(PersonalInformation newInfo,
                                    PersonalInformation oldInfo)
Specified by:
savePersonalInformation in interface PersonalInformationManager

setPersonalInformationDao

public void setPersonalInformationDao(PersonalInformationDao personalInformationDao)
Specified by:
setPersonalInformationDao in interface PersonalInformationManager

removePersonalInformation

public void removePersonalInformation(String username)
Specified by:
removePersonalInformation in interface PersonalInformationManager

publishCreateEvent

protected void publishCreateEvent(ContentEntityObject obj)
Description copied from class: DefaultContentEntityManager
This method publishes *CreateEventss. Specific content entity object manager that need to publish those events should override this method. Default implmentation doesn't do anything

Overrides:
publishCreateEvent in class DefaultContentEntityManager
Parameters:
obj - the created content entity object

publishUpdateEvent

protected void publishUpdateEvent(ContentEntityObject obj,
                                  ContentEntityObject origObj,
                                  SaveContext saveContext)
Description copied from class: DefaultContentEntityManager
This method publishes *UpdateEvents. Specific content entity object manager that need to publish those events should override this method. Default implmentation doesn't do anything

Overrides:
publishUpdateEvent in class DefaultContentEntityManager
Parameters:
obj - the updated content entity object
origObj - the old version of the content entity object, for history purpose
saveContext - the associated SaveContext

publishRemoveEvent

protected void publishRemoveEvent(ContentEntityObject obj)
Description copied from class: DefaultContentEntityManager
This method publishes *RemoveEvents. Specific content entity object manager that need to publish those events should override this method. Default implmentation doesn't do anything

Overrides:
publishRemoveEvent in class DefaultContentEntityManager
Parameters:
obj - the removed content entity object

setAttachmentManager

public void setAttachmentManager(AttachmentManager attachmentManager)


Confluence is developed by Atlassian.