Java Doc 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 Reference  Class Diagram Java Document (Java Doc) 


org.nemesis.forum.ProfileManager

All known Subclasses:   org.nemesis.forum.impl.DbProfileManager,  org.nemesis.forum.proxy.ProfileManagerProxy,
ProfileManager
public interface ProfileManager (Code)
Manages Users and Groups.




Method Summary
public  GroupcreateGroup(String name)
     Factory method for creating a new Group.
public  UsercreateUser(String username, String password, String email)
     Factory method for creating a new User.
public  voiddeleteGroup(Group group)
     Deletes a Group.
public  voiddeleteUser(User user)
     Deletes a User.
public  UsergetAnonymousUser()
     Returns the special "anonymous user" object.
public  GroupgetGroup(int groupID)
     Gets a Group by ID.
public  GroupgetGroup(String name)
     Gets a Group by name.
public  intgetGroupCount()
     Returns the number of groups in the system.
public  UsergetSpecialUser()
     Returns the "special user" object.
public  UsergetUser(int userID)
     Returns a User specified by their id.
Parameters:
  userid - the id of the User to lookup.
public  UsergetUser(String username)
     Returns a User specified by username.
public  intgetUserCount()
     Returns the numer of users in the system.
public  Iteratorgroups()
     Returns an iterator for all groups in the system.
public  Iteratorgroups(int startIndex, int numResults)
     Returns an iterator for all groups starting at startIndex with the given number of results.
public  intuserMessageCount(User user, Forum forum)
     Returns the number of messages a user has posted in a particular forum.
Parameters:
  user - the user you want results for.
Parameters:
  forum - the forum you want to check results in.
public  IteratoruserMessages(User user, Forum forum)
     Returns an iterator for all the messages that a user posted in a particular forum.
public  Iteratorusers()
     Retruns an iterator for all users.
public  Iteratorusers(int startIndex, int numResults)
     Returns an iterator for all users starting at startIndex with the given number of results.



Method Detail
createGroup
public Group createGroup(String name) throws UnauthorizedException, GroupAlreadyExistsException(Code)
Factory method for creating a new Group. A unique name is the only required field.
Parameters:
  name - the new and unique name for the group. a new Group.
throws:
  GroupAlreadyExistsException - if the group name already exists inthe system.



createUser
public User createUser(String username, String password, String email) throws UserAlreadyExistsException(Code)
Factory method for creating a new User. A password, email address, and unique username are all required fields to create a new User.
Parameters:
  username - the new and unique username for the account.
Parameters:
  password - the password for the account as plain text.
Parameters:
  email - the email address for the account. a new User.
throws:
  UserAlreadyExistsException - if the username already exists inthe system.



deleteGroup
public void deleteGroup(Group group) throws UnauthorizedException(Code)
Deletes a Group.
Parameters:
  group - the group to delete.
throws:
  UnauthorizedException -



deleteUser
public void deleteUser(User user) throws UnauthorizedException(Code)
Deletes a User.
Parameters:
  user - the user to delete.
throws:
  UnauthorizedException -



getAnonymousUser
public User getAnonymousUser()(Code)
Returns the special "anonymous user" object.



getGroup
public Group getGroup(int groupID) throws GroupNotFoundException(Code)
Gets a Group by ID. throws GroupNotFoundException if the group does not exist.



getGroup
public Group getGroup(String name) throws GroupNotFoundException(Code)
Gets a Group by name. throws GroupNotFoundException if the group does not exist.



getGroupCount
public int getGroupCount()(Code)
Returns the number of groups in the system.



getSpecialUser
public User getSpecialUser()(Code)
Returns the "special user" object. The special user represents any valid user in the system. Getting a handle on this object is only really useful for setting permissions on forums. For example, if you want to allow any registered user to post messgages in a forum, add a user permission for posting messages with the special user as the User parameter.



getUser
public User getUser(int userID) throws UserNotFoundException(Code)
Returns a User specified by their id.
Parameters:
  userid - the id of the User to lookup. the User specified by the given id.
throws:
  UserNotFoundException - if the user does not exist.



getUser
public User getUser(String username) throws UserNotFoundException(Code)
Returns a User specified by username. throws UserNotFoundException if the user does not exist.



getUserCount
public int getUserCount()(Code)
Returns the numer of users in the system.



groups
public Iterator groups()(Code)
Returns an iterator for all groups in the system. an Iterator for all groups.



groups
public Iterator groups(int startIndex, int numResults)(Code)
Returns an iterator for all groups starting at startIndex with the given number of results. This is useful to support pagination in a GUI where you may only want to display a certain number of results per page. It is possible that the number of results returned will be less than that specified by numResults if numResults is greater than the number of records left in the system to display.
Parameters:
  startIndex - the beginning index to start the results at.
Parameters:
  numResults - the total number of results to return. an Iterator for all groups in the specified range.



userMessageCount
public int userMessageCount(User user, Forum forum)(Code)
Returns the number of messages a user has posted in a particular forum.
Parameters:
  user - the user you want results for.
Parameters:
  forum - the forum you want to check results in. the number of messages the user posted in the forum.



userMessages
public Iterator userMessages(User user, Forum forum)(Code)
Returns an iterator for all the messages that a user posted in a particular forum.



users
public Iterator users()(Code)
Retruns an iterator for all users.



users
public Iterator users(int startIndex, int numResults)(Code)
Returns an iterator for all users starting at startIndex with the given number of results. This is useful to support pagination in a GUI where you may only want to display a certain number of results per page. It is possible that the number of results returned will be less than that specified by numResults if numResults is greater than the number of records left in the system to display.
Parameters:
  startIndex - the beginning index to start the results at.
Parameters:
  numResults - the total number of results to return. an Iterator for all users in the specified range.



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.