Uses of Class
org.opencms.file.CmsRequestContext
Package
Description
Low-level database connection and access functionality.
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
.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.
Provides the main OpenCms "operating system".
Classes to handle the OpenCms publish process.
Access control and security classes for the OpenCms ACL permission system.
Utility functions for String manipulation and other often used tasks.
The base classes for the OpenCms Workplace
(standard dialog, tab dialog, report based dialog)
and the Workplace configuration classes are located here.
Base classes for the editors (WYSIWYG, plain text, XML content) used in the OpenCms Workplace.
-
Uses of CmsRequestContext in org.opencms.db
Modifier and TypeFieldDescriptionprotected CmsRequestContext
CmsDbContext.m_requestContext
The wrapped user request context.Modifier and TypeMethodDescriptionvoid
CmsSecurityManager.addAlias
(CmsRequestContext context, CmsAlias alias) Adds an alias.void
CmsSecurityManager.addRelationToResource
(CmsRequestContext context, CmsResource resource, CmsResource target, CmsRelationType type, boolean importCase) Adds a new relation to a given resource.void
CmsSecurityManager.addResourceToOrgUnit
(CmsRequestContext context, CmsOrganizationalUnit orgUnit, CmsResource resource) Adds a resource to the given organizational unit.void
CmsSecurityManager.addUserToGroup
(CmsRequestContext context, String username, String groupname, boolean readRoles) Adds a user to a group.void
CmsSecurityManager.changeLock
(CmsRequestContext context, CmsResource resource) Changes the lock of a resource to the current user, that is "steals" the lock from another user.CmsSecurityManager.changeResourcesInFolderWithProperty
(CmsRequestContext context, CmsResource resource, String propertyDefinition, String oldValue, String newValue, boolean recursive) Returns a list with all sub resources of a given folder that have set the given property, matching the current property's value with the given old value and replacing it by a given new value.void
CmsSecurityManager.checkLogin
(CmsRequestContext context, String username, String password, String remoteAddress) Checks user name / password and other things which would prevent the user from logging in, but does not check the second factor for 2FA.void
CmsSecurityManager.checkPermissions
(CmsRequestContext context, CmsResource resource, CmsPermissionSet requiredPermissions, boolean checkLock, CmsResourceFilter filter) Performs a blocking permission check on a resource.protected void
CmsSecurityManager.checkPermissions
(CmsRequestContext context, CmsResource resource, CmsPermissionSet requiredPermissions, I_CmsPermissionHandler.CmsPermissionCheckResult permissions) Applies the permission check result of a previous call toCmsSecurityManager.hasPermissions(CmsRequestContext, CmsResource, CmsPermissionSet, boolean, CmsResourceFilter)
.void
CmsSecurityManager.checkRole
(CmsRequestContext context, CmsRole role) Checks if the user of the current context has permissions to impersonate the given role.void
CmsSecurityManager.checkRoleForResource
(CmsRequestContext context, CmsRole role, CmsResource resource) Checks if the user of the current context has permissions to impersonate the given role for the given resource.void
CmsSecurityManager.chflags
(CmsRequestContext context, CmsResource resource, int flags) Changes the resource flags of a resource.void
CmsSecurityManager.chtype
(CmsRequestContext context, CmsResource resource, int type) Changes the resource type of a resource.int
CmsSecurityManager.cleanupPublishHistory
(CmsRequestContext context, CmsPublishHistoryCleanupFilter filter) Cleans up publish history entries according to the given filter object.void
CmsSecurityManager.copyAccessControlEntries
(CmsRequestContext context, CmsResource source, CmsResource destination) Copies the access control entries of a given resource to a destination resource.void
CmsSecurityManager.copyResource
(CmsRequestContext context, CmsResource source, String destination, CmsResource.CmsResourceCopyMode siblingMode) Copies a resource.void
CmsSecurityManager.copyResourceToProject
(CmsRequestContext context, CmsResource resource) Copies a resource to the current project of the user.int
CmsSecurityManager.countLockedResources
(CmsRequestContext context, CmsUUID id) Counts the locked resources in this project.long
CmsSecurityManager.countUsers
(CmsRequestContext requestContext, CmsUserSearchParameters searchParams) Counts the total number of users which match the given search criteria.CmsSecurityManager.createGroup
(CmsRequestContext context, String name, String description, int flags, String parent) Creates a new user group.CmsSecurityManager.createOrganizationalUnit
(CmsRequestContext context, String ouFqn, String description, int flags, CmsResource resource) Creates a new organizational unit.CmsSecurityManager.createProject
(CmsRequestContext context, String name, String description, String groupname, String managergroupname, CmsProject.CmsProjectType projecttype) Creates a project.CmsSecurityManager.createPropertyDefinition
(CmsRequestContext context, String name) Creates a property definition.CmsSecurityManager.createResource
(CmsRequestContext context, String resourcename, int type, byte[] content, List<CmsProperty> properties) Creates a new resource of the given resource type with the provided content and properties.CmsSecurityManager.createResource
(CmsRequestContext context, String resourcePath, CmsResource resource, byte[] content, List<CmsProperty> properties) Creates a new resource with the provided content and properties.CmsSecurityManager.createSibling
(CmsRequestContext context, CmsResource source, String destination, List<CmsProperty> properties) Creates a new sibling of the source resource.CmsSecurityManager.createTempfileProject
(CmsRequestContext context) Creates the project for the temporary workplace files.CmsSecurityManager.createUser
(CmsRequestContext context, String name, String password, String description, Map<String, Object> additionalInfos) Creates a new user.void
CmsSecurityManager.deleteAliases
(CmsRequestContext context, CmsAliasFilter filter) Deletes alias entries matching a filter.void
CmsSecurityManager.deleteAllStaticExportPublishedResources
(CmsRequestContext context, int linkType) Deletes all entries in the published resource table.void
CmsSecurityManager.deleteGroup
(CmsRequestContext context, String name) Delete a user group.void
CmsSecurityManager.deleteGroup
(CmsRequestContext context, CmsUUID groupId, CmsUUID replacementId) Deletes a group, where all permissions, users and children of the group are transfered to a replacement group.void
CmsSecurityManager.deleteHistoricalVersions
(CmsRequestContext context, int versionsToKeep, int versionsDeleted, long timeDeleted, I_CmsReport report) Deletes the versions from the history tables, keeping the given number of versions per resource.void
CmsSecurityManager.deleteLogEntries
(CmsRequestContext context, CmsLogFilter filter) Deletes all log entries matching the given filter.void
CmsSecurityManager.deleteOrganizationalUnit
(CmsRequestContext context, CmsOrganizationalUnit organizationalUnit) Deletes an organizational unit.void
CmsSecurityManager.deleteProject
(CmsRequestContext context, CmsUUID projectId) Deletes a project.void
CmsSecurityManager.deletePropertyDefinition
(CmsRequestContext context, String name) Deletes a property definition.void
CmsSecurityManager.deleteRelationsForResource
(CmsRequestContext context, CmsResource resource, CmsRelationFilter filter) Deletes all relations for the given resource matching the given filter.void
CmsSecurityManager.deleteResource
(CmsRequestContext context, CmsResource resource, CmsResource.CmsResourceDeleteMode siblingMode) Deletes a resource given its name.void
CmsSecurityManager.deleteStaticExportPublishedResource
(CmsRequestContext context, String resourceName, int linkType, String linkParameter) Deletes an entry in the published resource table.void
CmsSecurityManager.deleteUser
(CmsRequestContext context, String username) Deletes a user.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.void
CmsSecurityManager.deleteUser
(CmsRequestContext context, CmsUUID userId) Deletes a user.void
CmsSecurityManager.deleteUser
(CmsRequestContext context, CmsUUID userId, CmsUUID replacementId) Deletes a user, where all permissions and resources attributes of the user were transfered to a replacement user.boolean
CmsSecurityManager.existsResource
(CmsRequestContext context, String resourcePath, CmsResourceFilter filter) Checks the availability of a resource in the VFS, using the
filter.CmsResourceFilter.DEFAULT
boolean
CmsSecurityManager.existsResource
(CmsRequestContext context, CmsUUID structureId, CmsResourceFilter filter) Checks the availability of a resource in the VFS, using the
filter.CmsResourceFilter.DEFAULT
CmsSecurityManager.fillPublishList
(CmsRequestContext context, CmsPublishList publishList) Fills the given publish list with the the VFS resources that actually get published.CmsSecurityManager.getAccessControlEntries
(CmsRequestContext context, CmsResource resource, boolean getInherited) Returns the list of access control entries of a resource given its name.CmsSecurityManager.getAccessControlList
(CmsRequestContext context, CmsResource resource, boolean inheritedOnly) Returns the access control list (summarized access control entries) of a given resource.CmsSecurityManager.getAliasesForSite
(CmsRequestContext requestContext, String siteRoot) Gets the aliases for a given site.CmsSecurityManager.getAllAccessControlEntries
(CmsRequestContext context) Gets all access control entries.CmsSecurityManager.getAllAccessibleProjects
(CmsRequestContext context, CmsOrganizationalUnit orgUnit, boolean includeSubOus) Returns all projects which are owned by the current user or which are accessible for the group of the user.CmsSecurityManager.getAllHistoricalProjects
(CmsRequestContext context) Returns a list with all projects from history.CmsSecurityManager.getAllManageableProjects
(CmsRequestContext context, CmsOrganizationalUnit orgUnit, boolean includeSubOus) Returns all projects which are owned by the current user or which are manageable for the group of the user.CmsSecurityManager.getChildren
(CmsRequestContext context, String groupname, boolean includeSubChildren) Returns all child groups of a group.long
CmsSecurityManager.getDateLastVisitedBy
(CmsRequestContext context, String poolName, CmsUser user, CmsResource resource) Returns the date when the resource was last visited by the user.CmsDbContextFactory.getDbContext
(CmsRequestContext context) I_CmsDbContextFactory.getDbContext
(CmsRequestContext context) Returns a new database context based on the given user request context.CmsSecurityManager.getGroups
(CmsRequestContext context, CmsOrganizationalUnit orgUnit, boolean includeSubOus, boolean readRoles) Returns all groups of the given organizational unit.CmsSecurityManager.getGroupsOfUser
(CmsRequestContext context, String username, String ouFqn, boolean includeChildOus, boolean readRoles, boolean directGroupsOnly, String remoteAddress) Returns the list of groups to which the user directly belongs to.CmsSecurityManager.getLock
(CmsRequestContext context, CmsResource resource) Returns the lock state of a resource.CmsSecurityManager.getLockedResources
(CmsRequestContext context, CmsResource resource, CmsLockFilter filter) Returns all locked resources in a given folder.CmsSecurityManager.getLockedResourcesObjects
(CmsRequestContext context, CmsResource resource, CmsLockFilter filter) Returns all locked resources in a given folder.CmsSecurityManager.getLockedResourcesObjectsWithCache
(CmsRequestContext context, CmsResource resource, CmsLockFilter filter, Map<String, CmsResource> cache) Returns all locked resources in a given folder, but uses a cache for resource lookups.CmsSecurityManager.getLogEntries
(CmsRequestContext context, CmsLogFilter filter) Returns all log entries matching the given filter.CmsSecurityManager.getManageableResources
(CmsRequestContext context, CmsRole role) Returns all resources of organizational units for which the current user has the given role role.CmsSecurityManager.getOrganizationalUnits
(CmsRequestContext context, CmsOrganizationalUnit parent, boolean includeChildren) Returns all child organizational units of the given parent organizational unit including hierarchical deeper organization units if needed.CmsSecurityManager.getOrgUnitsForRole
(CmsRequestContext requestContext, CmsRole role, boolean includeSubOus) Returns all the organizational units for which the current user has the given role.CmsSecurityManager.getParent
(CmsRequestContext context, String groupname) Returns the parent group of a group.CmsSecurityManager.getPermissions
(CmsRequestContext context, CmsResource resource, CmsUser user) Returns the set of permissions of the current user for a given resource.CmsSecurityManager.getProjectId
(CmsRequestContext context, int id) Returns the uuid id for the given id, remove this method as soon as possible.CmsSecurityManager.getRelatedResourcesToPublish
(CmsRequestContext context, CmsPublishList publishList, CmsRelationFilter filter) Returns a new publish list that contains the unpublished resources related to all resources in the given publish list, the related resources exclude all resources in the given publish list and also locked (by other users) resources.CmsSecurityManager.getRelationsForResource
(CmsRequestContext context, CmsResource resource, CmsRelationFilter filter) Returns all relations for the given resource matching the given filter.CmsSecurityManager.getResourcesForOrganizationalUnit
(CmsRequestContext context, CmsOrganizationalUnit orgUnit) Returns all resources of the given organizational unit.CmsSecurityManager.getResourcesForPrincipal
(CmsRequestContext context, CmsUUID principalId, CmsPermissionSet permissions, boolean includeAttr) Returns all resources associated to a given principal via an ACE with the given permissions.CmsSecurityManager.getRewriteAliases
(CmsRequestContext requestContext, CmsRewriteAliasFilter filter) Gets the rewrite aliases matching a given filter.CmsSecurityManager.getRoleGroups
(CmsRequestContext context, CmsRole role, boolean directUsersOnly) Gets the groups which constitute a given role.CmsSecurityManager.getRolesForResource
(CmsRequestContext context, CmsUser user, CmsResource resource) Returns all roles the given user has for the given resource.CmsSecurityManager.getUsers
(CmsRequestContext context, CmsOrganizationalUnit orgUnit, boolean recursive) Returns all users of the given organizational unit.CmsSecurityManager.getUsersOfGroup
(CmsRequestContext context, String groupname, boolean includeOtherOuUsers, boolean directUsersOnly, boolean readRoles) Returns a list of users in a group.CmsSecurityManager.getUsersPubList
(CmsRequestContext context) Returns the current user's publish list.CmsSecurityManager.getUsersWithoutAdditionalInfo
(CmsRequestContext context, CmsOrganizationalUnit orgUnit, boolean recursive) Returns all users of the given organizational unit.CmsSecurityManager.hasPermissions
(CmsRequestContext context, CmsResource resource, CmsPermissionSet requiredPermissions, boolean checkLock, CmsResourceFilter filter) Performs a non-blocking permission check on a resource.CmsSecurityManager.hasPermissions
(CmsRequestContext context, CmsResource resource, CmsPermissionSet requiredPermissions, I_CmsPermissionHandler.LockCheck checkLock, CmsResourceFilter filter) Performs a non-blocking permission check on a resource.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
(CmsRequestContext context, CmsUser user, CmsRole role, CmsResource resource) Checks if the given user has the given role for the given resource.void
CmsSecurityManager.importAccessControlEntries
(CmsRequestContext context, CmsResource resource, List<CmsAccessControlEntry> acEntries) Writes a list of access control entries as new access control entries of a given resource.CmsSecurityManager.importResource
(CmsRequestContext context, String resourcePath, CmsResource resource, byte[] content, List<CmsProperty> properties, boolean importCase) Creates a new resource with the provided content and properties.CmsSecurityManager.importRewriteAlias
(CmsRequestContext requestContext, String siteRoot, String source, String target, CmsAliasMode mode) Imports a rewrite alias.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.int
CmsSecurityManager.incrementCounter
(CmsRequestContext context, String name) Increments a counter and returns its old value.void
CmsSecurityManager.initializeOrgUnit
(CmsRequestContext context, CmsOrganizationalUnit ou) Initializes the default groups for an organizational unit.boolean
CmsSecurityManager.isInsideCurrentProject
(CmsRequestContext context, String resourcename) Checks if the specified resource is inside the current project.boolean
CmsSecurityManager.isManagerOfProject
(CmsRequestContext context) Checks if the current user has management access to the current project.void
CmsSecurityManager.lockResource
(CmsRequestContext context, CmsResource resource, CmsLockType type) Locks a resource.CmsSecurityManager.loginUser
(CmsRequestContext context, String username, String password, CmsSecondFactorInfo code, String remoteAddress) Attempts to authenticate a user into OpenCms with the given password.CmsSecurityManager.lookupPrincipal
(CmsRequestContext context, String principalName) Lookup and read the user or group with the given name.CmsSecurityManager.lookupPrincipal
(CmsRequestContext context, CmsUUID principalId) Lookup and read the user or group with the given UUID.void
CmsSecurityManager.markResourceAsVisitedBy
(CmsRequestContext context, String poolName, CmsResource resource, CmsUser user) Mark the given resource as visited by the user.CmsSecurityManager.mergePublishLists
(CmsRequestContext context, CmsPublishList pubList1, CmsPublishList pubList2) Returns a new publish list that contains all resources of both given publish lists.void
CmsSecurityManager.moveResource
(CmsRequestContext context, CmsResource source, String destination) Moves a resource.CmsSecurityManager.moveToLostAndFound
(CmsRequestContext context, CmsResource resource, boolean returnNameOnly) Moves a resource to the "lost and found" folder.CmsSecurityManager.readAliasByPath
(CmsRequestContext context, String siteRoot, String path) Reads the alias with a given path in a given site.CmsSecurityManager.readAliasesById
(CmsRequestContext context, CmsUUID structureId) Reads the aliases for a resource with a given structure id.CmsSecurityManager.readAllAvailableVersions
(CmsRequestContext context, CmsResource resource) Reads all historical versions of a resource.CmsSecurityManager.readAllPropertyDefinitions
(CmsRequestContext context) Reads all property definitions for the given mapping type.CmsSecurityManager.readAllSubscribedResources
(CmsRequestContext context, String poolName, CmsPrincipal principal) Returns all resources subscribed by the given user or group.CmsSecurityManager.readAllUrlNameMappingEntries
(CmsRequestContext context, CmsUUID id) Reads all URL name mapping entries for a given structure id.CmsSecurityManager.readAncestor
(CmsRequestContext context, CmsResource resource, CmsResourceFilter filter) Returns the first ancestor folder matching the filter criteria.CmsSecurityManager.readBestUrlName
(CmsRequestContext context, CmsUUID id, Locale locale, List<Locale> defaultLocales) Reads the newest URL name which is mapped to the given structure id.CmsSecurityManager.readChildResources
(CmsRequestContext context, CmsResource resource, CmsResourceFilter filter, boolean getFolders, boolean getFiles) Returns the child resources of a resource, that is the resources contained in a folder.CmsSecurityManager.readDefaultFile
(CmsRequestContext context, CmsResource resource, CmsResourceFilter resourceFilter) Returns the default file for the given folder.CmsSecurityManager.readDeletedResources
(CmsRequestContext context, CmsResource resource, boolean readTree) Reads all deleted (historical) resources below the given path, including the full tree below the path, if required.CmsSecurityManager.readFile
(CmsRequestContext context, CmsResource resource) Reads a file resource (including it's binary content) from the VFS.CmsSecurityManager.readFolder
(CmsRequestContext context, String resourcename, CmsResourceFilter filter) Reads a folder resource from the VFS, using the specified resource filter.CmsSecurityManager.readGroup
(CmsRequestContext context, String groupname) Reads a group based on its name.CmsSecurityManager.readGroup
(CmsRequestContext context, CmsProject project) Reads the group of a project.CmsSecurityManager.readGroup
(CmsRequestContext context, CmsUUID groupId) Reads a group based on its id.CmsSecurityManager.readHistoricalPrincipal
(CmsRequestContext context, CmsUUID principalId) Reads a principal (an user or group) from the historical archive based on its ID.CmsSecurityManager.readHistoryProject
(CmsRequestContext context, int publishTag) Returns a historical project entry.CmsSecurityManager.readHistoryProject
(CmsRequestContext context, CmsUUID projectId) Returns the latest historical project entry with the given id.CmsSecurityManager.readHistoryPropertyObjects
(CmsRequestContext context, I_CmsHistoryResource resource) Reads the list of all
objects that belong to the given historical resource.CmsProperty
CmsSecurityManager.readIdForUrlName
(CmsRequestContext context, String name) Reads the structure id which is mapped to the given URL name, or null if the name is not mapped to any structure IDs.CmsSecurityManager.readManagerGroup
(CmsRequestContext context, CmsProject project) Reads the manager group of a project.CmsSecurityManager.readOrganizationalUnit
(CmsRequestContext context, String ouFqn) Reads an organizational Unit based on its fully qualified name.CmsSecurityManager.readOwner
(CmsRequestContext context, CmsProject project) Reads the owner of a project from the OpenCms.CmsSecurityManager.readParentFolder
(CmsRequestContext context, CmsUUID structureId) Returns the parent folder to the given structure id.CmsSecurityManager.readPath
(CmsRequestContext context, String path, CmsResourceFilter filter) Builds a list of resources for a given path.CmsSecurityManager.readProjectResources
(CmsRequestContext context, CmsProject project) Returns the list of all resource names that define the "view" of the given project.CmsSecurityManager.readProjectView
(CmsRequestContext context, CmsUUID projectId, CmsResourceState state) Reads all resources of a project that match a given state from the VFS.CmsSecurityManager.readPropertyDefinition
(CmsRequestContext context, String name) Reads a property definition.CmsSecurityManager.readPropertyObject
(CmsRequestContext context, CmsResource resource, String key, boolean search) Reads a property object from a resource specified by a property name.CmsSecurityManager.readPropertyObject
(CmsRequestContext context, CmsResource resource, String key, boolean search, Locale locale) Reads a property object from a resource specified by a property name.CmsSecurityManager.readPropertyObjects
(CmsRequestContext context, CmsResource resource, boolean search) Reads all property objects from a resource.CmsSecurityManager.readPublishedResources
(CmsRequestContext context, CmsUUID publishHistoryId) Reads the resources that were published in a publish task for a given publish history ID.CmsSecurityManager.readResource
(CmsRequestContext context, String resourcePath, CmsResourceFilter filter) Reads a resource from the VFS, using the specified resource filter.CmsSecurityManager.readResource
(CmsRequestContext context, CmsResource resource, int version) Reads the historical resource entry for the given resource with the given version number.CmsSecurityManager.readResource
(CmsRequestContext context, CmsUUID structureID, CmsResourceFilter filter) Reads a resource from the VFS, using the specified resource filter.CmsSecurityManager.readResources
(CmsRequestContext context, CmsResource parent, CmsResourceFilter filter, boolean readTree) Reads all resources below the given path matching the filter criteria, including the full tree below the path only in case thereadTree
parameter istrue
.CmsSecurityManager.readResourcesVisitedBy
(CmsRequestContext context, String poolName, CmsVisitedByFilter filter) Returns the resources that were visited by a user set in the filter.CmsSecurityManager.readResourcesWithProperty
(CmsRequestContext context, CmsResource folder, String propertyDefinition, String value, CmsResourceFilter filter) Reads all resources that have a value (containing the specified value) set for the specified property (definition) in the given path.CmsSecurityManager.readResponsiblePrincipals
(CmsRequestContext context, CmsResource resource) Returns a 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.CmsSecurityManager.readSiblings
(CmsRequestContext context, CmsResource resource, CmsResourceFilter filter) Returns a List of all siblings of the specified resource, the specified resource being always part of the result set.CmsSecurityManager.readStaticExportPublishedResourceParameters
(CmsRequestContext context, String rfsName) Returns the parameters of a resource in the table of all published template resources.CmsSecurityManager.readStaticExportResources
(CmsRequestContext context, int parameterResources, long timestamp) Returns a list of all template resources which must be processed during a static export.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.CmsSecurityManager.readSubscribedResources
(CmsRequestContext context, String poolName, CmsSubscriptionFilter filter) Returns the resources that were subscribed by a user or group set in the filter.CmsSecurityManager.readUrlNameMappings
(CmsRequestContext context, CmsUrlNameMappingFilter filter) Reads the URL name mappings matching a given filter.CmsSecurityManager.readUrlNamesForAllLocales
(CmsRequestContext context, CmsUUID id) Reads the newest URL names of a structure id for all locales.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.void
CmsSecurityManager.removeAccessControlEntry
(CmsRequestContext context, CmsResource resource, CmsUUID principal) Removes an access control entry for a given resource and principal.void
CmsSecurityManager.removeResourceFromOrgUnit
(CmsRequestContext context, CmsOrganizationalUnit orgUnit, CmsResource resource) Removes a resource from the given organizational unit.void
CmsSecurityManager.removeResourceFromProject
(CmsRequestContext context, CmsResource resource) Removes a resource from the current project of the user.void
CmsSecurityManager.removeResourceFromUsersPubList
(CmsRequestContext context, Collection<CmsUUID> structureIds) Removes the given resource to the given user's publish list.void
CmsSecurityManager.removeUserFromGroup
(CmsRequestContext context, String username, String groupname, boolean readRoles) Removes a user from a group.void
CmsSecurityManager.replaceResource
(CmsRequestContext context, CmsResource resource, int type, byte[] content, List<CmsProperty> properties) Replaces the content, type and properties of a resource.void
CmsSecurityManager.resetPassword
(CmsRequestContext context, String username, String oldPassword, CmsSecondFactorInfo secondFactor, String newPassword) Resets the password for a specified user.CmsSecurityManager.resourceOriginalPath
(CmsRequestContext context, CmsResource resource) Returns the original path of given resource, that is the online path for the resource.void
CmsSecurityManager.restoreDeletedResource
(CmsRequestContext context, CmsUUID structureId) Restores a deleted resource identified by its structure id from the historical archive.void
CmsSecurityManager.restoreResource
(CmsRequestContext context, CmsResource resource, int version) Restores a resource in the current project with the given version from the historical archive.void
CmsSecurityManager.saveAliases
(CmsRequestContext context, CmsResource resource, List<CmsAlias> aliases) Saves the aliases for a given resource.void
CmsSecurityManager.saveRewriteAliases
(CmsRequestContext requestContext, String siteRoot, List<CmsRewriteAlias> newAliases) Replaces the rewrite aliases for a given site root.CmsSecurityManager.searchUsers
(CmsRequestContext requestContext, CmsUserSearchParameters searchParams) Searches users by search criteria.void
CmsSecurityManager.setDateExpired
(CmsRequestContext context, CmsResource resource, long dateExpired) Changes the "expire" date of a resource.void
CmsSecurityManager.setDateLastModified
(CmsRequestContext context, CmsResource resource, long dateLastModified) Changes the "last modified" time stamp of a resource.void
CmsSecurityManager.setDateReleased
(CmsRequestContext context, CmsResource resource, long dateReleased) Changes the "release" date of a resource.void
CmsSecurityManager.setParentGroup
(CmsRequestContext context, String groupName, String parentGroupName) Sets a new parent-group for an already existing group.void
CmsSecurityManager.setPassword
(CmsRequestContext context, String username, String newPassword) Sets the password for a user.void
CmsSecurityManager.setRestricted
(CmsRequestContext context, CmsResource resource, CmsGroup group, boolean restricted) Sets/clears the 'restricted' status for the given resource and group.void
CmsSecurityManager.setSubscribedResourceAsDeleted
(CmsRequestContext context, String poolName, CmsResource resource) Marks a subscribed resource as deleted.void
CmsSecurityManager.setUsersOrganizationalUnit
(CmsRequestContext context, CmsOrganizationalUnit orgUnit, CmsUser user) Moves an user to the given organizational unit.void
CmsSecurityManager.subscribeResourceFor
(CmsRequestContext context, String poolName, CmsPrincipal principal, CmsResource resource) Subscribes the user or group to the resource.void
CmsSecurityManager.undelete
(CmsRequestContext context, CmsResource resource) Undelete the resource by resetting it's state.void
CmsSecurityManager.undoChanges
(CmsRequestContext context, CmsResource resource, CmsResource.CmsResourceUndoMode mode) Undos all changes in the resource by restoring the version from the online project to the current offline project.void
CmsSecurityManager.unlockProject
(CmsRequestContext context, CmsUUID projectId) Unlocks all resources in this project.void
CmsSecurityManager.unlockResource
(CmsRequestContext context, CmsResource resource) Unlocks a resource.void
CmsSecurityManager.unsubscribeAllDeletedResources
(CmsRequestContext context, String poolName, long deletedTo) Unsubscribes all deleted resources that were deleted before the specified time stamp.void
CmsSecurityManager.unsubscribeAllResourcesFor
(CmsRequestContext context, String poolName, CmsPrincipal principal) Unsubscribes the user or group from all resources.void
CmsSecurityManager.unsubscribeResourceFor
(CmsRequestContext context, String poolName, CmsPrincipal principal, CmsResource resource) Unsubscribes the principal from the resource.void
CmsSecurityManager.unsubscribeResourceForAll
(CmsRequestContext context, String poolName, CmsResource resource) Unsubscribes all groups and users from the resource.void
CmsSecurityManager.updateLastLoginDate
(CmsRequestContext context, CmsUser user) Updates the last login date on the given user to the current time.void
CmsSecurityManager.updateRelationsForResource
(CmsRequestContext context, CmsResource resource, List<CmsLink> relations, boolean updateSiblingState) Updates/Creates the relations for the given resource.boolean
CmsSecurityManager.userInGroup
(CmsRequestContext context, String username, String groupname) Tests if a user is member of the given group.CmsSecurityManager.validateRelations
(CmsRequestContext context, CmsPublishList publishList, I_CmsReport report) Validates the relations for the given resources.void
CmsSecurityManager.writeAccessControlEntry
(CmsRequestContext context, CmsResource resource, CmsAccessControlEntry ace) Writes an access control entries to a given resource.CmsSecurityManager.writeFile
(CmsRequestContext context, CmsFile resource) Writes a resource to the OpenCms VFS, including it's content.void
CmsSecurityManager.writeGroup
(CmsRequestContext context, CmsGroup group) Writes an already existing group.void
CmsSecurityManager.writeHistoryProject
(CmsRequestContext context, int publishTag, long publishDate) Creates a historical entry of the current project.void
CmsSecurityManager.writeOrganizationalUnit
(CmsRequestContext context, CmsOrganizationalUnit organizationalUnit) Writes an already existing organizational unit.void
CmsSecurityManager.writeProject
(CmsRequestContext context, CmsProject project) Writes an already existing project.void
CmsSecurityManager.writePropertyObject
(CmsRequestContext context, CmsResource resource, CmsProperty property) Writes a property for a specified resource.void
CmsSecurityManager.writePropertyObjects
(CmsRequestContext context, CmsResource resource, List<CmsProperty> properties) Writes a list of properties for a specified resource.void
CmsSecurityManager.writeResource
(CmsRequestContext context, CmsResource resource) Writes a resource to the OpenCms VFS.void
CmsSecurityManager.writeResourceProjectLastModified
(CmsRequestContext context, CmsResource resource, CmsProject project) Writes the 'projectlastmodified' field of a resource record.void
CmsSecurityManager.writeStaticExportPublishedResource
(CmsRequestContext context, String resourceName, int linkType, String linkParameter, long timestamp) Inserts an entry in the published resource table.CmsSecurityManager.writeUrlNameMapping
(CmsRequestContext context, Iterator<String> nameSeq, CmsUUID structureId, String locale, boolean replaceOnPublish) Writes a new URL name mapping for a given resource.void
CmsSecurityManager.writeUser
(CmsRequestContext context, CmsUser user) Updates the user information.ModifierConstructorDescriptionCmsDbContext
(CmsRequestContext context) Creates a new database context initialized with the given user request context. -
Uses of CmsRequestContext in org.opencms.file
Modifier and TypeFieldDescriptionprotected CmsRequestContext
CmsObject.m_context
The request context.Modifier and TypeMethodDescriptionCmsObject.getRequestContext()
Returns the current users request context.Modifier and TypeMethodDescriptionboolean
CmsResourceFilter.isValid
(CmsRequestContext context, CmsResource resource) Validates if a CmsResource fits to all filer settings.ModifierConstructorDescriptionCmsObject
(CmsSecurityManager securityManager, CmsRequestContext context) Connects an OpenCms user context to a running database. -
Uses of CmsRequestContext in org.opencms.file.wrapper
Modifier and TypeMethodDescriptionCmsObjectWrapper.getRequestContext()
Delegate method forCmsObject.getRequestContext()
. -
Uses of CmsRequestContext in org.opencms.importexport
Modifier and TypeMethodDescriptionCmsImportVersion10.getRequestContext()
Gets the request context of the currently used CmsObject. -
Uses of CmsRequestContext in org.opencms.jsp
Modifier and TypeMethodDescriptionCmsJspBean.getRequestContext()
Returns the current users OpenCms request context.CmsJspResourceWrapper.getRequestContext()
Returns the OpenCms user request context this resource was initialized with.Modifier and TypeMethodDescriptionstatic void
CmsJspLoginBean.logLoginException
(CmsRequestContext requestContext, String userName, CmsException currentLoginException) Logs any login exception. -
Uses of CmsRequestContext in org.opencms.jsp.util
Modifier and TypeMethodDescriptionCmsJspVfsAccessBean.getContext()
Short form forCmsJspVfsAccessBean.getRequestContext()
.CmsJspStandardContextBean.getRequestContext()
Returns the request context.CmsJspVfsAccessBean.getRequestContext()
Returns the OpenCms request context the current user this bean was initialized with. -
Uses of CmsRequestContext in org.opencms.main
Modifier and TypeMethodDescriptionprotected void
CmsSessionInfo.update
(CmsRequestContext context) Updates the session info object with the information from the given request context.protected void
CmsSessionInfo.update
(CmsRequestContext context, boolean isHeartBeatRequest) Updates the session info object with the information from the given request context.ModifierConstructorDescriptionCmsContextInfo
(CmsRequestContext requestContext) Creates a new instance with all context variables initialized from the given request context.CmsSessionInfo
(CmsRequestContext context, CmsUUID sessionId, int maxInactiveInterval) Creates a new CmsSessionInfo object. -
Uses of CmsRequestContext in org.opencms.publish
Modifier and TypeMethodDescriptionprotected CmsDbContext
CmsPublishEngine.getDbContext
(CmsRequestContext ctx) Returns the a new db context object. -
Uses of CmsRequestContext in org.opencms.security
Modifier and TypeMethodDescriptionCmsRole.createRoleViolationException
(CmsRequestContext requestContext) Returns a role violation exception configured with a localized, role specific message for this role.CmsRole.createRoleViolationExceptionForOrgUnit
(CmsRequestContext requestContext, String orgUnitFqn) Returns a role violation exception configured with a localized, role specific message for this role.CmsRole.createRoleViolationExceptionForResource
(CmsRequestContext requestContext, CmsResource resource) Returns a role violation exception configured with a localized, role specific message for this role.static void
CmsUserLog.logSecondFactorAdded
(CmsRequestContext requestContext, String name) Logs when a second factor was added.static void
CmsUserLog.logSecondFactorInfoModified
(CmsRequestContext requestContext, String name) Logs when a second factor was modified.static void
CmsUserLog.logSecondFactorReset
(CmsRequestContext requestContext, String name) Logs when a second factor was removed. -
Uses of CmsRequestContext in org.opencms.security.twofactor
Modifier and TypeMethodDescriptionvoid
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. -
Uses of CmsRequestContext in org.opencms.util
Modifier and TypeMethodDescriptionstatic String
CmsFileUtil.formatResourceNames
(CmsRequestContext context, List<CmsResource> resources) Returns a comma separated list of resource paths names, with the site root from the given OpenCms user context removed. -
Uses of CmsRequestContext in org.opencms.workplace
Modifier and TypeMethodDescriptionCmsWorkplaceManager.getWorkplaceLocale
(CmsRequestContext requestContext) Gets the workplace locale for the given request context. -
Uses of CmsRequestContext in org.opencms.workplace.editors
Modifier and TypeMethodDescriptionprotected String
CmsWorkplaceEditorManager.getDefaultEditorUri
(CmsRequestContext context, String resourceType, String userAgent) Returns the default editor URI for the current resource type.protected String
CmsWorkplaceEditorManager.getEditorUri
(CmsRequestContext context, String resourceType, String userAgent) Returns the editor URI for the current resource type.CmsWorkplaceEditorManager.getWidgetEditor
(CmsRequestContext context, String userAgent) Returns the editor URI for the current resource type.