|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.opencms.db.CmsDefaultUsers
Provides access to the names of the OpenCms default users and groups.
| Field Summary | |
static String |
DEFAULT_GROUP_ADMINISTRATORS
Default name for the "Administrators" group. |
static String |
DEFAULT_GROUP_GUESTS
Default name for the "Guests" group. |
static String |
DEFAULT_GROUP_PROJECTMANAGERS
Default name for the "Projectmanagers" group. |
static String |
DEFAULT_GROUP_USERS
Default name for the "Users" group. |
static String |
DEFAULT_USER_ADMIN
Default name for the "Admin" user. |
static String |
DEFAULT_USER_EXPORT
Default name for the "Export" user. |
static String |
DEFAULT_USER_GUEST
Default name for the "Guest" user. |
| Constructor Summary | |
CmsDefaultUsers()
Constructor that initializes all names with default values. |
|
CmsDefaultUsers(String userAdmin,
String userGuest,
String userExport,
String groupAdministrators,
String groupProjectmanagers,
String groupUsers,
String groupGuests)
Public constructor. |
|
| Method Summary | |
String |
getGroupAdministrators()
Returns the name of the administrators group. |
String |
getGroupGuests()
Returns the name of the guests group. |
String |
getGroupProjectmanagers()
Returns the name of the project managers group. |
String |
getGroupUsers()
Returns the name of the users group. |
String |
getUserAdmin()
Returns the name of the default administrator user. |
String |
getUserExport()
Returns the name of the user used to generate the static export. |
String |
getUserGuest()
Returns the name of the default guest user. |
boolean |
isDefaultGroup(String groupName)
Checks if a given group name is the name of one of the OpenCms default groups. |
boolean |
isDefaultUser(String userName)
Checks if a given user name is the name of one of the OpenCms default users. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String DEFAULT_GROUP_ADMINISTRATORS
public static final String DEFAULT_GROUP_GUESTS
public static final String DEFAULT_GROUP_PROJECTMANAGERS
public static final String DEFAULT_GROUP_USERS
public static final String DEFAULT_USER_ADMIN
public static final String DEFAULT_USER_EXPORT
public static final String DEFAULT_USER_GUEST
| Constructor Detail |
public CmsDefaultUsers()
See the constants of this class for the defaule values that are uses.
public CmsDefaultUsers(String userAdmin,
String userGuest,
String userExport,
String groupAdministrators,
String groupProjectmanagers,
String groupUsers,
String groupGuests)
userAdmin - the name of the default admin useruserGuest - the name of the guest useruserExport - the name of the export usergroupAdministrators - the name of the administrators groupgroupProjectmanagers - the name of the project managers groupgroupUsers - the name of the users groupgroupGuests - the name of the guests group| Method Detail |
public String getGroupAdministrators()
public String getGroupGuests()
public String getGroupProjectmanagers()
public String getGroupUsers()
public String getUserAdmin()
public String getUserExport()
public String getUserGuest()
public boolean isDefaultGroup(String groupName)
groupName - the group name to check
true if group name is one of OpenCms default groups, false if it is not
or if groupName is null or an empty string (no trim)getGroupAdministrators(),
getGroupProjectmanagers(),
getGroupUsers(),
getGroupGuests()public boolean isDefaultUser(String userName)
userName - the group name to check
true if user name is one of OpenCms default users, false if it is not
or if userName is null or an empty string (no trim)getUserAdmin(),
getUserExport(),
getUserGuest()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||