public interface

DetailedUser

implements StashUser
com.atlassian.stash.user.DetailedUser

Class Overview

Extends a StashUser with additional details relating to the directory backing the user.

Summary

[Expand]
Inherited Constants
From interface com.atlassian.stash.user.StashUser
[Expand]
Inherited Fields
From interface com.atlassian.stash.user.Person
Public Methods
@Nullable String getDirectoryName()
Retrieves the name of the underlying directory in which this user is stored.
boolean isMutableDetails()
Retrieves a flag indicating whether the directory in which this user is stored supports updating the user's details, such as display name and e-mail address.
boolean isMutableGroups()
Retrieves a flag indicating whether the directory in which this user is stored supports modifying the user's groups, either to add new groups or remove existing ones.
[Expand]
Inherited Methods
From interface com.atlassian.stash.user.Person
From interface com.atlassian.stash.user.StashUser
From interface java.security.Principal

Public Methods

@Nullable public String getDirectoryName ()

Retrieves the name of the underlying directory in which this user is stored.

In certain circumstances, it may not be possible to determine the directory name. However, while this property is Nullable, it will generally be available.

Returns
  • the directory name

public boolean isMutableDetails ()

Retrieves a flag indicating whether the directory in which this user is stored supports updating the user's details, such as display name and e-mail address.

Returns
  • true if the underlying directory supports changing details; otherwise, false

public boolean isMutableGroups ()

Retrieves a flag indicating whether the directory in which this user is stored supports modifying the user's groups, either to add new groups or remove existing ones.

Returns
  • true if the underlying directory supports changing groups; otherwise, false