use of com.publiccms.common.handler.PageHandler in project PublicCMS-preview by sanluan.
the class MyContentListDirective method execute.
@Override
public void execute(RenderHandler handler, SysApp app, SysUser user) throws IOException, Exception {
PageHandler page = service.getPage(new CmsContentQuery(getSite(handler).getId(), handler.getIntegerArray("status"), handler.getInteger("categoryId"), handler.getIntegerArray("categoryIds"), false, null, handler.getLong("parentId"), handler.getBoolean("emptyParent"), handler.getBoolean("onlyUrl"), handler.getBoolean("hasImages"), handler.getBoolean("hasFiles"), null, user.getId(), null, handler.getDate("endPublishDate")), handler.getBoolean("containChild"), null, null, handler.getInteger("pageIndex", 1), handler.getInteger("count", 30));
handler.put("page", page);
}
use of com.publiccms.common.handler.PageHandler in project PublicCMS-preview by sanluan.
the class CmsCategoryListDirective method execute.
@Override
public void execute(RenderHandler handler) throws IOException, Exception {
CmsCategoryQuery queryEntity = new CmsCategoryQuery();
queryEntity.setQueryAll(handler.getBoolean("queryAll"));
if (handler.getBoolean("advanced", false)) {
queryEntity.setDisabled(handler.getBoolean("disabled", false));
queryEntity.setHidden(handler.getBoolean("hidden"));
} else {
queryEntity.setDisabled(false);
queryEntity.setHidden(false);
}
queryEntity.setSiteId(getSite(handler).getId());
queryEntity.setParentId(handler.getInteger("parentId"));
queryEntity.setTypeId(handler.getInteger("typeId"));
queryEntity.setAllowContribute(handler.getBoolean("allowContribute"));
PageHandler page = service.getPage(queryEntity, handler.getInteger("pageIndex", 1), handler.getInteger("count", 30));
handler.put("page", page).render();
}
use of com.publiccms.common.handler.PageHandler in project PublicCMS-preview by sanluan.
the class HomeGroupApplyListDirective method execute.
@Override
public void execute(RenderHandler handler) throws IOException, Exception {
PageHandler page = service.getPage(handler.getBoolean("disabled"), handler.getInteger("pageIndex", 1), handler.getInteger("count", 30));
handler.put("page", page).render();
}
use of com.publiccms.common.handler.PageHandler in project PublicCMS-preview by sanluan.
the class HomeGroupPostListDirective method execute.
@Override
public void execute(RenderHandler handler) throws IOException, Exception {
PageHandler page = service.getPage(getSite(handler).getId(), handler.getLong("groupId"), handler.getLong("userId"), handler.getBoolean("disabled"), handler.getString("orderField"), handler.getString("orderType"), handler.getInteger("pageIndex", 1), handler.getInteger("count", 30));
handler.put("page", page).render();
}
use of com.publiccms.common.handler.PageHandler in project PublicCMS-preview by sanluan.
the class HomeGroupUserListDirective method execute.
@Override
public void execute(RenderHandler handler) throws IOException, Exception {
PageHandler page = service.getPage(handler.getBoolean("disabled"), handler.getInteger("pageIndex", 1), handler.getInteger("count", 30));
handler.put("page", page).render();
}
Aggregations