public class Authority extends Object implements Serializable
Constructor and Description |
---|
Authority(AuthorityDTO authority,
AuthorityService authorityService,
AclItemService aclItemService)
Constructor used by AuthorityFactory
|
Modifier and Type | Method and Description |
---|---|
List<?> |
getAllItems()
Return a list of all items manageable by authorities
|
List<AuthorityDTO> |
getAuthorities(Pager pager)
Return a paginated list of anemic authorities
|
AuthorityView |
getAuthorityView()
Return a read only Autority
|
String |
getDescription()
Return the human readable description of this Authority
|
List<?> |
getFreeItems()
getFreeItems
|
Integer |
getId()
Authority unique identifier
|
List<?> |
getItems()
Return a list of all items managed by this Authority
|
String |
getName()
Return the name of the Authority
|
boolean |
hasItems()
hasItems
|
boolean |
remove()
Remove this Autority
|
void |
save()
Save the internal state of the Authority
|
void |
setNewItems(List<?> items)
Overwrite the items assigned to this Autority
|
public Authority(AuthorityDTO authority, AuthorityService authorityService, AclItemService aclItemService)
authority
- authorityService
- authorityService
- a AuthorityService
object.aclItemService
- a AclItemService
object.public List<AuthorityDTO> getAuthorities(Pager pager)
public AuthorityView getAuthorityView()
public boolean hasItems()
hasItems
public void save()
public void setNewItems(List<?> items)
items
- a List
object.public boolean remove()
public String getDescription()
public Integer getId()
public List<?> getAllItems()
public List<?> getItems()
public String getName()
Copyright © 2015. All Rights Reserved.