Class UserSettings
java.lang.Object
com.atlassian.confluence.api.model.people.UserSettings
Represents user settings data for API operations.
- Since:
- 10.2
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionUserSettings(String username) UserSettings(String username, String locale) Creates a new UserSettings instance. -
Method Summary
-
Constructor Details
-
UserSettings
Creates a new UserSettings instance.- Parameters:
username- the username of the user whose settings are being updatedlocale- the locale preference for the user (can be null or empty)
-
UserSettings
-
-
Method Details
-
getLocale
Gets the user's locale preference.- Returns:
- the locale string (e.g. "en_GB", "fr_FR")
-
getUsername
Gets the username of the target user.- Returns:
- the username string
-
setLocale
Sets the user's locale. The value "None" will clear the setting for the user, and they will see application's default locale. Empty or null values will trigger no change.- Parameters:
locale- the locale string
-