Source Code Cross Referenced for ProfileManager.java in  » Forum » nemesis-forum » org » nemesis » forum » 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 » Forum » nemesis forum » org.nemesis.forum 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * NEMESIS-FORUM.
003:         * Copyright (C) 2002  David Laurent(lithium2@free.fr). All rights reserved.
004:         * 
005:         * Copyright (c) 2000 The Apache Software Foundation. All rights reserved.
006:         * 
007:         * Copyright (C) 2001 Yasna.com. All rights reserved.
008:         * 
009:         * Copyright (C) 2000 CoolServlets.com. All rights reserved.
010:         * 
011:         * NEMESIS-FORUM. is free software; you can redistribute it and/or
012:         * modify it under the terms of the Apache Software License, Version 1.1,
013:         * or (at your option) any later version.
014:         * 
015:         * NEMESIS-FORUM core framework, NEMESIS-FORUM backoffice, NEMESIS-FORUM frontoffice
016:         * application are parts of NEMESIS-FORUM and are distributed under
017:         * same terms of licence.
018:         * 
019:         * 
020:         * NEMESIS-FORUM includes software developed by the Apache Software Foundation (http://www.apache.org/)
021:         * and software developed by CoolServlets.com (http://www.coolservlets.com).
022:         * and software developed by Yasna.com (http://www.yasna.com).
023:         * 
024:         */
025:
026:        package org.nemesis.forum;
027:
028:        import java.util.Iterator;
029:
030:        import org.nemesis.forum.exception.GroupAlreadyExistsException;
031:        import org.nemesis.forum.exception.GroupNotFoundException;
032:        import org.nemesis.forum.exception.UnauthorizedException;
033:        import org.nemesis.forum.exception.UserAlreadyExistsException;
034:        import org.nemesis.forum.exception.UserNotFoundException;
035:
036:        /**
037:         * Manages Users and Groups.
038:         */
039:        public interface ProfileManager {
040:
041:            /**
042:             * Factory method for creating a new User. A password, email address, and
043:             * unique username are all required fields to create a new User.
044:             *
045:             * @param username the new and unique username for the account.
046:             * @param password the password for the account as plain text.
047:             * @param email the email address for the account.
048:             * @return a new User.
049:             * @throws UserAlreadyExistsException if the username already exists in
050:             *      the system.
051:             */
052:            public User createUser(String username, String password,
053:                    String email) throws UserAlreadyExistsException;
054:
055:            /**
056:             * Factory method for creating a new Group. A unique name is the only
057:             * required field.
058:             *
059:             * @param name the new and unique name for the group.
060:             * @return a new Group.
061:             * @throws GroupAlreadyExistsException if the group name already exists in
062:             *      the system.
063:             */
064:            public Group createGroup(String name) throws UnauthorizedException,
065:                    GroupAlreadyExistsException;
066:
067:            /**
068:             * Returns a User specified by their id.
069:             *
070:             * @param userid the id of the User to lookup.
071:             * @return the User specified by the given id.
072:             * @throws UserNotFoundException if the user does not exist.
073:             */
074:            public User getUser(int userID) throws UserNotFoundException;
075:
076:            /**
077:             * Returns a User specified by username.
078:             *
079:             * throws UserNotFoundException if the user does not exist.
080:             */
081:            public User getUser(String username) throws UserNotFoundException;
082:
083:            /**
084:             * Returns the special "anonymous user" object.
085:             */
086:            public User getAnonymousUser();
087:
088:            /**
089:             * Returns the "special user" object. The special user represents any
090:             * valid user in the system. Getting a handle on this object is only
091:             * really useful for setting permissions on forums. For example, if you
092:             * want to allow any registered user to post messgages in a forum, add
093:             * a user permission for posting messages with the special user as the
094:             * User parameter.
095:             */
096:            public User getSpecialUser();
097:
098:            /**
099:             * Gets a Group by ID.
100:             *
101:             * throws GroupNotFoundException if the group does not exist.
102:             */
103:            public Group getGroup(int groupID) throws GroupNotFoundException;
104:
105:            /**
106:             * Gets a Group by name.
107:             *
108:             * throws GroupNotFoundException if the group does not exist.
109:             */
110:            public Group getGroup(String name) throws GroupNotFoundException;
111:
112:            /**
113:             * Deletes a User.
114:             *
115:             * @param user the user to delete.
116:             * @throws UnauthorizedException
117:             */
118:            public void deleteUser(User user) throws UnauthorizedException;
119:
120:            /**
121:             * Deletes a Group.
122:             *
123:             * @param group the group to delete.
124:             * @throws UnauthorizedException
125:             */
126:            public void deleteGroup(Group group) throws UnauthorizedException;
127:
128:            /**
129:             * Returns the numer of users in the system.
130:             */
131:            public int getUserCount();
132:
133:            /**
134:             * Returns the number of groups in the system.
135:             */
136:            public int getGroupCount();
137:
138:            /**
139:             * Retruns an iterator for all users.
140:             */
141:            public Iterator users();
142:
143:            /**
144:             * Returns an iterator for all users starting at startIndex with the
145:             * given number of results. This is useful to support pagination in a GUI
146:             * where you may only want to display a certain number of results per page.
147:             * It is possible that the number of results returned will be less than
148:             * that specified by numResults if numResults is greater than the number
149:             * of records left in the system to display.
150:             *
151:             * @param startIndex the beginning index to start the results at.
152:             * @param numResults the total number of results to return.
153:             * @return an Iterator for all users in the specified range.
154:             */
155:            public Iterator users(int startIndex, int numResults);
156:
157:            /**
158:             * Returns an iterator for all groups in the system.
159:             *
160:             * @return an Iterator for all groups.
161:             */
162:            public Iterator groups();
163:
164:            /**
165:             * Returns an iterator for all groups starting at startIndex with the
166:             * given number of results. This is useful to support pagination in a GUI
167:             * where you may only want to display a certain number of results per page.
168:             * It is possible that the number of results returned will be less than
169:             * that specified by numResults if numResults is greater than the number
170:             * of records left in the system to display.
171:             *
172:             * @param startIndex the beginning index to start the results at.
173:             * @param numResults the total number of results to return.
174:             * @return an Iterator for all groups in the specified range.
175:             */
176:            public Iterator groups(int startIndex, int numResults);
177:
178:            /**
179:             * Returns the number of messages a user has posted in a particular forum.
180:             *
181:             * @param user the user you want results for.
182:             * @param forum the forum you want to check results in.
183:             * @return the number of messages the user posted in the forum.
184:             */
185:            public int userMessageCount(User user, Forum forum);
186:
187:            /**
188:             * Returns an iterator for all the messages that a user posted in a
189:             * particular forum.
190:             */
191:            public Iterator userMessages(User user, Forum forum);
192:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.