@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, workflowStateManageradminUserDao, adornedTargetAutoPopulateExtensionManager, ALTERNATE_ID_PROPERTY, CUSTOM_CRITERIA, duplicator, dynamicEntityDao, genericEntityService, IS_SELECTIZE_REQUEST, LOG, rowLevelSecurityService, sandBoxHelperadminNavigationService, adminRemoteSecurityService, CURRENT_ADMIN_MODULE_ATTRIBUTE_NAME, CURRENT_ADMIN_SECTION_ATTRIBUTE_NAME, customCriteriaService, DEFAULT_CONTAINER_VIEW, entityConfiguration, entityFormValidator, extensionManager, FILTER_VALUE_SEPARATOR, FILTER_VALUE_SEPARATOR_REGEX, filterProductTypeExtensionManager, formService, MODAL_CONTAINER_VIEW, 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 void |
addMasterDynamicForms(org.broadleafcommerce.openadmin.web.form.entity.EntityForm form,
org.broadleafcommerce.openadmin.web.form.entity.Field widgetField,
org.springframework.ui.Model model) |
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) |
Map<String,org.broadleafcommerce.openadmin.dto.DynamicResultSet> |
getViewSubRecords(javax.servlet.http.HttpServletRequest request,
Map<String,String> pathVars,
org.broadleafcommerce.openadmin.dto.ClassMetadata cmd,
org.broadleafcommerce.openadmin.dto.Entity entity,
List<org.broadleafcommerce.openadmin.dto.SectionCrumb> crumbs) |
protected boolean |
hasDynamicFormWithSCType(org.broadleafcommerce.openadmin.web.form.entity.EntityForm form,
List<org.broadleafcommerce.cms.structure.domain.StructuredContentType> supportedSCTypes) |
protected boolean |
isAdd(org.broadleafcommerce.openadmin.web.form.entity.EntityForm scForm) |
protected boolean |
isRemove(org.broadleafcommerce.openadmin.web.form.entity.EntityForm scForm) |
protected boolean |
isSCTypeSupported(org.broadleafcommerce.openadmin.web.form.entity.EntityForm scForm,
org.broadleafcommerce.openadmin.web.form.entity.Field widgetField) |
protected boolean |
isWidgetChanged(org.broadleafcommerce.openadmin.server.domain.PersistencePackageRequest ppr,
String id,
org.broadleafcommerce.openadmin.web.form.entity.EntityForm newEntityForm) |
protected void |
markDynamicFormsAsVisible(org.broadleafcommerce.openadmin.web.form.entity.EntityForm form) |
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.
|
protected void |
removeSCFormEntities(Map<String,String> pathVars,
String id,
List<org.broadleafcommerce.openadmin.dto.SectionCrumb> sectionCrumbs,
org.broadleafcommerce.openadmin.web.form.entity.EntityForm scForm,
String dynamicFormName) |
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 void |
saveSCForms(List<org.broadleafcommerce.openadmin.web.form.entity.EntityForm> scForms,
org.broadleafcommerce.openadmin.web.form.entity.Field widgetField,
String id,
javax.servlet.http.HttpServletRequest request,
Map<String,String> pathVars,
org.springframework.validation.BindingResult result,
boolean isWidgetChanged) |
protected boolean |
shouldShowEmptyGroups() |
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, getSCType, getSCTypesForWidget, getTranslationId, getTranslationPropertyName, preventFieldGroupPersistence, removeMasterGroupsFromDynamicForm, setItemContainerOverrideForEnterpriseaddAddActionIfAllowed, addAuditableDisplayFields, addCollectionItem, addCollectionItem, addEmptyCollectionItem, addSelectizeCollectionItem, buildAddCollectionItemModel, buildDirtyList, buildSelectizeCustomCriteria, declareShouldIgnoreAdditionStatusFilter, determineEntityType, duplicateEntity, getCollectionFieldRecords, getCollectionValueDetails, getCurrentTabName, getCustomCriteria, getErrorDuplicatingResponse, getModalForBlankEntityType, getSelectizeCollectionOptions, initBinder, isAddActionAllowed, isNotReadOnly, modifyEntityForm, reinitializeEntityForm, removeCollectionItem, removeCollectionItem, removeEntity, resolveAppropriateEntityView, saveEntityJson, setTypedEntityModelAttributes, setupViewEntityListBasicModel, showAddCollectionItem, showUpdateCollectionItem, showUpdateCollectionItem, showViewCollectionItem, showViewCollectionItem, showViewUpdateCollection, showViewUpdateCollection, showViewUpdateCollection, showViewUpdateCollection, updateCollectionItem, updateCollectionItem, updateCollectionItemSequence, updateCollectionItemSequence, viewCollectionItemDetails, viewCollectionItemTab, viewEntityList, viewEntityListSelectize, viewEntityTabattachSectionSpecificInfo, attachSectionSpecificInfo, createSectionCrumb, extractDynamicFormFields, getAddEntityTypes, getClassNameForSection, getCollectionListGrid, getCollectionListGrid, getCriteria, getDefaultEntityType, getDynamicFieldTemplateForm, getDynamicForm, getEntityForm, getEntityForm, getEntityForm, getFirstId, getLastId, getLowerCount, getMaxIndex, getMaxResults, getPageSize, getPersistencePackageRequest, getSectionCrumbs, getSectionCustomCriteria, getSectionPersistencePackageRequest, getSectionPersistencePackageRequest, getSectionPersistencePackageRequest, getSectionPersistencePackageRequest, getSortDirections, getSortPropertyNames, getStartIndex, getUpperCount, modifyAddEntityForm, modifyCriteria, modifyEntityForm, populateJsonValidationErrors, setModelAttributes, setSpecializedNameForFields, translateErrorMessageprotected static final String SECTION_KEY
protected ContentZoneService contentZoneService
protected org.broadleafcommerce.cms.structure.dao.StructuredContentDao dao
protected boolean shouldShowEmptyGroups()
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.AdminBasicEntityControllerException@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.AdminBasicEntityControllerException@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.AdminBasicEntityControllerExceptionpublic Map<String,org.broadleafcommerce.openadmin.dto.DynamicResultSet> getViewSubRecords(javax.servlet.http.HttpServletRequest request, Map<String,String> pathVars, org.broadleafcommerce.openadmin.dto.ClassMetadata cmd, org.broadleafcommerce.openadmin.dto.Entity entity, List<org.broadleafcommerce.openadmin.dto.SectionCrumb> crumbs) throws Exception
getViewSubRecords in class org.broadleafcommerce.openadmin.web.controller.entity.AdminBasicEntityControllerExceptionprotected 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.ServiceExceptionExceptionprotected boolean hasDynamicFormWithSCType(org.broadleafcommerce.openadmin.web.form.entity.EntityForm form,
List<org.broadleafcommerce.cms.structure.domain.StructuredContentType> supportedSCTypes)
protected void addMasterDynamicForms(org.broadleafcommerce.openadmin.web.form.entity.EntityForm form,
org.broadleafcommerce.openadmin.web.form.entity.Field widgetField,
org.springframework.ui.Model model)
throws org.broadleafcommerce.common.exception.ServiceException
org.broadleafcommerce.common.exception.ServiceExceptionprotected void markDynamicFormsAsVisible(org.broadleafcommerce.openadmin.web.form.entity.EntityForm form)
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.AdminBasicEntityControllerExceptionprotected boolean isWidgetChanged(org.broadleafcommerce.openadmin.server.domain.PersistencePackageRequest ppr,
String id,
org.broadleafcommerce.openadmin.web.form.entity.EntityForm newEntityForm)
protected void saveSCForms(List<org.broadleafcommerce.openadmin.web.form.entity.EntityForm> scForms, org.broadleafcommerce.openadmin.web.form.entity.Field widgetField, String id, javax.servlet.http.HttpServletRequest request, Map<String,String> pathVars, org.springframework.validation.BindingResult result, boolean isWidgetChanged) throws org.broadleafcommerce.common.exception.ServiceException
org.broadleafcommerce.common.exception.ServiceExceptionprotected boolean isAdd(org.broadleafcommerce.openadmin.web.form.entity.EntityForm scForm)
protected boolean isRemove(org.broadleafcommerce.openadmin.web.form.entity.EntityForm scForm)
protected boolean isSCTypeSupported(org.broadleafcommerce.openadmin.web.form.entity.EntityForm scForm,
org.broadleafcommerce.openadmin.web.form.entity.Field widgetField)
protected void removeSCFormEntities(Map<String,String> pathVars, String id, List<org.broadleafcommerce.openadmin.dto.SectionCrumb> sectionCrumbs, org.broadleafcommerce.openadmin.web.form.entity.EntityForm scForm, String dynamicFormName) throws org.broadleafcommerce.common.exception.ServiceException
org.broadleafcommerce.common.exception.ServiceException@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
Exceptionprotected void processFieldGroups(String index, String scType, String dynamicPropName, org.broadleafcommerce.openadmin.web.form.entity.EntityForm dynamicForm)
index - scType - dynamicPropName - dynamicForm - Copyright © 2020. All rights reserved.