Java Doc for UserManager.java in  » Blogger-System » apache-roller-3.1 » org » apache » roller » business » 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 » Blogger System » apache roller 3.1 » org.apache.roller.business 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.roller.business.UserManager

All known Subclasses:   org.apache.roller.business.hibernate.HibernateUserManagerImpl,
UserManager
public interface UserManager (Code)
Manages users, weblogs, permissions, and weblog pages.




Method Summary
public  voidaddUser(UserData newUser)
     Add new user object to Roller.
public  voidaddWebsite(WebsiteData newWebsite)
     Add new website, give creator admin permission, creates blogroll, creates categories and other objects required for new website.
public  ListgetAllPermissions(WebsiteData website)
    
public  ListgetAllPermissions(UserData user)
    
public  ListgetMostCommentedWebsites(Date startDate, Date endDate, int offset, int length)
     Get websites ordered by descending number of comments.
public  WeblogTemplategetPage(String id)
     Get page by id.
public  WeblogTemplategetPageByLink(WebsiteData w, String p)
     Get website's page by link.
public  WeblogTemplategetPageByName(WebsiteData w, String p)
     Get user's page by name.
public  ListgetPages(WebsiteData w)
    
public  ListgetPendingPermissions(UserData user)
     Get pending permissions for user.
public  ListgetPendingPermissions(WebsiteData user)
     Get pending permissions for website.
public  PermissionsDatagetPermissions(String id)
     Get permissions object by id.
public  PermissionsDatagetPermissions(WebsiteData website, UserData user)
     Get permissions of user in website.
public  UserDatagetUser(String id)
     Get user by id.
public  UserDatagetUserByUserName(String userName)
    
public  UserDatagetUserByUserName(String userName, Boolean enabled)
    
public  MapgetUserNameLetterMap()
     Get map with 26 entries, one for each letter A-Z and containing integers reflecting the number of users whose names start with each letter.
public  ListgetUsers(int offset, int length)
    
public  ListgetUsers(Boolean enabled, Date startDate, Date endDate, int offset, int length)
     Get all users, optionally include dis-enabled users.
public  ListgetUsers(WebsiteData website, Boolean enabled, int offset, int length)
     Get all users or a website.
public  ListgetUsersByLetter(char letter, int offset, int length)
    
public  ListgetUsersStartingWith(String startsWith, Boolean enabled, int offset, int length)
     Returns users whose usernames or email addresses start with a string.
public  MapgetWeblogHandleLetterMap()
     Get map with 26 entries, one for each letter A-Z and containing integers reflecting the number of weblogs whose names start with each letter.
public  ListgetWeblogsByLetter(char letter, int offset, int length)
    
public  WebsiteDatagetWebsite(String id)
     Get website object by name.
public  WebsiteDatagetWebsiteByHandle(String handle)
     Get website specified by handle (or null if enabled website not found).
public  WebsiteDatagetWebsiteByHandle(String handle, Boolean enabled)
     Get website specified by handle with option to return only enabled websites.
public  ListgetWebsites(UserData user, Boolean enabled, Boolean active, Date startDate, Date endDate, int offset, int length)
     Get websites optionally restricted by user, enabled and active status.
public  PermissionsDatainviteUser(WebsiteData website, UserData user, short perms)
    
public  voidrelease()
     Release any resources held by manager.
public  voidremovePage(WeblogTemplate page)
     Remove page.
public  voidremovePermissions(PermissionsData perms)
     Remove permissions object.
public  voidremoveUser(UserData user)
     Remove user.
public  voidremoveWebsite(WebsiteData website)
     Remove website object.
public  voidretireUser(WebsiteData website, UserData user)
    
public  voidsavePage(WeblogTemplate data)
     Store page.
public  voidsavePermissions(PermissionsData perms)
     Save permissions object.
public  voidsaveUser(UserData data)
     Store a single user.
public  voidsaveWebsite(WebsiteData data)
     Store a single weblog.



Method Detail
addUser
public void addUser(UserData newUser) throws RollerException(Code)
Add new user object to Roller. User will be given the global editor role, unless it's the first user, who will get the global admin role.
Parameters:
  user - User object to be added, initialized with name, password, etc.



addWebsite
public void addWebsite(WebsiteData newWebsite) throws RollerException(Code)
Add new website, give creator admin permission, creates blogroll, creates categories and other objects required for new website.
Parameters:
  newWebsite - New website to be created, must have creator.



getAllPermissions
public List getAllPermissions(WebsiteData website) throws RollerException(Code)
Get all permissions in website
Parameters:
  website - Website (not null) PermissionsData object



getAllPermissions
public List getAllPermissions(UserData user) throws RollerException(Code)
Get all permissions of user
Parameters:
  user - User (not null) PermissionsData object



getMostCommentedWebsites
public List getMostCommentedWebsites(Date startDate, Date endDate, int offset, int length) throws RollerException(Code)
Get websites ordered by descending number of comments.
Parameters:
  startDate - Restrict to those created after (or null for all)
Parameters:
  endDate - Restrict to those created before (or null for all)
Parameters:
  offset - Offset into results (for paging)
Parameters:
  len - Maximum number of results to return (for paging)



getPage
public WeblogTemplate getPage(String id) throws RollerException(Code)
Get page by id.



getPageByLink
public WeblogTemplate getPageByLink(WebsiteData w, String p) throws RollerException(Code)
Get website's page by link.



getPageByName
public WeblogTemplate getPageByName(WebsiteData w, String p) throws RollerException(Code)
Get user's page by name.



getPages
public List getPages(WebsiteData w) throws RollerException(Code)
Get website's pages



getPendingPermissions
public List getPendingPermissions(UserData user) throws RollerException(Code)
Get pending permissions for user.
Parameters:
  user - User (not null)



getPendingPermissions
public List getPendingPermissions(WebsiteData user) throws RollerException(Code)
Get pending permissions for website.
Parameters:
  website - Website (not null)



getPermissions
public PermissionsData getPermissions(String id) throws RollerException(Code)
Get permissions object by id.



getPermissions
public PermissionsData getPermissions(WebsiteData website, UserData user) throws RollerException(Code)
Get permissions of user in website.
Parameters:
  website - Website (not null)
Parameters:
  user - User (not null) PermissionsData object



getUser
public UserData getUser(String id) throws RollerException(Code)
Get user by id.



getUserByUserName
public UserData getUserByUserName(String userName) throws RollerException(Code)
Get user object by user name (only enabled users)



getUserByUserName
public UserData getUserByUserName(String userName, Boolean enabled) throws RollerException(Code)
Get user object by user name, optionally include dis-enabled users



getUserNameLetterMap
public Map getUserNameLetterMap() throws RollerException(Code)
Get map with 26 entries, one for each letter A-Z and containing integers reflecting the number of users whose names start with each letter.



getUsers
public List getUsers(int offset, int length) throws RollerException(Code)
Get all enabled users



getUsers
public List getUsers(Boolean enabled, Date startDate, Date endDate, int offset, int length) throws RollerException(Code)
Get all users, optionally include dis-enabled users.
Parameters:
  enabled - True for enabled only, false for disabled only, null for all
Parameters:
  startDate - Restrict to those created after (or null for all)
Parameters:
  endDate - Restrict to those created before (or null for all)



getUsers
public List getUsers(WebsiteData website, Boolean enabled, int offset, int length) throws RollerException(Code)
Get all users or a website.
Parameters:
  website - Get all users of this website (or null for all)



getUsersByLetter
public List getUsersByLetter(char letter, int offset, int length) throws RollerException(Code)
Get collection of users whose names begin with specified letter



getUsersStartingWith
public List getUsersStartingWith(String startsWith, Boolean enabled, int offset, int length) throws RollerException(Code)
Returns users whose usernames or email addresses start with a string.
Parameters:
  startsWith - String to match userNames and emailAddresses against
Parameters:
  offset - Offset into results (for paging)
Parameters:
  length - Max to return (for paging)
Parameters:
  enabled - True for only enalbed, false for disabled, null for all List of (up to length) users that match startsWith string



getWeblogHandleLetterMap
public Map getWeblogHandleLetterMap() throws RollerException(Code)
Get map with 26 entries, one for each letter A-Z and containing integers reflecting the number of weblogs whose names start with each letter.



getWeblogsByLetter
public List getWeblogsByLetter(char letter, int offset, int length) throws RollerException(Code)
Get collection of weblogs whose handles begin with specified letter



getWebsite
public WebsiteData getWebsite(String id) throws RollerException(Code)
Get website object by name.



getWebsiteByHandle
public WebsiteData getWebsiteByHandle(String handle) throws RollerException(Code)
Get website specified by handle (or null if enabled website not found).
Parameters:
  handle - Handle of website



getWebsiteByHandle
public WebsiteData getWebsiteByHandle(String handle, Boolean enabled) throws RollerException(Code)
Get website specified by handle with option to return only enabled websites.
Parameters:
  handle - Handle of website



getWebsites
public List getWebsites(UserData user, Boolean enabled, Boolean active, Date startDate, Date endDate, int offset, int length) throws RollerException(Code)
Get websites optionally restricted by user, enabled and active status.
Parameters:
  user - Get all websites for this user (or null for all)
Parameters:
  offset - Offset into results (for paging)
Parameters:
  len - Maximum number of results to return (for paging)
Parameters:
  enabled - Get all with this enabled state (or null or all)
Parameters:
  active - Get all with this active state (or null or all)
Parameters:
  startDate - Restrict to those created after (or null for all)
Parameters:
  endDate - Restrict to those created before (or null for all)



inviteUser
public PermissionsData inviteUser(WebsiteData website, UserData user, short perms) throws RollerException(Code)
Invite user to join a website with specific permissions
Parameters:
  website - Website to be joined (persistent instance)
Parameters:
  user - User to be invited (persistent instance)
Parameters:
  perms - Permissions mask (see statics in PermissionsData) New PermissionsData object, with pending=true



release
public void release()(Code)
Release any resources held by manager.



removePage
public void removePage(WeblogTemplate page) throws RollerException(Code)
Remove page.



removePermissions
public void removePermissions(PermissionsData perms) throws RollerException(Code)
Remove permissions object.



removeUser
public void removeUser(UserData user) throws RollerException(Code)
Remove user.



removeWebsite
public void removeWebsite(WebsiteData website) throws RollerException(Code)
Remove website object.



retireUser
public void retireUser(WebsiteData website, UserData user) throws RollerException(Code)
Retire user from a website
Parameters:
  website - Website to be retired from (persistent instance)
Parameters:
  user - User to be retired (persistent instance)



savePage
public void savePage(WeblogTemplate data) throws RollerException(Code)
Store page.



savePermissions
public void savePermissions(PermissionsData perms) throws RollerException(Code)
Save permissions object.



saveUser
public void saveUser(UserData data) throws RollerException(Code)
Store a single user.



saveWebsite
public void saveWebsite(WebsiteData data) throws RollerException(Code)
Store a single weblog.



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