Java Code Examples for org.springframework.web.util.WebUtils#getParametersStartingWith()

The following examples show how to use org.springframework.web.util.WebUtils#getParametersStartingWith() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TableController.java    From mysiteforme with Apache License 2.0 6 votes vote down vote up
@RequiresPermissions("sys:table:list")
@PostMapping("fieldlist")
@ResponseBody
@SysLog("请求字段展示数据(分页显示)")
public LayerData<TableField> fieldlist(@RequestParam(value = "page",defaultValue = "1")Integer page,
                                       @RequestParam(value = "limit",defaultValue = "10")Integer limit,
                                       ServletRequest request){
    Map<String,Object> map = WebUtils.getParametersStartingWith(request, "s_");
    if(!map.isEmpty()){
        String name = (String) map.get("name");
        if(StringUtils.isBlank(name)) {
            map.remove("name");
        }
        String tableType = (String)map.get("tableType");
        if(!tableType.equals("1") && !tableType.equals("2") && !tableType.equals("3")){
            map.remove("tableType");
        }else{
            map.put("tableType",Integer.valueOf(tableType));
        }
    }
    Page<TableField> tablePage = tableService.selectTableFieldPage(new Page<>(page,limit),map);
    LayerData<TableField> layerData = new LayerData<>();
    layerData.setData(tablePage.getRecords());
    layerData.setCount(tablePage.getTotal());
    return layerData;
}
 
Example 2
Source File: QuartzTaskLogController.java    From mysiteforme with Apache License 2.0 6 votes vote down vote up
@RequiresPermissions("quartz:log:list")
@PostMapping("list")
@ResponseBody
public LayerData<QuartzTaskLog> list(@RequestParam(value = "page",defaultValue = "1")Integer page,
                                  @RequestParam(value = "limit",defaultValue = "10")Integer limit,
                                  ServletRequest request){
    Map map = WebUtils.getParametersStartingWith(request, "s_");
    LayerData<QuartzTaskLog> layerData = new LayerData<>();
    EntityWrapper<QuartzTaskLog> wrapper = new EntityWrapper<>();
    wrapper.eq("del_flag",false);
    if(!map.isEmpty()){
        String name = (String) map.get("name");
        if(StringUtils.isNotBlank(name)) {
            wrapper.like("name",name);
        }else{
            map.remove("name");
        }

    }
    Page<QuartzTaskLog> pageData = quartzTaskLogService.selectPage(new Page<>(page,limit),wrapper);
    layerData.setData(pageData.getRecords());
    layerData.setCount(pageData.getTotal());
    return layerData;
}
 
Example 3
Source File: BlogTagsController.java    From mysiteforme with Apache License 2.0 6 votes vote down vote up
@RequiresPermissions("blog:tags:list")
@PostMapping("list")
@ResponseBody
public LayerData<BlogTags> list(@RequestParam(value = "page",defaultValue = "1")Integer page,
                                  @RequestParam(value = "limit",defaultValue = "10")Integer limit,
                                  ServletRequest request){
    Map map = WebUtils.getParametersStartingWith(request, "s_");
    LayerData<BlogTags> layerData = new LayerData<>();
    if(!map.isEmpty()){
        String name = (String) map.get("name");
        if(StringUtils.isBlank(name)) {
            map.remove("name");
        }
    }
    Page<BlogTags> pageData = blogTagsService.selectTagsPage(map,new Page<BlogTags>(page,limit));
    layerData.setData(pageData.getRecords());
    layerData.setCount(pageData.getTotal());
    return layerData;
}
 
Example 4
Source File: TableController.java    From mysiteforme with Apache License 2.0 6 votes vote down vote up
/***
 * 所有数据表分页查询
 * @param page
 * @param limit
 * @param request
 * @return
 */
@RequiresPermissions("sys:table:list")
@PostMapping("list")
@ResponseBody
public LayerData<TableVO> list(@RequestParam(value = "page",defaultValue = "1")Integer page,
                                @RequestParam(value = "limit",defaultValue = "10")Integer limit,
                                ServletRequest request){
    Map<String,Object> map = WebUtils.getParametersStartingWith(request, "s_");
    LayerData<TableVO> tableLayerData = new LayerData<>();
    if(!map.isEmpty()){
        String name = (String) map.get("name");
        if(StringUtils.isBlank(name)) {
            map.remove("name");
        }
    }
    Page<TableVO> tablePage = tableService.selectTablePage(new Page<>(page,limit),map);
    tableLayerData.setCount(tablePage.getTotal());
    tableLayerData.setData(tablePage.getRecords());
    return tableLayerData;
}
 
Example 5
Source File: UserConteroller.java    From mysiteforme with Apache License 2.0 6 votes vote down vote up
@RequiresPermissions("sys:user:list")
@PostMapping("list")
@ResponseBody
public LayerData<User> list(@RequestParam(value = "page",defaultValue = "1")Integer page,
                            @RequestParam(value = "limit",defaultValue = "10")Integer limit,
                            ServletRequest request){
    Map map = WebUtils.getParametersStartingWith(request, "s_");
    LayerData<User> userLayerData = new LayerData<>();
    EntityWrapper<User> userEntityWrapper = new EntityWrapper<>();
    if(!map.isEmpty()){
        String keys = (String) map.get("key");
        if(StringUtils.isNotBlank(keys)) {
            userEntityWrapper.like("login_name", keys).or().like("tel", keys).or().like("email", keys);
        }
    }
    Page<User> userPage = userService.selectPage(new Page<>(page,limit),userEntityWrapper);
    userLayerData.setCount(userPage.getTotal());
    userLayerData.setData(userPage.getRecords());
    return  userLayerData;
}
 
Example 6
Source File: DictController.java    From mysiteforme with Apache License 2.0 6 votes vote down vote up
@RequiresPermissions("sys:dict:list")
@PostMapping("list")
@ResponseBody
public LayerData<Dict> list(@RequestParam(value = "page",defaultValue = "1")Integer page,
                            @RequestParam(value = "limit",defaultValue = "10")Integer limit,
                            ServletRequest request){
    Map map = WebUtils.getParametersStartingWith(request, "s_");
    LayerData<Dict> layerData = new LayerData<>();
    EntityWrapper<Dict> wrapper = new EntityWrapper<>();
    if(!map.isEmpty()){
        String type = (String) map.get("type");
        if(StringUtils.isNotBlank(type)) {
            wrapper.eq("type", type);
        }
        String label = (String)map.get("label");
        if(StringUtils.isNotBlank(label)){
            wrapper.like("label",label);
        }
    }
    wrapper.orderBy("type",false).orderBy("sort",false);
    Page<Dict> dataPage = dictService.selectPage(new Page<>(page,limit),wrapper);
    layerData.setCount(dataPage.getTotal());
    layerData.setData(dataPage.getRecords());
    return layerData;
}
 
Example 7
Source File: RoleController.java    From mysiteforme with Apache License 2.0 6 votes vote down vote up
@RequiresPermissions("sys:role:list")
@PostMapping("list")
@ResponseBody
public LayerData<Role> list(@RequestParam(value = "page",defaultValue = "1")Integer page,
                            @RequestParam(value = "limit",defaultValue = "10")Integer limit,
                            ServletRequest request){
    Map map = WebUtils.getParametersStartingWith(request, "s_");
    LayerData<Role> roleLayerData = new LayerData<>();
    EntityWrapper<Role> roleEntityWrapper = new EntityWrapper<>();
    roleEntityWrapper.eq("del_flag",false);
    if(!map.isEmpty()){
        String keys = (String) map.get("key");
        if(StringUtils.isNotBlank(keys)) {
            roleEntityWrapper.like("name", keys);
        }
    }
    Page<Role> rolePage = roleService.selectPage(new Page<>(page,limit),roleEntityWrapper);
    roleLayerData.setCount(rolePage.getTotal());
    roleLayerData.setData(setUserToRole(rolePage.getRecords()));
    return roleLayerData;
}
 
Example 8
Source File: RescourceController.java    From mysiteforme with Apache License 2.0 5 votes vote down vote up
@RequiresPermissions("sys:rescource:list")
@PostMapping("list")
@ResponseBody
public LayerData<Rescource> list(@RequestParam(value = "page",defaultValue = "1")Integer page,
                                 @RequestParam(value = "limit",defaultValue = "10")Integer limit,
                                 ServletRequest request){
    Map map = WebUtils.getParametersStartingWith(request, "s_");
    LayerData<Rescource> layerData = new LayerData<>();
    EntityWrapper<Rescource> wrapper = new EntityWrapper<>();
    if(!map.isEmpty()){
        String type = (String) map.get("type");
        if(StringUtils.isNotBlank(type)) {
            wrapper.like("file_type", type);
        }
        String hash = (String)map.get("hash");
        if(StringUtils.isNotBlank(hash)){
            wrapper.eq("hash",hash);
        }
        String source = (String)map.get("source");
        if(StringUtils.isNotBlank(source)){
            wrapper.eq("source",source);
        }
    }
    Page<Rescource> dataPage = rescourceService.selectPage(new Page<>(page,limit),wrapper);
    layerData.setCount(dataPage.getTotal());
    layerData.setData(dataPage.getRecords());
    return layerData;
}
 
Example 9
Source File: QuartzTaskController.java    From mysiteforme with Apache License 2.0 5 votes vote down vote up
@RequiresPermissions("quartz:task:list")
@PostMapping("list")
@ResponseBody
public LayerData<QuartzTask> list(@RequestParam(value = "page",defaultValue = "1")Integer page,
                                  @RequestParam(value = "limit",defaultValue = "10")Integer limit,
                                  ServletRequest request){
    Map map = WebUtils.getParametersStartingWith(request, "s_");
    LayerData<QuartzTask> layerData = new LayerData<>();
    EntityWrapper<QuartzTask> wrapper = new EntityWrapper<>();
    wrapper.eq("del_flag",false);
    if(!map.isEmpty()){
        String name = (String) map.get("name");
        if(StringUtils.isNotBlank(name)) {
            wrapper.like("name",name);
        }else{
            map.remove("name");
        }

        String status = (String) map.get("status");
        if(StringUtils.isNotBlank(status)) {
            wrapper.eq("status",status);
        }else{
            map.remove("status");
        }

    }
    Page<QuartzTask> pageData = quartzTaskService.queryList(wrapper,new Page<>(page,limit));
    layerData.setData(pageData.getRecords());
    layerData.setCount(pageData.getTotal());
    return layerData;
}
 
Example 10
Source File: LogController.java    From mysiteforme with Apache License 2.0 5 votes vote down vote up
@PostMapping("list")
@ResponseBody
public LayerData<Log> list(@RequestParam(value = "page",defaultValue = "1")Integer page,
                            @RequestParam(value = "limit",defaultValue = "10")Integer limit,
                            ServletRequest request){
    Map map = WebUtils.getParametersStartingWith(request, "s_");
    LayerData<Log> layerData = new LayerData<>();
    EntityWrapper<Log> wrapper = new EntityWrapper<>();
    if(!map.isEmpty()){
        String keys = (String) map.get("type");
        if(StringUtils.isNotBlank(keys)) {
            wrapper.eq("type", keys);
        }
        String title = (String) map.get("title");
        if(StringUtils.isNotBlank(title)){
            wrapper.like("title",title);
        }
        String username = (String)map.get("username");
        if(StringUtils.isNotBlank(username)){
            wrapper.eq("username",username);
        }
        String httpMethod = (String)map.get("method");
        if(StringUtils.isNotBlank(httpMethod)){
            wrapper.eq("http_method",httpMethod);
        }
    }
    Page<Log> logPage = logService.selectPage(new Page<>(page,limit),wrapper);
    layerData.setCount(logPage.getTotal());
    layerData.setData(logPage.getRecords());
    return  layerData;
}
 
Example 11
Source File: QuFillblankAction.java    From DWSurvey with GNU Affero General Public License v3.0 4 votes vote down vote up
private Question ajaxBuildSaveOption(HttpServletRequest request) throws UnsupportedEncodingException {
	String quId=request.getParameter("quId");
	String belongId=request.getParameter("belongId");
	String quTitle=request.getParameter("quTitle");
	String orderById=request.getParameter("orderById");
	String tag=request.getParameter("tag");
	String isRequired=request.getParameter("isRequired");
	String answerInputWidth=request.getParameter("answerInputWidth");
	String answerInputRow=request.getParameter("answerInputRow");
	String contactsAttr=request.getParameter("contactsAttr");
	String contactsField=request.getParameter("contactsField");
	String checkType=request.getParameter("checkType");
	String hv=request.getParameter("hv");
	String randOrder=request.getParameter("randOrder");
	String cellCount=request.getParameter("cellCount");
	if("".equals(quId)){
		quId=null;
	}
	Question entity=questionManager.getModel(quId);
	entity.setBelongId(belongId);
	if(quTitle!=null){
		quTitle=URLDecoder.decode(quTitle,"utf-8");
		entity.setQuTitle(quTitle);
	}
	entity.setOrderById(Integer.parseInt(orderById));
	entity.setTag(Integer.parseInt(tag));
	entity.setQuType(QuType.FILLBLANK);
	isRequired=(isRequired==null || "".equals(isRequired))?"0":isRequired;
	hv=(hv==null || "".equals(hv))?"0":hv;
	randOrder=(randOrder==null || "".equals(randOrder))?"0":randOrder;
	cellCount=(cellCount==null || "".equals(cellCount))?"0":cellCount;
	contactsAttr=(contactsAttr==null || "".equals(contactsAttr))?"0":contactsAttr;
	entity.setContactsAttr(Integer.parseInt(contactsAttr));
	entity.setContactsField(contactsField);
	answerInputWidth=(answerInputWidth==null || "".equals(answerInputWidth))?"300":answerInputWidth;
	answerInputRow=(answerInputRow==null || "".equals(answerInputRow))?"1":answerInputRow;
	entity.setAnswerInputWidth(Integer.parseInt(answerInputWidth));
	entity.setAnswerInputRow(Integer.parseInt(answerInputRow));
	entity.setIsRequired(Integer.parseInt(isRequired));
	entity.setHv(Integer.parseInt(hv));
	entity.setRandOrder(Integer.parseInt(randOrder));
	entity.setCellCount(Integer.parseInt(cellCount));
	checkType=(checkType==null || "".equals(checkType))?"NO":checkType;
	entity.setCheckType(CheckType.valueOf(checkType));
	Map<String, Object> quLogicIdMap=WebUtils.getParametersStartingWith(request, "quLogicId_");
	List<QuestionLogic> quLogics=new ArrayList<QuestionLogic>();
	for (String key : quLogicIdMap.keySet()) {
		String cgQuItemId=request.getParameter("cgQuItemId_"+key);
		String skQuId=request.getParameter("skQuId_"+key);
		String visibility=request.getParameter("visibility_"+key);
		String logicType=request.getParameter("logicType_"+key);
		Object quLogicId=quLogicIdMap.get(key);
		String quLogicIdValue=(quLogicId!=null)?quLogicId.toString():null;
		QuestionLogic quLogic=new QuestionLogic();
		quLogic.setId(quLogicIdValue);
		quLogic.setCgQuItemId(cgQuItemId);
		quLogic.setSkQuId(skQuId);
		quLogic.setVisibility(Integer.parseInt(visibility));
		quLogic.setTitle(key);
		quLogic.setLogicType(logicType);
		quLogics.add(quLogic);
	}
	entity.setQuestionLogics(quLogics);
	return entity;
}
 
Example 12
Source File: QuParagraphAction.java    From DWSurvey with GNU Affero General Public License v3.0 4 votes vote down vote up
private Question ajaxBuildSaveOption(HttpServletRequest request) throws UnsupportedEncodingException {
	String quId=request.getParameter("quId");
	String belongId=request.getParameter("belongId");
	String quTitle=request.getParameter("quTitle");
	String orderById=request.getParameter("orderById");
	String tag=request.getParameter("tag");
	String isRequired=request.getParameter("isRequired");
	//hv 1水平显示 2垂直显示
	String hv=request.getParameter("hv");
	//randOrder 选项随机排列
	String randOrder=request.getParameter("randOrder");
	String cellCount=request.getParameter("cellCount");
	
	if("".equals(quId)){
		quId=null;
	}
	Question entity=questionManager.getModel(quId);
	entity.setBelongId(belongId);
	if(quTitle!=null){
		quTitle=URLDecoder.decode(quTitle,"utf-8");
		entity.setQuTitle(quTitle);
	}
	entity.setOrderById(Integer.parseInt(orderById));
	entity.setTag(Integer.parseInt(tag));
	entity.setQuType(QuType.PARAGRAPH);
	isRequired=(isRequired==null || "".equals(isRequired))?"0":isRequired;
	hv=(hv==null || "".equals(hv))?"0":hv;
	randOrder=(randOrder==null || "".equals(randOrder))?"0":randOrder;
	cellCount=(cellCount==null || "".equals(cellCount))?"0":cellCount;
	entity.setIsRequired(Integer.parseInt(isRequired));
	entity.setHv(Integer.parseInt(hv));
	entity.setRandOrder(Integer.parseInt(randOrder));
	entity.setCellCount(Integer.parseInt(cellCount));
	Map<String, Object> quLogicIdMap=WebUtils.getParametersStartingWith(request, "quLogicId_");
	List<QuestionLogic> quLogics=new ArrayList<QuestionLogic>();
	for (String key : quLogicIdMap.keySet()) {
		String cgQuItemId=request.getParameter("cgQuItemId_"+key);
		String skQuId=request.getParameter("skQuId_"+key);
		String visibility=request.getParameter("visibility_"+key);
		String logicType=request.getParameter("logicType_"+key);
		Object quLogicId=quLogicIdMap.get(key);
		String quLogicIdValue=(quLogicId!=null)?quLogicId.toString():null;
		QuestionLogic quLogic=new QuestionLogic();
		quLogic.setId(quLogicIdValue);
		quLogic.setCgQuItemId(cgQuItemId);
		quLogic.setSkQuId(skQuId);
		quLogic.setVisibility(Integer.parseInt(visibility));
		quLogic.setTitle(key);
		quLogic.setLogicType(logicType);
		quLogics.add(quLogic);
	}
	entity.setQuestionLogics(quLogics);
	
	return entity;
}
 
Example 13
Source File: BlogArticleController.java    From mysiteforme with Apache License 2.0 4 votes vote down vote up
@RequiresPermissions("blog:article:list")
@PostMapping("list")
@ResponseBody
public LayerData<BlogArticle> list(@RequestParam(value = "page",defaultValue = "1")Integer page,
                                  @RequestParam(value = "limit",defaultValue = "10")Integer limit,
                                  ServletRequest request){
    Map<String,Object> map = WebUtils.getParametersStartingWith(request, "s_");
    LayerData<BlogArticle> layerData = new LayerData<>();
    EntityWrapper<BlogArticle> wrapper = new EntityWrapper<>();
    wrapper.eq("del_flag",false);
    if(!map.isEmpty()){
        String title = (String) map.get("title");
        if(StringUtils.isBlank(title)) {
            map.remove("title");
        }
        String category = (String) map.get("category");
        if(StringUtils.isBlank(category)) {
            map.remove("category");
        }
        String beginPublistTime = (String) map.get("beginPublistTime");
        String endPublistTime = (String) map.get("endPublistTime");
        if(StringUtils.isNotBlank(beginPublistTime)) {
            Date begin = DateUtil.parse(beginPublistTime);
            map.put("publist_time",begin);
        }else{
            map.remove("beginPublistTime");
        }
        if(StringUtils.isNotBlank(endPublistTime)) {
            Date end = DateUtil.parse(endPublistTime);
            map.put("publist_time",end);
        }else{
            map.remove("endPublistTime");
        }
        String content = (String) map.get("content");
        if(StringUtils.isBlank(content)) {
            map.remove("content");
        }
        String channelId = (String) map.get("channelId");
        if(StringUtils.isBlank(channelId)){
            map.remove("channelId");
        }

    }
    Page<BlogArticle> pageData = blogArticleService.selectDetailArticle(map,new Page<>(page,limit));
    layerData.setData(pageData.getRecords());
    layerData.setCount(pageData.getTotal());
    return layerData;
}
 
Example 14
Source File: BlogCommentController.java    From mysiteforme with Apache License 2.0 4 votes vote down vote up
@RequiresPermissions("blog:comment:list")
@PostMapping("list")
@ResponseBody
public LayerData<BlogComment> list(@RequestParam(value = "page",defaultValue = "1")Integer page,
                                  @RequestParam(value = "limit",defaultValue = "10")Integer limit,
                                  ServletRequest request){
    Map map = WebUtils.getParametersStartingWith(request, "s_");
    LayerData<BlogComment> layerData = new LayerData<>();
    EntityWrapper<BlogComment> wrapper = new EntityWrapper<>();
    wrapper.eq("del_flag",false);
    if(!map.isEmpty()){
        String content = (String) map.get("content");
        if(StringUtils.isNotBlank(content)) {
            wrapper.like("content",content);
        }else{
            map.remove("content");
        }

        String ip = (String) map.get("ip");
        if(StringUtils.isNotBlank(ip)) {
            wrapper.like("ip",ip);
        }else{
            map.remove("ip");
        }

        String isAdminReply = (String) map.get("isAdminReply");
        if(StringUtils.isNotBlank(isAdminReply)) {
            if(isAdminReply.equalsIgnoreCase("true")){
                wrapper.eq("is_admin_reply",true);
            }else if(isAdminReply.equalsIgnoreCase("false")){
                wrapper.eq("is_admin_reply",false);
            }else{
                map.remove("isAdminReply");
            }
        }else{
            map.remove("isAdminReply");
        }

    }
    Page<BlogComment> pageData = blogCommentService.selectPage(new Page<>(page,limit),wrapper);
    layerData.setData(pageData.getRecords());
    layerData.setCount(pageData.getTotal());
    return layerData;
}
 
Example 15
Source File: WebUtil.java    From roncoo-education with MIT License 4 votes vote down vote up
/**
 * 获取s_开头的所有参数
 */
public static Map<String, Object> getParametersStartingWith(ServletRequest request) {
	return WebUtils.getParametersStartingWith(request, PREFIX);
}
 
Example 16
Source File: QuPagetagAction.java    From DWSurvey with GNU Affero General Public License v3.0 4 votes vote down vote up
private Question ajaxBuildSaveOption(HttpServletRequest request) throws UnsupportedEncodingException {
	String quId=request.getParameter("quId");
	String belongId=request.getParameter("belongId");
	String quTitle=request.getParameter("quTitle");
	String orderById=request.getParameter("orderById");
	String tag=request.getParameter("tag");
	//isRequired 是否必选
	String isRequired=request.getParameter("isRequired");
	//hv 1水平显示 2垂直显示
	String hv=request.getParameter("hv");
	//randOrder 选项随机排列
	String randOrder=request.getParameter("randOrder");
	String cellCount=request.getParameter("cellCount");
	
	if("".equals(quId)){
		quId=null;
	}
	Question entity=questionManager.getModel(quId);
	entity.setBelongId(belongId);
	if(quTitle!=null){
		quTitle=URLDecoder.decode(quTitle,"utf-8");
		entity.setQuTitle(quTitle);
	}
	entity.setOrderById(Integer.parseInt(orderById));
	entity.setTag(Integer.parseInt(tag));
	entity.setQuType(QuType.PAGETAG);
	isRequired=(isRequired==null || "".equals(isRequired))?"0":isRequired;
	hv=(hv==null || "".equals(hv))?"0":hv;
	randOrder=(randOrder==null || "".equals(randOrder))?"0":randOrder;
	cellCount=(cellCount==null || "".equals(cellCount))?"0":cellCount;
	
	entity.setIsRequired(Integer.parseInt(isRequired));
	entity.setHv(Integer.parseInt(hv));
	entity.setRandOrder(Integer.parseInt(randOrder));
	entity.setCellCount(Integer.parseInt(cellCount));
	
	Map<String, Object> quLogicIdMap=WebUtils.getParametersStartingWith(request, "quLogicId_");
	List<QuestionLogic> quLogics=new ArrayList<QuestionLogic>();
	for (String key : quLogicIdMap.keySet()) {
		String cgQuItemId=request.getParameter("cgQuItemId_"+key);
		String skQuId=request.getParameter("skQuId_"+key);
		String visibility=request.getParameter("visibility_"+key);
		String logicType=request.getParameter("logicType_"+key);
		Object quLogicId=quLogicIdMap.get(key);
		String quLogicIdValue=(quLogicId!=null)?quLogicId.toString():null;
		
		QuestionLogic quLogic=new QuestionLogic();
		quLogic.setId(quLogicIdValue);
		quLogic.setCgQuItemId(cgQuItemId);
		quLogic.setSkQuId(skQuId);
		quLogic.setVisibility(Integer.parseInt(visibility));
		quLogic.setTitle(key);
		quLogic.setLogicType(logicType);
		quLogics.add(quLogic);
	}
	entity.setQuestionLogics(quLogics);
	
	return entity;
}
 
Example 17
Source File: ServletRequestParameterPropertyValues.java    From java-technology-stack with MIT License 3 votes vote down vote up
/**
 * Create new ServletRequestPropertyValues supplying both prefix and
 * prefix separator.
 * @param request the HTTP request
 * @param prefix the prefix for parameters (the full prefix will
 * consist of this plus the separator)
 * @param prefixSeparator separator delimiting prefix (e.g. "spring")
 * and the rest of the parameter name ("param1", "param2")
 */
public ServletRequestParameterPropertyValues(
		ServletRequest request, @Nullable String prefix, @Nullable String prefixSeparator) {

	super(WebUtils.getParametersStartingWith(
			request, (prefix != null ? prefix + prefixSeparator : null)));
}
 
Example 18
Source File: ServletRequestParameterPropertyValues.java    From spring-analysis-note with MIT License 3 votes vote down vote up
/**
 * Create new ServletRequestPropertyValues supplying both prefix and
 * prefix separator.
 * @param request the HTTP request
 * @param prefix the prefix for parameters (the full prefix will
 * consist of this plus the separator)
 * @param prefixSeparator separator delimiting prefix (e.g. "spring")
 * and the rest of the parameter name ("param1", "param2")
 */
public ServletRequestParameterPropertyValues(
		ServletRequest request, @Nullable String prefix, @Nullable String prefixSeparator) {

	super(WebUtils.getParametersStartingWith(
			request, (prefix != null ? prefix + prefixSeparator : null)));
}
 
Example 19
Source File: ServletRequestParameterPropertyValues.java    From lams with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Create new ServletRequestPropertyValues supplying both prefix and
 * prefix separator.
 * @param request HTTP request
 * @param prefix the prefix for parameters (the full prefix will
 * consist of this plus the separator)
 * @param prefixSeparator separator delimiting prefix (e.g. "spring")
 * and the rest of the parameter name ("param1", "param2")
 */
public ServletRequestParameterPropertyValues(ServletRequest request, String prefix, String prefixSeparator) {
	super(WebUtils.getParametersStartingWith(
			request, (prefix != null ? prefix + prefixSeparator : null)));
}
 
Example 20
Source File: ServletRequestParameterPropertyValues.java    From spring4-understanding with Apache License 2.0 2 votes vote down vote up
/**
 * Create new ServletRequestPropertyValues supplying both prefix and
 * prefix separator.
 * @param request HTTP request
 * @param prefix the prefix for parameters (the full prefix will
 * consist of this plus the separator)
 * @param prefixSeparator separator delimiting prefix (e.g. "spring")
 * and the rest of the parameter name ("param1", "param2")
 */
public ServletRequestParameterPropertyValues(ServletRequest request, String prefix, String prefixSeparator) {
	super(WebUtils.getParametersStartingWith(
			request, (prefix != null ? prefix + prefixSeparator : null)));
}