KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > ivata > groupware > business > drive > directory > DirectoryDO


1 /*
2  * Copyright (c) 2001 - 2005 ivata limited.
3  * All rights reserved.
4  * -----------------------------------------------------------------------------
5  * ivata groupware may be redistributed under the GNU General Public
6  * License as published by the Free Software Foundation;
7  * version 2 of the License.
8  *
9  * These programs are free software; you can redistribute them and/or
10  * modify them under the terms of the GNU General Public License
11  * as published by the Free Software Foundation; version 2 of the License.
12  *
13  * These programs are distributed in the hope that they will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16  *
17  * See the GNU General Public License in the file LICENSE.txt for more
18  * details.
19  *
20  * If you would like a copy of the GNU General Public License write to
21  *
22  * Free Software Foundation, Inc.
23  * 59 Temple Place - Suite 330
24  * Boston, MA 02111-1307, USA.
25  *
26  *
27  * To arrange commercial support and licensing, contact ivata at
28  * http://www.ivata.com/contact.jsp
29  * -----------------------------------------------------------------------------
30  * $Log: DirectoryDO.java,v $
31  * Revision 1.3 2005/04/10 20:09:43 colinmacleod
32  * Added new themes.
33  * Changed id type to String.
34  * Changed i tag to em and b tag to strong.
35  * Improved PicoContainerFactory with NanoContainer scripts.
36  *
37  * Revision 1.2 2005/04/09 17:19:43 colinmacleod
38  * Changed copyright text to GPL v2 explicitly.
39  *
40  * Revision 1.1.1.1 2005/03/10 17:51:52 colinmacleod
41  * Restructured ivata op around Hibernate/PicoContainer.
42  * Renamed ivata groupware.
43  *
44  * Revision 1.3 2004/07/13 20:00:00 colinmacleod
45  * Moved project to POJOs from EJBs.
46  * Applied PicoContainer to services layer (replacing session EJBs).
47  * Applied Hibernate to persistence layer (replacing entity EJBs).
48  *
49  * Revision 1.2 2004/03/21 21:16:25 colinmacleod
50  * Shortened name to ivata op.
51  *
52  * Revision 1.1.1.1 2004/01/27 20:58:26 colinmacleod
53  * Moved ivata op to sourceforge.
54  *
55  * Revision 1.2 2003/10/15 14:05:21 colin
56  * fixing for XDoclet
57  *
58  * Revision 1.4 2003/08/14 08:11:00 peter
59  * move to no path in db
60  *
61  * Revision 1.3 2003/08/05 12:21:48 peter
62  * fixed fields
63  *
64  * Revision 1.2 2003/07/29 10:45:34 peter
65  * Directory tree works (without rights)
66  *
67  * Revision 1.1 2003/07/18 17:43:58 peter
68  * initial version
69  * -----------------------------------------------------------------------------
70  */

71 package com.ivata.groupware.business.drive.directory;
72
73 import com.ivata.groupware.container.persistence.TimestampDO;
74 import com.ivata.groupware.web.tree.TreeNode;
75
76
77 /**
78  * <p>Stores a directory of the virtual drive</p>
79  *
80  * @author Peter Illes
81  * @since 2003-07-18
82  * @version $Revision: 1.3 $
83  */

84 public class DirectoryDO extends TimestampDO implements TreeNode {
85     /**
86      * <p>Name of the directory</p>
87      */

88     private String JavaDoc name;
89
90     /**
91      * <p>Parent directory</p>
92      */

93     private DirectoryDO parent;
94
95     /**
96      * <p>Get the name of the directory</p>
97      *
98      * @return the directory name
99      */

100     public String JavaDoc getName() {
101         return name;
102     }
103
104     /**
105      * <p>Get the parent directory</p>
106      *
107      * @return the parent directory
108      */

109     public DirectoryDO getParent() {
110         return parent;
111     }
112
113     /**
114      * <p>Set the name of the directory</p>
115      *
116      * @param name the directory name
117      */

118     public final void setName(final String JavaDoc name) {
119         this.name = name;
120     }
121
122     /**
123      * <p>Set the parent directory</p>
124      *
125      * @param parent the id of parent directory
126      */

127     public final void setParent(final DirectoryDO parent) {
128         this.parent = parent;
129     }
130 }
131
Popular Tags