org.ozoneDB.adminGui.feature.account.groups
Class GroupAccount

java.lang.Object
  extended byorg.ozoneDB.adminGui.feature.account.groups.GroupAccount
All Implemented Interfaces:
IGroup

public class GroupAccount
extends java.lang.Object
implements IGroup

This class manages the groups accounts and takes care of communicating with the database.

Version:
1.0
Author:

Ibsen Ramos-Bonilla
Copyright © 1997-2004 by SMB GmbH. All Rights Reserved.


Constructor Summary
GroupAccount(GroupPanel parent)
          Overloaded constructor with a handle to the parent.
 
Method Summary
 org.ozoneDB.DxLib.DxCollection allGroups()
          This method gets the collection of groups.
 void assign()
          This method assigns an account to a selected group.
 void assignUsers(GroupItem gItem, java.util.Vector users)
          This is the method that assigns users to a new group in the tree.
 void create()
          This method creates a new group.
 void list()
          This method lists all the groups in the database.
 void populateGroups(org.ozoneDB.DxLib.DxCollection groups)
          This is the method that actually populates the groups into the tree.
 void remove()
          This method removes a group from the database.
 void unassign()
          This method unassigns an account from a selected group.
 void unassign(UserItem uItem)
          This method unassigns an account from a selected group.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroupAccount

public GroupAccount(GroupPanel parent)
Overloaded constructor with a handle to the parent.

Parameters:
parent - - a handle to the parent GroupPanel object.
Method Detail

create

public void create()
This method creates a new group.

Specified by:
create in interface IGroup

remove

public void remove()
This method removes a group from the database.

Specified by:
remove in interface IGroup

assign

public void assign()
This method assigns an account to a selected group.


unassign

public void unassign()
This method unassigns an account from a selected group.


unassign

public void unassign(UserItem uItem)
This method unassigns an account from a selected group.


list

public void list()
This method lists all the groups in the database.

Specified by:
list in interface IGroup

allGroups

public org.ozoneDB.DxLib.DxCollection allGroups()
This method gets the collection of groups.

Returns:
DxCollection - list of groups in database.

populateGroups

public void populateGroups(org.ozoneDB.DxLib.DxCollection groups)
This is the method that actually populates the groups into the tree.

Parameters:
groups - - the collection of groups objects in the database.

assignUsers

public void assignUsers(GroupItem gItem,
                        java.util.Vector users)
This is the method that assigns users to a new group in the tree.

Parameters:
gItem - - one group out of the groups collection.
users - - the list of users to add.


Copyright © 2004 The Ozone Database Project - www.ozone-db.org. All Rights Reserved.