|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.greenhopper.service.properties.UserPropertyServiceImpl
@Service public class UserPropertyServiceImpl
Implementation of UserPropertiesService
Constructor Summary | |
---|---|
UserPropertyServiceImpl()
|
Method Summary | |
---|---|
java.util.List<java.lang.String> |
getQuickCreateFields(com.atlassian.crowd.embedded.api.User user)
Returns a list of the fields for the custom quick create form that the user last saw |
java.lang.String |
getQuickCreateIssueTypeId()
Returns the issue type id for the custom quick create form that the user last saw |
java.lang.Boolean |
getUseQuickFormPreference(com.atlassian.crowd.embedded.api.User user)
Has the user last viewed the quick form or the form with all fields |
boolean |
hasUserCompletedRapidBoardWelcomeMat(com.atlassian.crowd.embedded.api.User 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 |
hasUserDismissedAnalyticsMessage(com.atlassian.crowd.embedded.api.User user)
Has the user dismissed the analytics opt-in message |
boolean |
hasUserDismissedClassicBoardsWarning(com.atlassian.crowd.embedded.api.User user)
Has the user dismissed the classic boards warning message |
boolean |
isRapidViewSelected(com.atlassian.crowd.embedded.api.User 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 |
setHasUserDismissedAnalyticsMessage(boolean hasDismissed,
com.atlassian.crowd.embedded.api.User user)
Set whether or not the user has seen the analytics opt-in message |
void |
setHasUserDismissedClassicBoardsWarning(boolean hasDismissed,
com.atlassian.crowd.embedded.api.User user)
Set whether or not the user has dismissed the classic boards warning message |
void |
setQuickCreateFields(com.atlassian.crowd.embedded.api.User user,
java.util.List<java.lang.String> fields)
Store the list of the fields to be used for the custom quck create form. |
void |
setQuickCreateIssueTypeId(java.lang.String issueTypeId)
Store the quick create issue type id for the current user |
void |
setRapidViewSelected(boolean selected,
com.atlassian.crowd.embedded.api.User user)
Set whether the rapid view is currently selected. |
void |
setUseQuickFormPreference(com.atlassian.crowd.embedded.api.User 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.crowd.embedded.api.User user)
Set whether or not the user has completed the welcome mat for Rapid Board |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UserPropertyServiceImpl()
Method Detail |
---|
public boolean isRapidViewSelected(com.atlassian.crowd.embedded.api.User 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.crowd.embedded.api.User 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.crowd.embedded.api.User 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.crowd.embedded.api.User user)
UserPropertyService
setUserCompletedRapidBoardWelcomeMat
in interface UserPropertyService
completed
- booleanuser
- if null then anonymous user is assumed (session based storage is used)public boolean hasUserDismissedAnalyticsMessage(com.atlassian.crowd.embedded.api.User user)
UserPropertyService
hasUserDismissedAnalyticsMessage
in interface UserPropertyService
public void setHasUserDismissedAnalyticsMessage(boolean hasDismissed, com.atlassian.crowd.embedded.api.User user)
UserPropertyService
setHasUserDismissedAnalyticsMessage
in interface UserPropertyService
public boolean hasUserDismissedClassicBoardsWarning(com.atlassian.crowd.embedded.api.User user)
UserPropertyService
hasUserDismissedClassicBoardsWarning
in interface UserPropertyService
public void setHasUserDismissedClassicBoardsWarning(boolean hasDismissed, com.atlassian.crowd.embedded.api.User user)
UserPropertyService
setHasUserDismissedClassicBoardsWarning
in interface UserPropertyService
public java.lang.String getQuickCreateIssueTypeId()
UserPropertyService
getQuickCreateIssueTypeId
in interface UserPropertyService
public void setQuickCreateIssueTypeId(java.lang.String issueTypeId)
UserPropertyService
setQuickCreateIssueTypeId
in interface UserPropertyService
issueTypeId
- the id of the issue typepublic java.util.List<java.lang.String> getQuickCreateFields(com.atlassian.crowd.embedded.api.User user)
UserPropertyService
getQuickCreateFields
in interface UserPropertyService
user
- current logged in user
public void setQuickCreateFields(com.atlassian.crowd.embedded.api.User user, java.util.List<java.lang.String> fields)
UserPropertyService
setQuickCreateFields
in interface UserPropertyService
user
- current logged in userfields
- List of field namespublic java.lang.Boolean getUseQuickFormPreference(com.atlassian.crowd.embedded.api.User user)
UserPropertyService
getUseQuickFormPreference
in interface UserPropertyService
user
- current logged in user
public void setUseQuickFormPreference(com.atlassian.crowd.embedded.api.User user, boolean useQuickForm)
UserPropertyService
setUseQuickFormPreference
in interface UserPropertyService
user
- currently logged in useruseQuickForm
- true for quick form, false for long form
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |