@Service(value="authorityService") public class AuthorityServiceImpl extends Object implements AuthorityService
AuthorityServiceImpl class.
Constructor and Description |
---|
AuthorityServiceImpl() |
Modifier and Type | Method and Description |
---|---|
List<AuthorityDTO> |
getAuthorities()
getAuthorities
|
List<AuthorityDTO> |
getAuthorities(Pager pager)
getAuthorities
|
Integer |
getAuthoritiesNumber()
getAuthoritiesNumber
|
AuthorityDTO |
getAuthority(Integer id)
getAuthority
|
List<AuthorityDTO> |
getFreeAuthorities(String username)
getFreeAuthorities
|
List<AuthorityDTO> |
getFreeAuthoritiesForGroup()
getFreeAuthoritiesForGroup
|
List<AuthorityDTO> |
getGroupAuthorities(Integer id)
getGroupAuthorities
|
List<Integer> |
getIdItemsAuthority(Integer id)
getIdItemsAuthority
|
Integer |
getTotalItemsNumber()
getTotalItemsNumber
|
List<AuthorityDTO> |
getUserAuthorities(String username)
getUserAuthorities
|
boolean |
insertGroupAuthorities(Integer id,
List<Integer> authorities)
Insert a list of authorities assigned to a group
|
boolean |
removeAuthority(Integer id)
removeAuthority
|
boolean |
save(AuthorityDTO authority)
store an authority
|
void |
setAuthorityRepository(AuthorityRepository authorityRepository)
Setter for the field
authorityRepository . |
public List<AuthorityDTO> getGroupAuthorities(Integer id)
getGroupAuthorities
getGroupAuthorities
in interface AuthorityService
id
- a Integer
object.public List<AuthorityDTO> getFreeAuthoritiesForGroup()
getFreeAuthoritiesForGroup
getFreeAuthoritiesForGroup
in interface AuthorityService
List
object.public List<AuthorityDTO> getAuthorities()
getAuthorities
getAuthorities
in interface AuthorityService
List
object.public boolean insertGroupAuthorities(Integer id, List<Integer> authorities)
insertGroupAuthorities
in interface AuthorityService
id
- a Integer
object.authorities
- a List
object.public List<AuthorityDTO> getFreeAuthorities(String username)
getFreeAuthorities
getFreeAuthorities
in interface AuthorityService
username
- a String
object.public List<AuthorityDTO> getUserAuthorities(String username)
getUserAuthorities
getUserAuthorities
in interface AuthorityService
username
- a String
object.public Integer getTotalItemsNumber()
getTotalItemsNumber
getTotalItemsNumber
in interface PagerService
Integer
object.public AuthorityDTO getAuthority(Integer id)
getAuthority
getAuthority
in interface AuthorityService
id
- a Integer
object.public List<AuthorityDTO> getAuthorities(Pager pager)
getAuthorities
getAuthorities
in interface AuthorityService
pager
- a Pager
object.public boolean removeAuthority(Integer id)
removeAuthority
removeAuthority
in interface AuthorityService
id
- a Integer
object.public boolean save(AuthorityDTO authority)
save
in interface AuthorityService
authority
- a AuthorityDTO
object.public Integer getAuthoritiesNumber()
getAuthoritiesNumber
getAuthoritiesNumber
in interface AuthorityService
Integer
object.public List<Integer> getIdItemsAuthority(Integer id)
getIdItemsAuthority
getIdItemsAuthority
in interface AuthorityService
id
- a Integer
object.@Autowired public void setAuthorityRepository(AuthorityRepository authorityRepository)
Setter for the field authorityRepository
.
authorityRepository
- a AuthorityRepository
object.Copyright © 2015. All Rights Reserved.