|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.core.DefaultContentEntityManager com.atlassian.confluence.user.DefaultPersonalInformationManager
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 *CreateEvents s. |
protected void |
publishRemoveEvent(ContentEntityObject obj)
This method publishes *RemoveEvent s. |
protected void |
publishUpdateEvent(ContentEntityObject obj,
ContentEntityObject origObj,
SaveContext saveContext)
This method publishes *UpdateEvent s. |
void |
removePersonalInformation(String username)
|
void |
savePersonalInformation(PersonalInformation newInfo,
PersonalInformation oldInfo)
|
void |
setAttachmentManager(AttachmentManager attachmentManager)
|
void |
setPersonalInformationDao(PersonalInformationDao personalInformationDao)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultPersonalInformationManager()
Method Detail |
public PersonalInformation getPersonalInformation(String username)
PersonalInformationManager
getPersonalInformation
in interface PersonalInformationManager
public PersonalInformation getPersonalInformation(User user)
PersonalInformationManager
getPersonalInformation
in interface PersonalInformationManager
user
- the user to retrieve personal information for
public PersonalInformation createPersonalInformation(User user)
createPersonalInformation
in interface PersonalInformationManager
protected PersonalInformation createPersonalInformation(String username)
public void savePersonalInformation(PersonalInformation newInfo, PersonalInformation oldInfo)
savePersonalInformation
in interface PersonalInformationManager
public void setPersonalInformationDao(PersonalInformationDao personalInformationDao)
setPersonalInformationDao
in interface PersonalInformationManager
public void removePersonalInformation(String username)
removePersonalInformation
in interface PersonalInformationManager
protected void publishCreateEvent(ContentEntityObject obj)
DefaultContentEntityManager
*CreateEvents
s.
Specific content entity object manager that need to publish those events should override this method.
Default implmentation doesn't do anything
publishCreateEvent
in class DefaultContentEntityManager
obj
- the created content entity objectprotected void publishUpdateEvent(ContentEntityObject obj, ContentEntityObject origObj, SaveContext saveContext)
DefaultContentEntityManager
*UpdateEvent
s.
Specific content entity object manager that need to publish those events should override this method.
Default implmentation doesn't do anything
publishUpdateEvent
in class DefaultContentEntityManager
obj
- the updated content entity objectorigObj
- the old version of the content entity object, for history purposesaveContext
- the associated SaveContext
protected void publishRemoveEvent(ContentEntityObject obj)
DefaultContentEntityManager
*RemoveEvent
s.
Specific content entity object manager that need to publish those events should override this method.
Default implmentation doesn't do anything
publishRemoveEvent
in class DefaultContentEntityManager
obj
- the removed content entity objectpublic void setAttachmentManager(AttachmentManager attachmentManager)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |