@Controller(value="blAdminManagedResourceController")
@PreAuthorize(value="hasRole(\'PERMISSION_ALL_SOLR_SYNONYMS\')")
public class AdminManagedResourceController
extends org.broadleafcommerce.common.web.controller.BroadleafAbstractController
| Modifier and Type | Field and Description |
|---|---|
protected org.broadleafcommerce.openadmin.server.security.service.navigation.AdminNavigationService |
adminNavigationService |
static String |
CURRENT_ADMIN_MODULE_ATTRIBUTE_NAME |
static String |
CURRENT_ADMIN_SECTION_ATTRIBUTE_NAME |
protected ManagedResourceService |
managedResourceService |
protected com.broadleafcommerce.process.service.ProcessService |
processService |
| Constructor and Description |
|---|
AdminManagedResourceController() |
| Modifier and Type | Method and Description |
|---|---|
String |
addSynonyms(javax.servlet.http.HttpServletRequest request,
org.springframework.ui.Model model,
SynonymDTO synonymDTO,
String language) |
protected boolean |
attachReloadCollectionProcessInfo(org.springframework.ui.Model model) |
protected void |
attachSynonyms(javax.servlet.http.HttpServletRequest request,
org.springframework.ui.Model model,
String language) |
protected SynonymDTO |
createSynonymDTO(String term,
List<String> synonyms) |
protected String |
createSynonymsModelAndView(javax.servlet.http.HttpServletRequest request,
org.springframework.ui.Model model,
String language) |
String |
deleteSynonyms(javax.servlet.http.HttpServletRequest request,
org.springframework.ui.Model model,
String term,
String language) |
protected String |
getCurrentLanguage() |
protected String |
getSynonymsView() |
String |
reloadCollections(javax.servlet.http.HttpServletRequest request,
org.springframework.ui.Model model,
String language) |
String |
reloadCollectionsTracker(javax.servlet.http.HttpServletRequest request,
org.springframework.ui.Model model,
String language) |
protected void |
setModelAttributes(org.springframework.ui.Model model,
String sectionKey) |
String |
updateSynonyms(javax.servlet.http.HttpServletRequest request,
org.springframework.ui.Model model,
SynonymDTO synonymDTO,
String term,
String language) |
String |
viewSynonymsByLanguage(javax.servlet.http.HttpServletRequest request,
org.springframework.ui.Model model,
String language) |
public static final String CURRENT_ADMIN_MODULE_ATTRIBUTE_NAME
public static final String CURRENT_ADMIN_SECTION_ATTRIBUTE_NAME
@Autowired @Qualifier(value="blAdminNavigationService") protected org.broadleafcommerce.openadmin.server.security.service.navigation.AdminNavigationService adminNavigationService
@Autowired protected ManagedResourceService managedResourceService
@Autowired protected com.broadleafcommerce.process.service.ProcessService processService
@RequestMapping(value="/synonyms",
method=GET)
public String viewSynonymsByLanguage(javax.servlet.http.HttpServletRequest request,
org.springframework.ui.Model model,
@RequestParam(required=false)
String language)
@RequestMapping(value="/synonyms/{term}",
method=PUT)
public String updateSynonyms(javax.servlet.http.HttpServletRequest request,
org.springframework.ui.Model model,
@ModelAttribute
SynonymDTO synonymDTO,
@PathVariable
String term,
@RequestParam(required=false)
String language)
@RequestMapping(value="/synonyms",
method=POST)
public String addSynonyms(javax.servlet.http.HttpServletRequest request,
org.springframework.ui.Model model,
@ModelAttribute
SynonymDTO synonymDTO,
@RequestParam(required=false)
String language)
@RequestMapping(value="/synonyms/{term}",
method=DELETE)
public String deleteSynonyms(javax.servlet.http.HttpServletRequest request,
org.springframework.ui.Model model,
@PathVariable
String term,
@RequestParam(required=false)
String language)
@RequestMapping(value="/synonyms-reload",
method=GET)
public String reloadCollections(javax.servlet.http.HttpServletRequest request,
org.springframework.ui.Model model,
@RequestParam(required=false)
String language)
@RequestMapping(value="/synonyms-reload-tracker",
method=GET)
public String reloadCollectionsTracker(javax.servlet.http.HttpServletRequest request,
org.springframework.ui.Model model,
@RequestParam(required=false)
String language)
protected String createSynonymsModelAndView(javax.servlet.http.HttpServletRequest request, org.springframework.ui.Model model, String language)
protected void attachSynonyms(javax.servlet.http.HttpServletRequest request,
org.springframework.ui.Model model,
String language)
protected boolean attachReloadCollectionProcessInfo(org.springframework.ui.Model model)
protected String getSynonymsView()
protected SynonymDTO createSynonymDTO(String term, List<String> synonyms)
protected String getCurrentLanguage()
protected void setModelAttributes(org.springframework.ui.Model model,
String sectionKey)
Copyright © 2020. All rights reserved.