Java Doc for GroupDatabase.java in  » Wiki-Engine » JSPWiki » com » ecyrd » jspwiki » auth » authorize » 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 » Wiki Engine » JSPWiki » com.ecyrd.jspwiki.auth.authorize 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.ecyrd.jspwiki.auth.authorize.GroupDatabase

All known Subclasses:   com.ecyrd.jspwiki.auth.authorize.XMLGroupDatabase,  com.ecyrd.jspwiki.auth.authorize.JDBCGroupDatabase,
GroupDatabase
public interface GroupDatabase (Code)
Defines an interface for loading, persisting and storing wiki groups.
author:
   Andrew Jaquith
since:
   2.4.22




Method Summary
public  voidcommit()
     No-op method that in previous versions of JSPWiki was intended to atomically commit changes to the user database.
public  voiddelete(Group group)
     Looks up and deletes a Group from the group database.
public  Group[]groups()
     Returns all wiki groups that are stored in the GroupDatabase as an array of Group objects.
public  voidinitialize(WikiEngine engine, Properties props)
     Initializes the group database based on values from a Properties object.
public  voidsave(Group group, Principal modifier)
     Saves a Group to the group database.



Method Detail
commit
public void commit() throws WikiSecurityException(Code)
No-op method that in previous versions of JSPWiki was intended to atomically commit changes to the user database. Now, the GroupDatabase.save(Group,Principal) and GroupDatabase.delete(Group) methods are atomic themselves.
throws:
  WikiSecurityException - never...



delete
public void delete(Group group) throws WikiSecurityException(Code)
Looks up and deletes a Group from the group database. If the group database does not contain the supplied Group. this method throws a NoSuchPrincipalException . The method commits the results of the delete to persistent storage.
Parameters:
  group - the group to remove
throws:
  WikiSecurityException - if the database does not contain thesupplied group (thrown as NoSuchPrincipalException) or ifthe commit did not succeed



groups
public Group[] groups() throws WikiSecurityException(Code)
Returns all wiki groups that are stored in the GroupDatabase as an array of Group objects. If the database does not contain any groups, this method will return a zero-length array. This method causes back-end storage to load the entire set of group; thus, it should be called infrequently (e.g., at initialization time). Note that this method should use the protected constructor Group.Group(StringString) rather than the various "parse" methods ( GroupManager.parseGroup(StringStringboolean) ) to construct the group. This is so as not to flood GroupManager's event queue with spurious events. the wiki groups
throws:
  WikiSecurityException - if the groups cannot be returned by the back-end



initialize
public void initialize(WikiEngine engine, Properties props) throws NoRequiredPropertyException, WikiSecurityException(Code)
Initializes the group database based on values from a Properties object.
Parameters:
  engine - the wiki engine
Parameters:
  props - the properties used to initialize the group database
throws:
  WikiSecurityException - if the database could not be initialized successfully
throws:
  NoRequiredPropertyException - if a required property is not present



save
public void save(Group group, Principal modifier) throws WikiSecurityException(Code)
Saves a Group to the group database. Note that this method must fail, and throw an IllegalArgumentException, if the proposed group is the same name as one of the built-in Roles: e.g., Admin, Authenticated, etc. The database is responsible for setting create/modify timestamps, upon a successful save, to the Group. The method commits the results of the delete to persistent storage.
Parameters:
  group - the Group to save
Parameters:
  modifier - the user who saved the Group
throws:
  WikiSecurityException - if the Group could not be saved successfully



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