public class BaseController extends Object
Controller that needs
access to the GroupService| Modifier and Type | Field and Description |
|---|---|
protected GadgetService |
gadgetService |
static org.slf4j.Logger |
logger |
protected nl.surfnet.coin.opensocial.service.PersonService |
personService |
protected TabService |
tabService |
protected UserPreferencesService |
userPreferencesService |
| Constructor and Description |
|---|
BaseController() |
| Modifier and Type | Method and Description |
|---|---|
protected Gadget |
getGadget(javax.servlet.http.HttpServletRequest request,
String gadgetId) |
protected GroupList |
getGroupsForLoggedInPerson(javax.servlet.http.HttpServletRequest request) |
protected org.opensocial.models.Person |
getPerson(javax.servlet.http.HttpServletRequest request) |
protected UserPreferences |
getPreferences(javax.servlet.http.HttpServletRequest request)
Fetch the user's preferences
|
protected Tab |
getTab(javax.servlet.http.HttpServletRequest request,
String tabId) |
protected boolean |
isMemberOfGroup(javax.servlet.http.HttpServletRequest request,
String teamName) |
protected void |
populateModelMapWithPreferences(org.springframework.ui.ModelMap modelMap,
javax.servlet.http.HttpServletRequest request)
Populate the model map with the user's preferences.
|
@Autowired protected TabService tabService
@Autowired protected GadgetService gadgetService
@Autowired @Qualifier(value="opensocialPersonService") protected nl.surfnet.coin.opensocial.service.PersonService personService
@Autowired protected UserPreferencesService userPreferencesService
public static org.slf4j.Logger logger
protected GroupList getGroupsForLoggedInPerson(javax.servlet.http.HttpServletRequest request) throws InterruptedException, ExecutionException
protected boolean isMemberOfGroup(javax.servlet.http.HttpServletRequest request,
String teamName)
protected Gadget getGadget(javax.servlet.http.HttpServletRequest request, String gadgetId)
protected org.opensocial.models.Person getPerson(javax.servlet.http.HttpServletRequest request)
protected UserPreferences getPreferences(javax.servlet.http.HttpServletRequest request)
request - protected void populateModelMapWithPreferences(org.springframework.ui.ModelMap modelMap,
javax.servlet.http.HttpServletRequest request)
modelMap - request - Copyright © 2009-2012 SURFnet bv, The Netherlands. All Rights Reserved.