Java Doc for CmsDefaultUsers.java in  » Content-Management-System » opencms » org » opencms » db » 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 » Content Management System » opencms » org.opencms.db 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.opencms.db.CmsDefaultUsers

CmsDefaultUsers
public class CmsDefaultUsers (Code)
Provides access to the names of the OpenCms default users and groups.


author:
   Alexander Kandzior
author:
   Armen Markarian
version:
   $Revision: 1.35 $
since:
   6.0.0



Field Summary
final protected static  StringDEFAULT_GROUP_ADMINISTRATORS
     Default name for the "Administrators" group.
final protected static  StringDEFAULT_GROUP_GUESTS
     Default name for the "Guests" group.
final protected static  StringDEFAULT_GROUP_PROJECTMANAGERS
     Default name for the "Projectmanagers" group.
final protected static  StringDEFAULT_GROUP_USERS
     Default name for the "Users" group.
final protected static  StringDEFAULT_USER_ADMIN
     Default name for the "Admin" user.
final protected static  StringDEFAULT_USER_DELETED_RESOURCE
     Default name for the "Deleted Resource" user.
final protected static  StringDEFAULT_USER_EXPORT
     Default name for the "Export" user.
final protected static  StringDEFAULT_USER_GUEST
     Default name for the "Guest" user.

Constructor Summary
public  CmsDefaultUsers()
    
public  CmsDefaultUsers(String userAdmin, String userGuest, String userExport, String userDeletedResource, String groupAdministrators, String groupProjectmanagers, String groupUsers, String groupGuests)
     Public constructor.

Method Summary
public  StringgetGroupAdministrators()
    
public  StringgetGroupGuests()
    
public  StringgetGroupProjectmanagers()
    
public  StringgetGroupUsers()
    
public  StringgetUserAdmin()
    
public  StringgetUserDeletedResource()
    
public  StringgetUserExport()
    
public  StringgetUserGuest()
    
protected  voidinit(String userAdmin, String userGuest, String userExport, String userDeletedResource, String groupAdministrators, String groupProjectmanagers, String groupUsers, String groupGuests)
    
public  booleanisDefaultGroup(String groupName)
    
public  booleanisDefaultUser(String userName)
    
public  booleanisGroupGuests(String groupName)
    
public  booleanisUserAdmin(String userName)
    
public  booleanisUserExport(String userName)
    
public  booleanisUserGuest(String userName)
    

Field Detail
DEFAULT_GROUP_ADMINISTRATORS
final protected static String DEFAULT_GROUP_ADMINISTRATORS(Code)
Default name for the "Administrators" group.



DEFAULT_GROUP_GUESTS
final protected static String DEFAULT_GROUP_GUESTS(Code)
Default name for the "Guests" group.



DEFAULT_GROUP_PROJECTMANAGERS
final protected static String DEFAULT_GROUP_PROJECTMANAGERS(Code)
Default name for the "Projectmanagers" group.



DEFAULT_GROUP_USERS
final protected static String DEFAULT_GROUP_USERS(Code)
Default name for the "Users" group.



DEFAULT_USER_ADMIN
final protected static String DEFAULT_USER_ADMIN(Code)
Default name for the "Admin" user.



DEFAULT_USER_DELETED_RESOURCE
final protected static String DEFAULT_USER_DELETED_RESOURCE(Code)
Default name for the "Deleted Resource" user.



DEFAULT_USER_EXPORT
final protected static String DEFAULT_USER_EXPORT(Code)
Default name for the "Export" user.



DEFAULT_USER_GUEST
final protected static String DEFAULT_USER_GUEST(Code)
Default name for the "Guest" user.




Constructor Detail
CmsDefaultUsers
public CmsDefaultUsers()(Code)
Constructor that initializes all names with default values.

See the constants of this class for the defaule values that are uses.




CmsDefaultUsers
public CmsDefaultUsers(String userAdmin, String userGuest, String userExport, String userDeletedResource, String groupAdministrators, String groupProjectmanagers, String groupUsers, String groupGuests)(Code)
Public constructor.


Parameters:
  userAdmin - the name of the default admin user
Parameters:
  userGuest - the name of the guest user
Parameters:
  userExport - the name of the export user
Parameters:
  userDeletedResource - the name of the deleted resource user, can be null
Parameters:
  groupAdministrators - the name of the administrators group
Parameters:
  groupProjectmanagers - the name of the project managers group
Parameters:
  groupUsers - the name of the users group
Parameters:
  groupGuests - the name of the guests group





Method Detail
getGroupAdministrators
public String getGroupAdministrators()(Code)
Returns the name of the administrators group.

the name of the administrators group




getGroupGuests
public String getGroupGuests()(Code)
Returns the name of the guests group.

the name of the guests group




getGroupProjectmanagers
public String getGroupProjectmanagers()(Code)
Returns the name of the project managers group.

the name of the project managers group




getGroupUsers
public String getGroupUsers()(Code)
Returns the name of the users group.

the name of the users group




getUserAdmin
public String getUserAdmin()(Code)
Returns the name of the default administrator user.

the name of the default administrator user




getUserDeletedResource
public String getUserDeletedResource()(Code)
Returns the name of the default deleted resource user.

the name of the default deleted resource user




getUserExport
public String getUserExport()(Code)
Returns the name of the user used to generate the static export.

the name of the user used to generate the static export




getUserGuest
public String getUserGuest()(Code)
Returns the name of the default guest user.

the name of the default guest user




init
protected void init(String userAdmin, String userGuest, String userExport, String userDeletedResource, String groupAdministrators, String groupProjectmanagers, String groupUsers, String groupGuests)(Code)
Initializes this instance.


Parameters:
  userAdmin - the name of the default admin user
Parameters:
  userGuest - the name of the guest user
Parameters:
  userExport - the name of the export user
Parameters:
  userDeletedResource - the name of the deleted resource user, can be null
Parameters:
  groupAdministrators - the name of the administrators group
Parameters:
  groupProjectmanagers - the name of the project managers group
Parameters:
  groupUsers - the name of the users group
Parameters:
  groupGuests - the name of the guests group




isDefaultGroup
public boolean isDefaultGroup(String groupName)(Code)
Checks if a given group name is the name of one of the OpenCms default groups.


Parameters:
  groupName - the group name to check true if group name is one of OpenCms default groups, false if it is notor if groupName is null or an empty string (no trim)
See Also:   CmsDefaultUsers.getGroupAdministrators()
See Also:   CmsDefaultUsers.getGroupProjectmanagers()
See Also:   CmsDefaultUsers.getGroupUsers()
See Also:   CmsDefaultUsers.getGroupGuests()




isDefaultUser
public boolean isDefaultUser(String userName)(Code)
Checks if a given user name is the name of one of the OpenCms default users.


Parameters:
  userName - the group name to check true if user name is one of OpenCms default users, false if it is notor if userName is null or an empty string (no trim)
See Also:   CmsDefaultUsers.getUserAdmin()
See Also:   CmsDefaultUsers.getUserExport()
See Also:   CmsDefaultUsers.getUserGuest()
See Also:   CmsDefaultUsers.getUserDeletedResource()




isGroupGuests
public boolean isGroupGuests(String groupName)(Code)
Checks if a given group name is the name of the guests group.


Parameters:
  groupName - the group name to check true if a given group name is the name of the guests group




isUserAdmin
public boolean isUserAdmin(String userName)(Code)
Checks if a given user name is the name of the admin user.


Parameters:
  userName - the user name to check true if a given user name is the name of the admin user




isUserExport
public boolean isUserExport(String userName)(Code)
Checks if a given user name is the name of the export user.


Parameters:
  userName - the user name to check true if a given user name is the name of the export user




isUserGuest
public boolean isUserGuest(String userName)(Code)
Checks if a given user name is the name of the guest user.


Parameters:
  userName - the user name to check true if a given user name is the name of the guest user




Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

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