@Internal public interface

UserKeyStore

com.atlassian.jira.user.util.UserKeyStore
Known Indirect Subclasses

@Internal

This interface is an internal implementation detail and will change without notice.

Clients that depend on @Internal classes and interfaces can not expect to be compatible with any version other than the version they were compiled against (even minor version and milestone releases may break binary compatibility with respect to @Internal elements).

Summary

Public Methods
@Internal String ensureUniqueKeyForNewUser(String username)
@Internal Long getIdForUserKey(String name)
String getKeyForUsername(String username)
@Internal Optional<ApplicationUserEntity> getUserForId(Long id)
@Internal Optional<ApplicationUserEntity> getUserForKey(String key)
@Internal Optional<ApplicationUserEntity> getUserForUsername(String username)
String getUsernameForKey(String key)
@Internal String removeByKey(String key)
It is dangerous to use this method.
@Internal void renameUser(String oldUsername, String newUsername)

Public Methods

@Internal public String ensureUniqueKeyForNewUser (String username)

@Internal

This method is an internal implementation detail and will change without notice.

Clients that depend on @Internal classes and interfaces can not expect to be compatible with any version other than the version they were compiled against (even minor version and milestone releases may break binary compatibility with respect to @Internal elements).

@Internal public Long getIdForUserKey (String name)

@Internal

This method is an internal implementation detail and will change without notice.

Clients that depend on @Internal classes and interfaces can not expect to be compatible with any version other than the version they were compiled against (even minor version and milestone releases may break binary compatibility with respect to @Internal elements).

public String getKeyForUsername (String username)

@Internal public Optional<ApplicationUserEntity> getUserForId (Long id)

@Internal

This method is an internal implementation detail and will change without notice.

Clients that depend on @Internal classes and interfaces can not expect to be compatible with any version other than the version they were compiled against (even minor version and milestone releases may break binary compatibility with respect to @Internal elements).

@Internal public Optional<ApplicationUserEntity> getUserForKey (String key)

@Internal

This method is an internal implementation detail and will change without notice.

Clients that depend on @Internal classes and interfaces can not expect to be compatible with any version other than the version they were compiled against (even minor version and milestone releases may break binary compatibility with respect to @Internal elements).

@Internal public Optional<ApplicationUserEntity> getUserForUsername (String username)

@Internal

This method is an internal implementation detail and will change without notice.

Clients that depend on @Internal classes and interfaces can not expect to be compatible with any version other than the version they were compiled against (even minor version and milestone releases may break binary compatibility with respect to @Internal elements).

public String getUsernameForKey (String key)

@Internal public String removeByKey (String key)

@Internal

This method is an internal implementation detail and will change without notice.

Clients that depend on @Internal classes and interfaces can not expect to be compatible with any version other than the version they were compiled against (even minor version and milestone releases may break binary compatibility with respect to @Internal elements).

It is dangerous to use this method. In general operation JIRA needs to keep the userName -> key mapping around even if the user is deleted. This is so that it can show something in the UI after the user is deleted.

This method is used by cloud for import where all the users are deleted anyways (see JiraUserServiceImpl).

Parameters
key the key to remove.
Returns
  • the name of the user deleted.

@Internal public void renameUser (String oldUsername, String newUsername)

@Internal

This method is an internal implementation detail and will change without notice.

Clients that depend on @Internal classes and interfaces can not expect to be compatible with any version other than the version they were compiled against (even minor version and milestone releases may break binary compatibility with respect to @Internal elements).