@Service(value="squashtest.tm.service.PartyPreferenceService") @Transactional public class PartyPreferenceServiceImpl extends Object implements PartyPreferenceService
| Constructor and Description |
|---|
PartyPreferenceServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addOrUpdatePreference(org.squashtest.tm.domain.users.Party party,
String preferenceKey,
String preferenceValue)
Add a
PartyPreference for the given party and the given key, with the given value. |
void |
addOrUpdatePreferenceForCurrentUser(String preferenceKey,
String preferenceValue)
Add a
PartyPreference for the current user and the given key, with the given value. |
void |
chooseFavoriteDashboardAsHomeContentForCurrentUser() |
void |
chooseWelcomeMessageAsHomeContentForCurrentUser() |
org.squashtest.tm.domain.users.PartyPreference |
findPreference(org.squashtest.tm.domain.users.Party party,
String preferenceKey)
Find a
PartyPreference for a given party and a key |
org.squashtest.tm.domain.users.PartyPreference |
findPreferenceForCurrentUser(String preferenceKey)
Find a
PartyPreference for a given key and for the current user |
Map<String,String> |
findPreferences(org.squashtest.tm.domain.users.Party party)
Find all
PartyPreference for a given party |
Map<String,String> |
findPreferencesForCurrentUser()
Find all
PartyPreference for the current user |
public org.squashtest.tm.domain.users.PartyPreference findPreference(org.squashtest.tm.domain.users.Party party,
String preferenceKey)
PartyPreferenceServicePartyPreference for a given party and a keyfindPreference in interface PartyPreferenceServicepublic Map<String,String> findPreferences(org.squashtest.tm.domain.users.Party party)
PartyPreferenceServicePartyPreference for a given partyfindPreferences in interface PartyPreferenceServicepublic org.squashtest.tm.domain.users.PartyPreference findPreferenceForCurrentUser(String preferenceKey)
PartyPreferenceServicePartyPreference for a given key and for the current userfindPreferenceForCurrentUser in interface PartyPreferenceServicepublic Map<String,String> findPreferencesForCurrentUser()
PartyPreferenceServicePartyPreference for the current userfindPreferencesForCurrentUser in interface PartyPreferenceServicepublic void addOrUpdatePreference(org.squashtest.tm.domain.users.Party party,
String preferenceKey,
String preferenceValue)
PartyPreferenceServicePartyPreference for the given party and the given key, with the given value. If the pref doesn't
exist in db, it will create and persit it. Otherwise it update itaddOrUpdatePreference in interface PartyPreferenceServicepublic void addOrUpdatePreferenceForCurrentUser(String preferenceKey, String preferenceValue)
PartyPreferenceServicePartyPreference for the current user and the given key, with the given value. If the pref doesn't
exist in db, it will create and persit it. Otherwise it update itaddOrUpdatePreferenceForCurrentUser in interface PartyPreferenceServicepublic void chooseWelcomeMessageAsHomeContentForCurrentUser()
chooseWelcomeMessageAsHomeContentForCurrentUser in interface PartyPreferenceServicepublic void chooseFavoriteDashboardAsHomeContentForCurrentUser()
chooseFavoriteDashboardAsHomeContentForCurrentUser in interface PartyPreferenceServiceCopyright © 2010–2017 Henix, henix.fr. All rights reserved.