@Service public class UserPropertyServiceImpl extends Object implements UserPropertyService
Constructor and Description |
---|
UserPropertyServiceImpl() |
Modifier and Type | Method and Description |
---|---|
List<String> |
getQuickCreateFields(com.atlassian.jira.user.ApplicationUser user)
Returns a list of the fields for the custom quick create form that the user last saw
|
String |
getQuickCreateIssueTypeId()
Returns the issue type id for the custom quick create form that the user last saw
|
Boolean |
getUseQuickFormPreference(com.atlassian.jira.user.ApplicationUser user)
Has the user last viewed the quick form or the form with all fields
|
boolean |
hasUserCompletedRapidBoardWelcomeMat(com.atlassian.jira.user.ApplicationUser user)
Has the user "completed" the welcome mat for the Rapid Board? This is defined as having
successfully created a new project, created a new Rapid View or found an existing Rapid View.
|
boolean |
hasUserDismissedClassicBoardsEOLWarning(com.atlassian.jira.user.ApplicationUser user)
Has the user dismissed the classic boards warning message
|
boolean |
isRapidViewSelected(com.atlassian.jira.user.ApplicationUser user)
Is the Rapid Board the currently selected "view"? This is kept separate from the user board settings as
the rapid board is non-project specific.
|
void |
setHasUserDismissedClassicBoardsEOLWarning(boolean hasDismissed,
com.atlassian.jira.user.ApplicationUser user)
Set whether or not the user has dismissed the classic boards warning message
|
void |
setQuickCreateFields(com.atlassian.jira.user.ApplicationUser user,
List<String> fields)
Store the list of the fields to be used for the custom quck create form.
|
void |
setQuickCreateIssueTypeId(String issueTypeId)
Store the quick create issue type id for the current user
|
void |
setRapidViewSelected(boolean selected,
com.atlassian.jira.user.ApplicationUser user)
Set whether the rapid view is currently selected.
|
void |
setUseQuickFormPreference(com.atlassian.jira.user.ApplicationUser user,
boolean useQuickForm)
Store the preference for whether to use the quick create form (custom fields) or long form (all fields)
|
void |
setUserCompletedRapidBoardWelcomeMat(boolean completed,
com.atlassian.jira.user.ApplicationUser user)
Set whether or not the user has completed the welcome mat for Rapid Board
|
public boolean isRapidViewSelected(com.atlassian.jira.user.ApplicationUser user)
UserPropertyService
isRapidViewSelected
in interface UserPropertyService
user
- if null then anonymous user is assumed (session based storage is used)public void setRapidViewSelected(boolean selected, com.atlassian.jira.user.ApplicationUser user)
UserPropertyService
setRapidViewSelected
in interface UserPropertyService
selected
- booleanuser
- if null then anonymous user is assumed (session based storage is used)public boolean hasUserCompletedRapidBoardWelcomeMat(com.atlassian.jira.user.ApplicationUser user)
UserPropertyService
hasUserCompletedRapidBoardWelcomeMat
in interface UserPropertyService
user
- if null then anonymous user is assumed (session based storage is used)public void setUserCompletedRapidBoardWelcomeMat(boolean completed, com.atlassian.jira.user.ApplicationUser user)
UserPropertyService
setUserCompletedRapidBoardWelcomeMat
in interface UserPropertyService
completed
- booleanuser
- if null then anonymous user is assumed (session based storage is used)public boolean hasUserDismissedClassicBoardsEOLWarning(com.atlassian.jira.user.ApplicationUser user)
UserPropertyService
hasUserDismissedClassicBoardsEOLWarning
in interface UserPropertyService
public void setHasUserDismissedClassicBoardsEOLWarning(boolean hasDismissed, com.atlassian.jira.user.ApplicationUser user)
UserPropertyService
setHasUserDismissedClassicBoardsEOLWarning
in interface UserPropertyService
public String getQuickCreateIssueTypeId()
UserPropertyService
getQuickCreateIssueTypeId
in interface UserPropertyService
public void setQuickCreateIssueTypeId(String issueTypeId)
UserPropertyService
setQuickCreateIssueTypeId
in interface UserPropertyService
issueTypeId
- the id of the issue typepublic List<String> getQuickCreateFields(com.atlassian.jira.user.ApplicationUser user)
UserPropertyService
getQuickCreateFields
in interface UserPropertyService
user
- current logged in userpublic void setQuickCreateFields(com.atlassian.jira.user.ApplicationUser user, List<String> fields)
UserPropertyService
setQuickCreateFields
in interface UserPropertyService
user
- current logged in userfields
- List of field namespublic Boolean getUseQuickFormPreference(com.atlassian.jira.user.ApplicationUser user)
UserPropertyService
getUseQuickFormPreference
in interface UserPropertyService
user
- current logged in userpublic void setUseQuickFormPreference(com.atlassian.jira.user.ApplicationUser user, boolean useQuickForm)
UserPropertyService
setUseQuickFormPreference
in interface UserPropertyService
user
- currently logged in useruseQuickForm
- true for quick form, false for long formCopyright © 2007–2015 Atlassian. All rights reserved.