Uses of Class
org.opencms.file.CmsUser
Package
Description
Server side of the sitemap view.
Low-level database connection and access functionality.
Generic (ANSI-SQL) implementation of the OpenCms database connector.
MySQL4+ implementation of the OpenCms database connector.
Oracle9+ implementation of the OpenCms database connector.
This important package provides the methods to access the OpenCms VFS repository with the permissions
of an authenticated user.
This package contains classes and interfaces used to access OpenCms through a wrapped
CmsObject
.Classes to handle internalization (i18n) and locale selection in OpenCms.
Contains functions to import and export resources from the OpenCms VFS.
The implementation of the OpenCms JSP tag library, with some additional utility classes to
help in JSP scriplet code and navigation building.
Utility classes to be used for JSP pages.
The lock state of the resources in the VFS is handled with these classes.
Provides the main OpenCms "operating system".
Contains functions to monitor the OpenCms system status.
Contains classes for the automatical notification of outdated, expiring or released content.
Classes to handle the OpenCms publish process.
Access control and security classes for the OpenCms ACL permission system.
General code for the Vaadin UI.
Contains classes of the site manager app.
Contains classes of the user manager app.
Contains some reusable GUI components for Vaadin UI.
Contains the user interface components for the Vaadin-based login dialog.
Classes related to publishing and workflow.
The base classes for the OpenCms Workplace
(standard dialog, tab dialog, report based dialog)
and the Workplace configuration classes are located here.
-
Uses of CmsUser in org.opencms.ade.sitemap
-
Uses of CmsUser in org.opencms.db
Modifier and TypeMethodDescriptionCmsDriverManager.createUser
(CmsDbContext dbc, String name, String password, String description, Map<String, Object> additionalInfos) Creates a new user.CmsSecurityManager.createUser
(CmsRequestContext context, String name, String password, String description, Map<String, Object> additionalInfos) Creates a new user.I_CmsUserDriver.createUser
(CmsDbContext dbc, CmsUUID id, String userFqn, String password, String firstname, String lastname, String email, long lastlogin, int flags, long dateCreated, Map<String, Object> additionalInfos) Creates a new user.CmsDbContext.currentUser()
Returns the current user.CmsUserSettings.getUser()
Returns the current user for the settings.CmsVisitedByFilter.getUser()
Returns the user to check the visited resources for.CmsDriverManager.importUser
(CmsDbContext dbc, String id, String name, String password, String firstname, String lastname, String email, int flags, long dateCreated, Map<String, Object> additionalInfos) Creates a new user by import.CmsSecurityManager.importUser
(CmsRequestContext context, String id, String name, String password, String firstname, String lastname, String email, int flags, long dateCreated, Map<String, Object> additionalInfos) Creates a new user by import.CmsDriverManager.lockedBy
(CmsDbContext dbc, CmsResource resource) Returns the user, who had locked the resource.CmsDriverManager.loginUser
(CmsDbContext dbc, String userName, String password, CmsSecondFactorInfo secondFactorInfo, String remoteAddress, CmsDriverManager.LoginUserMode mode) Attempts to authenticate a user into OpenCms with the given password.CmsSecurityManager.loginUser
(CmsRequestContext context, String username, String password, CmsSecondFactorInfo code, String remoteAddress) Attempts to authenticate a user into OpenCms with the given password.CmsDriverManager.readOwner
(CmsDbContext dbc, CmsProject project) Reads the owner of a project.CmsSecurityManager.readOwner
(CmsRequestContext context, CmsProject project) Reads the owner of a project from the OpenCms.CmsDriverManager.readUser
(CmsDbContext dbc, String username) Returns a user object.CmsDriverManager.readUser
(CmsDbContext dbc, String username, String password) Returns a user object if the password for the user is correct.CmsDriverManager.readUser
(CmsDbContext dbc, CmsUUID id) Returns a user object based on the id of a user.CmsSecurityManager.readUser
(CmsRequestContext context, String username) Returns a user object.CmsSecurityManager.readUser
(CmsRequestContext context, String username, String password) Returns a user object if the password for the user is correct.CmsSecurityManager.readUser
(CmsRequestContext context, CmsUUID id) Returns a user object based on the id of a user.I_CmsUserDriver.readUser
(CmsDbContext dbc, String userFqn) Reads a user based in the user fully qualified name.I_CmsUserDriver.readUser
(CmsDbContext dbc, String userFqn, String password, String remoteAddress) Reads a user from the database, only if the password is correct.I_CmsUserDriver.readUser
(CmsDbContext dbc, CmsUUID id) Reads a user based on the user id.Modifier and TypeMethodDescriptionCmsDriverManager.getUsers
(CmsDbContext dbc, CmsOrganizationalUnit orgUnit, boolean recursive) Returns all direct users of the given organizational unit.CmsSecurityManager.getUsers
(CmsRequestContext context, CmsOrganizationalUnit orgUnit, boolean recursive) Returns all users of the given organizational unit.I_CmsUserDriver.getUsers
(CmsDbContext dbc, CmsOrganizationalUnit orgUnit, boolean recursive) Returns all users of the given organizational unit.CmsDriverManager.getUsersOfGroup
(CmsDbContext dbc, String groupname, boolean includeOtherOuUsers, boolean directUsersOnly, boolean readRoles) Returns a list of users in a group.CmsSecurityManager.getUsersOfGroup
(CmsRequestContext context, String groupname, boolean includeOtherOuUsers, boolean directUsersOnly, boolean readRoles) Returns a list of users in a group.CmsDriverManager.getUsersWithoutAdditionalInfo
(CmsDbContext dbc, CmsOrganizationalUnit orgUnit, boolean recursive) Returns all direct users of the given organizational unit, without their additional info.CmsSecurityManager.getUsersWithoutAdditionalInfo
(CmsRequestContext context, CmsOrganizationalUnit orgUnit, boolean recursive) Returns all users of the given organizational unit.I_CmsUserDriver.getUsersWithoutAdditionalInfo
(CmsDbContext dbc, CmsOrganizationalUnit orgUnit, boolean recursive) Returns all users of the given organizational unit, without reading their additional infos.CmsDriverManager.readResponsibleUsers
(CmsDbContext dbc, CmsResource resource) Returns the set of users that are responsible for a specific resource.CmsSecurityManager.readResponsibleUsers
(CmsRequestContext context, CmsResource resource) Returns a set of users that are responsible for a specific resource.I_CmsUserDriver.readUsersOfGroup
(CmsDbContext dbc, String groupFqn, boolean includeOtherOuUsers) Reads all users that are members of the given group.CmsDriverManager.searchUsers
(CmsDbContext dbc, CmsUserSearchParameters searchParams) Searches for users which fit the given criteria.CmsSecurityManager.searchUsers
(CmsRequestContext requestContext, CmsUserSearchParameters searchParams) Searches users by search criteria.I_CmsUserDriver.searchUsers
(CmsDbContext dbc, CmsUserSearchParameters searchParams) Searches for users which match the given search criteria.Modifier and TypeMethodDescriptionboolean
CmsLoginManager.canLockBecauseOfInactivity
(CmsObject cms, CmsUser user) Checks whether a user account can be locked because of inactivity.boolean
CmsLoginManager.checkInactive
(CmsUser user) Checks whether the given user has been inactive for longer than the configured limit.I_CmsProjectDriver.createProject
(CmsDbContext dbc, CmsUUID id, CmsUser owner, CmsGroup group, CmsGroup managergroup, String name, String description, int flags, CmsProject.CmsProjectType type) Creates a new project.protected void
CmsSecurityManager.deleteUser
(CmsRequestContext context, CmsUser user, CmsUser replacement) Deletes a user, where all permissions and resources attributes of the user were transfered to a replacement user, if given.CmsCacheKey.getCacheKeyForUserGroups
(String prefix, CmsDbContext context, CmsUser user) I_CmsCacheKey.getCacheKeyForUserGroups
(String prefix, CmsDbContext context, CmsUser user) Returns the cache key for the user groups cache.long
CmsDriverManager.getDateLastVisitedBy
(CmsDbContext dbc, String poolName, CmsUser user, CmsResource resource) Returns the date when the resource was last visited by the user.long
CmsSecurityManager.getDateLastVisitedBy
(CmsRequestContext context, String poolName, CmsUser user, CmsResource resource) Returns the date when the resource was last visited by the user.long
CmsSubscriptionManager.getDateLastVisitedBy
(CmsObject cms, CmsUser user, String resourcePath) Returns the date when the resource was last visited by the user.long
CmsSubscriptionManager.getDateLastVisitedBy
(CmsObject cms, CmsUser user, CmsResource resource) Returns the date when the resource was last visited by the user.long
I_CmsSubscriptionDriver.getDateLastVisitedBy
(CmsDbContext dbc, String poolName, CmsUser user, CmsResource resource) Returns the date when the resource was last visited by the user.CmsDriverManager.getPermissions
(CmsDbContext dbc, CmsResource resource, CmsUser user) Returns the set of permissions of the current user for a given resource.CmsSecurityManager.getPermissions
(CmsRequestContext context, CmsResource resource, CmsUser user) Returns the set of permissions of the current user for a given resource.CmsDriverManager.getRolesForResource
(CmsDbContext dbc, CmsUser user, CmsResource resource) Returns all roles the given user has for the given resource.CmsSecurityManager.getRolesForResource
(CmsRequestContext context, CmsUser user, CmsResource resource) Returns all roles the given user has for the given resource.CmsDriverManager.getRolesForUser
(CmsDbContext dbc, CmsUser user) Returns all roles the given user has independent of the resource.boolean
CmsSecurityManager.hasRole
(CmsDbContext dbc, CmsUser user, CmsRole role) Checks if the given user has the given role in the given organizational unit.boolean
CmsSecurityManager.hasRole
(CmsRequestContext context, CmsUser user, CmsRole role) Checks if the given user has the given role in the given organizational unit.boolean
CmsSecurityManager.hasRoleForResource
(CmsDbContext dbc, CmsUser user, CmsRole role, CmsResource resource) Checks if the given user has the given role for the given resource.boolean
CmsSecurityManager.hasRoleForResource
(CmsRequestContext context, CmsUser user, CmsRole role, CmsResource resource) Checks if the given user has the given role for the given resource.void
Initializes the user settings with the given users setting parameters.boolean
CmsLoginManager.isExcludedFromPasswordReset
(CmsObject cms, CmsUser user) Checks if the user should be excluded from password reset.boolean
CmsLoginManager.isPasswordReset
(CmsObject cms, CmsUser user) Checks if password has to be reset.boolean
CmsLoginManager.isUserLocked
(CmsUser user) Checks if a user is locked due to too many failed logins.void
CmsDriverManager.markResourceAsVisitedBy
(CmsDbContext dbc, String poolName, CmsResource resource, CmsUser user) Mark the given resource as visited by the user.void
CmsSecurityManager.markResourceAsVisitedBy
(CmsRequestContext context, String poolName, CmsResource resource, CmsUser user) Mark the given resource as visited by the user.void
CmsSubscriptionManager.markResourceAsVisitedBy
(CmsObject cms, String resourcePath, CmsUser user) Mark the given resource as visited by the user.void
CmsSubscriptionManager.markResourceAsVisitedBy
(CmsObject cms, CmsResource resource, CmsUser user) Mark the given resource as visited by the user.void
I_CmsSubscriptionDriver.markResourceAsVisitedBy
(CmsDbContext dbc, String poolName, CmsResource resource, CmsUser user) Mark the given resource as visited by the user.I_CmsProjectDriver.readProjectsForUser
(CmsDbContext dbc, CmsUser user) Reads all projects which are owned by a specified user.CmsDriverManager.readSubscribedDeletedResources
(CmsDbContext dbc, String poolName, CmsUser user, List<CmsGroup> groups, CmsResource parent, boolean includeSubFolders, long deletedFrom) Returns the subscribed history resources that were deleted.CmsSecurityManager.readSubscribedDeletedResources
(CmsRequestContext context, String poolName, CmsUser user, List<CmsGroup> groups, CmsResource parent, boolean includeSubFolders, long deletedFrom) Returns the subscribed history resources that were deleted.CmsSubscriptionManager.readSubscribedDeletedResources
(CmsObject cms, CmsUser user, boolean includeGroups, String folderPath, boolean includeSubFolders, long deletedFrom) Returns the subscribed history resources that were deleted.I_CmsSubscriptionDriver.readSubscribedDeletedResources
(CmsDbContext dbc, String poolName, CmsUser user, List<CmsGroup> groups, CmsResource parent, boolean includeSubFolders, long deletedFrom) Returns the subscribed history resources that were deleted.boolean
CmsLoginManager.requiresPasswordChange
(CmsObject cms, CmsUser user) Checks if a user is required to change his password now.boolean
CmsLoginManager.requiresUserDataCheck
(CmsObject cms, CmsUser user) Checks if a user is required to change his password now.void
Sets the current user for the settings.void
Sets the user to check the visited resources for.void
CmsDriverManager.setUsersOrganizationalUnit
(CmsDbContext dbc, CmsOrganizationalUnit orgUnit, CmsUser user) Moves an user to the given organizational unit.void
CmsSecurityManager.setUsersOrganizationalUnit
(CmsRequestContext context, CmsOrganizationalUnit orgUnit, CmsUser user) Moves an user to the given organizational unit.void
I_CmsUserDriver.setUsersOrganizationalUnit
(CmsDbContext dbc, CmsOrganizationalUnit orgUnit, CmsUser user) Moves an user to the given organizational unit.void
CmsLoginManager.unlockUser
(CmsObject cms, CmsUser user) Unlocks a user who has exceeded his number of failed login attempts so that he can try to log in again.void
CmsDriverManager.updateLastLoginDate
(CmsDbContext dbc, CmsUser user) Updates the last login date on the given user to the current time.void
CmsSecurityManager.updateLastLoginDate
(CmsRequestContext context, CmsUser user) Updates the last login date on the given user to the current time.void
CmsDriverManager.writeUser
(CmsDbContext dbc, CmsUser user) Updates the user information.void
CmsSecurityManager.writeUser
(CmsRequestContext context, CmsUser user) Updates the user information.void
I_CmsUserDriver.writeUser
(CmsDbContext dbc, CmsUser user) Updates the user information.ModifierConstructorDescriptionCmsUserSettings
(CmsUser user) Creates a user settings object with initialized settings of the user. -
Uses of CmsUser in org.opencms.db.generic
Modifier and TypeMethodDescriptionCmsUserDriver.createUser
(CmsDbContext dbc, CmsUUID id, String userFqn, String password, String firstname, String lastname, String email, long lastlogin, int flags, long dateCreated, Map<String, Object> additionalInfos) protected CmsUser
CmsUserDriver.internalCreateUser
(CmsDbContext dbc, ResultSet res) Semi-constructor to create aCmsUser
instance from a JDBC result set.CmsUserDriver.readUser
(CmsDbContext dbc, String userFqn) CmsUserDriver.readUser
(CmsDbContext dbc, String userFqn, String password, String remoteAddress) CmsUserDriver.readUser
(CmsDbContext dbc, CmsUUID id) Modifier and TypeMethodDescriptionCmsUserDriver.getUsers
(CmsDbContext dbc, CmsOrganizationalUnit orgUnit, boolean recursive) CmsUserDriver.getUsersWithoutAdditionalInfo
(CmsDbContext dbc, CmsOrganizationalUnit orgUnit, boolean recursive) CmsUserDriver.internalGetUsers
(CmsDbContext dbc, CmsOrganizationalUnit orgUnit, boolean recursive, boolean readAdditionalInfos) Internal implementation for reading users of an OU, with or without additional infos.CmsUserDriver.readUsersOfGroup
(CmsDbContext dbc, String groupFqn, boolean includeOtherOuUsers) CmsUserDriver.searchUsers
(CmsDbContext dbc, CmsUserSearchParameters searchParams) Modifier and TypeMethodDescriptionCmsProjectDriver.createProject
(CmsDbContext dbc, CmsUUID id, CmsUser owner, CmsGroup group, CmsGroup managergroup, String projectFqn, String description, int flags, CmsProject.CmsProjectType type) long
CmsSubscriptionDriver.getDateLastVisitedBy
(CmsDbContext dbc, String poolName, CmsUser user, CmsResource resource) void
CmsSubscriptionDriver.markResourceAsVisitedBy
(CmsDbContext dbc, String poolName, CmsResource resource, CmsUser user) CmsProjectDriver.readProjectsForUser
(CmsDbContext dbc, CmsUser user) CmsSubscriptionDriver.readSubscribedDeletedResources
(CmsDbContext dbc, String poolName, CmsUser user, List<CmsGroup> groups, CmsResource parent, boolean includeSubFolders, long deletedFrom) void
CmsUserDriver.setUsersOrganizationalUnit
(CmsDbContext dbc, CmsOrganizationalUnit orgUnit, CmsUser user) void
CmsUserDriver.writeUser
(CmsDbContext dbc, CmsUser user) -
Uses of CmsUser in org.opencms.db.mysql
Modifier and TypeMethodDescriptionvoid
CmsSubscriptionDriver.markResourceAsVisitedBy
(CmsDbContext dbc, String poolName, CmsResource resource, CmsUser user) -
Uses of CmsUser in org.opencms.db.oracle
Modifier and TypeMethodDescriptionvoid
CmsSubscriptionDriver.markResourceAsVisitedBy
(CmsDbContext dbc, String poolName, CmsResource resource, CmsUser user) -
Uses of CmsUser in org.opencms.file
Modifier and TypeMethodDescriptionCmsUser.clone()
CmsObject.createUser
(String userFqn, String password, String description, Map<String, Object> additionalInfos) Creates a new user.CmsRequestContext.currentUser()
Deprecated.CmsRequestContext.getCurrentUser()
Returns the current user object.CmsObject.importUser
(String id, String name, String password, String firstname, String lastname, String email, int flags, long dateCreated, Map<String, Object> additionalInfos) Creates a new user by import.CmsObject.readOwner
(CmsProject project) Reads the owner of a project.Reads a user based on its name.Returns a user, if the password is correct.Reads a user based on its id.Modifier and TypeMethodDescriptionCmsObject.getUsersOfGroup
(String groupname) Returns all direct users of a given group.CmsObject.getUsersOfGroup
(String groupname, boolean includeOtherOus) Returns all direct users of a given group.CmsObject.readResponsibleUsers
(CmsResource resource) Returns a set of users that are responsible for a specific resource.Modifier and TypeMethodDescriptionint
CmsUser.getChanges
(CmsUser oldUser) Returns the changes of this user compared to the previous user data.static String
CmsUser.getFullName
(CmsUser user) Returns the "full" name of the given user in the format"{firstname} {lastname} ({username})"
, or the empty String""
if the user is null.protected void
CmsRequestContext.switchUser
(CmsUser user, CmsProject project, String ouFqn) Switches the user in the context, required after a login.void
CmsObject.updateLastLoginDate
(CmsUser user) Updates the last login date on the given user to the current time.void
Updates the user information.ModifierConstructorDescriptionCmsRequestContext
(CmsUser user, CmsProject project, String requestedUri, CmsSiteMatcher requestMatcher, String siteRoot, boolean isSecureRequest, Locale locale, String encoding, String remoteAddr, long requestTime, CmsResourceTranslator directoryTranslator, CmsResourceTranslator fileTranslator, String ouFqn, boolean forceAbsoluteLinks) Constructs a new request context. -
Uses of CmsUser in org.opencms.file.wrapper
-
Uses of CmsUser in org.opencms.i18n
Modifier and TypeMethodDescriptionCmsDefaultLocaleHandler.getI18nInfo
(javax.servlet.http.HttpServletRequest req, CmsUser user, CmsProject project, String resourceName) CmsLocaleManager.getI18nInfo
(javax.servlet.http.HttpServletRequest req, CmsUser user, CmsProject project, String resource) Returns the the appropriate locale/encoding for a request, using the "right" locale handler for the given resource.CmsSingleTreeLocaleHandler.getI18nInfo
(javax.servlet.http.HttpServletRequest req, CmsUser user, CmsProject project, String resourceName) I_CmsLocaleHandler.getI18nInfo
(javax.servlet.http.HttpServletRequest req, CmsUser user, CmsProject project, String resource) Returns the i18n information to use in the request context. -
Uses of CmsUser in org.opencms.importexport
Modifier and TypeFieldDescriptionprotected CmsUser
CmsImportVersion10.m_user
The current imported user.Modifier and TypeMethodDescriptionprotected void
CmsExport.exportUser
(org.dom4j.Element parent, CmsUser user) Exports one single user with all its data. -
Uses of CmsUser in org.opencms.jsp
Modifier and TypeMethodDescriptionCmsJspLoginBean.getUser()
Returns the currently logged in user.Modifier and TypeMethodDescriptionprotected static String
CmsJspTagUserTracking.generateSessionKey
(String prefix, String fileName, boolean subFolder, CmsUser user, List<CmsGroup> groups) Returns a unique session key depending on the values of the given parameters.protected static boolean
CmsJspTagUserTracking.isResourceSubscribed
(CmsObject cms, String fileName, boolean subFolder, CmsUser user, List<CmsGroup> groups, javax.servlet.http.HttpServletRequest req) Returns if the given resource is subscribed to the user or groups.protected static boolean
CmsJspTagUserTracking.isResourceVisited
(CmsObject cms, String fileName, boolean subFolder, CmsUser user, javax.servlet.http.HttpServletRequest req) Returns if the given resource was visited by the user. -
Uses of CmsUser in org.opencms.jsp.userdata
Modifier and TypeMethodDescriptionCmsUserDataRequestManager.getUsersByEmail
(CmsObject cms, String email) Gets all users with a given email address (maximum of 999).Modifier and TypeMethodDescriptionboolean
CmsUserDataRequestManager.getInfoForUser
(CmsObject cms, I_CmsUserDataDomain.Mode mode, CmsUser user, org.jsoup.nodes.Element root, I_CmsReport report) Gets the user data for a specific OpenCms user.boolean
CmsDefaultUserDataDomain.matchesUser
(CmsObject cms, CmsUserDataRequestType reqType, CmsUser user) boolean
CmsUserDataHeader.matchesUser
(CmsObject cms, CmsUserDataRequestType reqType, CmsUser user) boolean
I_CmsUserDataDomain.matchesUser
(CmsObject cms, CmsUserDataRequestType reqType, CmsUser user) Checks if the user matches the domain for the given user data request type.void
CmsUserDataRequestManager.startUserDataRequest
(CmsObject cms, CmsUserDataRequestConfig config, CmsUser user) Starts a user data request for the single user case (with user name and password).Modifier and TypeMethodDescriptionvoid
CmsDefaultUserDataDomain.appendInfoHtml
(CmsObject cms, CmsUserDataRequestType reqType, List<CmsUser> users, org.jsoup.nodes.Element element) void
CmsUserDataHeader.appendInfoHtml
(CmsObject cms, CmsUserDataRequestType reqType, List<CmsUser> user, org.jsoup.nodes.Element element) void
I_CmsUserDataDomain.appendInfoHtml
(CmsObject cms, CmsUserDataRequestType reqType, List<CmsUser> user, org.jsoup.nodes.Element element) Appends the user data to the given HTML element. -
Uses of CmsUser in org.opencms.jsp.util
Modifier and TypeMethodDescriptionCmsJspVfsAccessBean.getCurrentUser()
Returns the current user from the context. -
Uses of CmsUser in org.opencms.lock
Modifier and TypeMethodDescriptionCmsLockFilter.getLockableByUserId()
Returns the user that can overwrite the locks.CmsLockFilter.getNotLockableByUserId()
Returns the user that can not overwrite the locks.Modifier and TypeMethodDescriptionvoid
CmsLockManager.addResource
(CmsDbContext dbc, CmsResource resource, CmsUser user, CmsProject project, CmsLockType type) Adds a resource to the lock manager.CmsLockFilter.filterLockableByUser
(CmsUser user) Returns an extended filter with the given user restriction.CmsLockFilter.filterNotLockableByUser
(CmsUser user) Returns an extended filter with the given user restriction.boolean
CmsLock.isDirectlyOwnedBy
(CmsUser user) Returnstrue
if this is an exclusive, temporary exclusive, or directly inherited lock, and the given user is the owner of this lock.boolean
CmsLock.isDirectlyOwnedInProjectBy
(CmsUser user, CmsProject project) Returnstrue
if this is an exclusive, temporary exclusive, or directly inherited lock, and the given user is the owner of this lock, checking also the project of the lock.boolean
CmsLock.isExclusiveOwnedBy
(CmsUser user) Returnstrue
if this is an exclusive (or temporary exclusive) lock, and the given user is the owner of this lock.boolean
CmsLock.isExclusiveOwnedInProjectBy
(CmsUser user, CmsProject project) Returnstrue
if this is an exclusive (or temporary exclusive) lock, and the given user is the owner and the given project is the project of this lock.boolean
CmsLock.isLockableBy
(CmsUser user) Checks if a resource can be locked by a user.boolean
Returnstrue
if the given user is the owner of this lock.boolean
CmsLock.isOwnedInProjectBy
(CmsUser user, CmsProject project) Returnstrue
if the given user is the owner of this lock, and this lock belongs to the given project. -
Uses of CmsUser in org.opencms.main
Modifier and TypeMethodDescriptionCmsBroadcast.getUser()
Returns the user that was the sender of this broadcast.CmsContextInfo.getUser()
Returns the user, ornull
if the user has not been configured.Modifier and TypeMethodDescriptionvoid
CmsSessionManager.checkCreateSessionForUser
(CmsUser user) Checks whether a new session can be created for the user, and throws an exception if not.void
CmsSessionManager.killSession
(CmsObject cms, CmsUser user) Kills all sessions for the given user.void
CmsSessionManager.sendBroadcast
(CmsUser fromUser, String message, CmsUser toUser) Deprecated.void
CmsSessionManager.sendBroadcast
(CmsUser fromUser, String message, CmsUser toUser, CmsBroadcast.ContentMode mode) Sends a broadcast to all sessions of a given user.CmsSessionManager.switchUser
(CmsObject cms, javax.servlet.http.HttpServletRequest req, CmsUser user) Switches the current user to the given user.CmsSessionManager.switchUserFromSession
(CmsObject cms, javax.servlet.http.HttpServletRequest req, CmsUser user, CmsSessionInfo sessionInfo) Switches the current user to the given user.ModifierConstructorDescriptionCmsBroadcast
(CmsUser sender, String message) Deprecated.use the constructors with the content mode insteadCmsBroadcast
(CmsUser sender, String message, boolean repeat) Deprecated.use the constructors with the content mode insteadCmsBroadcast
(CmsUser sender, String message, boolean repeat, CmsBroadcast.ContentMode mode) Creates a new broadcast, with the current system time set as send time.CmsBroadcast
(CmsUser sender, String message, long sendTime, long lastDisplay, boolean repeat) Deprecated.use the constructors with the content mode insteadCmsBroadcast
(CmsUser sender, String message, long sendTime, long lastDisplay, boolean repeat, CmsBroadcast.ContentMode mode) Deprecated.CmsBroadcast
(CmsUser sender, String message, CmsBroadcast.ContentMode mode) Creates a new broadcast, with the current system time set as send time.CmsContextInfo
(CmsUser user, CmsProject project, String requestedUri, CmsSiteMatcher requestMatcher, String siteRoot, boolean isSecureRequest, Locale locale, String encoding, String remoteAddr, long requestTime, String ouFqn, boolean isForceAbsoluteLinks) Creates a new instance with all context variables initialized. -
Uses of CmsUser in org.opencms.monitor
Modifier and TypeMethodDescriptionCmsMemoryMonitor.getCachedUser
(String key) Returns the user cached with the given cache key ornull
if not found.Modifier and TypeMethodDescriptionCmsMemoryMonitor.getCachedUserList
(String key) Returns the user list cached with the given cache key ornull
if not found.Modifier and TypeMethodDescriptionvoid
Caches the given user under its id AND the fully qualified name.void
CmsMemoryMonitor.clearUserCache
(CmsUser user) Clears the user cache for the given user.void
CmsGroupListCache.setBareRoles
(CmsUser user, List<CmsRole> bareRoles) Sets the bare roles for a user (with no OU information).void
Caches a new value for the given combination of keys.void
CmsGroupListCache.setHasRole
(CmsUser user, String roleKey, Boolean value) Caches the role membership for the given user id and role key.void
CmsMemoryMonitor.uncacheUser
(CmsUser user) Removes the given user from the cache.Modifier and TypeMethodDescriptionvoid
CmsMemoryMonitor.cacheUserList
(String key, List<CmsUser> userList) Caches the given list of users under the given cache key. -
Uses of CmsUser in org.opencms.notification
Modifier and TypeMethodDescriptionA_CmsNotification.getReceiver()
Returns the receiver.CmsContentNotification.getResponsible()
Returns the responsible.ModifierConstructorDescriptionA_CmsNotification
(CmsObject cms, CmsUser receiver) Creates a new A_CmsNotification.CmsNotificationMacroResolver
(CmsObject cms, CmsUser receiver) public constructor.CmsPublishNotification
(CmsObject cms, CmsUser receiver, I_CmsReport report) Creates a new CmsPublishNotification. -
Uses of CmsUser in org.opencms.publish
Modifier and TypeMethodDescriptionCmsPublishManager.getPublishHistory
(CmsUser user) Returns the publish history list with already publish jobs, filtered by the given user. -
Uses of CmsUser in org.opencms.security
Modifier and TypeMethodDescriptionCmsPersistentLoginTokenHandler.validateToken
(String tokenString) Validates a token and returns the matching user for which the token is valid.Modifier and TypeMethodDescriptionCmsPrincipal.filterCoreUsers
(List<CmsUser> users) Filters out all users with flags greater than
.I_CmsPrincipal.FLAG_CORE_LIMIT
CmsRoleManager.getManageableUsers
(CmsObject cms, String ouFqn, boolean includeSubOus) Returns all users of organizational units for which the current user has theCmsRole.ACCOUNT_MANAGER
role.CmsRoleManager.getManageableUsers
(CmsObject cms, String ouFqn, boolean includeSubOus, boolean includeWebusers) Returns all users of organizational units for which the current user has theCmsRole.ACCOUNT_MANAGER
role.Returns all users of the given organizational unit.CmsRoleManager.getUsersOfRole
(CmsObject cms, CmsRole role, boolean includeOtherOuUsers, boolean directUsersOnly) Returns all direct users of a given role, in the given organizational unit.CmsOrgUnitManager.getUsersWithoutAdditionalInfo
(CmsObject cms, String ouFqn, boolean recursive) Returns all users of the given organizational unit, without their additional info.CmsOrgUnitManager.searchUsers
(CmsObject cms, CmsUserSearchParameters params) Searches users which fit the given search parameters.Modifier and TypeMethodDescriptionCalculates the permissions of the given user and his groups from the access control list.Calculates the permissions of the given user and his groups from the access control list.CmsRoleManager.getRolesForResource
(CmsObject cms, CmsUser user, CmsResource resource) Returns all roles the given user has over the given resource.void
CmsPersistentLoginTokenHandler.invalidateToken
(CmsUser user, String token) Invalidates all tokens for the given user.void
CmsPersistentLoginTokenHandler.removeExpiredTokens
(CmsUser user, long now) Removes expired tokens from the user's additional infos.Modifier and TypeMethodDescriptionCmsPrincipal.filterCoreUsers
(List<CmsUser> users) Filters out all users with flags greater than
.I_CmsPrincipal.FLAG_CORE_LIMIT
-
Uses of CmsUser in org.opencms.security.twofactor
Modifier and TypeMethodDescriptionCmsTwoFactorAuthenticationUserPolicy.UserCheckContext.getUser()
Gets the user.Modifier and TypeMethodDescriptionCmsTwoFactorAuthenticationHandler.generateSetupInfo
(CmsUser user) Generates the information needed to share a secret with the user for the purpose of setting up 2FA.boolean
CmsTwoFactorAuthenticationHandler.hasSecondFactor
(CmsUser user) Checks if there is already a second factor configured for the given user.boolean
CmsTwoFactorAuthenticationHandler.needsTwoFactorAuthentication
(CmsUser user) Checks if two-factor authentication should be used for the given user.void
CmsTwoFactorAuthenticationHandler.resetTwoFactorAuthentication
(CmsUser user) Deletes the two-factor authentication in the user object, but does not write the user to the database.boolean
CmsTwoFactorAuthenticationHandler.setUpAndVerifySecondFactor
(CmsUser newUser, CmsSecondFactorInfo code) Sets up the second factor for the given user, and immediately verifies it with the authentication code given.boolean
CmsTwoFactorAuthenticationUserPolicy.shouldUseTwoFactorAuthentication
(CmsObject cms, CmsUser user) Checks whether the given user should use two-factor-authentication according to this policy.void
CmsTwoFactorAuthenticationHandler.trackUserChange
(CmsRequestContext requestContext, CmsUser oldUser, CmsUser newUser) Gets called when a user is changed so we can check if the second factor information was changed and generate appropriate log messages.boolean
CmsTwoFactorAuthenticationHandler.verifySecondFactor
(CmsUser user, CmsSecondFactorInfo secondFactorInfo) Verifies the second factor information for a user.ModifierConstructorDescriptionUserCheckContext
(CmsObject cms, CmsUser user) Creates a new instance. -
Uses of CmsUser in org.opencms.ugc
Modifier and TypeMethodDescriptioncom.google.common.base.Optional<CmsUser>
CmsUgcConfiguration.getUserForGuests()
Returns the user which should be used for VFS operations when guests submit the XML content form.ModifierConstructorDescriptionCmsUgcConfiguration
(CmsUUID id, com.google.common.base.Optional<CmsUser> userForGuests, CmsGroup projectGroup, String resourceType, CmsResource contentParentFolder, String namePattern, Locale locale, com.google.common.base.Optional<CmsResource> uploadParent, com.google.common.base.Optional<Long> maxUploadSize, com.google.common.base.Optional<Integer> maxContents, com.google.common.base.Optional<Long> queueTimeout, com.google.common.base.Optional<Integer> maxQueueLength, boolean autoPublish, com.google.common.base.Optional<List<String>> validExtensions) Creates a new form configuration. -
Uses of CmsUser in org.opencms.ui
Modifier and TypeMethodDescriptionCmsUserIconHelper.getBigIconPath
(CmsObject cms, CmsUser user) Returns the big ident-icon path for the given user.static com.vaadin.v7.data.util.IndexedContainer
CmsVaadinUtils.getGroupsOfUser
(CmsObject cms, CmsUser user, String caption, String iconProp, String ou, String propStatus, com.google.common.base.Function<CmsGroup, CmsCssIcon> iconProvider) Gets container with alls groups of a certain user.static com.vaadin.v7.data.util.IndexedContainer
CmsVaadinUtils.getRoleContainerForUser
(CmsObject cms, CmsUser user, String captionPropertyName) Returns the roles available for a given user.CmsUserIconHelper.getSmallIconPath
(CmsObject cms, CmsUser user) Returns the small ident-icon path for the given user.CmsUserIconHelper.getTinyIconPath
(CmsObject cms, CmsUser user) Returns the tiny ident-icon path for the given user.boolean
CmsUserIconHelper.handleImageUpload
(CmsObject cms, CmsUser user, String uploadedFile) Handles a user image upload.static boolean
CmsUserIconHelper.hasUserImage
(CmsUser user) Checks whether the given user has an individual user image.void
CmsUserIconHelper.setUserImage
(CmsObject cms, CmsUser user, String rootPath) Sets the user image for the given user. -
Uses of CmsUser in org.opencms.ui.apps.sessions
Modifier and TypeMethodDescriptionstatic void
CmsUserInfoDialog.showUserInfo
(CmsUser user) Shows a dialog with user information. -
Uses of CmsUser in org.opencms.ui.apps.user
Modifier and TypeMethodDescriptionCmsImportExportUserDialog.addExportAllUsers
(CmsObject cms, String ou, Map<CmsUUID, CmsUser> exportUsers) Returns a map with the users to export added.CmsImportExportUserDialog.addExportUsersFromGroups
(CmsObject cms, List<String> groups, Map<CmsUUID, CmsUser> exportUsers) Returns a map with the users to export added.CmsImportExportUserDialog.addExportUsersFromRoles
(CmsObject cms, String ou, List<String> roles, Map<CmsUUID, CmsUser> exportUsers) Returns a map with the users to export added.CmsAccountsApp.getFullUser
(List<CmsUser> users) Gets the full user List including additionInfos.CmsImportExportUserDialog.getUsersFromFile()
Reads user from import file.CmsAccountsApp.getUsersWithoutAdditionalInfo
(CmsObject cms, I_CmsOuTreeType type, String ou, boolean recursive) Gets list of users for organizational unit.CmsAccountsApp.getVisibleUser()
Gets all currently visible user.CmsUserTable.getVisibleUser()
Gets currently visible user.Modifier and TypeMethodDescriptionprotected void
CmsUserTable.addUserToContainer
(com.vaadin.v7.data.util.IndexedContainer container, CmsUser user) Adds given user to given IndexedContainer.boolean
CmsAccountsApp.checkAddGroup
(CmsUser principal, Set<String> data) Checks if a set of groups can be added to a user.boolean
CmsAccountsApp.checkRemoveGroups
(CmsUser principal, Set<String> items) Checks if a user can be removed from a set of groups.protected void
Fills the container item for a user.CmsAccountsApp.getUserEditParameters
(CmsUser user) Gets the user edit parameters.com.vaadin.v7.data.util.IndexedContainer
CmsAccountsApp.getUserGroupsEditorContainer
(CmsUser user, String propName, String propIcon, String propStatus) Gets the container for the groups of an user for the purpose of editing them.void
Init method.protected boolean
A_CmsImportExportUserDialog.isExportable
(CmsUser exportUser) Checks if the user can be exported.protected static void
CmsUserEditDialog.sendMail
(CmsObject cms, String password, CmsUser user, boolean newUser, boolean changePassword) Sends an email to the user.protected static void
CmsUserEditDialog.sendMail
(CmsObject cms, String password, CmsUser user, String ou, boolean newUser, boolean changePassword) Sends an email to the user.Modifier and TypeMethodDescriptionCmsImportExportUserDialog.addExportAllUsers
(CmsObject cms, String ou, Map<CmsUUID, CmsUser> exportUsers) Returns a map with the users to export added.CmsImportExportUserDialog.addExportUsersFromGroups
(CmsObject cms, List<String> groups, Map<CmsUUID, CmsUser> exportUsers) Returns a map with the users to export added.CmsImportExportUserDialog.addExportUsersFromRoles
(CmsObject cms, String ou, List<String> roles, Map<CmsUUID, CmsUser> exportUsers) Returns a map with the users to export added.CmsAccountsApp.getFullUser
(List<CmsUser> users) Gets the full user List including additionInfos.ModifierConstructorDescriptionCmsSendPasswordNotification
(CmsObject cms, String password, CmsUser receiver, String ou, CmsUser adminUser, boolean newUser, boolean tempPassword) Public constructor.CmsSendPasswordNotification
(CmsObject cms, String password, CmsUser receiver, String ou, CmsUser adminUser, String link, boolean newUser, boolean tempPassword) Deprecated.ModifierConstructorDescriptionprotected
CmsImportUserThread
(CmsObject cms, String ou, List<CmsUser> userList, List<String> groups, List<CmsRole> roles, boolean sendmail) public constructor.CmsResourceInfoTable
(Set<CmsResource> resources, List<CmsUser> user) public constructor. -
Uses of CmsUser in org.opencms.ui.components
Modifier and TypeMethodDescriptionvoid
CmsUserDataFormLayout.initFields
(CmsUser user) Initializes available fields for given user.void
CmsUserDataFormLayout.initFields
(CmsUser user, CmsUserDataFormLayout.EditLevel editLevel) void
Store fields to given user.void
Store fields to given user. -
Uses of CmsUser in org.opencms.ui.login
Modifier and TypeMethodDescriptionCmsLoginController.LoginContext.getUser()
Gets the user to be logged in.CmsTokenValidator.getUser()
Gets the user.Modifier and TypeMethodDescriptionstatic void
CmsTokenValidator.clearToken
(CmsObject cms, CmsUser user) Removes an authorization token from the user's additional information.static String
CmsTokenValidator.createToken
(CmsObject cms, CmsUser user, long currentTime) Creates a new token for the given user and stores it in the user's additional info.static String
CmsSecondFactorDialog.getCaption
(CmsUser user) Gets the caption to use for the dialog window.void
Sets the user.ModifierConstructorDescriptionCmsChangePasswordDialog
(CmsObject cms, CmsUser user, Locale locale) Creates a new instance.CmsPasswordChangeNotification
(CmsObject cms, CmsUser receiver, String link, String expiration) Creates a new instance.CmsSecondFactorDialog
(CmsUser user, Consumer<String> verificationCodeHandler) Creates a new instance.CmsSetPasswordDialog
(CmsObject cms, CmsUser user, Locale locale) Creates a new instance. -
Uses of CmsUser in org.opencms.workflow
Modifier and TypeMethodDescriptionCmsExtendedWorkflowManager.getNotificationMailRecipients()
Gets the list of recipients for the notifications.Modifier and TypeMethodDescriptionprotected void
CmsExtendedWorkflowManager.sendNotification
(CmsObject userCms, CmsUser recipient, CmsProject workflowProject, List<CmsResource> resources) Sends the notification for released resources.ModifierConstructorDescriptionCmsWorkflowNotification
(CmsObject adminCms, CmsObject userCms, CmsUser receiver, String notificationContent, CmsProject project, List<CmsResource> resources, String link) Creates a new workflow notification mail object. -
Uses of CmsUser in org.opencms.workplace
Modifier and TypeMethodDescriptionCmsWorkplaceSettings.getUser()
Returns the current workplace user.Modifier and TypeMethodDescriptionCmsWorkplaceManager.getI18nInfo
(javax.servlet.http.HttpServletRequest req, CmsUser user, CmsProject project, String resource) Returns the account info value for the given user.CmsWorkplaceManager.getWorkplaceLocale
(CmsUser user) Returns the workplace locale for the user.void
Sets the current workplace user.
CmsRequestContext.getCurrentUser()
instead