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
Version:
$Id: $
Author:
Massimiliano Dessì (desmax74@yahoo.it)

Constructor Summary
Group(GroupDTO group, AuthorityService authorityService, GroupService groupService)
          Constructor for Group.
 
Method Summary
 List<?> getAllGroups()
          Return a list of all items manageable by authorities
 List<?> getAuthorities()
          getAuthorities
 List<?> getFreeAuthorities()
          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()
          hasAuthorities
 boolean hasUser()
          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)

Constructor for Group.

Parameters:
group - a GroupDTO object.
authorityService - a AuthorityService object.
groupService - a GroupService object.
Method Detail

getAuthorities

public List<?> getAuthorities()

getAuthorities

Returns:
a List object.

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 - a Pager object.
Returns:
a List object.

getGroupView

public GroupView getGroupView()
Return a read only Group

Returns:
authority

hasAuthorities

public boolean hasAuthorities()

hasAuthorities

Returns:
hasAuthorities

hasUser

public boolean hasUser()

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

Parameters:
items - a List object.

remove

public boolean remove()
Remove this Group

Returns:
a boolean.

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()

getFreeAuthorities

Returns:
a List object.


Copyright © 2011. All Rights Reserved.