KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > opencms > db > CmsUserProjectSettings


1 /*
2  * File : $Source: /usr/local/cvs/opencms/src/org/opencms/db/CmsUserProjectSettings.java,v $
3  * Date : $Date: 2005/06/23 11:11:24 $
4  * Version: $Revision: 1.4 $
5  *
6  * This library is part of OpenCms -
7  * the Open Source Content Mananagement System
8  *
9  * Copyright (c) 2005 Alkacon Software GmbH (http://www.alkacon.com)
10  *
11  * This library is free software; you can redistribute it and/or
12  * modify it under the terms of the GNU Lesser General Public
13  * License as published by the Free Software Foundation; either
14  * version 2.1 of the License, or (at your option) any later version.
15  *
16  * This library is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19  * Lesser General Public License for more details.
20  *
21  * For further information about Alkacon Software GmbH, please see the
22  * company website: http://www.alkacon.com
23  *
24  * For further information about OpenCms, please see the
25  * project website: http://www.opencms.org
26  *
27  * You should have received a copy of the GNU Lesser General Public
28  * License along with this library; if not, write to the Free Software
29  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
30  */

31
32 package org.opencms.db;
33
34 import org.opencms.util.CmsUUID;
35
36 import java.io.Serializable JavaDoc;
37
38 /**
39  * Bean for holding user specific project settings.<p>
40  *
41  * @author Michael Moossen
42  *
43  * @version $Revision: 1.4 $
44  *
45  * @since 6.0.0
46  */

47 public class CmsUserProjectSettings implements Serializable JavaDoc {
48
49     /** use well defined serialVersionUID to avoid issues with serialization. */
50     private static final long serialVersionUID = 2836833718390927358L;
51
52     /** delete after publish flag. */
53     private boolean m_deleteAfterPublishing;
54
55     /** id of the default manager group. */
56     private CmsUUID m_managerGroup;
57
58     /** default mode for the files view. */
59     private CmsProjectResourcesDisplayMode m_projectFilesMode;
60
61     /** id of the default user group. */
62     private CmsUUID m_userGroup;
63
64     /**
65      * Default constructor.<p>
66      */

67     public CmsUserProjectSettings() {
68
69         //noop
70
}
71
72     /**
73      * Returns the manager Group id.<p>
74      *
75      * @return the manager Group id
76      */

77     public CmsUUID getManagerGroup() {
78
79         return m_managerGroup;
80     }
81
82     /**
83      * Returns the project Files Mode.<p>
84      *
85      * @return the project Files Mode
86      */

87     public CmsProjectResourcesDisplayMode getProjectFilesMode() {
88
89         return m_projectFilesMode;
90     }
91
92     /**
93      * Returns the user Group id.<p>
94      *
95      * @return the user Group id
96      */

97     public CmsUUID getUserGroup() {
98
99         return m_userGroup;
100     }
101
102     /**
103      * Returns the delete After Publish flag.<p>
104      *
105      * @return the delete After Publish flag
106      */

107     public boolean isDeleteAfterPublishing() {
108
109         return m_deleteAfterPublishing;
110     }
111
112     /**
113      * Sets the delete After Publish flag.<p>
114      *
115      * @param deleteAfterPublish the delete After Publish flag to set
116      */

117     public void setDeleteAfterPublishing(boolean deleteAfterPublish) {
118
119         m_deleteAfterPublishing = deleteAfterPublish;
120     }
121
122     /**
123      * Sets the manager Group id.<p>
124      *
125      * @param managerGroup the manager Group id to set
126      */

127     public void setManagerGroup(CmsUUID managerGroup) {
128
129         m_managerGroup = managerGroup;
130     }
131
132     /**
133      * Sets the project Files Mode.<p>
134      *
135      * @param projectFilesMode the project Files Mode to set
136      */

137     public void setProjectFilesMode(CmsProjectResourcesDisplayMode projectFilesMode) {
138
139         m_projectFilesMode = projectFilesMode;
140     }
141
142     /**
143      * Sets the user Group id.<p>
144      *
145      * @param userGroup the user Group id to set
146      */

147     public void setUserGroup(CmsUUID userGroup) {
148
149         m_userGroup = userGroup;
150     }
151 }
152
Free Books   Free Magazines  
Popular Tags