public class UserIssueTypeManagerImpl extends Object implements UserIssueTypeManager
UserIssueTypeManager
Constructor and Description |
---|
UserIssueTypeManagerImpl(UserPreferencesManager userPreferencesManager) |
Modifier and Type | Method and Description |
---|---|
Optional<IssueTypeId> |
getLastUsedIssueTypeId(ApplicationUser user)
Retrieves the last used parent issue type id used by the provided user.
|
Optional<IssueTypeId> |
getLastUsedSubtaskIssueTypeId(ApplicationUser user)
Retrieves the last used subtask issue type id used by the provided user.
|
void |
setLastUsedIssueTypeId(ApplicationUser user,
IssueTypeId lastUsedIssueTypeId)
Sets the last used parent issue type id for the provided user.
|
void |
setLastUsedSubtaskIssueTypeId(ApplicationUser user,
IssueTypeId lastUsedSubtaskIssueTypeId)
Sets the last used subtask issue type id for the provided user.
|
public UserIssueTypeManagerImpl(UserPreferencesManager userPreferencesManager)
public void setLastUsedIssueTypeId(@Nullable ApplicationUser user, IssueTypeId lastUsedIssueTypeId)
UserIssueTypeManager
setLastUsedIssueTypeId
in interface UserIssueTypeManager
user
- The user to store the last used issue type forlastUsedIssueTypeId
- A valid issue type idpublic void setLastUsedSubtaskIssueTypeId(@Nullable ApplicationUser user, IssueTypeId lastUsedSubtaskIssueTypeId)
UserIssueTypeManager
setLastUsedSubtaskIssueTypeId
in interface UserIssueTypeManager
user
- The user to store the last used issue type forlastUsedSubtaskIssueTypeId
- A valid subtask issue type idpublic Optional<IssueTypeId> getLastUsedIssueTypeId(@Nullable ApplicationUser user)
UserIssueTypeManager
getLastUsedIssueTypeId
in interface UserIssueTypeManager
user
- The currently logged in userpublic Optional<IssueTypeId> getLastUsedSubtaskIssueTypeId(@Nullable ApplicationUser user)
UserIssueTypeManager
getLastUsedSubtaskIssueTypeId
in interface UserIssueTypeManager
user
- The currently logged in userCopyright © 2002-2024 Atlassian. All Rights Reserved.