@Controller(value="blAdminAssetController") @RequestMapping(value="/assets") public class AdminAssetController extends AdminBasicEntityController
Asset
entity. This is mostly to support displaying image assets inline
in listgrids.Modifier and Type | Field and Description |
---|---|
protected AssetFormBuilderService |
formService |
protected static String |
SECTION_KEY |
protected StaticAssetService |
staticAssetService |
LOG
adminNavigationService, adminRemoteSecurityService, entityConfiguration, entityFormValidator, FILTER_VALUE_SEPARATOR, FILTER_VALUE_SEPARATOR_REGEX, mainEntityActionsExtensionManager, service
Constructor and Description |
---|
AdminAssetController() |
Modifier and Type | Method and Description |
---|---|
protected String |
getDefaultEntityType()
This method is called when attempting to add new entities that have a polymorphic tree.
|
protected String |
getSectionKey(Map<String,String> pathVars)
This method is used to determine the current section key.
|
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)
Attempts to save the given entity.
|
String |
viewEntityForm(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
Map<String,String> pathVars,
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,
Map<String,String> pathVars,
org.springframework.util.MultiValueMap<String,String> requestParams)
Renders the main entity listing for the specified class, which is based on the current sectionKey with some optional
criteria.
|
addAddActionIfAllowed, addCollectionItem, addEntity, buildAddCollectionItemModel, getCollectionFieldRecords, getCollectionValueDetails, initBinder, removeCollectionItem, removeEntity, showAddCollectionItem, showSelectCollectionItem, showUpdateCollectionItem, showViewCollectionItem, showViewUpdateCollection, showViewUpdateCollection, updateCollectionItem, updateCollectionItemSequence, viewAddEntityForm, viewCollectionItemDetails
attachSectionSpecificInfo, extractDynamicFormFields, getAddEntityTypes, getBlankDynamicFieldTemplateForm, getBlankDynamicFieldTemplateForm, getClassNameForSection, getCollectionListGrid, getCriteria, getDynamicFieldTemplateForm, getDynamicForm, getMaxIndex, getSectionCustomCriteria, getSectionPersistencePackageRequest, getSectionPersistencePackageRequest, getSortDirections, getSortPropertyNames, getStartIndex, setModelAttributes
getContextPath, isAjaxRequest
protected static final String SECTION_KEY
protected AssetFormBuilderService formService
protected StaticAssetService staticAssetService
protected String getSectionKey(Map<String,String> pathVars)
AdminAbstractController
getSectionKey
in class AdminAbstractController
pathVars
- - the map of all currently bound path variables for this request@RequestMapping(value="", method=GET) public String viewEntityList(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, @PathVariable Map<String,String> pathVars, @RequestParam org.springframework.util.MultiValueMap<String,String> requestParams) throws Exception
AdminBasicEntityController
viewEntityList
in class 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
AdminBasicEntityController
viewEntityForm
in class AdminBasicEntityController
Exception
@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
AdminBasicEntityController
saveEntity
in class AdminBasicEntityController
Exception
protected String getDefaultEntityType()
AdminAbstractController
getDefaultEntityType
in class AdminAbstractController
Copyright © 2014. All rights reserved.