@RequestMapping(value="/content-item") public class AdminContentItemController extends AdminAbstractContentItemController
Modifier and Type | Field and Description |
---|---|
protected ContentZoneService |
contentZoneService |
protected org.broadleafcommerce.cms.structure.dao.StructuredContentDao |
dao |
protected static String |
SECTION_KEY |
contentItemService, localeService, structuredContentService, widgetService, workflowSandboxItemService, workflowStateManager
adminUserDao, adornedTargetAutoPopulateExtensionManager, ALTERNATE_ID_PROPERTY, CUSTOM_CRITERIA, dynamicEntityDao, genericEntityDao, LOG, rowLevelSecurityService, sandBoxHelper
adminNavigationService, adminRemoteSecurityService, CURRENT_ADMIN_MODULE_ATTRIBUTE_NAME, CURRENT_ADMIN_SECTION_ATTRIBUTE_NAME, customCriteriaService, entityConfiguration, entityFormValidator, extensionManager, FILTER_VALUE_SEPARATOR, FILTER_VALUE_SEPARATOR_REGEX, formService, mainEntityActionsExtensionManager, service, validationService
Constructor and Description |
---|
AdminContentItemController() |
Modifier and Type | Method and Description |
---|---|
String |
addEntity(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
Map<String,String> pathVars,
org.broadleafcommerce.openadmin.web.form.entity.EntityForm entityForm,
org.springframework.validation.BindingResult result) |
protected org.broadleafcommerce.openadmin.web.form.entity.DynamicEntityFormInfo |
getDynamicEntityFormInfo(String scType,
String dynamicPropName) |
String |
getDynamicForm(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
Map<String,String> pathVars,
String index,
String scType,
String dynamicPropName) |
protected String |
getSectionKey(Map<String,String> pathVars) |
protected boolean |
getShowEmptyGroups() |
protected void |
modifyEntityForm(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
Map<String,String> pathVars,
String id) |
protected void |
processFieldGroups(String index,
String scType,
String dynamicPropName,
org.broadleafcommerce.openadmin.web.form.entity.EntityForm dynamicForm)
Helper method to prepare the Field groups for viewing on the DynamicForm.
|
String |
saveEntity(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
Map<String,String> pathVars,
String id,
org.broadleafcommerce.openadmin.web.form.entity.EntityForm entityForm,
org.springframework.validation.BindingResult result,
org.springframework.web.servlet.mvc.support.RedirectAttributes ra) |
protected Map<String,Boolean> |
validateAndModifyFieldGroupData(org.broadleafcommerce.openadmin.web.form.entity.EntityForm form,
org.broadleafcommerce.cms.structure.domain.StructuredContentType type) |
String |
viewAddEntityForm(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
Map<String,String> pathVars,
String entityType) |
String |
viewEntityForm(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
Map<String,String> pathVars,
String id) |
addNewOverrideStructuredContent, addNewStructuredContent, addNewStructuredContent, addTranslationPropertyName, containsHiddenFields, convertSCListGridToDynamicForms, createDynamicSCForm, extractSCFormsForPersistence, extractStructuredContentForms, getContentItemName, getSCSectionCrumbs, getSCTypesForWidget, getTranslationId, getTranslationPropertyName, preventFieldGroupPersistence, removeMasterGroupsFromDynamicForm, setItemContainerOverrideForEnterprise
addAddActionIfAllowed, addAuditableDisplayFields, addCollectionItem, addCollectionItem, addEmptyCollectionItem, addSelectizeCollectionItem, buildAddCollectionItemModel, buildDirtyList, getCollectionFieldRecords, getCollectionValueDetails, getCustomCriteria, getSelectizeCollectionOptions, initBinder, isAddActionAllowed, removeCollectionItem, removeCollectionItem, removeEntity, saveEntityJson, setTypedEntityModelAttributes, setupViewEntityListBasicModel, showAddCollectionItem, showUpdateCollectionItem, showUpdateCollectionItem, showViewCollectionItem, showViewCollectionItem, showViewUpdateCollection, showViewUpdateCollection, showViewUpdateCollection, showViewUpdateCollection, updateCollectionItem, updateCollectionItem, updateCollectionItemSequence, updateCollectionItemSequence, viewCollectionItemDetails, viewEntityList, viewEntityListSelectize, viewEntityTab
attachSectionSpecificInfo, attachSectionSpecificInfo, createSectionCrumb, extractDynamicFormFields, getAddEntityTypes, getClassNameForSection, getCollectionListGrid, getCollectionListGrid, getCriteria, getDefaultEntityType, getDynamicFieldTemplateForm, getDynamicForm, getEntityForm, getEntityForm, getEntityForm, getMaxIndex, getMaxResults, getSectionCrumbs, getSectionCustomCriteria, getSectionPersistencePackageRequest, getSectionPersistencePackageRequest, getSectionPersistencePackageRequest, getSectionPersistencePackageRequest, getSortDirections, getSortPropertyNames, getStartIndex, modifyAddEntityForm, modifyEntityForm, populateJsonValidationErrors, setModelAttributes, setSpecializedNameForFields, translateErrorMessage
protected static final String SECTION_KEY
protected ContentZoneService contentZoneService
protected org.broadleafcommerce.cms.structure.dao.StructuredContentDao dao
protected boolean getShowEmptyGroups()
protected String getSectionKey(Map<String,String> pathVars)
getSectionKey
in class org.broadleafcommerce.openadmin.web.controller.AdminAbstractController
@RequestMapping(value="/add", method=GET) public String viewAddEntityForm(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, @PathVariable Map<String,String> pathVars, @RequestParam(defaultValue="") String entityType) throws Exception
viewAddEntityForm
in class org.broadleafcommerce.openadmin.web.controller.entity.AdminBasicEntityController
Exception
@RequestMapping(value="/add", method=POST) public String addEntity(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, @PathVariable Map<String,String> pathVars, @ModelAttribute(value="entityForm") org.broadleafcommerce.openadmin.web.form.entity.EntityForm entityForm, org.springframework.validation.BindingResult result) throws Exception
addEntity
in class org.broadleafcommerce.openadmin.web.controller.entity.AdminBasicEntityController
Exception
@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
viewEntityForm
in class org.broadleafcommerce.openadmin.web.controller.entity.AdminBasicEntityController
Exception
protected void modifyEntityForm(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, Map<String,String> pathVars, String id) throws org.broadleafcommerce.common.exception.ServiceException, Exception
org.broadleafcommerce.common.exception.ServiceException
Exception
protected Map<String,Boolean> validateAndModifyFieldGroupData(org.broadleafcommerce.openadmin.web.form.entity.EntityForm form, org.broadleafcommerce.cms.structure.domain.StructuredContentType type)
@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") org.broadleafcommerce.openadmin.web.form.entity.EntityForm entityForm, org.springframework.validation.BindingResult result, org.springframework.web.servlet.mvc.support.RedirectAttributes ra) throws Exception
saveEntity
in class org.broadleafcommerce.openadmin.web.controller.entity.AdminBasicEntityController
Exception
@RequestMapping(value="/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, @RequestParam(value="index") String index, @RequestParam(value="scType") String scType, @RequestParam(value="dynamicPropName",required=false) String dynamicPropName) throws Exception
Exception
protected void processFieldGroups(String index, String scType, String dynamicPropName, org.broadleafcommerce.openadmin.web.form.entity.EntityForm dynamicForm)
index
- scType
- dynamicPropName
- dynamicForm
- Copyright © 2016. All rights reserved.