@Override public ListInfo queryVideosByOrderType(DocumentCondition condition, long offset, int pagesize) throws SQLException { return executor.queryListInfoBean(Document.class, "queryVideosByOrderType", offset, pagesize, condition); } }
@Override public ListInfo queryAreaList( int offset, int pagesize) throws Exception { Map<String, Object> paramMap = new HashMap<String, Object>(); ListInfo datas = executor.queryListInfoBean(Area.class, "queryAreaList", offset, pagesize, paramMap); return datas; } @Override
public ListInfo queryUsers(QueryUserCondition condition, long offset, int pagesize)throws SmUserException{ try { ListInfo _users = this.executor.queryListInfoBean(SmUser.class, "queryUsers", offset, pagesize, condition); // users = _users.getDatas(); return _users; } catch (SQLException e) { throw new SmUserException(e); } } /** (non-Javadoc)
public ListInfo queryListInfoRoleTypes(RoleTypeCondition conditions, long offset, int pagesize) throws RoleTypeException { ListInfo datas = null; try { datas = executor.queryListInfoBean(RoleType.class, "queryListRoleType", offset, pagesize, conditions); } catch (Exception e) { throw new RoleTypeException("pagine query RoleType failed:", e); } return datas; } public List<RoleType> queryListRoleTypes(RoleTypeCondition conditions) throws RoleTypeException {
@Override public List<User> queryUsersForPage(User user, long offset, int pagesize) throws Exception { ListInfo listInfo = executor.queryListInfoBean(User.class, "selectUsersByCondition", offset, pagesize, user); return listInfo.getDatas(); }
@Override public List<com.frameworkset.platform.sysmgrcore.entity.User> selectUsersByCondition( com.frameworkset.platform.sysmgrcore.entity.User user, long offset, int pagesize) throws SQLException { ListInfo listInfo = executor.queryListInfoBean( com.frameworkset.platform.sysmgrcore.entity.User.class, "selectUsersByCondition", offset, pagesize, user); return listInfo.getDatas(); }
public ListInfo queryListInfoApiXmls(long offset, int pagesize) throws ApiXmlException { ListInfo datas = null; try { datas = executor.queryListInfoBean(ApiXml.class, "queryListApiXml", offset, pagesize, null); } catch (Exception e) { throw new ApiXmlException("pagine query ApiXml failed:", e); } return datas; } public List<ApiXml> queryListApiXmls() throws ApiXmlException {
public ListInfo queryListInfoLogs(LogCondition conditions, long offset, int pagesize) throws LogException { ListInfo datas = null; try { datas = executor.queryListInfoBean(Log.class, "queryListLog", offset, pagesize, conditions); } catch (Exception e) { throw new LogException("pagine query Log failed:", e); } return datas; } public ListInfo queryhisListInfoLogs(LogCondition conditions, long offset, int pagesize) throws LogException {
public ListInfo queryListInfoSmUserWxs(SmUserWxCondition conditions, long offset, int pagesize) throws SmUserWxException { ListInfo datas = null; try { datas = executor.queryListInfoBean(SmUserWx.class, "queryListSmUserWx", offset, pagesize, conditions); } catch (Exception e) { throw new SmUserWxException("pagine query SmUserWx failed:", e); } return datas; }
public ListInfo queryListInfoRoles(RoleCondition conditions, long offset, int pagesize) throws RoleException { ListInfo datas = null; try { //如果是在角色设置界面,则需要过滤没有授予权限的角色和guest角色 datas = executor.queryListInfoBean(Role.class, "queryListRole", offset, pagesize, conditions); } catch (Exception e) { throw new RoleException("pagine query Role failed:", e); } return datas; } public List<Role> queryListRoles(RoleCondition conditions) throws RoleException {
public ListInfo queryListInfoResources(ResourceCondition conditions, long offset, int pagesize) throws ResourceException { ListInfo datas = null; try { datas = executor.queryListInfoBean(Resource.class, "queryListResource", offset, pagesize, conditions); } catch (Exception e) { throw new ResourceException("pagine query Resource failed:", e); } return datas; } public List<Resource> queryListResources(ResourceCondition conditions) throws ResourceException {
public ListInfo queryListInfoApplications(ApplicationCondition conditions, long offset, int pagesize) throws ApplicationException { ListInfo datas = null; try { datas = executor.queryListInfoBean(Application.class, "queryListApplication", offset, pagesize, conditions); } catch (Exception e) { throw new ApplicationException("pagine query Application failed:", e); } return datas; } public List<Application> queryListApplications(ApplicationCondition conditions) throws ApplicationException {
public ListInfo queryRoleUsers(String userAttr, String roleId, long offset, int pagesize) throws RoleException { try { Map params = new HashMap(); params.put("userAttr", userAttr); params.put("roleName", roleId); ListInfo beans = executor.queryListInfoBean(RoleUser.class, "queryRoleUsers",offset,pagesize,params); return beans; } catch (Exception e) { throw new RoleException("query Role failed:", e); } } /**
public ListInfo queryhisListInfoLogs(LogCondition conditions, long offset, int pagesize) throws LogException { ListInfo datas = null; try { datas = executor.queryListInfoBean(Log.class, "queryhisListInfoLogs", offset, pagesize, conditions); } catch (Exception e) { throw new LogException("pagine query his Log failed:", e); } return datas; }
public ListInfo queryListInfoSmOrganizations(SmOrganizationCondition conditions, long offset, int pagesize) throws SmOrganizationException { ListInfo datas = null; try { datas = executor.queryListInfoBean(SmOrganization.class, "queryListSmOrganization", offset, pagesize, conditions); } catch (Exception e) { throw new SmOrganizationException("pagine query SmOrganization failed:", e); } return datas; } public List<SmOrganization> queryListSmOrganizations(SmOrganizationCondition conditions)
public ListInfo queryListInfoCmsWxtokens(long offset, int pagesize) throws CmsWxtokenException { ListInfo datas = null; try { datas = executor.queryListInfoBean(CmsWxtoken.class, "queryListCmsWxtoken", offset, pagesize, null); } catch (Exception e) { throw new CmsWxtokenException("pagine query CmsWxtoken failed:", e); } return datas; }
@Override public ListInfo getVideoHitsCounterList(VideoHitsCounter counter, Timestamp startTime, Timestamp endTime, int offset, int pagesize) throws SQLException { Map<String, Object> paramMap = new HashMap<String, Object>(); paramMap.put("siteId", counter.getSiteId()); paramMap.put("channelId", counter.getChannelId()); paramMap.put("docId", counter.getDocId()); paramMap.put("hitUser", counter.getHitUser()); paramMap.put("hitIP", counter.getHitIP()); paramMap.put("startTime", startTime); paramMap.put("endTime", endTime); return executor.queryListInfoBean(counter.getClass(), "getVideoHitsCounterList", offset, pagesize, paramMap); }
@Override public ListInfo queryTemples(TempleCondition template, long offset, int pagesize) throws Exception { ListInfo listInfo = null; if (StringUtil.isNotEmpty(template.getTempleTitle())) { template.setTempleTitle("%" + template.getTempleTitle() + "%"); } listInfo = executor.queryListInfoBean(Template.class, "selectMessTemplateList", offset, pagesize, template); return listInfo; }
@Override public ListInfo querySubChannels(int offset, int pagesize, ChannelCondition condition) throws SQLException { if (!StringUtil.isEmpty(condition.getKeywords())) { condition.setKeywords("%" + condition.getKeywords() + "%"); } return executor.queryListInfoBean(Channel.class, "querySubChannels", offset, pagesize, condition); }
@Override public ListInfo queryProcessCountDataPage(ProcessCountCondition condition, long offset, int pagesize) throws Exception { ListInfo listInfo = null; // 所属应用 if (StringUtil.isNotEmpty(condition.getApp())) { condition.setApp("%" + condition.getApp() + "%"); } listInfo = executor.queryListInfoBean(ProcessCounter.class, "getProcessCountDataPage", offset, pagesize, condition); return listInfo; }