org.broadleafcommerce.openadmin.web.controller.entity
Class AdminBasicOperationsController

java.lang.Object
  extended by org.broadleafcommerce.common.web.controller.BroadleafAbstractController
      extended by org.broadleafcommerce.openadmin.web.controller.AdminAbstractController
          extended by org.broadleafcommerce.openadmin.web.controller.entity.AdminBasicOperationsController

@Controller(value="blAdminBasicOperationsController")
public class AdminBasicOperationsController
extends AdminAbstractController

The operations in this controller are actions that do not necessarily depend on a section key being present.

Author:
Andre Azzolini (apazzolini)

Field Summary
 
Fields inherited from class org.broadleafcommerce.openadmin.web.controller.AdminAbstractController
adminNavigationService, adminRemoteSecurityService, entityConfiguration, entityFormValidator, FILTER_VALUE_SEPARATOR, FILTER_VALUE_SEPARATOR_REGEX, formService, mainEntityActionsExtensionManager, service
 
Constructor Summary
AdminBasicOperationsController()
           
 
Method Summary
 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, org.springframework.util.MultiValueMap<String,String> requestParams)
          Shows the modal dialog that is used to select a "to-one" collection item.
 
Methods inherited from class org.broadleafcommerce.openadmin.web.controller.AdminAbstractController
attachSectionSpecificInfo, extractDynamicFormFields, getAddEntityTypes, getBlankDynamicFieldTemplateForm, getBlankDynamicFieldTemplateForm, getClassNameForSection, getCollectionListGrid, getCollectionListGrid, getCriteria, getDefaultEntityType, getDynamicFieldTemplateForm, getDynamicForm, getMaxIndex, getSectionCustomCriteria, getSectionKey, getSectionPersistencePackageRequest, getSectionPersistencePackageRequest, getSortDirections, getSortPropertyNames, getStartIndex, setModelAttributes
 
Methods inherited from class org.broadleafcommerce.common.web.controller.BroadleafAbstractController
addDeepLink, getContextPath, isAjaxRequest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdminBasicOperationsController

public AdminBasicOperationsController()
Method Detail

showSelectCollectionItem

@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
                                                      org.springframework.util.MultiValueMap<String,String> requestParams)
                                throws Exception
Shows the modal dialog that is used to select a "to-one" collection item. For example, this could be used to show a list of categories for the ManyToOne field "defaultCategory" in Product.

Parameters:
request -
response -
model -
pathVars -
owningClass -
collectionField -
Returns:
the return view path
Throws:
Exception


Copyright © 2013. All Rights Reserved.