|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.broadleafcommerce.common.web.controller.BroadleafAbstractController
org.broadleafcommerce.openadmin.web.controller.BroadleafAdminAbstractController
org.broadleafcommerce.openadmin.web.controller.entity.BroadleafAdminAbstractEntityController
org.broadleafcommerce.openadmin.web.controller.entity.BroadleafAdminBasicEntityController
@Controller(value="blAdminBasicEntityController")
@RequestMapping(value="/{sectionKey}")
public class BroadleafAdminBasicEntityController
The default implementation of the #BroadleafAdminAbstractEntityController. This delegates every call to
super and does not provide any custom-tailored functionality. It is responsible for rendering the admin for every
entity that is not explicitly customized by its own controller.
| Field Summary |
|---|
| Fields inherited from class org.broadleafcommerce.openadmin.web.controller.entity.BroadleafAdminAbstractEntityController |
|---|
entityConfiguration, entityValidator, formService, service |
| Fields inherited from class org.broadleafcommerce.openadmin.web.controller.BroadleafAdminAbstractController |
|---|
adminNavigationService, currentSectionKey |
| Constructor Summary | |
|---|---|
BroadleafAdminBasicEntityController()
|
|
| Method Summary | |
|---|---|
String |
addCollectionItem(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
String sectionKey,
String id,
String collectionField,
EntityForm entityForm)
Adds the requested collection item |
String |
addEntity(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
String sectionKey,
EntityForm entityForm,
org.springframework.validation.BindingResult result)
|
String |
getCollectionFieldRecords(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
String sectionKey,
String id,
String collectionField,
CriteriaForm criteriaForm)
Returns the records for a given collectionField filtered by a particular criteria |
void |
initBinder(org.springframework.web.bind.WebDataBinder binder)
|
String |
removeCollectionItem(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
String sectionKey,
String id,
String collectionField,
String collectionItemId)
Removes the requested collection item Note that the request must contain a parameter called "key" when attempting to remove a collection item from a map collection. |
String |
removeEntity(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
String sectionKey,
String id,
EntityForm entityForm,
org.springframework.validation.BindingResult result)
Attempts to remove the given entity. |
String |
saveEntity(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
String sectionKey,
String id,
EntityForm entityForm,
org.springframework.validation.BindingResult result,
org.springframework.web.servlet.mvc.support.RedirectAttributes ra)
Attempts to save the given entity. |
String |
showAddCollectionItem(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
String sectionKey,
String id,
String collectionField)
Shows the modal dialog that is used to add an item to a given collection. |
String |
showSelectCollectionItem(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
String sectionKey,
String collectionField,
CriteriaForm criteriaForm)
Shows the modal dialog that is used to select a "to-one" collection item. |
String |
showUpdateCollectionItem(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
String sectionKey,
String id,
String collectionField,
String collectionItemId)
|
String |
updateCollectionItem(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
String sectionKey,
String id,
String collectionField,
String collectionItemId,
EntityForm entityForm)
Updates the specified collection item |
String |
viewAddEntityForm(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
String sectionKey,
String entityType)
Renders the modal form that is used to add a new parent level entity. |
String |
viewCollectionItemDetails(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
String sectionKey,
String collectionField,
String id)
Shows the modal popup for the current selected "to-one" field. |
String |
viewEntityForm(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
String sectionKey,
String id)
Renders the main entity form for the specified entity |
String |
viewEntityList(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
String sectionKey,
CriteriaForm criteriaForm)
Renders the main entity listing for the specified class, which is based on the current sectionKey with some optional criteria. |
| Methods inherited from class org.broadleafcommerce.openadmin.web.controller.entity.BroadleafAdminAbstractEntityController |
|---|
attachSectionSpecificInfo, getAddEntityTypes, getBlankDynamicFieldTemplateForm, getClassNameForSection, getCollectionListGrid, getDefaultEntityType, getDynamicFieldTemplateForm, getDynamicForm, getSectionCustomCriteria, getSectionPersistencePackageRequest, getSectionPersistencePackageRequest, setModelAttributes |
| Methods inherited from class org.broadleafcommerce.common.web.controller.BroadleafAbstractController |
|---|
getContextPath, isAjaxRequest |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BroadleafAdminBasicEntityController()
| Method Detail |
|---|
@RequestMapping(value="",
method=GET)
public String viewEntityList(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
@PathVariable
String sectionKey,
@ModelAttribute
CriteriaForm criteriaForm)
throws Exception
BroadleafAdminAbstractEntityController
viewEntityList in class BroadleafAdminAbstractEntityControllercriteriaForm - criteria from the frontend; can be null
Exception
@RequestMapping(value="/add",
method=GET)
public String viewAddEntityForm(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
@PathVariable
String sectionKey,
@RequestParam(defaultValue="")
String entityType)
throws Exception
BroadleafAdminAbstractEntityController
viewAddEntityForm in class BroadleafAdminAbstractEntityControllerException
@RequestMapping(value="/add",
method=POST)
public String addEntity(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
@PathVariable
String sectionKey,
@ModelAttribute
EntityForm entityForm,
org.springframework.validation.BindingResult result)
throws Exception
addEntity in class BroadleafAdminAbstractEntityControllerException
@RequestMapping(value="/{id}",
method=GET)
public String viewEntityForm(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
@PathVariable
String sectionKey,
@PathVariable
String id)
throws Exception
BroadleafAdminAbstractEntityController
viewEntityForm in class BroadleafAdminAbstractEntityControllerException
@RequestMapping(value="/{id}",
method=POST)
public String saveEntity(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
@PathVariable
String sectionKey,
@PathVariable
String id,
@ModelAttribute
EntityForm entityForm,
org.springframework.validation.BindingResult result,
org.springframework.web.servlet.mvc.support.RedirectAttributes ra)
throws Exception
BroadleafAdminAbstractEntityController
saveEntity in class BroadleafAdminAbstractEntityControllerException
@RequestMapping(value="/{id}/delete",
method=POST)
public String removeEntity(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
@PathVariable
String sectionKey,
@PathVariable
String id,
@ModelAttribute
EntityForm entityForm,
org.springframework.validation.BindingResult result)
throws Exception
BroadleafAdminAbstractEntityController
removeEntity in class BroadleafAdminAbstractEntityControllerException
@RequestMapping(value="/{collectionField}/select",
method=GET)
public String showSelectCollectionItem(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
@PathVariable
String sectionKey,
@PathVariable
String collectionField,
@ModelAttribute
CriteriaForm criteriaForm)
throws Exception
BroadleafAdminAbstractEntityController
showSelectCollectionItem in class BroadleafAdminAbstractEntityControllerException
@RequestMapping(value="/{collectionField}/{id}/view",
method=GET)
public String viewCollectionItemDetails(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
@PathVariable
String sectionKey,
@PathVariable
String collectionField,
@PathVariable
String id)
throws Exception
BroadleafAdminAbstractEntityController
viewCollectionItemDetails in class BroadleafAdminAbstractEntityControllerException
@RequestMapping(value="/{id}/{collectionField}",
method=GET)
public String getCollectionFieldRecords(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
@PathVariable
String sectionKey,
@PathVariable
String id,
@PathVariable
String collectionField,
@ModelAttribute
CriteriaForm criteriaForm)
throws Exception
BroadleafAdminAbstractEntityController
getCollectionFieldRecords in class BroadleafAdminAbstractEntityControllerException
@RequestMapping(value="/{id}/{collectionField}/add",
method=GET)
public String showAddCollectionItem(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
@PathVariable
String sectionKey,
@PathVariable
String id,
@PathVariable
String collectionField)
throws Exception
BroadleafAdminAbstractEntityController
showAddCollectionItem in class BroadleafAdminAbstractEntityControllerException
@RequestMapping(value="/{id}/{collectionField}/{collectionItemId}",
method=GET)
public String showUpdateCollectionItem(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
@PathVariable
String sectionKey,
@PathVariable
String id,
@PathVariable
String collectionField,
@PathVariable
String collectionItemId)
throws Exception
showUpdateCollectionItem in class BroadleafAdminAbstractEntityControllerException
@RequestMapping(value="/{id}/{collectionField}/add",
method=POST)
public String addCollectionItem(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
@PathVariable
String sectionKey,
@PathVariable
String id,
@PathVariable
String collectionField,
@ModelAttribute
EntityForm entityForm)
throws Exception
BroadleafAdminAbstractEntityController
addCollectionItem in class BroadleafAdminAbstractEntityControllerException
@RequestMapping(value="/{id}/{collectionField}/{collectionItemId}",
method=POST)
public String updateCollectionItem(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
@PathVariable
String sectionKey,
@PathVariable
String id,
@PathVariable
String collectionField,
@PathVariable
String collectionItemId,
@ModelAttribute
EntityForm entityForm)
throws Exception
BroadleafAdminAbstractEntityController
updateCollectionItem in class BroadleafAdminAbstractEntityControllerException
@RequestMapping(value="/{id}/{collectionField}/{collectionItemId}/delete",
method=POST)
public String removeCollectionItem(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
@PathVariable
String sectionKey,
@PathVariable
String id,
@PathVariable
String collectionField,
@PathVariable
String collectionItemId)
throws Exception
BroadleafAdminAbstractEntityController
removeCollectionItem in class BroadleafAdminAbstractEntityControllerException@InitBinder public void initBinder(org.springframework.web.bind.WebDataBinder binder)
initBinder in class BroadleafAdminAbstractEntityController
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||