org.opennms.acl.domain
Class Group

java.lang.Object
  extended by org.opennms.acl.domain.Group

public class Group
extends Object

This entity is a ACL group.

Since:
jdk 1.5.0
Author:
Massimiliano Dessì (desmax74@yahoo.it)

Constructor Summary
Group(GroupDTO group, AuthorityService authorityService, GroupService groupService)
           
 
Method Summary
 List<?> getAllGroups()
          Return a list of all items manageable by authorities
 List<?> getAuthorities()
           
 List<?> getFreeAuthorities()
           
 List<GroupDTO> getGroups(Pager pager)
          Return a paginated list of anemic group
 GroupView getGroupView()
          Return a read only Group
 Integer getId()
          Group unique identifier
 String getName()
          Return the human readable description of this Group
 boolean hasAuthorities()
           
 boolean hasUser()
           
 boolean remove()
          Remove this Group
 void save()
          Save the internal state of the Group
 void setNewAuthorities(List<?> items)
          Overwrite the authorities assigned to this Group
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Group

public Group(GroupDTO group,
             AuthorityService authorityService,
             GroupService groupService)
Method Detail

getAuthorities

public List<?> getAuthorities()

getAllGroups

public List<?> getAllGroups()
Return a list of all items manageable by authorities

Returns:
all items

getGroups

public List<GroupDTO> getGroups(Pager pager)
Return a paginated list of anemic group

Parameters:
pager -
Returns:

getGroupView

public GroupView getGroupView()
Return a read only Group

Returns:
authority

hasAuthorities

public boolean hasAuthorities()
Returns:
hasAuthorities

hasUser

public boolean hasUser()
Returns:
hasUsers

save

public void save()
Save the internal state of the Group


setNewAuthorities

public void setNewAuthorities(List<?> items)
Overwrite the authorities assigned to this Group


remove

public boolean remove()
Remove this Group


getName

public String getName()
Return the human readable description of this Group

Returns:
description

getId

public Integer getId()
Group unique identifier

Returns:
group's identifier

getFreeAuthorities

public List<?> getFreeAuthorities()


Copyright © 2009. All Rights Reserved.