|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.jdbc.support.JdbcAccessor
org.springframework.orm.ibatis.SqlMapClientTemplate
org.opennms.acl.repository.ibatis.AuthorityRepositoryIbatis
@Repository(value="authorityRepository") public class AuthorityRepositoryIbatis
AuthorityRepositoryIbatis class.
| Field Summary |
|---|
| Fields inherited from class org.springframework.jdbc.support.JdbcAccessor |
|---|
logger |
| Constructor Summary | |
|---|---|
AuthorityRepositoryIbatis()
|
|
| Method Summary | |
|---|---|
Boolean |
deleteUserGroups(String username)
Delete all user's groups |
List<AuthorityDTO> |
getAuthorities()
getAuthorities |
List<AuthorityDTO> |
getAuthorities(Pager pager)
getAuthorities |
Integer |
getAuthoritiesNumber()
getAuthoritiesNumber |
AuthorityDTO |
getAuthority(Integer id)
Retrieve an authority by id |
List<AuthorityDTO> |
getFreeAuthorities(String username)
getFreeAuthorities |
List<AuthorityDTO> |
getFreeAuthoritiesForGroup()
getFreeAuthoritiesForGroup |
List<AuthorityDTO> |
getGroupAuthorities(Integer id)
getGroupAuthorities |
List<Integer> |
getIdItemsAuthority(Integer id)
getIdItemsAuthority |
List<AuthorityDTO> |
getUserAuthorities(String username)
getUserAuthorities |
Boolean |
removeAuthority(Integer id)
Remove an authority by id |
Boolean |
removeGroupFromAuthorities(Integer id)
removeGroupFromAuthorities |
Boolean |
save(AuthorityDTO authority)
Save an authorityDTO |
Boolean |
saveAuthorities(Integer groupId,
List<Integer> authorities)
Save a list of authorities for a given group |
void |
setSqlMapClient(com.ibatis.sqlmap.client.SqlMapClient sqlMapClient)
|
| Methods inherited from class org.springframework.orm.ibatis.SqlMapClientTemplate |
|---|
afterPropertiesSet, delete, delete, delete, execute, executeWithListResult, executeWithMapResult, getDataSource, getSqlMapClient, insert, insert, queryForList, queryForList, queryForList, queryForList, queryForMap, queryForMap, queryForObject, queryForObject, queryForObject, queryWithRowHandler, queryWithRowHandler, update, update, update |
| Methods inherited from class org.springframework.jdbc.support.JdbcAccessor |
|---|
getExceptionTranslator, isLazyInit, setDatabaseProductName, setDataSource, setExceptionTranslator, setLazyInit |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AuthorityRepositoryIbatis()
| Method Detail |
|---|
public void setSqlMapClient(@Qualifier(value="sqlMapClient")
com.ibatis.sqlmap.client.SqlMapClient sqlMapClient)
setSqlMapClient in class org.springframework.orm.ibatis.SqlMapClientTemplatepublic Boolean removeGroupFromAuthorities(Integer id)
removeGroupFromAuthorities
removeGroupFromAuthorities in interface AuthorityRepositoryid - a Integer object.
Boolean object.public List<AuthorityDTO> getAuthorities()
getAuthorities
getAuthorities in interface AuthorityRepositoryList object.public List<AuthorityDTO> getUserAuthorities(String username)
getUserAuthorities
getUserAuthorities in interface AuthorityRepositoryusername - a String object.
public List<AuthorityDTO> getFreeAuthorities(String username)
getFreeAuthorities
getFreeAuthorities in interface AuthorityRepositoryusername - a String object.
public List<AuthorityDTO> getFreeAuthoritiesForGroup()
getFreeAuthoritiesForGroup
getFreeAuthoritiesForGroup in interface AuthorityRepositoryList object.public List<Integer> getIdItemsAuthority(Integer id)
getIdItemsAuthority
getIdItemsAuthority in interface AuthorityRepositoryid - a Integer object.
List object.public List<AuthorityDTO> getGroupAuthorities(Integer id)
getGroupAuthorities
getGroupAuthorities in interface AuthorityRepositoryid - a Integer object.
List object.
public Boolean saveAuthorities(Integer groupId,
List<Integer> authorities)
saveAuthorities in interface AuthorityRepositorygroupId - a Integer object.authorities - a List object.
public Integer getAuthoritiesNumber()
getAuthoritiesNumber
getAuthoritiesNumber in interface AuthorityRepositoryInteger object.public AuthorityDTO getAuthority(Integer id)
getAuthority in interface AuthorityRepositoryid - a Integer object.
public List<AuthorityDTO> getAuthorities(Pager pager)
getAuthorities
getAuthorities in interface AuthorityRepositorypager - a Pager object.
public Boolean removeAuthority(Integer id)
removeAuthority in interface AuthorityRepositoryid - a Integer object.
public Boolean deleteUserGroups(String username)
deleteUserGroups in interface AuthorityRepositoryusername - a String object.
public Boolean save(AuthorityDTO authority)
save in interface AuthorityRepositoryauthority - a AuthorityDTO object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||