Package com.atlassian.jira.user.util
package com.atlassian.jira.user.util
-
ClassDescriptionJIRA does not want to be able to enable 'recovery mode' dynamically so for efficiency we cache the load time results.Implementation of
RecoveryMode
that delegates toRecoveryModeService
.Class that tries to wait for any "Crowd Embedded" synchronisations to finish.Container class used to hold a mapping of duplicated users to the directories they have accounts in.Builder class used to constructDuplicatedUsersToDirectoriesMapping
objects.Container class holding id and name of the directory and an indication if user has an active account in it.Util interface providing helper methods for updating global user preferences (such as e-mail Mimetype, etc)This class provides methods for counting both internal users and external users (if external user mgmt is enabled) It also provides methods for updating global preferences.{ "settings":{ "legacyMode":false, "flushIntervalInSeconds":30 }, "recordLoginAttemptSuccessfulInMillis":{ "count":1, "min":14, "max":14, "sum":14, "avg":14, "distributionCounter":{ "1":0, "10":0, "100":1, "1000":0, "5000":0 } }, "recordLoginAttemptFailedInMillis":{ "count":1, "min":31, "max":31, "sum":31, "avg":31, "distributionCounter":{ "1":0, "10":0, "100":1, "1000":0, "5000":0 } }, "updateLastLoginTimeInMillis":{ "count":0, "min":0, "max":0, "sum":0, "avg":0, "distributionCounter":{ "1":0, "10":0, "100":0, "1000":0, "5000":0 } }, "resetFailedLoginCountInMillis":{ "count":0, "min":0, "max":0, "sum":0, "avg":0, "distributionCounter":{ "1":0, "10":0, "100":0, "1000":0, "5000":0 } }, "getOrLoadLastKnownLoginInfoInMillis":{ "count":3, "min":0, "max":13, "sum":13, "avg":4, "distributionCounter":{ "1":2, "10":0, "100":1, "1000":0, "5000":0 } }, "delegateRecordLoginAttemptSuccessfulInMillis":{ "count":1, "min":13, "max":13, "sum":13, "avg":13, "distributionCounter":{ "1":0, "10":0, "100":1, "1000":0, "5000":0 } }, "delegateRecordLoginAttemptFailedInMillis":{ "count":1, "min":29, "max":29, "sum":29, "avg":29, "distributionCounter":{ "1":0, "10":0, "100":1, "1000":0, "5000":0 } }, "delegateUpdateLastLoginTimeInMillis":{ "count":0, "min":0, "max":0, "sum":0, "avg":0, "distributionCounter":{ "1":0, "10":0, "100":0, "1000":0, "5000":0 } }, "delegateResetFailedLoginCountInMillis":{ "count":0, "min":0, "max":0, "sum":0, "avg":0, "distributionCounter":{ "1":0, "10":0, "100":0, "1000":0, "5000":0 } }, "invalidateLastKnownLoginInfoCache":2, "flushDataToDBInMillis":{ "count":19, "min":0, "max":0, "sum":0, "avg":0, "distributionCounter":{ "1":19, "10":0, "100":0, "1000":0, "5000":0 } }, "flushUserAttemptsInMillis":{ "count":1, "min":1, "max":1, "sum":1, "avg":1, "distributionCounter":{ "1":1, "10":0, "100":0, "1000":0, "5000":0 } }, "flushRecordedSuccessfulLoginAttemptsMillis":{ "count":2, "min":0, "max":1, "sum":1, "avg":0, "distributionCounter":{ "1":2, "10":0, "100":0, "1000":0, "5000":0 } }, "flushLastLoginTimesMillis":{ "count":1, "min":0, "max":0, "sum":0, "avg":0, "distributionCounter":{ "1":1, "10":0, "100":0, "1000":0, "5000":0 } }, "unscheduledFlushUserAttemptsCount":1, "onClearCacheCount":0, "failedValidateRunningCount":0, "flushRecordedSuccessfulLoginAttemptsUnsuccessfulCount":0, "flushLastLoginTimesUnsuccessfulCount":0, "applicationUserToLastKnownLoginInfoMaxSize":1, "getLastKnownLoginInfoCacheCallCount":3, "getLastKnownLoginInfoCount":0, "usersFlushedToDB":{ "count":0, "min":0, "max":0, "sum":0, "avg":0, "distributionCounter":{ } } }Really simple mock implementationEnsures that there is a user key for the 'recovery admin'.Abstraction for interacting with recovery mode.Try to log a user in automatically behind-the-scenes without knowing their password.Simple implementation ofRecoveryMode
that uses a static user.Objects of this class contains three fields that identify a user in the JIRA database: id, key, username.Simple user utilities that do not require an implementation with too many dependencies.The current state of a user with regard to the same username existing in other user directories.Static utility methods pertaining toUser
instances.An interface for querying a user's default sharing preferences.Standard implementation of theUserSharingPreferencesUtil
interface.This is a back end service level interface that defines an API for user level operations.This is the default implementation of the UserUtil interface.