@Test public void getDisabledUsers() { assertTrue(repo.getDisabledUsers(new Pager(0, 1, 15)).size() == 1); }
@SuppressWarnings("unchecked") public List<UserDTOLight> getDisabledUsers(Pager pager) { Map params = new HashMap(); params.put("limit", pager.getItemsNumberOnPage()); params.put("offset", pager.getPage() * pager.getItemsNumberOnPage()); return queryForList("getDisabledUsers", params); }
UserRepositoryIbatis extends SqlMapClientTemplate implements UserRepository { @SuppressWarnings("unchecked") public List<UserDTOLight> getDisabledUsers(Pager pager) { Map params = new HashMap(); params.put("limit", pager.getItemsNumberOnPage()); params.put("offset", pager.getPage() * pager.getItemsNumberOnPage()); return queryForList("getDisabledUsers", params); } }
UserRepositoryIbatis extends SqlMapClientTemplate implements UserRepository { @SuppressWarnings("unchecked") public List<UserDTOLight> getDisabledUsers(Pager pager) { Map params = new HashMap(); params.put("limit", pager.getItemsNumberOnPage()); params.put("offset", pager.getPage() * pager.getItemsNumberOnPage()); return queryForList("getDisabledUsers", params); }  }
UserRepositoryIbatis extends SqlMapClientTemplate implements UserRepository { @SuppressWarnings("unchecked") public List<UserDTOLight> getDisabledUsers(Pager pager) { Map params = new HashMap(); params.put("limit", pager.getItemsNumberOnPage()); params.put("offset", pager.getPage() * pager.getItemsNumberOnPage()); return queryForList("getDisabledUsers", params); }  UserDTO getUserCredentials(String id); @Autowired @Override void setSqlMapClient(@Qualifier("sqlMapClient") SqlMapClient sqlMapClient); Long insertUser(UserDTO user); Integer updatePassword(UserDTO user); UserAuthoritiesDTO getUserWithAuthorities(String username); UserAuthoritiesDTO getUserWithAuthoritiesByID(Integer sid); UserView getUser(String id); Integer getUsersNumber(); Boolean disableUser(String id); Object getIdUser(String username); @SuppressWarnings("unchecked") List<UserDTOLight> getDisabledUsers(Pager pager); @SuppressWarnings("unchecked") List<UserDTOLight> getEnabledUsers(Pager pager); Boolean save(UserAuthoritiesDTO user); }
UserRepositoryIbatis extends SqlMapClientTemplate implements UserRepository { @SuppressWarnings("unchecked") public List<UserDTOLight> getDisabledUsers(Pager pager) { Map params = new HashMap(); params.put("limit", pager.getItemsNumberOnPage()); params.put("offset", pager.getPage() * pager.getItemsNumberOnPage()); return queryForList("getDisabledUsers", params); }  UserDTO getUserCredentials(String id); @Autowired @Override void setSqlMapClient(@Qualifier("sqlMapClient") SqlMapClient sqlMapClient); Long insertUser(UserDTO user); Integer updatePassword(UserDTO user); UserAuthoritiesDTO getUserWithAuthorities(String username); UserAuthoritiesDTO getUserWithAuthoritiesByID(Integer sid); UserView getUser(String id); Integer getUsersNumber(); Boolean disableUser(String id); Object getIdUser(String username); @SuppressWarnings("unchecked") List<UserDTOLight> getDisabledUsers(Pager pager); @SuppressWarnings("unchecked") List<UserDTOLight> getEnabledUsers(Pager pager); Boolean save(UserAuthoritiesDTO user);  }