Source Code Cross Referenced for PermissionGroup.java in  » 6.0-JDK-Modules » j2me » com » sun » midp » security » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules » j2me » com.sun.midp.security 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         *   
003:         *
004:         * Copyright  1990-2007 Sun Microsystems, Inc. All Rights Reserved.
005:         * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER
006:         * 
007:         * This program is free software; you can redistribute it and/or
008:         * modify it under the terms of the GNU General Public License version
009:         * 2 only, as published by the Free Software Foundation.
010:         * 
011:         * This program is distributed in the hope that it will be useful, but
012:         * WITHOUT ANY WARRANTY; without even the implied warranty of
013:         * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
014:         * General Public License version 2 for more details (a copy is
015:         * included at /legal/license.txt).
016:         * 
017:         * You should have received a copy of the GNU General Public License
018:         * version 2 along with this work; if not, write to the Free Software
019:         * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
020:         * 02110-1301 USA
021:         * 
022:         * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
023:         * Clara, CA 95054 or visit www.sun.com if you need additional
024:         * information or have any questions.
025:         */
026:
027:        package com.sun.midp.security;
028:
029:        /**
030:         * The attributes of a permission group.
031:         */
032:        public final class PermissionGroup {
033:            /** Name string ID. */
034:            private int name;
035:
036:            /** Settings question ID. */
037:            private int settingsQuestion;
038:
039:            /** Disable setting choice string ID. */
040:            private int disableSettingChoice;
041:
042:            /** Title string ID for the permission dialog. */
043:            private int runtimeDialogTitle;
044:
045:            /** Question string ID for the permission dialog. */
046:            private int runtimeQuestion;
047:
048:            /** Oneshot question string ID for the permission dialog. */
049:            private int runtimeOneshotQuestion;
050:
051:            /** Identified Third Party domain maxium permission level. */
052:            private byte identifiedMaxiumLevel;
053:
054:            /** Identified Third Party domain default permission level. */
055:            private byte identifiedDefaultLevel;
056:
057:            /** Unidentified Third Party domain maxium permission level. */
058:            private byte unidentifiedMaxiumLevel;
059:
060:            /** Unidentified Third Party domain default permission level. */
061:            private byte unidentifiedDefaultLevel;
062:
063:            /**
064:             * Constructs a third party domain permission group.
065:             *
066:             * @param theName name of the group
067:             * @param theSettingsQuestion question for the settings dialog
068:             * @param theDisableSettingChoice disable setting choice
069:             * @param theRuntimeDialogTitle Title for the runtime permission dialog
070:             * @param theRuntimeQuestion Question for the runtime permission dialog
071:             * @param theRuntimeOneshotQuestion Oneshot question for the runtime
072:             *                                  permission dialog
073:             * @param theIdentifiedMaxiumLevel Identified Third Party domain
074:             *                                 maxium permission level
075:             * @param theIdentifiedDefaultLevel Identified Third Party domain
076:             *                                  default permission level
077:             * @param theUnidentifiedMaxiumLevel Unidentified Third Party domain
078:             *                                   maxium permission level
079:             * @param theUnidentifiedDefaultLevel Unidentified Third Party domain
080:             *                                    default permission level
081:             */
082:            PermissionGroup(int theName, int theSettingsQuestion,
083:                    int theDisableSettingChoice, int theRuntimeDialogTitle,
084:                    int theRuntimeQuestion, int theRuntimeOneshotQuestion,
085:                    byte theIdentifiedMaxiumLevel,
086:                    byte theIdentifiedDefaultLevel,
087:                    byte theUnidentifiedMaxiumLevel,
088:                    byte theUnidentifiedDefaultLevel) {
089:
090:                name = theName;
091:                settingsQuestion = theSettingsQuestion;
092:                disableSettingChoice = theDisableSettingChoice;
093:                runtimeDialogTitle = theRuntimeDialogTitle;
094:                runtimeQuestion = theRuntimeQuestion;
095:                identifiedMaxiumLevel = theIdentifiedMaxiumLevel;
096:                identifiedDefaultLevel = theIdentifiedDefaultLevel;
097:                unidentifiedMaxiumLevel = theUnidentifiedMaxiumLevel;
098:                unidentifiedDefaultLevel = theUnidentifiedDefaultLevel;
099:            }
100:
101:            /**
102:             * Get the name string ID.
103:             *
104:             * @return string ID or zero if there is no name for the settings dialog
105:             */
106:            public int getName() {
107:                return name;
108:            }
109:
110:            /**
111:             * Get the settings question ID.
112:             *
113:             * @return stringID or 0 if there is no question
114:             */
115:            public int getSettingsQuestion() {
116:                return settingsQuestion;
117:            }
118:
119:            /**
120:             * Get the disable setting choice string ID.
121:             *
122:             * @return string ID or 0 if there is not disable setting choice
123:             */
124:            public int getDisableSettingChoice() {
125:                return disableSettingChoice;
126:            }
127:
128:            /**
129:             * Get the title string ID for the permission dialog.
130:             *
131:             * @return string ID
132:             */
133:            public int getRuntimeDialogTitle() {
134:                return runtimeDialogTitle;
135:            }
136:
137:            /**
138:             * Get the question string ID for the permission dialog.
139:             *
140:             * @return string ID
141:             */
142:            public int getRuntimeQuestion() {
143:                return runtimeQuestion;
144:            }
145:
146:            /**
147:             * Get the oneshot question string ID for the permission dialog.
148:             *
149:             * @return string ID
150:             */
151:            public int getRuntimeOneshotQuestion() {
152:                if (runtimeOneshotQuestion == 0) {
153:                    return runtimeQuestion;
154:                }
155:
156:                return runtimeOneshotQuestion;
157:            }
158:
159:            /**
160:             * Get the identified Third Party domain maxium permission level.
161:             *
162:             * @return permission level
163:             */
164:            public byte getIdentifiedMaxiumLevel() {
165:                return identifiedMaxiumLevel;
166:            }
167:
168:            /**
169:             * Get the identified Third Party domain default permission level.
170:             *
171:             * @return permission level
172:             */
173:            public byte getIdentifiedDefaultLevel() {
174:                return identifiedDefaultLevel;
175:            }
176:
177:            /**
178:             * Get the unidentified Third Party domain maxium permission level.
179:             *
180:             * @return permission level
181:             */
182:            public byte getUnidentifiedMaxiumLevel() {
183:                return unidentifiedMaxiumLevel;
184:            }
185:
186:            /**
187:             * Get the unidentified Third Party domain default permission level.
188:             *
189:             * @return permission level
190:             */
191:            public byte getUnidentifiedDefaultLevel() {
192:                return unidentifiedDefaultLevel;
193:            }
194:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.