org.broadleafcommerce.cms.admin.web.controller
Class AdminPageController
java.lang.Object
org.broadleafcommerce.common.web.controller.BroadleafAbstractController
org.broadleafcommerce.openadmin.web.controller.AdminAbstractController
org.broadleafcommerce.openadmin.web.controller.entity.AdminBasicEntityController
org.broadleafcommerce.cms.admin.web.controller.AdminPageController
@Controller(value="blAdminPageController")
@RequestMapping(value="/pages")
public class AdminPageController
- extends AdminBasicEntityController
Handles admin operations for the Page entity. This entity has fields that are
dependent on the value of the Page.getPageTemplate() field, and as such,
it deviates from the typical AdminAbstractEntityController.
- Author:
- Andre Azzolini (apazzolini)
|
Method Summary |
String |
getDynamicForm(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
Map<String,String> pathVars,
String propertyName,
String propertyTypeId)
|
protected String |
getSectionKey(Map<String,String> pathVars)
|
String |
saveEntity(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
Map<String,String> pathVars,
String id,
EntityForm entityForm,
org.springframework.validation.BindingResult result,
org.springframework.web.servlet.mvc.support.RedirectAttributes ra)
|
String |
viewEntityForm(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
Map<String,String> pathVars,
String id)
|
| Methods inherited from class org.broadleafcommerce.openadmin.web.controller.entity.AdminBasicEntityController |
addCollectionItem, addEntity, attachSectionSpecificInfo, getAddEntityTypes, getBlankDynamicFieldTemplateForm, getClassNameForSection, getCollectionFieldRecords, getCollectionListGrid, getCriteria, getDefaultEntityType, getDynamicFieldTemplateForm, getDynamicForm, getMaxIndex, getSectionCustomCriteria, getSectionPersistencePackageRequest, getSectionPersistencePackageRequest, getSortDirections, getSortPropertyNames, getStartIndex, initBinder, removeCollectionItem, removeEntity, setModelAttributes, showAddCollectionItem, showSelectCollectionItem, showUpdateCollectionItem, showViewCollectionItem, showViewUpdateCollection, updateCollectionItem, updateCollectionItemSequence, viewAddEntityForm, viewCollectionItemDetails, viewEntityList |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SECTION_KEY
protected static final String SECTION_KEY
- See Also:
- Constant Field Values
AdminPageController
public AdminPageController()
getSectionKey
protected String getSectionKey(Map<String,String> pathVars)
- Overrides:
getSectionKey in class AdminBasicEntityController
viewEntityForm
@RequestMapping(value="/{id}",
method=GET)
public String viewEntityForm(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
@PathVariable
Map<String,String> pathVars,
@PathVariable(value="id")
String id)
throws Exception
- Overrides:
viewEntityForm in class AdminBasicEntityController
- Throws:
Exception
saveEntity
@RequestMapping(value="/{id}",
method=POST)
public String saveEntity(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
@PathVariable
Map<String,String> pathVars,
@PathVariable(value="id")
String id,
@ModelAttribute(value="entityForm")
EntityForm entityForm,
org.springframework.validation.BindingResult result,
org.springframework.web.servlet.mvc.support.RedirectAttributes ra)
throws Exception
- Overrides:
saveEntity in class AdminBasicEntityController
- Throws:
Exception
getDynamicForm
@RequestMapping(value="/{propertyName}/dynamicForm",
method=GET)
public String getDynamicForm(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
@PathVariable
Map<String,String> pathVars,
@PathVariable(value="propertyName")
String propertyName,
@RequestParam(value="propertyTypeId")
String propertyTypeId)
throws Exception
- Throws:
Exception
Copyright © 2013. All Rights Reserved.