|
||||||||||
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
public class DefaultPersonalInformationManager
Field Summary |
---|
Fields inherited from class com.atlassian.confluence.core.DefaultContentEntityManager |
---|
attachmentManager, contentEntityObjectDao, eventManager, hibernateSessionManager, indexer, labelManager, linkManager |
Fields inherited from interface com.atlassian.confluence.core.ContentEntityManager |
---|
ITERATE_ALL |
Constructor Summary | |
---|---|
DefaultPersonalInformationManager()
|
Method Summary | |
---|---|
PersonalInformation |
createPersonalInformation(com.atlassian.user.User user)
Creates a new PersonalInformation for the specified user. |
PersonalInformation |
getOrCreatePersonalInformation(com.atlassian.user.User user)
Retrieve the personal information for a user. |
PersonalInformation |
getPersonalInformation(com.atlassian.user.User user)
Retrieve the personal information for a user. |
boolean |
hasPersonalInformation(String username)
|
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)
Saves personal information object. |
void |
savePersonalInformation(com.atlassian.user.User user,
String newInfoString,
String fullName)
Saves personal information and full name against the user object. |
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 getOrCreatePersonalInformation(com.atlassian.user.User user)
PersonalInformationManager
getOrCreatePersonalInformation
in interface PersonalInformationManager
user
- the user to retrieve personal information for
public PersonalInformation getPersonalInformation(com.atlassian.user.User user)
PersonalInformationManager
getPersonalInformation
in interface PersonalInformationManager
user
- the user to retrieve personal information for
public PersonalInformation createPersonalInformation(com.atlassian.user.User user)
PersonalInformationManager
PersonalInformation
for the specified user. Returns the existing one if it already exists.
createPersonalInformation
in interface PersonalInformationManager
public void savePersonalInformation(PersonalInformation newInfo, PersonalInformation oldInfo)
PersonalInformationManager
savePersonalInformation
in interface PersonalInformationManager
public void savePersonalInformation(com.atlassian.user.User user, String newInfoString, String fullName)
PersonalInformationManager
savePersonalInformation
in interface PersonalInformationManager
public void setPersonalInformationDao(PersonalInformationDao personalInformationDao)
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.
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.
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.
publishRemoveEvent
in class DefaultContentEntityManager
obj
- the removed content entity objectpublic boolean hasPersonalInformation(String username)
hasPersonalInformation
in interface PersonalInformationManager
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |