| 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 |
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.
|
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 |
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 |
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 |
|
|