com.atlassian.confluence.user
Class DefaultUserDetailsManager

java.lang.Object
  extended by com.atlassian.confluence.user.DefaultUserDetailsManager
All Implemented Interfaces:
UserDetailsManager

public class DefaultUserDetailsManager
extends java.lang.Object
implements UserDetailsManager


Constructor Summary
DefaultUserDetailsManager(ContentPropertyManager contentPropertyManager, PersonalInformationManager personalInformationManager)
           
 
Method Summary
 java.util.List<java.lang.String> getProfileGroups()
          Get the list of profile information groups
 java.util.List<java.lang.String> getProfileKeys(java.lang.String groupKey)
          Gets a list of keys for each property stored against a user
 java.lang.String getStringProperty(com.atlassian.user.User user, java.lang.String key)
          Retrieve user property for a specified user.
 void removeProperty(com.atlassian.user.User user, java.lang.String key)
          Removes the property associated with the user
 void setStringProperty(com.atlassian.user.User user, java.lang.String key, java.lang.String value)
          Stores a string < 255 chars in a property with the given key against a specified user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultUserDetailsManager

public DefaultUserDetailsManager(ContentPropertyManager contentPropertyManager,
                                 PersonalInformationManager personalInformationManager)
Method Detail

getStringProperty

public java.lang.String getStringProperty(com.atlassian.user.User user,
                                          java.lang.String key)
Description copied from interface: UserDetailsManager
Retrieve user property for a specified user.

Specified by:
getStringProperty in interface UserDetailsManager
Parameters:
user - the user the property is associated with
key - the key of the property to retrieve
Returns:
user property string (< 255 chars)

setStringProperty

public void setStringProperty(com.atlassian.user.User user,
                              java.lang.String key,
                              java.lang.String value)
Description copied from interface: UserDetailsManager
Stores a string < 255 chars in a property with the given key against a specified user.

Specified by:
setStringProperty in interface UserDetailsManager
Parameters:
user - the user the property is associated with
key - the key of the property to set
value - the new value of the property

removeProperty

public void removeProperty(com.atlassian.user.User user,
                           java.lang.String key)
Description copied from interface: UserDetailsManager
Removes the property associated with the user

Specified by:
removeProperty in interface UserDetailsManager
Parameters:
user - the user the property is associated with
key - the key of the property to remove

getProfileKeys

public java.util.List<java.lang.String> getProfileKeys(java.lang.String groupKey)
Description copied from interface: UserDetailsManager
Gets a list of keys for each property stored against a user

Specified by:
getProfileKeys in interface UserDetailsManager
Returns:
list of properties

getProfileGroups

public java.util.List<java.lang.String> getProfileGroups()
Description copied from interface: UserDetailsManager
Get the list of profile information groups

Specified by:
getProfileGroups in interface UserDetailsManager


Copyright © 2003-2014 Atlassian. All Rights Reserved.