public abstract class AdminAbstractContentItemController
extends org.broadleafcommerce.openadmin.web.controller.entity.AdminBasicEntityController
ContentItem
s that are shared between normal ContentItems and OverrideContentItem
s.Modifier and Type | Field and Description |
---|---|
protected ContentItemService |
contentItemService |
protected org.broadleafcommerce.common.locale.service.LocaleService |
localeService |
protected org.broadleafcommerce.cms.structure.service.StructuredContentService |
structuredContentService |
protected WidgetService |
widgetService |
protected com.broadleafcommerce.enterprise.workflow.service.WorkflowSandBoxItemService |
workflowSandboxItemService |
protected com.broadleafcommerce.enterprise.workflow.persistence.WorkflowStateManager |
workflowStateManager |
adminUserDao, adornedTargetAutoPopulateExtensionManager, ALTERNATE_ID_PROPERTY, CUSTOM_CRITERIA, duplicator, dynamicEntityDao, genericEntityService, IS_SELECTIZE_REQUEST, LOG, rowLevelSecurityService, sandBoxHelper
adminNavigationService, 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 |
---|
AdminAbstractContentItemController() |
Modifier and Type | Method and Description |
---|---|
protected String[] |
addNewOverrideStructuredContent(org.broadleafcommerce.openadmin.web.form.entity.EntityForm ef,
String scType,
List<org.broadleafcommerce.openadmin.dto.SectionCrumb> sectionCrumbs,
Map<String,String> pathVars,
javax.servlet.http.HttpServletRequest request,
String id,
org.springframework.validation.BindingResult result) |
protected String[] |
addNewStructuredContent(org.broadleafcommerce.openadmin.web.form.entity.EntityForm ef,
String scType,
List<org.broadleafcommerce.openadmin.dto.SectionCrumb> sectionCrumbs,
Map<String,String> pathVars,
javax.servlet.http.HttpServletRequest request,
String id,
com.broadleafcommerce.advancedcms.admin.web.controller.AdminAbstractContentItemController.NamesStructure namesStructure,
org.springframework.validation.BindingResult result) |
protected String[] |
addNewStructuredContent(org.broadleafcommerce.openadmin.web.form.entity.EntityForm ef,
String scType,
List<org.broadleafcommerce.openadmin.dto.SectionCrumb> sectionCrumbs,
Map<String,String> pathVars,
javax.servlet.http.HttpServletRequest request,
String id,
org.springframework.validation.BindingResult result) |
protected void |
addTranslationPropertyName(org.broadleafcommerce.openadmin.web.form.entity.Field field,
String id) |
protected boolean |
containsHiddenFields(org.broadleafcommerce.openadmin.web.form.entity.Field field) |
protected void |
convertSCListGridToDynamicForms(org.broadleafcommerce.openadmin.web.form.entity.EntityForm form,
org.broadleafcommerce.openadmin.web.form.component.ListGrid scs) |
protected void |
createDynamicSCForm(org.broadleafcommerce.openadmin.web.form.entity.EntityForm form,
String id,
String type,
String priority,
String xrefId,
Boolean readOnly) |
protected List<org.broadleafcommerce.openadmin.web.form.entity.EntityForm> |
extractSCFormsForPersistence(org.broadleafcommerce.openadmin.dto.ClassMetadata cmd,
org.broadleafcommerce.openadmin.web.form.entity.EntityForm entityForm,
String cefqcn,
String entityType) |
protected void |
extractStructuredContentForms(org.broadleafcommerce.openadmin.web.form.entity.EntityForm entityForm) |
protected String |
getContentItemName(String id) |
protected List<org.broadleafcommerce.openadmin.dto.SectionCrumb> |
getSCSectionCrumbs(String id) |
protected org.broadleafcommerce.cms.structure.domain.StructuredContentType |
getSCType(org.broadleafcommerce.openadmin.web.form.entity.EntityForm dynamicForm) |
protected List<org.broadleafcommerce.cms.structure.domain.StructuredContentType> |
getSCTypesForWidget(String id) |
protected String |
getTranslationId(String id) |
protected String |
getTranslationPropertyName(String fieldName,
String id) |
protected boolean |
preventFieldGroupPersistence(String dynamicFormName,
org.broadleafcommerce.openadmin.web.form.entity.EntityForm dynamicForm) |
protected void |
removeMasterGroupsFromDynamicForm(org.broadleafcommerce.openadmin.web.form.entity.EntityForm dynamicForm,
org.broadleafcommerce.cms.structure.domain.StructuredContentType sct)
When adding content data we only want to show Field groups that are not part of a master field group.
|
protected void |
setItemContainerOverrideForEnterprise(String id)
This method is used to find the container utilized by the created/current Content Item's sandbox workflow
item, and set this as the override for the Structured Content Item so that these are grouped together
for promotion/approval in the enterprise workflow.
|
addAddActionIfAllowed, addAuditableDisplayFields, addCollectionItem, addCollectionItem, addEmptyCollectionItem, addEntity, addSelectizeCollectionItem, buildAddCollectionItemModel, buildDirtyList, buildSelectizeCustomCriteria, declareShouldIgnoreAdditionStatusFilter, determineEntityType, duplicateEntity, getCollectionFieldRecords, getCollectionValueDetails, getCurrentTabName, getCustomCriteria, getErrorDuplicatingResponse, getModalForBlankEntityType, getSelectizeCollectionOptions, getViewSubRecords, initBinder, isAddActionAllowed, isNotReadOnly, modifyEntityForm, reinitializeEntityForm, removeCollectionItem, removeCollectionItem, removeEntity, resolveAppropriateEntityView, saveEntity, saveEntityJson, setTypedEntityModelAttributes, setupViewEntityListBasicModel, showAddCollectionItem, showUpdateCollectionItem, showUpdateCollectionItem, showViewCollectionItem, showViewCollectionItem, showViewUpdateCollection, showViewUpdateCollection, showViewUpdateCollection, showViewUpdateCollection, updateCollectionItem, updateCollectionItem, updateCollectionItemSequence, updateCollectionItemSequence, viewAddEntityForm, viewCollectionItemDetails, viewCollectionItemTab, viewEntityForm, viewEntityList, viewEntityListSelectize, viewEntityTab
attachSectionSpecificInfo, attachSectionSpecificInfo, createSectionCrumb, extractDynamicFormFields, getAddEntityTypes, getClassNameForSection, getCollectionListGrid, getCollectionListGrid, getCriteria, getDefaultEntityType, getDynamicFieldTemplateForm, getDynamicForm, getEntityForm, getEntityForm, getEntityForm, getFirstId, getLastId, getLowerCount, getMaxIndex, getMaxResults, getPageSize, getPersistencePackageRequest, getSectionCrumbs, getSectionCustomCriteria, getSectionKey, getSectionPersistencePackageRequest, getSectionPersistencePackageRequest, getSectionPersistencePackageRequest, getSectionPersistencePackageRequest, getSortDirections, getSortPropertyNames, getStartIndex, getUpperCount, modifyAddEntityForm, modifyCriteria, modifyEntityForm, populateJsonValidationErrors, setModelAttributes, setSpecializedNameForFields, translateErrorMessage
protected WidgetService widgetService
protected org.broadleafcommerce.common.locale.service.LocaleService localeService
protected org.broadleafcommerce.cms.structure.service.StructuredContentService structuredContentService
protected ContentItemService contentItemService
@Autowired(required=false) @Qualifier(value="blWorkflowSandBoxItemService") protected com.broadleafcommerce.enterprise.workflow.service.WorkflowSandBoxItemService workflowSandboxItemService
@Autowired(required=false) @Qualifier(value="blWorkflowStateManager") protected com.broadleafcommerce.enterprise.workflow.persistence.WorkflowStateManager workflowStateManager
protected void convertSCListGridToDynamicForms(org.broadleafcommerce.openadmin.web.form.entity.EntityForm form, org.broadleafcommerce.openadmin.web.form.component.ListGrid scs) throws org.broadleafcommerce.common.exception.ServiceException
org.broadleafcommerce.common.exception.ServiceException
protected void createDynamicSCForm(org.broadleafcommerce.openadmin.web.form.entity.EntityForm form, String id, String type, String priority, String xrefId, Boolean readOnly) throws org.broadleafcommerce.common.exception.ServiceException
org.broadleafcommerce.common.exception.ServiceException
protected void addTranslationPropertyName(org.broadleafcommerce.openadmin.web.form.entity.Field field, String id)
field
- id
- protected String getTranslationPropertyName(String fieldName, String id)
fieldName
- id
- protected void extractStructuredContentForms(org.broadleafcommerce.openadmin.web.form.entity.EntityForm entityForm)
protected List<org.broadleafcommerce.openadmin.web.form.entity.EntityForm> extractSCFormsForPersistence(org.broadleafcommerce.openadmin.dto.ClassMetadata cmd, org.broadleafcommerce.openadmin.web.form.entity.EntityForm entityForm, String cefqcn, String entityType)
protected boolean preventFieldGroupPersistence(String dynamicFormName, org.broadleafcommerce.openadmin.web.form.entity.EntityForm dynamicForm)
protected boolean containsHiddenFields(org.broadleafcommerce.openadmin.web.form.entity.Field field)
protected List<org.broadleafcommerce.cms.structure.domain.StructuredContentType> getSCTypesForWidget(String id)
protected org.broadleafcommerce.cms.structure.domain.StructuredContentType getSCType(org.broadleafcommerce.openadmin.web.form.entity.EntityForm dynamicForm)
protected List<org.broadleafcommerce.openadmin.dto.SectionCrumb> getSCSectionCrumbs(String id)
protected String[] addNewOverrideStructuredContent(org.broadleafcommerce.openadmin.web.form.entity.EntityForm ef, String scType, List<org.broadleafcommerce.openadmin.dto.SectionCrumb> sectionCrumbs, Map<String,String> pathVars, javax.servlet.http.HttpServletRequest request, String id, org.springframework.validation.BindingResult result) throws org.broadleafcommerce.common.exception.ServiceException
org.broadleafcommerce.common.exception.ServiceException
protected String[] addNewStructuredContent(org.broadleafcommerce.openadmin.web.form.entity.EntityForm ef, String scType, List<org.broadleafcommerce.openadmin.dto.SectionCrumb> sectionCrumbs, Map<String,String> pathVars, javax.servlet.http.HttpServletRequest request, String id, org.springframework.validation.BindingResult result) throws org.broadleafcommerce.common.exception.ServiceException
org.broadleafcommerce.common.exception.ServiceException
protected String[] addNewStructuredContent(org.broadleafcommerce.openadmin.web.form.entity.EntityForm ef, String scType, List<org.broadleafcommerce.openadmin.dto.SectionCrumb> sectionCrumbs, Map<String,String> pathVars, javax.servlet.http.HttpServletRequest request, String id, com.broadleafcommerce.advancedcms.admin.web.controller.AdminAbstractContentItemController.NamesStructure namesStructure, org.springframework.validation.BindingResult result) throws org.broadleafcommerce.common.exception.ServiceException
org.broadleafcommerce.common.exception.ServiceException
protected void removeMasterGroupsFromDynamicForm(org.broadleafcommerce.openadmin.web.form.entity.EntityForm dynamicForm, org.broadleafcommerce.cms.structure.domain.StructuredContentType sct)
dynamicForm
- sct
- protected void setItemContainerOverrideForEnterprise(String id)
id
- - ID of the Content Item you are looking up the container id of.Copyright © 2020. All rights reserved.