![JAR search and dependency download from the Maven repository](/logo.png)
com.ajaxjs.website.controller.ArticleController Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ajaxjs-framework2 Show documentation
Show all versions of ajaxjs-framework2 Show documentation
AJAXJS aims to full-stack, not only the server-side framework,
but also integrates the front-end library. It's written in HTML5 + Java, a successor to the JVM platform, efficient, secure, stable, cross-platform and many other advantages, but it abandoned the traditional enterprise architecture brought about by the large and bloated,
emphasizing the lightweight, and fast, very suitable for the Internet fast application.
The newest version!
package com.ajaxjs.website.controller;
//package com.ajaxjs.entity.article;
//
//import java.util.Map;
//
//import javax.inject.Inject;
//import javax.ws.rs.GET;
//import javax.ws.rs.Path;
//import javax.ws.rs.PathParam;
//import javax.ws.rs.Produces;
//import javax.ws.rs.QueryParam;
//import javax.ws.rs.core.MediaType;
//
//import org.springframework.stereotype.Component;
//import org.springframework.web.servlet.ModelAndView;
//
//import com.ajaxjs.config.ConfigService;
//import com.ajaxjs.entity.BaseModel;
//import com.ajaxjs.entity.filter.FrontEndOnlyCheck;
//import com.ajaxjs.entity.section.TreeLikeService;
//import com.ajaxjs.entity.service.ArticleService;
//import com.ajaxjs.framework.BaseController;
//import com.ajaxjs.framework.BaseService;
//import com.ajaxjs.framework.CommonConstant;
//import com.ajaxjs.framework.filter.DataBaseFilter;
//import com.ajaxjs.util.logger.LogHelper;
//import com.ajaxjs.web.mvc.filter.MvcFilter;
//
//@Path("/cms/article2")
//public class ArticleController extends BaseController {
// private static final LogHelper LOGGER = LogHelper.getLog(ArticleController.class);
//
// @Inject
// private TreeLikeService treeLikeService;
//
// @Inject
// private ArticleService service;
//
// @Override
// public ArticleService getService() {
// return service;
// }
//
// @GET
// @MvcFilter(filters = { DataBaseFilter.class })
//// @Authority(filter = PrivilegeFilter.class, value = RightConstant.ARTICLE_ONLINE)
// public String list(@QueryParam(START) int start, @QueryParam(LIMIT) int limit) {
// return page("article-list");
// }
//
// @GET
// @Path("listJson")
// @Produces(MediaType.APPLICATION_JSON)
// @MvcFilter(filters = DataBaseFilter.class)
// public String listJson(@QueryParam(START) int start, @QueryParam(LIMIT) int limit, @QueryParam(CATALOG_ID) int catalogId, ModelAndView mv) {
// return toJson(getService().list(catalogId, start, limit, CommonConstant.ON_LINE));
// }
//
// @GET
// @Path(ID_INFO)
// @MvcFilter(filters = { DataBaseFilter.class, FrontEndOnlyCheck.class })
// public String getInfo(@PathParam(ID) Long id, ModelAndView mv) {
// LOGGER.info("图文详情-前台");
// Map map = getService().findById(id);
//
// BaseService.getNeighbor(mv, "entity_article", id);
//
// System.out.println(new AttachmentService().findByOwner((long) map.get("uid")));
// if (ConfigService.getValueAsBool("domain.article.attachmentDownload"))
// map.put("attachment", new AttachmentService().findByOwner((long) map.get("uid")));
//
// return output(mv, map, "jsp::article-info");
// }
//
// @Override
// public void prepareData(ModelAndView mv) {
// int catalogId = getService().getDomainCatalogId();
// Map map = TreeLikeService.idAskey(treeLikeService.getAllChildren(catalogId));
// mv.put("newsCatalogs", map);
//// System.out.println(map.get(""));
// mv.put(DOMAIN_CATALOG_ID, catalogId);
//
// super.prepareData(mv);
// }
//}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy