com.atlassian.greenhopper.service.properties
Class UserPropertyServiceImpl

java.lang.Object
  extended by com.atlassian.greenhopper.service.properties.UserPropertyServiceImpl
All Implemented Interfaces:
UserPropertyService

@Service
public class UserPropertyServiceImpl
extends java.lang.Object
implements UserPropertyService

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

UserPropertyServiceImpl

public UserPropertyServiceImpl()
Method Detail

isRapidViewSelected

public boolean isRapidViewSelected(com.atlassian.crowd.embedded.api.User user)
Description copied from interface: UserPropertyService
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.

Specified by:
isRapidViewSelected in interface UserPropertyService
Parameters:
user - if null then anonymous user is assumed (session based storage is used)
Returns:
true if the rapid board is currently selected, false otherwise. Falls back to false.

setRapidViewSelected

public void setRapidViewSelected(boolean selected,
                                 com.atlassian.crowd.embedded.api.User user)
Description copied from interface: UserPropertyService
Set whether the rapid view is currently selected.

Specified by:
setRapidViewSelected in interface UserPropertyService
Parameters:
selected - boolean
user - if null then anonymous user is assumed (session based storage is used)

hasUserCompletedRapidBoardWelcomeMat

public boolean hasUserCompletedRapidBoardWelcomeMat(com.atlassian.crowd.embedded.api.User user)
Description copied from interface: UserPropertyService
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. Additionally if they click on the External Import link, this is counted as completed.

Specified by:
hasUserCompletedRapidBoardWelcomeMat in interface UserPropertyService
Parameters:
user - if null then anonymous user is assumed (session based storage is used)
Returns:
true if completed; false otherwise.

setUserCompletedRapidBoardWelcomeMat

public void setUserCompletedRapidBoardWelcomeMat(boolean completed,
                                                 com.atlassian.crowd.embedded.api.User user)
Description copied from interface: UserPropertyService
Set whether or not the user has completed the welcome mat for Rapid Board

Specified by:
setUserCompletedRapidBoardWelcomeMat in interface UserPropertyService
Parameters:
completed - boolean
user - if null then anonymous user is assumed (session based storage is used)

hasUserDismissedAnalyticsMessage

public boolean hasUserDismissedAnalyticsMessage(com.atlassian.crowd.embedded.api.User user)
Description copied from interface: UserPropertyService
Has the user dismissed the analytics opt-in message

Specified by:
hasUserDismissedAnalyticsMessage in interface UserPropertyService

setHasUserDismissedAnalyticsMessage

public void setHasUserDismissedAnalyticsMessage(boolean hasDismissed,
                                                com.atlassian.crowd.embedded.api.User user)
Description copied from interface: UserPropertyService
Set whether or not the user has seen the analytics opt-in message

Specified by:
setHasUserDismissedAnalyticsMessage in interface UserPropertyService

hasUserDismissedClassicBoardsWarning

public boolean hasUserDismissedClassicBoardsWarning(com.atlassian.crowd.embedded.api.User user)
Description copied from interface: UserPropertyService
Has the user dismissed the classic boards warning message

Specified by:
hasUserDismissedClassicBoardsWarning in interface UserPropertyService

setHasUserDismissedClassicBoardsWarning

public void setHasUserDismissedClassicBoardsWarning(boolean hasDismissed,
                                                    com.atlassian.crowd.embedded.api.User user)
Description copied from interface: UserPropertyService
Set whether or not the user has dismissed the classic boards warning message

Specified by:
setHasUserDismissedClassicBoardsWarning in interface UserPropertyService

getQuickCreateIssueTypeId

public java.lang.String getQuickCreateIssueTypeId()
Description copied from interface: UserPropertyService
Returns the issue type id for the custom quick create form that the user last saw

Specified by:
getQuickCreateIssueTypeId in interface UserPropertyService
Returns:

setQuickCreateIssueTypeId

public void setQuickCreateIssueTypeId(java.lang.String issueTypeId)
Description copied from interface: UserPropertyService
Store the quick create issue type id for the current user

Specified by:
setQuickCreateIssueTypeId in interface UserPropertyService
Parameters:
issueTypeId - the id of the issue type

getQuickCreateFields

public java.util.List<java.lang.String> getQuickCreateFields(com.atlassian.crowd.embedded.api.User user)
Description copied from interface: UserPropertyService
Returns a list of the fields for the custom quick create form that the user last saw

Specified by:
getQuickCreateFields in interface UserPropertyService
Parameters:
user - current logged in user
Returns:
List of field names

setQuickCreateFields

public void setQuickCreateFields(com.atlassian.crowd.embedded.api.User user,
                                 java.util.List<java.lang.String> fields)
Description copied from interface: UserPropertyService
Store the list of the fields to be used for the custom quck create form.

Specified by:
setQuickCreateFields in interface UserPropertyService
Parameters:
user - current logged in user
fields - List of field names

getUseQuickFormPreference

public java.lang.Boolean getUseQuickFormPreference(com.atlassian.crowd.embedded.api.User user)
Description copied from interface: UserPropertyService
Has the user last viewed the quick form or the form with all fields

Specified by:
getUseQuickFormPreference in interface UserPropertyService
Parameters:
user - current logged in user
Returns:
true for quick form, false for long form

setUseQuickFormPreference

public void setUseQuickFormPreference(com.atlassian.crowd.embedded.api.User user,
                                      boolean useQuickForm)
Description copied from interface: UserPropertyService
Store the preference for whether to use the quick create form (custom fields) or long form (all fields)

Specified by:
setUseQuickFormPreference in interface UserPropertyService
Parameters:
user - currently logged in user
useQuickForm - true for quick form, false for long form


Copyright © 2007-2013 Atlassian. All Rights Reserved.