@Test public void getAuthorities() { AuthorityView authority = repo.getAuthority(19); assertTrue(authority.getName().equals("quattro")); authority = repo.getAuthority(30); assertTrue(authority.getName().equals("quindici")); }
@SuppressWarnings("unchecked") public List<AuthorityDTO> getAuthorities() { return queryForList("getAuthorities"); }
AuthorityRepositoryIbatis extends SqlMapClientTemplate implements AuthorityRepository { @SuppressWarnings("unchecked") public List<AuthorityDTO> getAuthorities() { return queryForList("getAuthorities"); } }
AuthorityRepositoryIbatis extends SqlMapClientTemplate implements AuthorityRepository { @SuppressWarnings("unchecked") public List<AuthorityDTO> getAuthorities() { return queryForList("getAuthorities"); }  }
AuthorityRepositoryIbatis extends SqlMapClientTemplate implements AuthorityRepository { @SuppressWarnings("unchecked") public List<AuthorityDTO> getAuthorities() { return queryForList("getAuthorities"); }  @Autowired @Override void setSqlMapClient(@Qualifier("sqlMapClient") SqlMapClient sqlMapClient); Boolean removeGroupFromAuthorities(Integer id); @SuppressWarnings("unchecked") List<AuthorityDTO> getAuthorities(); @SuppressWarnings("unchecked") List<AuthorityDTO> getUserAuthorities(String username); @SuppressWarnings("unchecked") List<AuthorityDTO> getFreeAuthorities(String username); @SuppressWarnings("unchecked") List<AuthorityDTO> getFreeAuthoritiesForGroup(); @SuppressWarnings("unchecked") List<Integer> getIdItemsAuthority(Integer id); @SuppressWarnings("unchecked") List<AuthorityDTO> getGroupAuthorities(Integer id); Boolean saveAuthorities(final Integer groupId, final List<Integer> authorities); Integer getAuthoritiesNumber(); AuthorityDTO getAuthority(Integer id); @SuppressWarnings("unchecked") List<AuthorityDTO> getAuthorities(Pager pager); Boolean removeAuthority(Integer id); Boolean deleteUserGroups(String username); Boolean save(AuthorityDTO authority); }
AuthorityRepositoryIbatis extends SqlMapClientTemplate implements AuthorityRepository { @SuppressWarnings("unchecked") public List<AuthorityDTO> getAuthorities() { return queryForList("getAuthorities"); }  @Autowired @Override void setSqlMapClient(@Qualifier("sqlMapClient") SqlMapClient sqlMapClient); Boolean removeGroupFromAuthorities(Integer id); @SuppressWarnings("unchecked") List<AuthorityDTO> getAuthorities(); @SuppressWarnings("unchecked") List<AuthorityDTO> getUserAuthorities(String username); @SuppressWarnings("unchecked") List<AuthorityDTO> getFreeAuthorities(String username); @SuppressWarnings("unchecked") List<AuthorityDTO> getFreeAuthoritiesForGroup(); @SuppressWarnings("unchecked") List<Integer> getIdItemsAuthority(Integer id); @SuppressWarnings("unchecked") List<AuthorityDTO> getGroupAuthorities(Integer id); Boolean saveAuthorities(final Integer groupId, final List<Integer> authorities); Integer getAuthoritiesNumber(); AuthorityDTO getAuthority(Integer id); @SuppressWarnings("unchecked") List<AuthorityDTO> getAuthorities(Pager pager); Boolean removeAuthority(Integer id); Boolean deleteUserGroups(String username); Boolean save(AuthorityDTO authority);  }