Uses of Class
org.opencms.security.CmsSecurityException
Package
Description
Contains functions for the detail pages in OpenCms.
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.
The implementations of the core resource types for the VFS are located here.
Provides the main OpenCms "operating system".
OpenCms modules provide a powerful, standardized way to extend
the core OpenCms functionality.
Classes to handle the OpenCms publish process.
Access control and security classes for the OpenCms ACL permission system.
The base classes for the OpenCms Workplace
(standard dialog, tab dialog, report based dialog)
and the Workplace configuration classes are located here.
-
Uses of CmsSecurityException in org.opencms.ade.detailpage
Modifier and TypeMethodDescriptionCmsDetailPageResourceHandler.initResource
(CmsResource resource, CmsObject cms, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) -
Uses of CmsSecurityException in org.opencms.db
Modifier and TypeMethodDescriptionvoid
CmsDriverManager.changeLock
(CmsDbContext dbc, CmsResource resource, CmsLockType lockType) Changes the lock of a resource to the current user, that is "steals" the lock from another user.protected void
CmsSecurityManager.checkPermissions
(CmsDbContext dbc, CmsResource resource, CmsPermissionSet requiredPermissions, boolean checkLock, CmsResourceFilter filter) Performs a blocking permission check on a resource.protected void
CmsSecurityManager.checkPermissions
(CmsDbContext dbc, CmsResource resource, CmsPermissionSet requiredPermissions, I_CmsPermissionHandler.LockCheck checkLock, CmsResourceFilter filter) Performs a blocking permission check on a resource.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.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.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.CmsSecurityManager.createPropertyDefinition
(CmsRequestContext context, String name) Creates a property definition.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.deletePropertyDefinition
(CmsRequestContext context, String name) Deletes a property definition.void
CmsSecurityManager.deleteResource
(CmsRequestContext context, CmsResource resource, CmsResource.CmsResourceDeleteMode siblingMode) Deletes a resource given its name.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.importAccessControlEntries
(CmsRequestContext context, CmsResource resource, List<CmsAccessControlEntry> acEntries) Writes a list of access control entries as new access control entries of a given resource.void
CmsSecurityManager.moveResource
(CmsRequestContext context, CmsResource source, String destination) Moves a resource.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.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
.void
CmsSecurityManager.removeAccessControlEntry
(CmsRequestContext context, CmsResource resource, CmsUUID principal) Removes an access control entry for a given resource and principal.void
CmsDriverManager.removeUserFromGroup
(CmsDbContext dbc, 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
CmsDriverManager.resetPassword
(CmsDbContext dbc, String username, String oldPassword, CmsSecondFactorInfo secondFactor, String newPassword) Resets the password for a specified user.void
CmsSecurityManager.resetPassword
(CmsRequestContext context, String username, String oldPassword, CmsSecondFactorInfo secondFactor, String newPassword) Resets the password for a specified user.protected void
CmsDriverManager.resetResourcesInProject
(CmsDbContext dbc, CmsUUID projectId, List<CmsResource> modifiedFiles, List<CmsResource> modifiedFolders) Resets the resources in a project to their online state.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.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.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.unlockResource
(CmsRequestContext context, CmsResource resource) Unlocks a resource.void
CmsDriverManager.validatePassword
(String password) This method checks if a new password follows the rules for new passwords, which are defined by a Class implementing the
interface and configured in the opencms.properties file.I_CmsPasswordHandler
void
CmsSecurityManager.validatePassword
(String password) Checks if a new password follows the rules for new passwords, which are defined by a Class implementing the
interface and configured in the opencms.properties file.I_CmsPasswordHandler
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.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. -
Uses of CmsSecurityException in org.opencms.file
Modifier and TypeMethodDescriptionCmsObject.readDefaultFile
(String resourceNameOrID) Returns the default resource for the given folder.CmsObject.readDefaultFile
(String resourceNameOrID, CmsResourceFilter filter) Returns the default resource for the given folder.CmsObject.readDefaultFile
(CmsResource folderResource, CmsResourceFilter resourceFilter) Returns the default resource for the given folder.void
CmsObject.validatePassword
(String password) This method checks if a new password follows the rules for new passwords, which are defined by a Class implementing the
interface and configured in the opencms.properties file.I_CmsPasswordHandler
-
Uses of CmsSecurityException in org.opencms.file.types
Modifier and TypeMethodDescriptionCmsResourceTypeImage.writeFile
(CmsObject cms, CmsSecurityManager securityManager, CmsFile resource) -
Uses of CmsSecurityException in org.opencms.main
Modifier and TypeMethodDescriptionCmsAliasResourceHandler.initResource
(CmsResource resource, CmsObject cms, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) I_CmsResourceInit.initResource
(CmsResource resource, CmsObject cms, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) Possibility to modify or change the CmsFile with the CmsObject. -
Uses of CmsSecurityException in org.opencms.module
-
Uses of CmsSecurityException in org.opencms.pdftools
Modifier and TypeMethodDescriptionCmsPdfResourceHandler.initResource
(CmsResource resource, CmsObject cms, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) -
Uses of CmsSecurityException in org.opencms.publish
Modifier and TypeMethodDescriptionvoid
CmsPublishManager.abortPublishJob
(CmsObject cms, CmsPublishJobEnqueued publishJob, boolean removeJob) Aborts the given publish job. -
Uses of CmsSecurityException in org.opencms.security
Modifier and TypeClassDescriptionclass
Signals that an attempt to authenticate (login) has a user has failed.class
Custom login exception whose message will be displayed to the user if the login fails.class
A permission violation occurs if a user without tries to access or maipulate a VFS resource without the required permissions.class
A role violation occurs if a user without permissions tries to access a protected OpenCms system feature that can only be accessed by users in certain roles.class
Signals that an attempt to authenticate (login) a user has failed because the user had to many invalid logins.Modifier and TypeMethodDescriptionvoid
CmsAdvancedPasswordHandler.validatePassword
(String password) void
CmsDefaultPasswordHandler.validatePassword
(String password) void
I_CmsPasswordHandler.validatePassword
(String password) This method checks if a new password follows the rules for new passwords, which are defined by a Class configured in the opencms.properties file. -
Uses of CmsSecurityException in org.opencms.workplace
Modifier and TypeMethodDescriptionvoid
CmsWorkplaceManager.checkAdeGalleryUpload
(CmsObject cms) Checks if the user in the given context has permissions for uploading.