KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ozoneDB > adminGui > feature > account > users > UserItem


1 //// You can redistribute this software and/or modify it under the terms of
2
// the Ozone Library License version 1 published by ozone-db.org.
3
//
4
// The original code and portions created by SMB are
5
// Copyright (C) 1997-@year@ by SMB GmbH. All rights reserved.
6
//
7
package org.ozoneDB.adminGui.feature.account.users;
8
9 import org.ozoneDB.adminGui.feature.account.AccountItem;
10 import org.ozoneDB.adminGui.feature.account.groups.GroupItem;
11
12
13 //#############################################################################
14
/**
15  * This class creates users objects that are loaded into the Groups tree.
16  *
17  * @author <p align=center>Ibsen Ramos-Bonilla
18  * <br>Copyright &copy 1997-@year@ by SMB GmbH. All Rights Reserved.</p>
19  *
20  * @version 1.0
21  */

22 //#############################################################################
23

24 public class UserItem extends AccountItem {
25
26     /** The parent group instance holding this account. */
27     private GroupItem gItem = null;
28
29
30     /**
31      * Overloaded constructor initializes the a new item.
32      *
33      * @param gItem - the parent group node.
34      * @param name - the item name.
35      * @param id - the item id.
36      */

37     public UserItem(GroupItem gItem, String JavaDoc name, int id) {
38         super(name, id);
39         this.gItem = gItem;
40     }
41
42     /**
43      * This method returns the handle to the parent group node.
44      *
45      * @return GroupItem - parent group item.
46      */

47     public GroupItem getGroup() {
48         return this.gItem;
49     }
50
51     /**
52      * This method disconnects the current account from its parent.
53      */

54     public void orphan() {
55         this.gItem = null;
56     }
57
58 } //--------------------------------- E O F -----------------------------------
59

60
61
Popular Tags