@Controller(value="blAdminBasicOperationsController") public class AdminBasicOperationsController extends AdminAbstractController
| Modifier and Type | Field and Description |
|---|---|
protected AdminBasicOperationsControllerExtensionManager |
extensionManager |
protected SearchFieldResolver |
searchFieldResolver |
adminNavigationService, adminRemoteSecurityService, CURRENT_ADMIN_MODULE_ATTRIBUTE_NAME, CURRENT_ADMIN_SECTION_ATTRIBUTE_NAME, customCriteriaService, DEFAULT_CONTAINER_VIEW, entityConfiguration, entityFormValidator, FILTER_VALUE_SEPARATOR, FILTER_VALUE_SEPARATOR_REGEX, filterProductTypeExtensionManager, formService, MODAL_CONTAINER_VIEW, service, validationService| Constructor and Description |
|---|
AdminBasicOperationsController() |
| Modifier and Type | Method and Description |
|---|---|
protected List<SectionCrumb> |
getLookupSectionCrumbs(List<SectionCrumb> sectionCrumbs,
String owningClassName,
String requestingEntityId)
Returns the crumbs for a lookup request on a field of
owningClassName: the request's crumbs plus one for
the owning entity itself. |
List<Map<String,String>> |
getTypeaheadResults(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
Map<String,String> pathVars,
String owningClass,
String collectionField,
String query,
String requestingEntityId,
org.springframework.util.MultiValueMap<String,String> requestParams) |
String |
logJavaScriptError(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.util.MultiValueMap<String,String> requestParams) |
protected void |
modifyFetchPersistencePackageRequest(PersistencePackageRequest ppr,
Map<String,String> pathVars)
Hook method to allow a user to modify the persistence package request for a fetch on a select lookup.
|
String |
sessionTimerReset(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
String |
showSelectCollectionItem(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
Map<String,String> pathVars,
String owningClass,
String collectionField,
String requestingEntityId,
boolean dynamicField,
org.springframework.util.MultiValueMap<String,String> requestParams)
Shows the modal dialog that is used to select a "to-one" collection item.
|
String |
updateAdminNavigation(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
Map<String,String> pathVars) |
attachSectionSpecificInfo, attachSectionSpecificInfo, createSectionCrumb, extractDynamicFormFields, getAddEntityTypes, getClassNameForSection, getCollectionListGrid, getCollectionListGrid, getCriteria, getDefaultEntityType, getDynamicFieldTemplateForm, getDynamicForm, getEntityForm, getEntityForm, getEntityForm, getFirstId, getLastId, getLowerCount, getMaxIndex, getMaxResults, getPageSize, getPersistencePackageRequest, getSectionCrumbs, getSectionCustomCriteria, getSectionKey, getSectionPersistencePackageRequest, getSectionPersistencePackageRequest, getSectionPersistencePackageRequest, getSectionPersistencePackageRequest, getSortDirections, getSortPropertyNames, getStartIndex, getUpperCount, modifyAddEntityForm, modifyCriteria, modifyEntityForm, populateJsonValidationErrors, setModelAttributes, setSpecializedNameForFields, translateErrorMessageaddDeepLink, getContextPath, isAjaxRequest, jsonResponseprotected AdminBasicOperationsControllerExtensionManager extensionManager
protected SearchFieldResolver searchFieldResolver
@RequestMapping(value="/{owningClass:.*}/{collectionField:.*}/select",
method=GET)
public String showSelectCollectionItem(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
@PathVariable
Map<String,String> pathVars,
@PathVariable(value="owningClass")
String owningClass,
@PathVariable(value="collectionField")
String collectionField,
@RequestParam(required=false)
String requestingEntityId,
@RequestParam(defaultValue="false")
boolean dynamicField,
@RequestParam
org.springframework.util.MultiValueMap<String,String> requestParams)
throws Exception
request - response - model - pathVars - owningClass - collectionField - Exception@RequestMapping(value="/{owningClass:.*}/{collectionField:.*}/typeahead",
method=GET)
@ResponseBody
public List<Map<String,String>> getTypeaheadResults(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
@PathVariable
Map<String,String> pathVars,
@PathVariable(value="owningClass")
String owningClass,
@PathVariable(value="collectionField")
String collectionField,
@RequestParam(required=false)
String query,
@RequestParam(required=false)
String requestingEntityId,
@RequestParam
org.springframework.util.MultiValueMap<String,String> requestParams)
throws Exception
Exception@RequestMapping(value="/sessionTimerReset",
method=GET)
@ResponseBody
public String sessionTimerReset(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws Exception
Exception@RequestMapping(value="/logJavaScriptError",
method=POST)
@ResponseBody
public String logJavaScriptError(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
@RequestParam
org.springframework.util.MultiValueMap<String,String> requestParams)
throws Exception
Exception@RequestMapping(value="/update-navigation",
method=GET)
public String updateAdminNavigation(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
@PathVariable
Map<String,String> pathVars)
throws Exception
Exceptionprotected List<SectionCrumb> getLookupSectionCrumbs(List<SectionCrumb> sectionCrumbs, String owningClassName, String requestingEntityId)
owningClassName: the request's crumbs plus one for
the owning entity itself. The owning class has been validated and was just inspected (and so security checked)
by this request, and the looked-up field was read from its metadata, so the server knows the lookup target is
reachable from it. Section crumbs only authorize an entity that is related to the request's target (see
AdminSecurityServiceRemote#getRelatedSectionCrumbCeilings), so this is what lets a user who may edit the owning
entity browse the entities its lookup field can point at. The crumbs used to render the view are unchanged.protected void modifyFetchPersistencePackageRequest(PersistencePackageRequest ppr, Map<String,String> pathVars)
ppr - pathVars - Copyright © 2026. All rights reserved.