Uses of Class
org.opencms.db.CmsDbContext
Package
Description
Low-level database connection and access functionality.
Generic (ANSI-SQL) implementation of the OpenCms database connector.
This package contains the implementation classes for the DB log.
MS SQL implementation of the OpenCms database connector.
MySQL4+ implementation of the OpenCms database connector.
Oracle9+ implementation of the OpenCms database connector.
PostgreSql implementation of the OpenCms database connector.
The lock state of the resources in the VFS is handled with these classes.
Classes to handle the OpenCms publish process.
Classes to represent and validate the internal and external links/relations of resources in the OpenCms VFS.
Access control and security classes for the OpenCms ACL permission system.
-
Uses of CmsDbContext in org.opencms.db
Modifier and TypeMethodDescriptionCmsDbContextFactory.getDbContext()
CmsDbContextFactory.getDbContext
(CmsRequestContext context) CmsDriverManager.ResourceOUCacheKey.getDbContext()
Gets the stored DB context.I_CmsDbContextFactory.getDbContext()
Returns a new database context.I_CmsDbContextFactory.getDbContext
(CmsRequestContext context) Returns a new database context based on the given user request context.Modifier and TypeMethodDescriptionvoid
CmsDriverManager.addAlias
(CmsDbContext dbc, CmsProject project, CmsAlias alias) Adds an alias entry.protected void
CmsDriverManager.addOrReplaceUrlNameMapping
(CmsDbContext dbc, String name, CmsUUID structureId, String locale, boolean replaceOnPublish) Adds or replaces a new url name mapping in the offline project.void
CmsDriverManager.addRelationToResource
(CmsDbContext dbc, CmsResource resource, CmsResource target, CmsRelationType type, boolean importCase) Adds a new relation to the given resource.void
I_CmsUserDriver.addResourceToOrganizationalUnit
(CmsDbContext dbc, CmsOrganizationalUnit orgUnit, CmsResource resource) Adds a resource to the given organizational unit.void
CmsDriverManager.addResourceToOrgUnit
(CmsDbContext dbc, CmsOrganizationalUnit orgUnit, CmsResource resource) Adds a resource to the given organizational unit.void
I_CmsVfsDriver.addUrlNameMappingEntry
(CmsDbContext dbc, boolean online, CmsUrlNameMappingEntry entry) Adds a new URL name mapping entry.void
CmsDriverManager.addUserToGroup
(CmsDbContext dbc, String username, String groupname, boolean readRoles) Adds a user to a group.void
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.CmsDriverManager.changeResourcesInFolderWithProperty
(CmsDbContext dbc, 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.checkManagerOfProjectRole
(CmsDbContext dbc, CmsProject project) Checks if the current user has management access to the given project.void
CmsSecurityManager.checkOfflineProject
(CmsDbContext dbc) Checks if the project in the given database context is not the "Online" project, and throws an Exception if this is the case.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.checkPublishPermissions
(CmsDbContext dbc, CmsPublishList publishList) Checks if the current user has the permissions to publish the given publish list (which contains the information about the resources / project to publish).void
CmsSecurityManager.checkRole
(CmsDbContext dbc, CmsRole role) Checks if the user of the current database context has permissions to impersonate the given role in the given organizational unit.void
CmsSecurityManager.checkRoleForResource
(CmsDbContext dbc, CmsRole role, CmsResource resource) Checks if the user of the current database context has permissions to impersonate the given role for the given resource.protected void
CmsSecurityManager.checkRoleForUserModification
(CmsDbContext dbc, String username, CmsRole role) Checks that the current user has enough permissions to modify the given user.protected void
CmsSecurityManager.checkSystemLocks
(CmsDbContext dbc, CmsResource resource) Checks if the given resource contains a resource that has a system lock.void
CmsDriverManager.chflags
(CmsDbContext dbc, CmsResource resource, int flags) Changes the resource flags of a resource.void
CmsDriverManager.chtype
(CmsDbContext dbc, CmsResource resource, int type) Changes the resource type of a resource.int
CmsDriverManager.cleanupPublishHistory
(CmsDbContext dbc, CmsPublishHistoryCleanupFilter filter) Cleans up the publish history entries according to the given filter.int
I_CmsProjectDriver.cleanupPublishHistory
(CmsDbContext dbc, CmsPublishHistoryCleanupFilter filter) Cleans up the publish history entries according to the given filter.void
CmsDriverManager.copyAccessControlEntries
(CmsDbContext dbc, CmsResource source, CmsResource destination, boolean updateLastModifiedInfo) Copies the access control entries of a given resource to a destination resource.void
CmsDriverManager.copyResource
(CmsDbContext dbc, CmsResource source, String destination, CmsResource.CmsResourceCopyMode siblingMode) Copies a resource.void
CmsDriverManager.copyResourceToProject
(CmsDbContext dbc, CmsResource resource) Copies a resource to the current project of the user.int
I_CmsVfsDriver.countSiblings
(CmsDbContext dbc, CmsUUID projectId, CmsUUID resourceId) Counts the number of siblings of a resource.long
I_CmsUserDriver.countUsers
(CmsDbContext dbc, CmsUserSearchParameters searchParams) Counts the total number of users which match the given search criteria.void
I_CmsUserDriver.createAccessControlEntry
(CmsDbContext dbc, CmsProject project, CmsUUID resource, CmsUUID principal, int allowed, int denied, int flags) Creates an access control entry.void
I_CmsVfsDriver.createContent
(CmsDbContext dbc, CmsUUID projectId, CmsUUID resourceId, byte[] content) Creates a content entry for the resource identified by the specified resource id.protected Object
CmsDriverManager.createDriver
(CmsDbContext dbc, CmsConfigurationManager configManager, CmsParameterConfiguration config, String driverChainKey, String suffix) Helper method for creating a driver from configuration data.CmsDriverManager.createGroup
(CmsDbContext dbc, CmsUUID id, String name, String description, int flags, String parent) Add a new group to the Cms.I_CmsUserDriver.createGroup
(CmsDbContext dbc, CmsUUID groupId, String groupFqn, String description, int flags, String parentGroupName) Creates a new group.void
I_CmsVfsDriver.createOnlineContent
(CmsDbContext dbc, CmsUUID resourceId, byte[] contents, int publishTag, boolean keepOnline, boolean needToUpdateContent) Creates a new content in the offline project.CmsDriverManager.createOrganizationalUnit
(CmsDbContext dbc, String ouFqn, String description, int flags, CmsResource resource) Creates a new organizational unit.I_CmsUserDriver.createOrganizationalUnit
(CmsDbContext dbc, String name, String description, int flags, CmsOrganizationalUnit parent, String associationRootPath) Creates a new organizational unit.CmsDriverManager.createProject
(CmsDbContext dbc, String name, String description, String groupname, String managergroupname, CmsProject.CmsProjectType projecttype) Creates a project.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.void
I_CmsProjectDriver.createProjectResource
(CmsDbContext dbc, CmsUUID projectId, String resourceName) Creates a new projectResource from a given CmsResource object.CmsDriverManager.createPropertyDefinition
(CmsDbContext dbc, String name) Creates a property definition.I_CmsHistoryDriver.createPropertyDefinition
(CmsDbContext dbc, String name, CmsPropertyDefinition.CmsPropertyType type) Creates a new property defintion in the database.I_CmsVfsDriver.createPropertyDefinition
(CmsDbContext dbc, CmsUUID projectId, String name, CmsPropertyDefinition.CmsPropertyType type) Creates a new property definition in the database.void
CmsDriverManager.createPublishJob
(CmsDbContext dbc, CmsPublishJobInfoBean publishJob) Creates a new publish job.void
I_CmsProjectDriver.createPublishJob
(CmsDbContext dbc, CmsPublishJobInfoBean publishJob) Inserts an entry for a publish job .void
I_CmsVfsDriver.createRelation
(CmsDbContext dbc, CmsUUID projectId, CmsRelation relation) Creates a newCmsRelation
object in the database.CmsDriverManager.createResource
(CmsDbContext dbc, String resourcename, int type, byte[] content, List<CmsProperty> properties) Creates a new resource of the given resource type with the provided content and properties.CmsDriverManager.createResource
(CmsDbContext dbc, String resourcePath, CmsResource resource, byte[] content, List<CmsProperty> properties, boolean importCase) Creates a new resource with the provided content and properties.I_CmsVfsDriver.createResource
(CmsDbContext dbc, CmsUUID projectId, CmsResource resource, byte[] content) Creates a new resource from a givenCmsResource
object.void
I_CmsUserDriver.createRootOrganizationalUnit
(CmsDbContext dbc) Creates the default root organizational unit.CmsDriverManager.createSibling
(CmsDbContext dbc, CmsResource source, String destination, List<CmsProperty> properties) Creates a new sibling of the source resource.void
I_CmsVfsDriver.createSibling
(CmsDbContext dbc, CmsProject project, CmsResource resource) Creates a new sibling for a specified resource.CmsDriverManager.createTempfileProject
(CmsDbContext dbc) Creates the project for the temporary workplace files.CmsDriverManager.createUser
(CmsDbContext dbc, 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.void
I_CmsUserDriver.createUserInGroup
(CmsDbContext dbc, CmsUUID userid, CmsUUID groupid) Adds a user to a group.void
CmsDriverManager.deleteAliases
(CmsDbContext dbc, CmsProject project, CmsAliasFilter filter) Deletes aliases indicated by a filter.void
I_CmsVfsDriver.deleteAliases
(CmsDbContext dbc, CmsProject project, CmsAliasFilter filter) Deletes the aliases matching a given filter.void
CmsDriverManager.deleteAllProperties
(CmsDbContext dbc, String resourcename) Deletes all property values of a file or folder.void
CmsDriverManager.deleteAllStaticExportPublishedResources
(CmsDbContext dbc, int linkType) Deletes all entries in the published resource table.void
I_CmsProjectDriver.deleteAllStaticExportPublishedResources
(CmsDbContext dbc, int linkType) Deletes all entries in the published resource table.int
I_CmsHistoryDriver.deleteEntries
(CmsDbContext dbc, I_CmsHistoryResource histResource, int versionsToKeep, long time) Deletes all historical versions of a resource keeping maximalversionsToKeep
versions.void
CmsDriverManager.deleteGroup
(CmsDbContext dbc, CmsGroup group, CmsUUID replacementId) Deletes a group, where all permissions, users and children of the group are transfered to a replacement group.void
I_CmsUserDriver.deleteGroup
(CmsDbContext dbc, String groupFqn) Deletes a group.void
CmsDriverManager.deleteHistoricalVersions
(CmsDbContext dbc, 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
I_CmsProjectDriver.deleteLog
(CmsDbContext dbc, CmsLogFilter filter) Deletes log entries matching the given filter.void
CmsDriverManager.deleteLogEntries
(CmsDbContext dbc, CmsLogFilter filter) Deletes all log entries matching the given filter.void
CmsDriverManager.deleteOrganizationalUnit
(CmsDbContext dbc, CmsOrganizationalUnit organizationalUnit) Deletes an organizational unit.void
I_CmsUserDriver.deleteOrganizationalUnit
(CmsDbContext dbc, CmsOrganizationalUnit organizationalUnit) Deletes an organizational unit.void
CmsDriverManager.deleteProject
(CmsDbContext dbc, CmsProject deleteProject) Deletes a project.void
CmsDriverManager.deleteProject
(CmsDbContext dbc, CmsProject deleteProject, boolean resetResources) Deletes a project.void
I_CmsProjectDriver.deleteProject
(CmsDbContext dbc, CmsProject project) Deletes a project from the cms.void
I_CmsProjectDriver.deleteProjectResource
(CmsDbContext dbc, CmsUUID projectId, String resourceName) Delete a projectResource from an given CmsResource object.void
I_CmsProjectDriver.deleteProjectResources
(CmsDbContext dbc, CmsProject project) Deletes a specified project.void
CmsDriverManager.deletePropertyDefinition
(CmsDbContext dbc, String name) Deletes a property definition.void
I_CmsHistoryDriver.deletePropertyDefinition
(CmsDbContext dbc, CmsPropertyDefinition propertyDef) Deletes a property definition.void
I_CmsVfsDriver.deletePropertyDefinition
(CmsDbContext dbc, CmsPropertyDefinition name) Deletes a property definition.void
I_CmsVfsDriver.deletePropertyObjects
(CmsDbContext dbc, CmsUUID projectId, CmsResource resource, int deleteOption) Deletes all property values of a file or folder.void
I_CmsProjectDriver.deletePublishHistory
(CmsDbContext dbc, CmsUUID projectId, int maxPublishTag) Deletes all publish history entries with publish tags >=0 and < the specified max.void
I_CmsProjectDriver.deletePublishHistoryEntry
(CmsDbContext dbc, CmsUUID publishHistoryId, CmsPublishedResource publishResource) Deletes a publish history entry with publish tags >=0 and < the specified max.void
CmsDriverManager.deletePublishJob
(CmsDbContext dbc, CmsUUID publishHistoryId) Deletes a publish job identified by its history id.void
I_CmsProjectDriver.deletePublishJob
(CmsDbContext dbc, CmsUUID publishHistoryId) Deletes a publish job identified by its history id.void
CmsDriverManager.deletePublishList
(CmsDbContext dbc, CmsUUID publishHistoryId) Deletes the publish list assigned to a publish job.void
I_CmsProjectDriver.deletePublishList
(CmsDbContext dbc, CmsUUID publishHistoryId) Deletes the publish list assigned to a publish job.void
I_CmsVfsDriver.deleteRelations
(CmsDbContext dbc, CmsUUID projectId, CmsResource resource, CmsRelationFilter filter) Deletes all relations with the given filter for the given resource.void
CmsDriverManager.deleteRelationsForResource
(CmsDbContext dbc, CmsResource resource, CmsRelationFilter filter) Deletes all relations for the given resource matching the given filter.protected void
CmsDriverManager.deleteRelationsWithSiblings
(CmsDbContext dbc, CmsResource resource) Deletes all relations for the given resource and all its siblings.void
CmsDriverManager.deleteResource
(CmsDbContext dbc, CmsResource resource, CmsResource.CmsResourceDeleteMode siblingMode) Deletes a resource.protected void
CmsSecurityManager.deleteResource
(CmsDbContext dbc, CmsResource resource, CmsResource.CmsResourceDeleteMode siblingMode) Internal recursive method for deleting a resource.void
I_CmsVfsDriver.deleteRewriteAliases
(CmsDbContext dbc, CmsRewriteAliasFilter filter) Deletes rewrite aliases matching a given filter.void
CmsDriverManager.deleteStaticExportPublishedResource
(CmsDbContext dbc, String resourceName, int linkType, String linkParameter) Deletes an entry in the published resource table.void
I_CmsProjectDriver.deleteStaticExportPublishedResource
(CmsDbContext dbc, String resourceName, int linkType, String linkParameter) Deletes an entry in the published resource table.void
I_CmsVfsDriver.deleteUrlNameMappingEntries
(CmsDbContext dbc, boolean online, CmsUrlNameMappingFilter filter) Deletes the URL name mapping entries which match a given filter.void
CmsDriverManager.deleteUser
(CmsDbContext dbc, CmsProject project, String username, String replacementUsername) Deletes a user, where all permissions and resources attributes of the user were transfered to a replacement user, if given.void
I_CmsUserDriver.deleteUser
(CmsDbContext dbc, String userFqn) Deletes a user.void
I_CmsUserDriver.deleteUserInfos
(CmsDbContext dbc, CmsUUID userId) Deletes the user additional information table.void
I_CmsUserDriver.deleteUserInGroup
(CmsDbContext dbc, CmsUUID userId, CmsUUID groupId) Removes a user from a group.void
I_CmsProjectDriver.deleteUserPublishListEntries
(CmsDbContext dbc, List<CmsUserPublishListEntry> publishListDeletions) Deletes multiple publish list entries from the database.void
I_CmsSubscriptionDriver.deleteVisits
(CmsDbContext dbc, String poolName, CmsVisitEntryFilter filter) Deletes visit entries matching the given filter.protected void
CmsDriverManager.ensureSubResourcesOfMovedFoldersPublished
(CmsObject cms, CmsDbContext dbc, CmsPublishList pubList) Tries to add sub-resources of moved folders to the publish list and throws an exception if the publish list still does not contain some sub-resources of the moved folders.boolean
I_CmsUserDriver.existsGroup
(CmsDbContext dbc, String groupFqn) Tests if a group with the specified name exists.boolean
CmsDriverManager.existsResourceId
(CmsDbContext dbc, CmsUUID resourceId) Tests if a resource with the given resourceId does already exist in the Database.boolean
I_CmsUserDriver.existsUser
(CmsDbContext dbc, String userFqn) Tests if a user with the specified name exists.void
I_CmsProjectDriver.fillDefaults
(CmsDbContext dbc) Fills the OpenCms database tables with default values.void
I_CmsUserDriver.fillDefaults
(CmsDbContext dbc) Initializes the default organizational units, users and groups.void
CmsDriverManager.fillPublishList
(CmsDbContext dbc, CmsPublishList publishList) Fills the given publish list with the the VFS resources that actually get published.protected String
CmsDriverManager.findBestNameForUrlNameMapping
(CmsDbContext dbc, String name, CmsUUID structureId) Helper method for finding the 'best' URL name to use for a new URL name mapping.protected String
CmsDriverManager.findBestNameForUrlNameMapping
(CmsDbContext dbc, Iterator<String> nameSeq, CmsUUID structureId, String locale) Tries to find the best name for an URL name mapping for the given structure id.CmsDriverManager.getAccessControlEntries
(CmsDbContext dbc, CmsResource resource, boolean getInherited) Returns the list of access control entries of a resource given its name.CmsDriverManager.getAccessControlList
(CmsDbContext dbc, CmsResource resource) Returns the full access control list of a given resource.CmsDriverManager.getAccessControlList
(CmsDbContext dbc, CmsResource resource, boolean inheritedOnly) Returns the access control list of a given resource.CmsDriverManager.getAllAccessControlEntries
(CmsDbContext dbc) Reads all access control entries.CmsDriverManager.getAllAccessibleProjects
(CmsDbContext dbc, CmsOrganizationalUnit orgUnit, boolean includeSubOus) Returns all projects which are owned by the current user or which are accessible by the current user.I_CmsHistoryDriver.getAllDeletedEntries
(CmsDbContext dbc) Returns all historical resources (of deleted resources).CmsDriverManager.getAllHistoricalProjects
(CmsDbContext dbc) Returns a list with all projects from history.CmsDriverManager.getAllManageableProjects
(CmsDbContext dbc, CmsOrganizationalUnit orgUnit, boolean includeSubOus) Returns all projects which are owned by the current user or which are manageable for the group of the user.I_CmsHistoryDriver.getAllNotDeletedEntries
(CmsDbContext dbc) Returns all historical resources (of not deleted resources).CmsCacheKey.getCacheKeyForGroupUsers
(String prefix, CmsDbContext context, CmsGroup group) I_CmsCacheKey.getCacheKeyForGroupUsers
(String prefix, CmsDbContext context, CmsGroup group) Returns the cache key for the group users cache.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.CmsCacheKey.getCacheKeyForUserPermissions
(String prefix, CmsDbContext context, CmsResource resource, CmsPermissionSet requiredPermissions) I_CmsCacheKey.getCacheKeyForUserPermissions
(String prefix, CmsDbContext context, CmsResource resource, CmsPermissionSet requiredPermissions) Returns the cache key for the permission cache.CmsDriverManager.getChildren
(CmsDbContext dbc, CmsGroup group, boolean includeSubChildren) Returns all child groups of a group.long
CmsDriverManager.getDateLastVisitedBy
(CmsDbContext dbc, String poolName, 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.getGroups
(CmsDbContext dbc, CmsOrganizationalUnit orgUnit, boolean includeSubOus, boolean readRoles) Returns all groups of the given organizational unit.I_CmsUserDriver.getGroups
(CmsDbContext dbc, CmsOrganizationalUnit orgUnit, boolean includeSubOus, boolean readRoles) Returns all groups of the given organizational unit.CmsDriverManager.getGroupsOfUser
(CmsDbContext dbc, String username, boolean readRoles) Returns the groups of an user filtered by the specified IP address.CmsDriverManager.getGroupsOfUser
(CmsDbContext dbc, String username, String ouFqn, boolean includeChildOus, boolean readRoles, boolean directGroupsOnly, String remoteAddress) Returns the groups of an user filtered by the specified IP address.CmsDriverManager.getHistoryDriver
(CmsDbContext dbc) Returns the history driver for a given database context.CmsDriverManager.getLock
(CmsDbContext dbc, CmsResource resource) Returns the lock state of a resource.CmsDriverManager.getLockedResources
(CmsDbContext dbc, CmsResource resource, CmsLockFilter filter) Returns all locked resources in a given folder.CmsDriverManager.getLockedResourcesObjects
(CmsDbContext dbc, CmsResource resource, CmsLockFilter filter) Returns all locked resources in a given folder.CmsDriverManager.getLockedResourcesObjectsWithCache
(CmsDbContext dbc, CmsResource resource, CmsLockFilter filter, Map<String, CmsResource> cache) Returns all locked resources in a given folder, but uses a cache for resource lookups.CmsDriverManager.getLogEntries
(CmsDbContext dbc, CmsLogFilter filter) Returns all log entries matching the given filter.protected List<CmsResource>
CmsSecurityManager.getManageableResources
(CmsDbContext dbc, CmsRole role) Returns all resources of organizational units for which the current user has the given role role.int
CmsDriverManager.getNextPublishTag
(CmsDbContext dbc) Returns the next publish tag for the published historical resources.CmsDriverManager.getOrganizationalUnits
(CmsDbContext dbc, CmsOrganizationalUnit parent, boolean includeChildren) Returns all child organizational units of the given parent organizational unit including hierarchical deeper organization units if needed.I_CmsUserDriver.getOrganizationalUnits
(CmsDbContext dbc, CmsOrganizationalUnit parent, boolean includeChildren) Returns all child organizational units of the given parent organizational unit including hierarchical deeper organization units if needed.CmsDriverManager.getOrgUnitsForRole
(CmsDbContext dbc, CmsRole role, boolean includeSubOus) Returns all the organizational units for which the current user has the given role.CmsDriverManager.getParent
(CmsDbContext dbc, String groupname) Returns the parent group of a group.CmsDriverManager.getPermissions
(CmsDbContext dbc, CmsResource resource, CmsUser user) Returns the set of permissions of the current user for a given resource.CmsDriverManager.getProjectDriver
(CmsDbContext dbc) Returns the project driver for a given DB context.CmsDriverManager.getProjectDriver
(CmsDbContext dbc, I_CmsProjectDriver defaultDriver) Returns either the project driver for the DB context (if it has one) or a default project driver.CmsDriverManager.getProjectId
(CmsDbContext dbc, int id) Returns the uuid id for the given id.CmsDriverManager.getRelatedResourcesToPublish
(CmsDbContext dbc, 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.CmsDriverManager.getRelationsForResource
(CmsDbContext dbc, CmsResource resource, CmsRelationFilter filter) Returns all relations for the given resource matching the given filter.CmsDriverManager.getResourceOrgUnits
(CmsDbContext dbc, CmsResource resource) Returns the list of organizational units the given resource belongs to.I_CmsVfsDriver.getResourceOus
(CmsDbContext dbc, CmsUUID projectId, CmsResource resource) Returns all organizational units for the given resource.CmsDriverManager.getResourcesForOrganizationalUnit
(CmsDbContext dbc, CmsOrganizationalUnit orgUnit) Returns all resources of the given organizational unit.I_CmsUserDriver.getResourcesForOrganizationalUnit
(CmsDbContext dbc, CmsOrganizationalUnit orgUnit) Returns all resources of the given organizational unit.CmsDriverManager.getResourcesForPrincipal
(CmsDbContext dbc, CmsProject project, CmsUUID principalId, CmsPermissionSet permissions, boolean includeAttr) Returns all resources associated to a given principal via an ACE with the given permissions.CmsDriverManager.getRewriteAliases
(CmsDbContext dbc, CmsRewriteAliasFilter filter) Gets the rewrite aliases matching a given filter.CmsDriverManager.getRoleGroups
(CmsDbContext dbc, String roleGroupName, boolean directUsersOnly) Collects the groups which constitute a given role.CmsDriverManager.getRoleGroupsImpl
(CmsDbContext dbc, String roleGroupName, boolean directUsersOnly, Map<String, Set<CmsGroup>> accumulator) Collects the groups which constitute a given role.CmsDriverManager.getRolesForResource
(CmsDbContext dbc, 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.CmsDriverManager.getUserDriver
(CmsDbContext dbc) Returns the user driver for a given database context.CmsDriverManager.getUserDriver
(CmsDbContext dbc, I_CmsUserDriver defaultDriver) Returns either the user driver for the given DB context (if it has one) or a default value instead.CmsDriverManager.getUsers
(CmsDbContext dbc, CmsOrganizationalUnit orgUnit, boolean recursive) Returns all direct 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.CmsDriverManager.getUsersPubList
(CmsDbContext dbc, CmsUUID userId) Returns the given user's publish list.I_CmsProjectDriver.getUsersPubList
(CmsDbContext dbc, CmsUUID userId) Returns the given user's publish list.CmsDriverManager.getUsersWithoutAdditionalInfo
(CmsDbContext dbc, CmsOrganizationalUnit orgUnit, boolean recursive) Returns all direct users of the given organizational unit, without their additional info.I_CmsUserDriver.getUsersWithoutAdditionalInfo
(CmsDbContext dbc, CmsOrganizationalUnit orgUnit, boolean recursive) Returns all users of the given organizational unit, without reading their additional infos.CmsDriverManager.getVfsDriver
(CmsDbContext dbc) Returns the VFS driver for the given database context.CmsSecurityManager.hasPermissions
(CmsDbContext dbc, CmsResource resource, CmsPermissionSet requiredPermissions, I_CmsPermissionHandler.LockCheck checkLock, CmsResourceFilter filter) Performs a non-blocking permission check on a 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.hasRoleForResource
(CmsDbContext dbc, CmsUser user, CmsRole role, CmsResource resource) Checks if the given user has the given role for the given resource.void
CmsDriverManager.importAccessControlEntries
(CmsDbContext dbc, CmsResource resource, List<CmsAccessControlEntry> acEntries) Writes a vector of access control entries as new access control entries of a given resource.CmsDriverManager.importRewriteAlias
(CmsDbContext dbc, String siteRoot, String source, String target, CmsAliasMode mode) Imports a rewrite alias.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.int
CmsDriverManager.incrementCounter
(CmsDbContext dbc, String name) Increments a counter and returns its value before incrementing.int
I_CmsVfsDriver.incrementCounter
(CmsDbContext dbc, String name) Gets the current value of a counter, creates it if it doesn't already exist, and increments it.void
CmsDriverManager.ResourceOUMap.init
(CmsDriverManager driverManager, CmsDbContext dbc) Reads the OU resource data from the VFS and initializes this instance with it.void
I_CmsDriver.init
(CmsDbContext dbc, CmsConfigurationManager configurationManager, List<String> successiveDrivers, CmsDriverManager driverManager) Initializes the driver.void
CmsDriverManager.initOrgUnit
(CmsDbContext dbc, CmsOrganizationalUnit ou) Initializes the organizational unit.void
I_CmsVfsDriver.insertAlias
(CmsDbContext dbc, CmsProject project, CmsAlias alias) Adds an alias to the database.void
I_CmsVfsDriver.insertRewriteAliases
(CmsDbContext dbc, Collection<CmsRewriteAlias> rewriteAliases) Adds a list of rewrite aliases.boolean
CmsDriverManager.isInsideCurrentProject
(CmsDbContext dbc, String resourcename) Checks if the specified resource is inside the current project.boolean
CmsDriverManager.labelResource
(CmsDbContext dbc, CmsResource resource, String newResource, int action) Checks if one of the resources (except the resource itself) is a sibling in a "labeled" site folder.CmsDriverManager.lockedBy
(CmsDbContext dbc, CmsResource resource) Returns the user, who had locked the resource.void
CmsDriverManager.lockResource
(CmsDbContext dbc, CmsResource resource, CmsLockType type) Locks a resource.void
CmsDriverManager.log
(CmsDbContext dbc, CmsLogEntry logEntry, boolean force) Adds the given log entry to the current user's log.void
I_CmsProjectDriver.log
(CmsDbContext dbc, List<CmsLogEntry> logEntries) Logs the given log entries.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.CmsDriverManager.lookupPrincipal
(CmsDbContext dbc, String principalName) Lookup and read the user or group with the given name.CmsDriverManager.lookupPrincipal
(CmsDbContext dbc, CmsUUID principalId) Lookup and read the user or group with the given UUID.void
CmsDriverManager.markResourceAsVisitedBy
(CmsDbContext dbc, String poolName, 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.void
CmsDriverManager.moveResource
(CmsDbContext dbc, CmsResource source, String destination, boolean internal) Moves a resource.protected void
CmsSecurityManager.moveResource
(CmsDbContext dbc, CmsResource source, String destination, Set<CmsResource> allMovedResources) Internal recursive method to move a resource.void
I_CmsVfsDriver.moveResource
(CmsDbContext dbc, CmsUUID projectId, CmsResource source, String destinationPath) Moves the given resource to the specified destination path.CmsDriverManager.moveToLostAndFound
(CmsDbContext dbc, CmsResource resource, boolean returnNameOnly) Moves a resource to the "lost and found" folder.CmsDriverManager.newDriverInstance
(CmsDbContext dbc, CmsConfigurationManager configurationManager, String driverName, List<String> successiveDrivers) Gets a new driver instance.void
I_CmsUserDriver.publishAccessControlEntries
(CmsDbContext dbc, CmsProject offlineProject, CmsProject onlineProject, CmsUUID offlineId, CmsUUID onlineId) Publish all access control entries of a resource from the given offline project to the online project.void
I_CmsProjectDriver.publishDeletedFolder
(CmsDbContext dbc, I_CmsReport report, int m, int n, CmsProject onlineProject, CmsFolder offlineFolder, CmsUUID publishHistoryId, int publishTag) Publishes a deleted folder.void
I_CmsProjectDriver.publishFile
(CmsDbContext dbc, I_CmsReport report, int m, int n, CmsProject onlineProject, CmsResource offlineResource, Set<CmsUUID> publishedContentIds, CmsUUID publishHistoryId, int publishTag) Publishes a new, changed or deleted file.I_CmsProjectDriver.publishFileContent
(CmsDbContext dbc, CmsProject offlineProject, CmsProject onlineProject, CmsResource offlineFileHeader, Set<CmsUUID> publishedResourceIds, boolean needToUpdateContent, int publishTag) Publishes the content record of a file.void
I_CmsProjectDriver.publishFolder
(CmsDbContext dbc, I_CmsReport report, int m, int n, CmsProject onlineProject, CmsFolder currentFolder, CmsUUID publishHistoryId, int publishTag) Publishes a new or changed folder.void
CmsDriverManager.publishJob
(CmsObject cms, CmsDbContext dbc, CmsPublishList publishList, I_CmsReport report) Publishes the given publish job.void
CmsDriverManager.publishProject
(CmsObject cms, CmsDbContext dbc, CmsPublishList publishList, I_CmsReport report) Publishes the resources of a specified publish list.void
I_CmsProjectDriver.publishProject
(CmsDbContext dbc, I_CmsReport report, CmsProject onlineProject, CmsPublishList publishList, int publishTag) Publishes a specified project to the online project.void
I_CmsVfsDriver.publishResource
(CmsDbContext dbc, CmsProject onlineProject, CmsResource onlineResource, CmsResource offlineResource) Publishes the structure and resource records of an offline resource into it's online counterpart.void
CmsDriverManager.publishUrlNameMapping
(CmsDbContext dbc, CmsResource res) Transfers the new URL name mappings (if any) for a given resource to the online project.void
I_CmsVfsDriver.publishVersions
(CmsDbContext dbc, CmsResource resource, boolean firstSibling) Copies the version number from the offline resource to the online resource, this has to be done during publishing, direct after copying the resource itself.I_CmsUserDriver.readAccessControlEntries
(CmsDbContext dbc, CmsProject project, CmsUUID resource, boolean inheritedOnly) Reads all relevant access control entries for a given resource.CmsDriverManager.readAccessControlEntry
(CmsDbContext dbc, CmsResource resource, CmsUUID principal) Reads an access control entry from the cms.I_CmsUserDriver.readAccessControlEntry
(CmsDbContext dbc, CmsProject project, CmsUUID resource, CmsUUID principal) Reads an access control entry for a given principal that is attached to a resource.CmsDriverManager.readAliasByPath
(CmsDbContext dbc, CmsProject project, String siteRoot, String path) Finds the alias with a given path.I_CmsVfsDriver.readAliases
(CmsDbContext dbc, CmsProject project, CmsAliasFilter filter) Reads the aliases matching a given filter.CmsDriverManager.readAliasesBySite
(CmsDbContext dbc, CmsProject currentProject, String siteRoot) Reads the aliases for a given site root.CmsDriverManager.readAliasesByStructureId
(CmsDbContext dbc, CmsProject project, CmsUUID structureId) Reads the aliases which point to a given structure id.CmsDriverManager.readAllAvailableVersions
(CmsDbContext dbc, CmsResource resource) Reads all versions of the given resource.
This method returns a list with the history of the given resource, i.e.I_CmsHistoryDriver.readAllAvailableVersions
(CmsDbContext dbc, CmsUUID structureId) Reads all file headers of the resource with the given structure id.CmsDriverManager.readAllPropertyDefinitions
(CmsDbContext dbc) Reads all property definitions for the given mapping type.CmsDriverManager.readAllSubscribedResources
(CmsDbContext dbc, String poolName, CmsPrincipal principal) Returns all resources subscribed by the given user or group.I_CmsSubscriptionDriver.readAllSubscribedResources
(CmsDbContext dbc, String poolName, CmsPrincipal principal) Returns all resources subscribed by the given user or group.CmsDriverManager.readBestUrlName
(CmsDbContext dbc, CmsUUID id, Locale locale, List<Locale> defaultLocales) Selects the best url name for a given resource and locale.I_CmsUserDriver.readChildGroups
(CmsDbContext dbc, String groupFqn) Reads all child groups of a group.CmsDriverManager.readChildResources
(CmsDbContext dbc, CmsResource resource, CmsResourceFilter filter, boolean getFolders, boolean getFiles, boolean checkPermissions) Returns the child resources of a resource, that is the resources contained in a folder.I_CmsVfsDriver.readChildResources
(CmsDbContext dbc, CmsProject currentProject, CmsResource resource, boolean getFolders, boolean getFiles) Reads all child-files and/or child-folders of a specified parent resource.byte[]
I_CmsHistoryDriver.readContent
(CmsDbContext dbc, CmsUUID resourceId, int publishTag) Reads the content of the historical version of the resource identified by its structure id.byte[]
I_CmsVfsDriver.readContent
(CmsDbContext dbc, CmsUUID projectId, CmsUUID resourceId) Reads the content of a file specified by it's resource ID.CmsDriverManager.readDefaultFile
(CmsDbContext dbc, CmsResource resource, CmsResourceFilter resourceFilter) Returns the default file for the given folder.CmsDriverManager.readDeletedResources
(CmsDbContext dbc, CmsResource resource, boolean readTree, boolean isVfsManager) Reads all deleted (historical) resources below the given path, including the full tree below the path, if required.I_CmsHistoryDriver.readDeletedResources
(CmsDbContext dbc, CmsUUID structureId, CmsUUID userId) Reads all deleted (historical) resources below the given path, that the given user deleted by itself.CmsDriverManager.readFile
(CmsDbContext dbc, CmsResource resource) Reads a file resource (including it's binary content) from the VFS, using the specified resource filter.CmsDriverManager.readFolder
(CmsDbContext dbc, String resourcename, CmsResourceFilter filter) Reads a folder from the VFS, using the specified resource filter.protected CmsFolder
CmsSecurityManager.readFolder
(CmsDbContext dbc, String resourcename, CmsResourceFilter filter) Reads a folder from the VFS, using the specified resource filter.I_CmsVfsDriver.readFolder
(CmsDbContext dbc, CmsUUID projectId, String foldername) Reads a folder specified by it's resource name.I_CmsVfsDriver.readFolder
(CmsDbContext dbc, CmsUUID projectId, CmsUUID folderId) Reads a folder specified by it's structure ID.CmsDriverManager.readGroup
(CmsDbContext dbc, String groupname) Reads a group based on its name.CmsDriverManager.readGroup
(CmsDbContext dbc, CmsProject project) Reads the group of a project.CmsDriverManager.readGroup
(CmsDbContext dbc, CmsUUID groupId) Reads a group based on its id.I_CmsUserDriver.readGroup
(CmsDbContext dbc, String groupFqn) Reads a group based on the group name.I_CmsUserDriver.readGroup
(CmsDbContext dbc, CmsUUID groupId) Reads a group based on the group id.I_CmsUserDriver.readGroupsOfUser
(CmsDbContext dbc, CmsUUID userId, String ouFqn, boolean includeChildOus, String remoteAddress, boolean readRoles) Reads all groups the given user is a member in.CmsDriverManager.readHistoricalPrincipal
(CmsDbContext dbc, CmsUUID principalId) Reads a principal (an user or group) from the historical archive based on its ID.CmsDriverManager.readHistoryProject
(CmsDbContext dbc, int publishTag) Returns a historical project entry.CmsDriverManager.readHistoryProject
(CmsDbContext dbc, CmsUUID projectId) Returns the latest historical project entry with the given id.CmsDriverManager.readHistoryPropertyObjects
(CmsDbContext dbc, I_CmsHistoryResource historyResource) Reads the list of all
objects that belongs to the given historical resource.CmsProperty
CmsDriverManager.readIdForUrlName
(CmsDbContext dbc, String name) Reads the structure id which is mapped to a given URL name.int
I_CmsHistoryDriver.readLastVersion
(CmsDbContext dbc, CmsUUID structureId) Returns the last historical version of a resource.void
CmsDriverManager.readLocks
(CmsDbContext dbc) Reads the locks that were saved to the database in the previous run of OpenCms.I_CmsProjectDriver.readLocks
(CmsDbContext dbc) I_CmsProjectDriver.readLog
(CmsDbContext dbc, CmsLogFilter filter) Reads log entries matching the given filter.CmsDriverManager.readManagerGroup
(CmsDbContext dbc, CmsProject project) Reads the manager group of a project.int
I_CmsHistoryDriver.readMaxPublishTag
(CmsDbContext dbc, CmsUUID resourceId) Reads the maximal publish tag for a specified resource id.CmsDriverManager.readNewestUrlNameForId
(CmsDbContext dbc, CmsUUID id) Reads the URL name which has been most recently mapped to the given structure id, or null if no URL name is mapped to the id.int
I_CmsHistoryDriver.readNextPublishTag
(CmsDbContext dbc) Returns the next available history publish tag.CmsDriverManager.readOrganizationalUnit
(CmsDbContext dbc, String ouFqn) Reads an organizational Unit based on its fully qualified name.I_CmsUserDriver.readOrganizationalUnit
(CmsDbContext dbc, String ouFqn) Reads an organizational Unit based on its fully qualified name.CmsDriverManager.readOwner
(CmsDbContext dbc, CmsProject project) Reads the owner of a project.CmsDriverManager.readParentFolder
(CmsDbContext dbc, CmsUUID structureId) Reads the parent folder to a given structure id.I_CmsVfsDriver.readParentFolder
(CmsDbContext dbc, CmsUUID projectId, CmsUUID structureId) Reads the parent folder of a resource specified by it's structure ID.CmsDriverManager.readPath
(CmsDbContext dbc, String path, CmsResourceFilter filter) Builds a list of resources for a given path.I_CmsHistoryDriver.readPrincipal
(CmsDbContext dbc, CmsUUID principalId) Reads an historical principal entry.CmsDriverManager.readProject
(CmsDbContext dbc, String name) Reads a project.CmsDriverManager.readProject
(CmsDbContext dbc, CmsUUID id) Reads a project given the projects id.I_CmsHistoryDriver.readProject
(CmsDbContext dbc, int publishTag) Reads an historical project version.I_CmsHistoryDriver.readProject
(CmsDbContext dbc, CmsUUID projectId) Reads the latest historical project version with the given id.I_CmsProjectDriver.readProject
(CmsDbContext dbc, String name) Reads a project.I_CmsProjectDriver.readProject
(CmsDbContext dbc, CmsUUID id) Reads a project given the projects id.I_CmsProjectDriver.readProjectResource
(CmsDbContext dbc, CmsUUID projectId, String resourcename) Reads the project resource path for a given project and resource path, to validate if a resource path for a given project already exists.CmsDriverManager.readProjectResources
(CmsDbContext dbc, CmsProject project) Returns the list of all resource names that define the "view" of the given project.I_CmsHistoryDriver.readProjectResources
(CmsDbContext dbc, int publishTag) Reads all resources that belong to the historical project identified by the given publish tag.I_CmsProjectDriver.readProjectResources
(CmsDbContext dbc, CmsProject project) Reads the project resources for a specified project.I_CmsHistoryDriver.readProjects
(CmsDbContext dbc) Returns all projects from the history.I_CmsProjectDriver.readProjects
(CmsDbContext dbc, String ouFqn) Returns all projects in the given organizational unit.I_CmsProjectDriver.readProjectsForGroup
(CmsDbContext dbc, CmsGroup group) Returns all projects, which are accessible by a group.I_CmsProjectDriver.readProjectsForManagerGroup
(CmsDbContext dbc, CmsGroup group) Returns all projects, which are manageable by a group.I_CmsProjectDriver.readProjectsForUser
(CmsDbContext dbc, CmsUser user) Reads all projects which are owned by a specified user.CmsDriverManager.readProjectView
(CmsDbContext dbc, CmsUUID projectId, CmsResourceState state) Reads all resources of a project that match a given state from the VFS.I_CmsHistoryDriver.readProperties
(CmsDbContext dbc, I_CmsHistoryResource historicalResource) Returns a list of all properties of a historical file or folder.CmsDriverManager.readPropertyDefinition
(CmsDbContext dbc, String name) Reads a property definition.I_CmsHistoryDriver.readPropertyDefinition
(CmsDbContext dbc, String name) Reads a property definition with the given name.I_CmsVfsDriver.readPropertyDefinition
(CmsDbContext dbc, String name, CmsUUID projectId) Reads a property definition for the specified resource type.I_CmsVfsDriver.readPropertyDefinitions
(CmsDbContext dbc, CmsUUID projectId) Reads all property definitions for the specified mapping type.CmsDriverManager.readPropertyObject
(CmsDbContext dbc, CmsResource resource, String key, boolean search) Reads a property object from a resource specified by a property name.CmsDriverManager.readPropertyObject
(CmsDbContext dbc, CmsResource resource, String key, boolean search, Locale locale) Reads a property object from a resource specified by a property name.I_CmsVfsDriver.readPropertyObject
(CmsDbContext dbc, String key, CmsProject project, CmsResource resource) Reads a property object from the database specified by it's key name mapped to a resource.CmsDriverManager.readPropertyObjects
(CmsDbContext dbc, CmsResource resource, boolean search) Reads all property objects mapped to a specified resource from the database.I_CmsVfsDriver.readPropertyObjects
(CmsDbContext dbc, CmsProject project, CmsResource resource) Reads all property objects mapped to a specified resource from the database.CmsDriverManager.readPublishedResources
(CmsDbContext dbc, CmsUUID publishHistoryId) Reads the resources that were published in a publish task for a given publish history ID.I_CmsProjectDriver.readPublishedResources
(CmsDbContext dbc, CmsUUID publishHistoryId) Reads the resources that were published during a publish process for a given publish history ID.CmsDriverManager.readPublishJob
(CmsDbContext dbc, CmsUUID publishHistoryId) Reads a single publish job identified by its publish history id.I_CmsProjectDriver.readPublishJob
(CmsDbContext dbc, CmsUUID publishHistoryId) Reads a single publish job identified by its publish history id.CmsDriverManager.readPublishJobs
(CmsDbContext dbc, long startTime, long endTime) Reads all available publish jobs.I_CmsProjectDriver.readPublishJobs
(CmsDbContext dbc, long startTime, long endTime) Reads all publish jobs finished in the given time range.CmsDriverManager.readPublishList
(CmsDbContext dbc, CmsUUID publishHistoryId) Reads the publish list assigned to a publish job.I_CmsProjectDriver.readPublishList
(CmsDbContext dbc, CmsUUID publishHistoryId) Reads the publish list assigned to a publish job.byte[]
CmsDriverManager.readPublishReportContents
(CmsDbContext dbc, CmsUUID publishHistoryId) Reads the publish report assigned to a publish job.byte[]
I_CmsProjectDriver.readPublishReportContents
(CmsDbContext dbc, CmsUUID publishHistoryId) Reads the publish report assigned to a publish job.int
I_CmsHistoryDriver.readPublishTag
(CmsDbContext dbc, long maxdate) Gets the publish tag of the first historical project after a given date.I_CmsVfsDriver.readRelations
(CmsDbContext dbc, CmsUUID projectId, CmsResource resource, CmsRelationFilter filter) Reads all relations with the given filter for the given resource.CmsDriverManager.readResource
(CmsDbContext dbc, String resourcePath, CmsResourceFilter filter) Reads a resource from the VFS, using the specified resource filter.CmsDriverManager.readResource
(CmsDbContext dbc, CmsResource resource, int version) Reads an historical resource entry for the given resource and with the given version number.CmsDriverManager.readResource
(CmsDbContext dbc, CmsUUID structureID, CmsResourceFilter filter) Reads a resource from the VFS, using the specified resource filter.protected CmsResource
CmsSecurityManager.readResource
(CmsDbContext dbc, String resourcePath, CmsResourceFilter filter) Reads a resource from the OpenCms VFS, using the specified resource filter.protected CmsResource
CmsSecurityManager.readResource
(CmsDbContext dbc, CmsUUID structureID, CmsResourceFilter filter) Reads a resource from the OpenCms VFS, using the specified resource filter.I_CmsHistoryDriver.readResource
(CmsDbContext dbc, CmsUUID structureId, int version) Reads a historical resource version without including the file content.I_CmsVfsDriver.readResource
(CmsDbContext dbc, CmsUUID projectId, String filename, boolean includeDeleted) Reads a resource specified by it's resource name.I_CmsVfsDriver.readResource
(CmsDbContext dbc, CmsUUID projectId, CmsUUID structureId, boolean includeDeleted) Reads a resource specified by it's structure ID.CmsDriverManager.readResources
(CmsDbContext dbc, 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
.I_CmsVfsDriver.readResources
(CmsDbContext dbc, CmsUUID currentProject, CmsResourceState state, int mode) Reads all resources inside a given project and with a given state.I_CmsVfsDriver.readResourcesForPrincipalACE
(CmsDbContext dbc, CmsProject project, CmsUUID principalId) Returns all resources associated to a given principal via an ACE.I_CmsVfsDriver.readResourcesForPrincipalAttr
(CmsDbContext dbc, CmsProject project, CmsUUID principalId) Returns all resources associated to a given principal through some of following attributes.CmsDriverManager.readResourcesVisitedBy
(CmsDbContext dbc, String poolName, CmsVisitedByFilter filter) Returns the resources that were visited by a user set in the filter.I_CmsSubscriptionDriver.readResourcesVisitedBy
(CmsDbContext dbc, String poolName, CmsVisitedByFilter filter) Returns the resources that were visited by a user set in the filter.CmsDriverManager.readResourcesWithProperty
(CmsDbContext dbc, CmsResource folder, String propertyDefinition, String value, CmsResourceFilter filter) Reads all resources that have a value (containing the given value string) set for the specified property (definition) in the given path.I_CmsVfsDriver.readResourcesWithProperty
(CmsDbContext dbc, CmsUUID projectId, CmsUUID propertyDefinition, String path, String value) Reads all resources that have a value (containing the specified value) set for the specified property (definition), in the given path.I_CmsVfsDriver.readResourceTree
(CmsDbContext dbc, CmsUUID projectId, String parent, int type, CmsResourceState state, long startTime, long endTime, long releasedAfter, long releasedBefore, long expiredAfter, long expiredBefore, int mode) Reads all resources inside a given project matching the criteria specified by parameter values.CmsDriverManager.readResponsiblePrincipals
(CmsDbContext dbc, CmsResource resource) Returns the set of users that are responsible for a specific resource.CmsDriverManager.readResponsibleUsers
(CmsDbContext dbc, CmsResource resource) Returns the set of users that are responsible for a specific resource.I_CmsVfsDriver.readRewriteAliases
(CmsDbContext dbc, CmsRewriteAliasFilter filter) Reads the rewrite aliases matching a given filter.CmsDriverManager.readSiblings
(CmsDbContext dbc, CmsResource resource, CmsResourceFilter filter) Returns a List of all siblings of the specified resource, the specified resource being always part of the result set.I_CmsVfsDriver.readSiblings
(CmsDbContext dbc, CmsUUID projectId, CmsResource resource, boolean includeDeleted) Reads all siblings that point to the resource record of a specified resource.CmsDriverManager.readStaticExportPublishedResourceParameters
(CmsDbContext dbc, String rfsName) Returns the parameters of a resource in the table of all published template resources.I_CmsProjectDriver.readStaticExportPublishedResourceParameters
(CmsDbContext dbc, String rfsName) Returns the parameters of a resource in the table of all published template resources.CmsDriverManager.readStaticExportResources
(CmsDbContext dbc, int parameterResources, long timestamp) Returns a list of all template resources which must be processed during a static export.I_CmsProjectDriver.readStaticExportResources
(CmsDbContext dbc, int parameterResources, long timestamp) Returns a list of all template resources which must be processed during a static export.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.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.CmsDriverManager.readSubscribedResources
(CmsDbContext dbc, String poolName, CmsSubscriptionFilter filter) Returns the resources that were subscribed by a user or group set in the filter.I_CmsSubscriptionDriver.readSubscribedResources
(CmsDbContext dbc, String poolName, CmsSubscriptionFilter filter) Returns the resources that were subscribed by a user or group set in the filter.CmsDriverManager.readUrlNameMappingEntries
(CmsDbContext dbc, boolean online, CmsUrlNameMappingFilter filter) Reads URL name mapping entries which match the given filter.I_CmsVfsDriver.readUrlNameMappingEntries
(CmsDbContext dbc, boolean online, CmsUrlNameMappingFilter filter) Reads the URL name mapping entries which match a given filter.CmsDriverManager.readUrlNameMappings
(CmsDbContext dbc, CmsUrlNameMappingFilter filter) Reads the URL name mappings matching the given filter.CmsDriverManager.readUrlNamesForAllLocales
(CmsDbContext dbc, CmsUUID id) Reads the newest URL names of a resource for all locales.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.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.I_CmsUserDriver.readUserInfos
(CmsDbContext dbc, CmsUUID userId) Reads the user additional information map.I_CmsUserDriver.readUsersOfGroup
(CmsDbContext dbc, String groupFqn, boolean includeOtherOuUsers) Reads all users that are members of the given group.I_CmsVfsDriver.readVersions
(CmsDbContext dbc, CmsUUID projectId, CmsUUID resourceId, CmsUUID structureId) Reads a resource version numbers.void
I_CmsUserDriver.removeAccessControlEntries
(CmsDbContext dbc, CmsProject project, CmsUUID resource) Removes all access control entries belonging to a resource.void
I_CmsUserDriver.removeAccessControlEntriesForPrincipal
(CmsDbContext dbc, CmsProject project, CmsProject onlineProject, CmsUUID principal) Removes all access control entries belonging to a principal.void
CmsDriverManager.removeAccessControlEntry
(CmsDbContext dbc, CmsResource resource, CmsUUID principal) Removes an access control entry for a given resource and principal.void
I_CmsUserDriver.removeAccessControlEntry
(CmsDbContext dbc, CmsProject project, CmsUUID resource, CmsUUID principal) Removes an access control entry.void
I_CmsVfsDriver.removeFile
(CmsDbContext dbc, CmsUUID projectId, CmsResource resource) Removes a file physically in the database.void
I_CmsVfsDriver.removeFolder
(CmsDbContext dbc, CmsProject currentProject, CmsResource resource) Removes a folder physically in the database.void
I_CmsUserDriver.removeResourceFromOrganizationalUnit
(CmsDbContext dbc, CmsOrganizationalUnit orgUnit, CmsResource resource) Removes a resource from the given organizational unit.void
CmsDriverManager.removeResourceFromOrgUnit
(CmsDbContext dbc, CmsOrganizationalUnit orgUnit, CmsResource resource) Removes a resource from the given organizational unit.void
CmsDriverManager.removeResourceFromProject
(CmsDbContext dbc, CmsResource resource) Removes a resource from the current project of the user.void
CmsDriverManager.removeResourceFromUsersPubList
(CmsDbContext dbc, CmsUUID userId, Collection<CmsUUID> structureIds) Removes the given resource to the given user's publish list.void
CmsDriverManager.removeUserFromGroup
(CmsDbContext dbc, String username, String groupname, boolean readRoles) Removes a user from a group.void
CmsDriverManager.repairCategories
(CmsDbContext dbc, CmsUUID projectId, CmsResource resource) Repairs broken categories.void
CmsDriverManager.replaceResource
(CmsDbContext dbc, CmsResource resource, int type, byte[] content, List<CmsProperty> properties) Replaces the content, type and properties of a resource.void
I_CmsVfsDriver.replaceResource
(CmsDbContext dbc, CmsResource newResource, byte[] newResourceContent, int newResourceType) Replaces the content and properties of an existing resource.void
CmsDriverManager.resetPassword
(CmsDbContext dbc, 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
CmsDriverManager.restoreDeletedResource
(CmsDbContext dbc, CmsUUID structureId) Restores a deleted resource identified by its structure id from the historical archive.void
CmsDriverManager.restoreResource
(CmsDbContext dbc, CmsResource resource, int version) Restores a resource in the current project with a version from the historical archive.void
CmsDriverManager.saveAliases
(CmsDbContext dbc, CmsProject project, CmsUUID structureId, List<CmsAlias> aliases) Saves a list of aliases for the same structure id, replacing any aliases for the same structure id.void
CmsDriverManager.saveRewriteAliases
(CmsDbContext dbc, String siteRoot, List<CmsRewriteAlias> newAliases) Replaces the complete list of rewrite aliases for a given site root.CmsDriverManager.searchUsers
(CmsDbContext dbc, CmsUserSearchParameters searchParams) Searches for users which fit the given criteria.I_CmsUserDriver.searchUsers
(CmsDbContext dbc, CmsUserSearchParameters searchParams) Searches for users which match the given search criteria.void
CmsDriverManager.setDateExpired
(CmsDbContext dbc, CmsResource resource, long dateExpired) Changes the "expire" date of a resource.void
CmsDriverManager.setDateLastModified
(CmsDbContext dbc, CmsResource resource, long dateLastModified) Changes the "last modified" timestamp of a resource.void
CmsDriverManager.setDateReleased
(CmsDbContext dbc, CmsResource resource, long dateReleased) Changes the "release" date of a resource.void
CmsDriverManager.setParentGroup
(CmsDbContext dbc, String groupName, String parentGroupName) Sets a new parent group for an already existing group.void
CmsDriverManager.setPassword
(CmsDbContext dbc, String username, String newPassword) Sets the password for a user.void
CmsDriverManager.setSubscribedResourceAsDeleted
(CmsDbContext dbc, String poolName, CmsResource resource) Marks a subscribed resource as deleted.void
I_CmsSubscriptionDriver.setSubscribedResourceAsDeleted
(CmsDbContext dbc, String poolName, CmsResource resource) Marks a subscribed resource as deleted.void
CmsDriverManager.setUsersOrganizationalUnit
(CmsDbContext dbc, 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
CmsDriverManager.subscribeResourceFor
(CmsDbContext dbc, String poolName, CmsPrincipal principal, CmsResource resource) Subscribes the user or group to the resource.void
I_CmsSubscriptionDriver.subscribeResourceFor
(CmsDbContext dbc, String poolName, CmsPrincipal principal, CmsResource resource) Subscribes the user or group to the resource.void
I_CmsVfsDriver.transferResource
(CmsDbContext dbc, CmsProject project, CmsResource resource, CmsUUID createdUser, CmsUUID lastModifiedUser) Transfers the attributes of a resource from to the given users.void
CmsDriverManager.undelete
(CmsDbContext dbc, CmsResource resource) Undelete the resource.void
CmsDriverManager.undoChanges
(CmsDbContext dbc, 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
CmsDriverManager.unlockResource
(CmsDbContext dbc, CmsResource resource, boolean force, boolean removeSystemLock) Unlocks a resource.void
I_CmsProjectDriver.unmarkProjectResources
(CmsDbContext dbc, CmsProject project) Removes the project id from all resources within a project.void
CmsDriverManager.unsubscribeAllDeletedResources
(CmsDbContext dbc, String poolName, long deletedTo) Unsubscribes all deleted resources that were deleted before the specified time stamp.void
I_CmsSubscriptionDriver.unsubscribeAllDeletedResources
(CmsDbContext dbc, String poolName, long deletedTo) Unsubscribes all deleted resources that were deleted before the specified time stamp.void
CmsDriverManager.unsubscribeAllResourcesFor
(CmsDbContext dbc, String poolName, CmsPrincipal principal) Unsubscribes the principal from all resources.void
I_CmsSubscriptionDriver.unsubscribeAllResourcesFor
(CmsDbContext dbc, String poolName, CmsPrincipal principal) Unsubscribes the principal from all resources.void
CmsDriverManager.unsubscribeResourceFor
(CmsDbContext dbc, String poolName, CmsPrincipal principal, CmsResource resource) Unsubscribes the principal from the resource.void
I_CmsSubscriptionDriver.unsubscribeResourceFor
(CmsDbContext dbc, String poolName, CmsPrincipal principal, CmsResource resource) Unsubscribes the principal from the resource.void
CmsDriverManager.unsubscribeResourceForAll
(CmsDbContext dbc, String poolName, CmsResource resource) Unsubscribes all groups and users from the resource.void
I_CmsSubscriptionDriver.unsubscribeResourceForAll
(CmsDbContext dbc, String poolName, CmsResource resource) Unsubscribes all groups and users from the resource.void
CmsDriverManager.updateExportPoints
(CmsDbContext dbc) Update the export points.void
CmsDriverManager.updateLastLoginDate
(CmsDbContext dbc, CmsUser user) Updates the last login date on the given user to the current time.void
CmsDriverManager.updateLog
(CmsDbContext dbc) Logs everything that has not been written to DB jet.void
I_CmsVfsDriver.updateRelations
(CmsDbContext dbc, CmsProject onlineProject, CmsResource offlineResource) Updates the relations on the online project copying the relations from the offline project.void
CmsDriverManager.updateRelationsForResource
(CmsDbContext dbc, CmsResource resource, List<CmsLink> links, boolean updateSiblingState) Updates/Creates the given relations for the given resource.boolean
CmsDriverManager.userInGroup
(CmsDbContext dbc, String username, String groupname, boolean readRoles) Returnstrue
if a user is member of the given group.CmsDriverManager.validateRelations
(CmsDbContext dbc, CmsPublishList publishList, I_CmsReport report) Validates the relations for the given resources.boolean
I_CmsVfsDriver.validateResourceIdExists
(CmsDbContext dbc, CmsUUID projectId, CmsUUID resourceId) Validates if the specified resource ID in the tables of the specified project {offline|online} exists.boolean
I_CmsVfsDriver.validateStructureIdExists
(CmsDbContext dbc, CmsUUID projectId, CmsUUID structureId) Validates if the specified structure ID in the tables of the specified project {offline|online} exists.void
CmsDriverManager.writeAccessControlEntry
(CmsDbContext dbc, CmsResource resource, CmsAccessControlEntry ace) Writes an access control entries to a given resource.void
I_CmsUserDriver.writeAccessControlEntry
(CmsDbContext dbc, CmsProject project, CmsAccessControlEntry acEntry) Writes an access control entry.void
I_CmsVfsDriver.writeContent
(CmsDbContext dbc, CmsUUID resourceId, byte[] content) Writes the resource content with the specified resource id.void
CmsDriverManager.writeExportPoints
(CmsDbContext dbc, I_CmsReport report, CmsUUID publishHistoryId) Writes all export points into the file system for the publish task specified by trhe given publish history ID.CmsDriverManager.writeFile
(CmsDbContext dbc, CmsFile resource) Writes a resource to the OpenCms VFS, including it's content.void
CmsDriverManager.writeGroup
(CmsDbContext dbc, CmsGroup group) Writes an already existing group.void
I_CmsUserDriver.writeGroup
(CmsDbContext dbc, CmsGroup group) Writes an already existing group.void
CmsDriverManager.writeHistoryProject
(CmsDbContext dbc, int publishTag, long publishDate) Creates an historical entry of the current project.void
I_CmsVfsDriver.writeLastModifiedProjectId
(CmsDbContext dbc, CmsProject project, CmsUUID projectId, CmsResource resource) Writes the "last-modified-in-project" ID of a resource.void
CmsDriverManager.writeLocks
(CmsDbContext dbc) Writes the locks that are currently stored in-memory to the database to allow restoring them in future server startups.void
I_CmsProjectDriver.writeLocks
(CmsDbContext dbc, List<CmsLock> locks) void
CmsDriverManager.writeOrganizationalUnit
(CmsDbContext dbc, CmsOrganizationalUnit organizationalUnit) Writes an already existing organizational unit.void
I_CmsUserDriver.writeOrganizationalUnit
(CmsDbContext dbc, CmsOrganizationalUnit organizationalUnit) Writes an already existing organizational unit.void
I_CmsUserDriver.writePassword
(CmsDbContext dbc, String userFqn, String oldPassword, String newPassword) Sets a new password for a user.void
I_CmsHistoryDriver.writePrincipal
(CmsDbContext dbc, I_CmsPrincipal principal) Writes an historical entry for the given principal.void
CmsDriverManager.writeProject
(CmsDbContext dbc, CmsProject project) Writes an already existing project.void
I_CmsHistoryDriver.writeProject
(CmsDbContext dbc, int publishTag, long publishDate) Creates an historical entry for the current project.void
I_CmsProjectDriver.writeProject
(CmsDbContext dbc, CmsProject project) Writes an already existing project.void
CmsDriverManager.writeProjectLastModified
(CmsDbContext dbc, CmsResource resource, CmsUUID projectId) Writes a new project into the PROJECT_LASTMODIFIED field of a resource record.void
I_CmsHistoryDriver.writeProperties
(CmsDbContext dbc, CmsResource resource, List<CmsProperty> properties, int publishTag) Writes the properties of a resource to the history.void
CmsDriverManager.writePropertyObject
(CmsDbContext dbc, CmsResource resource, CmsProperty property) Writes a property for a specified resource.void
I_CmsVfsDriver.writePropertyObject
(CmsDbContext dbc, CmsProject project, CmsResource resource, CmsProperty property) Writes a property object to the database mapped to a specified resource.void
CmsDriverManager.writePropertyObjects
(CmsDbContext dbc, CmsResource resource, List<CmsProperty> properties, boolean updateState) Writes a list of properties for a specified resource.void
I_CmsVfsDriver.writePropertyObjects
(CmsDbContext dbc, CmsProject project, CmsResource resource, List<CmsProperty> properties) Writes a list of property objects to the database mapped to a specified resource.void
I_CmsProjectDriver.writePublishHistory
(CmsDbContext dbc, CmsUUID publishId, CmsPublishedResource resource) Inserts an entry in the publish history for a published VFS resource.void
CmsDriverManager.writePublishJob
(CmsDbContext dbc, CmsPublishJobInfoBean publishJob) Updates a publish job.void
I_CmsProjectDriver.writePublishJob
(CmsDbContext dbc, CmsPublishJobInfoBean publishJob) Writes a publish job.void
CmsDriverManager.writePublishReport
(CmsDbContext dbc, CmsPublishJobInfoBean publishJob) Writes the publish report for a publish job.void
I_CmsProjectDriver.writePublishReport
(CmsDbContext dbc, CmsUUID publishId, byte[] content) Writes a publish report for a publish job.void
CmsDriverManager.writeResource
(CmsDbContext dbc, CmsResource resource) Writes a resource to the OpenCms VFS.void
I_CmsHistoryDriver.writeResource
(CmsDbContext dbc, CmsResource resource, List<CmsProperty> properties, int publishTag) Writes a resource to the history.void
I_CmsVfsDriver.writeResource
(CmsDbContext dbc, CmsUUID projectId, CmsResource resource, int changed) Writes the structure and/or resource record(s) of an existing file.void
I_CmsVfsDriver.writeResourceState
(CmsDbContext dbc, CmsProject project, CmsResource resource, int changed, boolean isPublishing) Writes file state in either the structure or resource record, or both of them.void
CmsDriverManager.writeStaticExportPublishedResource
(CmsDbContext dbc, String resourceName, int linkType, String linkParameter, long timestamp) Inserts an entry in the published resource table.void
I_CmsProjectDriver.writeStaticExportPublishedResource
(CmsDbContext dbc, String resourceName, int linkType, String linkParameter, long timestamp) Inserts an entry in the published resource table.CmsDriverManager.writeUrlNameMapping
(CmsDbContext dbc, Iterator<String> nameSeq, CmsUUID structureId, String locale, boolean replaceOnPublish) Adds a new url name mapping for a structure id.void
CmsDriverManager.writeUser
(CmsDbContext dbc, CmsUser user) Updates the user information.void
I_CmsUserDriver.writeUser
(CmsDbContext dbc, CmsUser user) Updates the user information.void
I_CmsUserDriver.writeUserInfo
(CmsDbContext dbc, CmsUUID userId, String key, Object value) Writes an user additional information entry.void
I_CmsProjectDriver.writeUserPublishListEntries
(CmsDbContext dbc, List<CmsUserPublishListEntry> publishListAdditions) Writes multiple user publish list entries to the database.ModifierConstructorDescriptionCmsVisitEntry
(CmsDbContext dbc, CmsUUID structureId) Public constructor, will use the current time for time stamp.ResourceOUCacheKey
(CmsDriverManager driverManager, CmsDbContext dbc) Creates a new instance. -
Uses of CmsDbContext in org.opencms.db.generic
Modifier and TypeMethodDescriptionvoid
CmsUserDriver.addResourceToOrganizationalUnit
(CmsDbContext dbc, CmsOrganizationalUnit orgUnit, CmsResource resource) void
CmsVfsDriver.addUrlNameMappingEntry
(CmsDbContext dbc, boolean online, CmsUrlNameMappingEntry entry) protected void
CmsSubscriptionDriver.addVisit
(CmsDbContext dbc, String poolName, CmsVisitEntry visit) Adds an entry to the table of visits.protected void
CmsVfsDriver.checkWritePermissionsInFolder
(CmsDbContext dbc, CmsResource folder) Checks that the current user has write permissions for all subresources of the given folder.int
CmsProjectDriver.cleanupPublishHistory
(CmsDbContext dbc, CmsPublishHistoryCleanupFilter filter) void
CmsSqlManager.closeAll
(CmsDbContext dbc, Connection con, Statement stmnt, ResultSet res) Attempts to close the connection, statement and result set after a statement has been executed.int
CmsVfsDriver.countSiblings
(CmsDbContext dbc, CmsUUID projectId, CmsUUID resourceId) Counts the number of siblings of a resource.long
CmsUserDriver.countUsers
(CmsDbContext dbc, CmsUserSearchParameters searchParams) void
CmsUserDriver.createAccessControlEntry
(CmsDbContext dbc, CmsProject project, CmsUUID resource, CmsUUID principal, int allowed, int denied, int flags) void
CmsVfsDriver.createContent
(CmsDbContext dbc, CmsUUID projectId, CmsUUID resourceId, byte[] content) CmsUserDriver.createGroup
(CmsDbContext dbc, CmsUUID groupId, String groupFqn, String description, int flags, String parentGroupFqn) void
CmsVfsDriver.createOnlineContent
(CmsDbContext dbc, CmsUUID resourceId, byte[] contents, int publishTag, boolean keepOnline, boolean needToUpdateContent) CmsUserDriver.createOrganizationalUnit
(CmsDbContext dbc, String name, String description, int flags, CmsOrganizationalUnit parent, String associatedResource) CmsProjectDriver.createProject
(CmsDbContext dbc, CmsUUID id, CmsUser owner, CmsGroup group, CmsGroup managergroup, String projectFqn, String description, int flags, CmsProject.CmsProjectType type) void
CmsProjectDriver.createProjectResource
(CmsDbContext dbc, CmsUUID projectId, String resourcePath) CmsHistoryDriver.createPropertyDefinition
(CmsDbContext dbc, String name, CmsPropertyDefinition.CmsPropertyType type) CmsVfsDriver.createPropertyDefinition
(CmsDbContext dbc, CmsUUID projectId, String name, CmsPropertyDefinition.CmsPropertyType type) void
CmsProjectDriver.createPublishJob
(CmsDbContext dbc, CmsPublishJobInfoBean publishJob) void
CmsVfsDriver.createRelation
(CmsDbContext dbc, CmsUUID projectId, CmsRelation relation) CmsVfsDriver.createResource
(CmsDbContext dbc, CmsUUID projectId, CmsResource resource, byte[] content) void
CmsUserDriver.createRootOrganizationalUnit
(CmsDbContext dbc) void
CmsVfsDriver.createSibling
(CmsDbContext dbc, CmsProject project, CmsResource resource) 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) void
CmsUserDriver.createUserInGroup
(CmsDbContext dbc, CmsUUID userId, CmsUUID groupId) void
CmsVfsDriver.deleteAliases
(CmsDbContext dbc, CmsProject project, CmsAliasFilter filter) void
CmsProjectDriver.deleteAllStaticExportPublishedResources
(CmsDbContext dbc, int linkType) int
CmsHistoryDriver.deleteEntries
(CmsDbContext dbc, I_CmsHistoryResource resource, int versionsToKeep, long time) void
CmsUserDriver.deleteGroup
(CmsDbContext dbc, String groupFqn) void
CmsProjectDriver.deleteLog
(CmsDbContext dbc, CmsLogFilter filter) void
CmsUserDriver.deleteOrganizationalUnit
(CmsDbContext dbc, CmsOrganizationalUnit organizationalUnit) void
CmsProjectDriver.deleteProject
(CmsDbContext dbc, CmsProject project) void
CmsProjectDriver.deleteProjectResource
(CmsDbContext dbc, CmsUUID projectId, String resourceName) void
CmsProjectDriver.deleteProjectResources
(CmsDbContext dbc, CmsProject project) void
CmsHistoryDriver.deletePropertyDefinition
(CmsDbContext dbc, CmsPropertyDefinition metadef) void
CmsVfsDriver.deletePropertyDefinition
(CmsDbContext dbc, CmsPropertyDefinition metadef) void
CmsVfsDriver.deletePropertyObjects
(CmsDbContext dbc, CmsUUID projectId, CmsResource resource, int deleteOption) void
CmsProjectDriver.deletePublishHistory
(CmsDbContext dbc, CmsUUID projectId, int maxpublishTag) void
CmsProjectDriver.deletePublishHistoryEntry
(CmsDbContext dbc, CmsUUID publishHistoryId, CmsPublishedResource publishedResource) void
CmsProjectDriver.deletePublishJob
(CmsDbContext dbc, CmsUUID publishHistoryId) void
CmsProjectDriver.deletePublishList
(CmsDbContext dbc, CmsUUID publishHistoryId) void
CmsVfsDriver.deleteRelations
(CmsDbContext dbc, CmsUUID projectId, CmsResource resource, CmsRelationFilter filter) void
CmsVfsDriver.deleteRewriteAliases
(CmsDbContext dbc, CmsRewriteAliasFilter filter) void
CmsProjectDriver.deleteStaticExportPublishedResource
(CmsDbContext dbc, String resourceName, int linkType, String linkParameter) void
CmsVfsDriver.deleteUrlNameMappingEntries
(CmsDbContext dbc, boolean online, CmsUrlNameMappingFilter filter) void
CmsUserDriver.deleteUser
(CmsDbContext dbc, String userFqn) void
CmsUserDriver.deleteUserInfos
(CmsDbContext dbc, CmsUUID userId) void
CmsUserDriver.deleteUserInGroup
(CmsDbContext dbc, CmsUUID userId, CmsUUID groupId) void
CmsProjectDriver.deleteUserPublishListEntries
(CmsDbContext dbc, List<CmsUserPublishListEntry> publishListDeletions) void
CmsSubscriptionDriver.deleteVisits
(CmsDbContext dbc, String poolName, CmsVisitEntryFilter filter) boolean
CmsUserDriver.existsGroup
(CmsDbContext dbc, String groupFqn) boolean
CmsUserDriver.existsUser
(CmsDbContext dbc, String userFqn) void
CmsProjectDriver.fillDefaults
(CmsDbContext dbc) void
CmsUserDriver.fillDefaults
(CmsDbContext dbc) protected CmsResourceState
CmsProjectDriver.fixMovedResource
(CmsDbContext dbc, CmsProject onlineProject, CmsResource offlineResource, CmsUUID publishHistoryId, int publishTag) Checks if the given resource (by id) is available in the online project, if there exists a resource with a different path (a moved file), then the online entry is moved to the right (new) location before publishing.CmsHistoryDriver.getAllDeletedEntries
(CmsDbContext dbc) CmsHistoryDriver.getAllNotDeletedEntries
(CmsDbContext dbc) CmsSqlManager.getConnection
(CmsDbContext dbc) Returns a JDBC connection from the connection pool.long
CmsSubscriptionDriver.getDateLastVisitedBy
(CmsDbContext dbc, String poolName, CmsUser user, CmsResource resource) CmsUserDriver.getGroups
(CmsDbContext dbc, CmsOrganizationalUnit orgUnit, boolean includeSubOus, boolean readRoles) CmsUserDriver.getOrganizationalUnits
(CmsDbContext dbc, CmsOrganizationalUnit parent, boolean includeChildren) CmsVfsDriver.getResourceOus
(CmsDbContext dbc, CmsUUID projectId, CmsResource resource) Returns all organizational units for the given resource.CmsUserDriver.getResourcesForOrganizationalUnit
(CmsDbContext dbc, CmsOrganizationalUnit orgUnit) CmsUserDriver.getUsers
(CmsDbContext dbc, CmsOrganizationalUnit orgUnit, boolean recursive) CmsProjectDriver.getUsersPubList
(CmsDbContext dbc, CmsUUID userId) protected List<CmsResource>
CmsProjectDriver.getUsersPubListFromLog
(CmsDbContext dbc, CmsUUID userId) Implementation of reading the user publish list which uses the log table.CmsUserDriver.getUsersWithoutAdditionalInfo
(CmsDbContext dbc, CmsOrganizationalUnit orgUnit, boolean recursive) int
CmsVfsDriver.incrementCounter
(CmsDbContext dbc, String name) void
CmsHistoryDriver.init
(CmsDbContext dbc, CmsConfigurationManager configurationManager, List<String> successiveDrivers, CmsDriverManager driverManager) void
CmsProjectDriver.init
(CmsDbContext dbc, CmsConfigurationManager configurationManager, List<String> successiveDrivers, CmsDriverManager driverManager) void
CmsSubscriptionDriver.init
(CmsDbContext dbc, CmsConfigurationManager configurationManager, List<String> successiveDrivers, CmsDriverManager driverManager) void
CmsUserDriver.init
(CmsDbContext dbc, CmsConfigurationManager configurationManager, List<String> successiveDrivers, CmsDriverManager driverManager) void
CmsVfsDriver.init
(CmsDbContext dbc, CmsConfigurationManager configurationManager, List<String> successiveDrivers, CmsDriverManager driverManager) void
CmsVfsDriver.insertAlias
(CmsDbContext dbc, CmsProject project, CmsAlias alias) void
CmsVfsDriver.insertRewriteAliases
(CmsDbContext dbc, Collection<CmsRewriteAlias> rewriteAliases) protected void
CmsHistoryDriver.internalCleanup
(CmsDbContext dbc, I_CmsHistoryResource resource) Deletes all historical entries of subresources of a folder without any historical netry left.protected int
CmsHistoryDriver.internalCountProperties
(CmsDbContext dbc, CmsPropertyDefinition metadef, CmsUUID projectId) Returns the amount of properties for a propertydefinition.protected int
CmsVfsDriver.internalCountProperties
(CmsDbContext dbc, CmsPropertyDefinition propertyDefinition, CmsUUID projectId) Returns the count of properties for a property definition.protected void
CmsVfsDriver.internalCreateCounter
(CmsDbContext dbc, String name, int value) Creates a new counter.protected void
CmsUserDriver.internalCreateDefaultGroups
(CmsDbContext dbc, String ouFqn, String ouDescription, boolean webuser) Creates the default groups and user for the given organizational unit.protected CmsOrganizationalUnit
CmsUserDriver.internalCreateOrgUnitFromResource
(CmsDbContext dbc, CmsResource resource) Returns the organizational unit represented by the given resource.protected CmsResource
CmsUserDriver.internalCreateResourceForOrgUnit
(CmsDbContext dbc, String path, int flags) Creates a folder with the given path an properties, offline AND online.protected CmsUser
CmsUserDriver.internalCreateUser
(CmsDbContext dbc, ResultSet res) Semi-constructor to create aCmsUser
instance from a JDBC result set.protected void
CmsUserDriver.internalDeleteOrgUnitResource
(CmsDbContext dbc, CmsResource resource) Deletes a resource representing a organizational unit, offline AND online.protected void
CmsUserDriver.internalDeleteUserInfo
(CmsDbContext dbc, CmsUUID userId, String key) Deletes an additional user info.CmsUserDriver.internalGetUsers
(CmsDbContext dbc, CmsOrganizationalUnit orgUnit, boolean recursive, boolean readAdditionalInfos) Internal implementation for reading users of an OU, with or without additional infos.protected void
CmsVfsDriver.internalIncrementCounter
(CmsDbContext dbc, String name) Increments a counter.protected CmsResource
CmsUserDriver.internalOrgUnitFolder
(CmsDbContext dbc, CmsOrganizationalUnit orgUnit) Returns the folder for the given organizational units, or the base folder ifnull
.protected Integer
CmsVfsDriver.internalReadCounter
(CmsDbContext dbc, String name) Reads the current value of a counter.protected String
CmsVfsDriver.internalReadParentId
(CmsDbContext dbc, CmsUUID projectId, String resourcename) Returns the parent id of the given resource.protected CmsResourceState
CmsVfsDriver.internalReadResourceState
(CmsDbContext dbc, CmsUUID projectId, CmsResource resource) Returns the resource state of the given resource.protected CmsResourceState
CmsVfsDriver.internalReadStructureState
(CmsDbContext dbc, CmsUUID projectId, CmsResource resource) Returns the structure state of the given resource.protected void
CmsVfsDriver.internalRemoveFolder
(CmsDbContext dbc, CmsProject currentProject, CmsResource resource) Removes a resource physically in the database.protected void
CmsProjectDriver.internalResetResourceState
(CmsDbContext dbc, CmsResource resource) Resets the state to UNCHANGED for a specified resource.CmsUserDriver.internalResourcesForOrgUnit
(CmsDbContext dbc, CmsResource ouResource) Returns the list of root paths associated to the organizational unit represented by the given resource.protected void
CmsUserDriver.internalUpdateRoleGroup
(CmsDbContext dbc, String groupName, CmsRole role) Updates a group to a virtual group.protected void
CmsUserDriver.internalUpdateUserInfo
(CmsDbContext dbc, CmsUUID userId, String key, Object value) Updates additional user info.protected void
CmsVfsDriver.internalUpdateVersions
(CmsDbContext dbc, CmsResource resource) Updates the offline version numbers.protected boolean
CmsHistoryDriver.internalValidateResource
(CmsDbContext dbc, CmsResource resource, int publishTag) Tests if a history resource does exist.protected void
CmsUserDriver.internalValidateResourceForOrgUnit
(CmsDbContext dbc, CmsOrganizationalUnit orgUnit, String rootPath) Validates the given root path to be in the scope of the resources of the given organizational unit.protected boolean
CmsUserDriver.internalValidateUserInGroup
(CmsDbContext dbc, CmsUUID userId, CmsUUID groupId) Checks if a user is member of a group.protected void
CmsProjectDriver.internalWriteHistory
(CmsDbContext dbc, CmsResource resource, CmsResourceState state, List<CmsProperty> properties, CmsUUID publishHistoryId, int publishTag) Writes the needed history entries.protected void
CmsUserDriver.internalWriteOrgUnitProperty
(CmsDbContext dbc, CmsResource resource, CmsProperty property) Writes a property for an organizational unit resource, online AND offline.protected void
CmsUserDriver.internalWriteUserInfo
(CmsDbContext dbc, CmsUUID userId, String key, Object value) Writes a new additional user info.protected void
CmsUserDriver.internalWriteUserInfos
(CmsDbContext dbc, CmsUUID userId, Map<String, Object> additionalInfo) Updates the user additional information map.void
CmsProjectDriver.log
(CmsDbContext dbc, List<CmsLogEntry> logEntries) void
CmsSubscriptionDriver.markResourceAsVisitedBy
(CmsDbContext dbc, String poolName, CmsResource resource, CmsUser user) protected void
CmsVfsDriver.moveRelations
(CmsDbContext dbc, CmsUUID projectId, CmsUUID structureId, String rootPath) Moves all relations of a resource to the new path.void
CmsVfsDriver.moveResource
(CmsDbContext dbc, CmsUUID projectId, CmsResource source, String destinationPath) void
CmsUserDriver.publishAccessControlEntries
(CmsDbContext dbc, CmsProject offlineProject, CmsProject onlineProject, CmsUUID offlineId, CmsUUID onlineId) protected void
CmsProjectDriver.publishChangedFile
(CmsDbContext dbc, CmsProject onlineProject, CmsResource offlineResource, Set<CmsUUID> publishedResourceIds, CmsUUID publishHistoryId, int publishTag) Publishes a changed file.protected void
CmsProjectDriver.publishDeletedFile
(CmsDbContext dbc, CmsProject onlineProject, CmsResource offlineResource, CmsUUID publishHistoryId, int publishTag) Publishes a deleted file.void
CmsProjectDriver.publishDeletedFolder
(CmsDbContext dbc, I_CmsReport report, int m, int n, CmsProject onlineProject, CmsFolder currentFolder, CmsUUID publishHistoryId, int publishTag) void
CmsProjectDriver.publishFile
(CmsDbContext dbc, I_CmsReport report, int m, int n, CmsProject onlineProject, CmsResource offlineResource, Set<CmsUUID> publishedContentIds, CmsUUID publishHistoryId, int publishTag) CmsProjectDriver.publishFileContent
(CmsDbContext dbc, CmsProject offlineProject, CmsProject onlineProject, CmsResource offlineResource, Set<CmsUUID> publishedResourceIds, boolean needToUpdateContent, int publishTag) void
CmsProjectDriver.publishFolder
(CmsDbContext dbc, I_CmsReport report, int m, int n, CmsProject onlineProject, CmsFolder offlineFolder, CmsUUID publishHistoryId, int publishTag) protected void
CmsProjectDriver.publishNewFile
(CmsDbContext dbc, CmsProject onlineProject, CmsResource offlineResource, Set<CmsUUID> publishedContentIds, CmsUUID publishHistoryId, int publishTag) Publishes a new file.void
CmsProjectDriver.publishProject
(CmsDbContext dbc, I_CmsReport report, CmsProject onlineProject, CmsPublishList publishList, int publishTag) void
CmsVfsDriver.publishResource
(CmsDbContext dbc, CmsProject onlineProject, CmsResource onlineResource, CmsResource offlineResource) void
CmsVfsDriver.publishVersions
(CmsDbContext dbc, CmsResource resource, boolean firstSibling) CmsUserDriver.readAccessControlEntries
(CmsDbContext dbc, CmsProject project, CmsUUID resource, boolean inheritedOnly) CmsUserDriver.readAccessControlEntry
(CmsDbContext dbc, CmsProject project, CmsUUID resource, CmsUUID principal) CmsVfsDriver.readAliases
(CmsDbContext dbc, CmsProject project, CmsAliasFilter filter) CmsHistoryDriver.readAllAvailableVersions
(CmsDbContext dbc, CmsUUID structureId) CmsSubscriptionDriver.readAllSubscribedResources
(CmsDbContext dbc, String poolName, CmsPrincipal principal) CmsUserDriver.readChildGroups
(CmsDbContext dbc, String parentGroupFqn) CmsVfsDriver.readChildResources
(CmsDbContext dbc, CmsProject currentProject, CmsResource resource, boolean getFolders, boolean getFiles) byte[]
CmsHistoryDriver.readContent
(CmsDbContext dbc, CmsUUID resourceId, int publishTag) byte[]
CmsVfsDriver.readContent
(CmsDbContext dbc, CmsUUID projectId, CmsUUID resourceId) CmsHistoryDriver.readDeletedResources
(CmsDbContext dbc, CmsUUID structureId, CmsUUID userId) CmsVfsDriver.readFolder
(CmsDbContext dbc, CmsUUID projectId, String folderPath) CmsVfsDriver.readFolder
(CmsDbContext dbc, CmsUUID projectId, CmsUUID folderId) CmsUserDriver.readGroup
(CmsDbContext dbc, String groupFqn) CmsUserDriver.readGroup
(CmsDbContext dbc, CmsUUID groupId) CmsUserDriver.readGroupsOfUser
(CmsDbContext dbc, CmsUUID userId, String ouFqn, boolean includeChildOus, String remoteAddress, boolean readRoles) int
CmsHistoryDriver.readLastVersion
(CmsDbContext dbc, CmsUUID structureId) CmsProjectDriver.readLocks
(CmsDbContext dbc) CmsProjectDriver.readLog
(CmsDbContext dbc, CmsLogFilter filter) int
CmsHistoryDriver.readMaxPublishTag
(CmsDbContext dbc, CmsUUID resourceId) int
CmsHistoryDriver.readNextPublishTag
(CmsDbContext dbc) CmsUserDriver.readOrganizationalUnit
(CmsDbContext dbc, String ouFqn) CmsVfsDriver.readParentFolder
(CmsDbContext dbc, CmsUUID projectId, CmsUUID structureId) CmsHistoryDriver.readPrincipal
(CmsDbContext dbc, CmsUUID principalId) CmsHistoryDriver.readProject
(CmsDbContext dbc, int publishTag) CmsHistoryDriver.readProject
(CmsDbContext dbc, CmsUUID projectId) CmsProjectDriver.readProject
(CmsDbContext dbc, String projectFqn) CmsProjectDriver.readProject
(CmsDbContext dbc, CmsUUID id) CmsProjectDriver.readProjectResource
(CmsDbContext dbc, CmsUUID projectId, String resourcePath) CmsHistoryDriver.readProjectResources
(CmsDbContext dbc, int publishTag) CmsProjectDriver.readProjectResources
(CmsDbContext dbc, CmsProject project) CmsHistoryDriver.readProjects
(CmsDbContext dbc) CmsProjectDriver.readProjects
(CmsDbContext dbc, String ouFqn) CmsProjectDriver.readProjectsForGroup
(CmsDbContext dbc, CmsGroup group) CmsProjectDriver.readProjectsForManagerGroup
(CmsDbContext dbc, CmsGroup group) CmsProjectDriver.readProjectsForResource
(CmsDbContext dbc, String rootPath) Returns the projects of a given resource.CmsProjectDriver.readProjectsForUser
(CmsDbContext dbc, CmsUser user) CmsHistoryDriver.readProperties
(CmsDbContext dbc, I_CmsHistoryResource resource) CmsHistoryDriver.readPropertyDefinition
(CmsDbContext dbc, String name) CmsVfsDriver.readPropertyDefinition
(CmsDbContext dbc, String name, CmsUUID projectId) CmsVfsDriver.readPropertyDefinitions
(CmsDbContext dbc, CmsUUID projectId) CmsVfsDriver.readPropertyObject
(CmsDbContext dbc, String key, CmsProject project, CmsResource resource) CmsVfsDriver.readPropertyObjects
(CmsDbContext dbc, CmsProject project, CmsResource resource) CmsProjectDriver.readPublishedResources
(CmsDbContext dbc, CmsUUID publishHistoryId) CmsProjectDriver.readPublishJob
(CmsDbContext dbc, CmsUUID publishHistoryId) CmsProjectDriver.readPublishJobs
(CmsDbContext dbc, long startTime, long endTime) CmsProjectDriver.readPublishList
(CmsDbContext dbc, CmsUUID publishHistoryId) byte[]
CmsProjectDriver.readPublishReportContents
(CmsDbContext dbc, CmsUUID publishHistoryId) int
CmsHistoryDriver.readPublishTag
(CmsDbContext dbc, long maxdate) CmsVfsDriver.readRelations
(CmsDbContext dbc, CmsUUID projectId, CmsResource resource, CmsRelationFilter filter) CmsHistoryDriver.readResource
(CmsDbContext dbc, CmsUUID structureId, int version) CmsVfsDriver.readResource
(CmsDbContext dbc, CmsUUID projectId, String path, boolean includeDeleted) CmsVfsDriver.readResource
(CmsDbContext dbc, CmsUUID projectId, CmsUUID structureId, boolean includeDeleted) CmsVfsDriver.readResources
(CmsDbContext dbc, CmsUUID projectId, CmsResourceState state, int mode) CmsVfsDriver.readResourcesForPrincipalACE
(CmsDbContext dbc, CmsProject project, CmsUUID principalId) CmsVfsDriver.readResourcesForPrincipalAttr
(CmsDbContext dbc, CmsProject project, CmsUUID principalId) CmsSubscriptionDriver.readResourcesVisitedBy
(CmsDbContext dbc, String poolName, CmsVisitedByFilter filter) CmsVfsDriver.readResourcesWithProperty
(CmsDbContext dbc, CmsUUID projectId, CmsUUID propertyDef, String path, String value) CmsVfsDriver.readResourceTree
(CmsDbContext dbc, CmsUUID projectId, String parentPath, int type, CmsResourceState state, long lastModifiedAfter, long lastModifiedBefore, long releasedAfter, long releasedBefore, long expiredAfter, long expiredBefore, int mode) CmsVfsDriver.readRewriteAliases
(CmsDbContext dbc, CmsRewriteAliasFilter filter) CmsVfsDriver.readSiblings
(CmsDbContext dbc, CmsUUID projectId, CmsResource resource, boolean includeDeleted) CmsProjectDriver.readStaticExportPublishedResourceParameters
(CmsDbContext dbc, String rfsName) CmsProjectDriver.readStaticExportResources
(CmsDbContext dbc, int parameterResources, long timestamp) CmsSubscriptionDriver.readSubscribedDeletedResources
(CmsDbContext dbc, String poolName, CmsUser user, List<CmsGroup> groups, CmsResource parent, boolean includeSubFolders, long deletedFrom) CmsSubscriptionDriver.readSubscribedResources
(CmsDbContext dbc, String poolName, CmsSubscriptionFilter filter) protected List<CmsResource>
CmsVfsDriver.readTypesInResourceTree
(CmsDbContext dbc, CmsUUID projectId, String parentPath, List<Integer> types, CmsResourceState state, long lastModifiedAfter, long lastModifiedBefore, long releasedAfter, long releasedBefore, long expiredAfter, long expiredBefore, int mode) Reads all resources inside a given project matching the criteria specified by parameter values.CmsVfsDriver.readUrlNameMappingEntries
(CmsDbContext dbc, boolean online, CmsUrlNameMappingFilter filter) Reads the URL name mapping entries which match a given filter.CmsUserDriver.readUser
(CmsDbContext dbc, String userFqn) CmsUserDriver.readUser
(CmsDbContext dbc, String userFqn, String password, String remoteAddress) CmsUserDriver.readUser
(CmsDbContext dbc, CmsUUID id) CmsUserDriver.readUserInfos
(CmsDbContext dbc, CmsUUID userId) CmsUserDriver.readUsersOfGroup
(CmsDbContext dbc, String groupFqn, boolean includeOtherOuUsers) CmsVfsDriver.readVersions
(CmsDbContext dbc, CmsUUID projectId, CmsUUID resourceId, CmsUUID structureId) CmsSubscriptionDriver.readVisits
(CmsDbContext dbc, String poolName, CmsVisitEntryFilter filter) ReadsCmsVisitEntry
objects from the database.void
CmsUserDriver.removeAccessControlEntries
(CmsDbContext dbc, CmsProject project, CmsUUID resource) void
CmsUserDriver.removeAccessControlEntriesForPrincipal
(CmsDbContext dbc, CmsProject project, CmsProject onlineProject, CmsUUID principal) void
CmsUserDriver.removeAccessControlEntry
(CmsDbContext dbc, CmsProject project, CmsUUID resource, CmsUUID principal) void
CmsVfsDriver.removeFile
(CmsDbContext dbc, CmsUUID projectId, CmsResource resource) void
CmsVfsDriver.removeFolder
(CmsDbContext dbc, CmsProject currentProject, CmsResource resource) void
CmsUserDriver.removeResourceFromOrganizationalUnit
(CmsDbContext dbc, CmsOrganizationalUnit orgUnit, CmsResource resource) protected void
CmsVfsDriver.repairBrokenRelations
(CmsDbContext dbc, CmsUUID projectId, CmsUUID structureId, String rootPath) Repairs broken links.void
CmsVfsDriver.replaceResource
(CmsDbContext dbc, CmsResource newResource, byte[] resContent, int newResourceType) CmsUserDriver.searchUsers
(CmsDbContext dbc, CmsUserSearchParameters searchParams) void
CmsSubscriptionDriver.setSubscribedResourceAsDeleted
(CmsDbContext dbc, String poolName, CmsResource resource) void
CmsUserDriver.setUsersOrganizationalUnit
(CmsDbContext dbc, CmsOrganizationalUnit orgUnit, CmsUser user) void
CmsSubscriptionDriver.subscribeResourceFor
(CmsDbContext dbc, String poolName, CmsPrincipal principal, CmsResource resource) void
CmsVfsDriver.transferResource
(CmsDbContext dbc, CmsProject project, CmsResource resource, CmsUUID createdUser, CmsUUID lastModifiedUser) void
CmsProjectDriver.unmarkProjectResources
(CmsDbContext dbc, CmsProject project) void
CmsSubscriptionDriver.unsubscribeAllDeletedResources
(CmsDbContext dbc, String poolName, long deletedTo) void
CmsSubscriptionDriver.unsubscribeAllResourcesFor
(CmsDbContext dbc, String poolName, CmsPrincipal principal) void
CmsSubscriptionDriver.unsubscribeResourceFor
(CmsDbContext dbc, String poolName, CmsPrincipal principal, CmsResource resource) void
CmsSubscriptionDriver.unsubscribeResourceForAll
(CmsDbContext dbc, String poolName, CmsResource resource) protected void
CmsVfsDriver.updateBrokenRelations
(CmsDbContext dbc, CmsUUID projectId, String rootPath) Updates broken links.void
CmsVfsDriver.updateRelations
(CmsDbContext dbc, CmsProject onlineProject, CmsResource offlineResource) boolean
CmsVfsDriver.validateResourceIdExists
(CmsDbContext dbc, CmsUUID projectId, CmsUUID resourceId) boolean
CmsVfsDriver.validateStructureIdExists
(CmsDbContext dbc, CmsUUID projectId, CmsUUID structureId) void
CmsUserDriver.writeAccessControlEntry
(CmsDbContext dbc, CmsProject project, CmsAccessControlEntry acEntry) void
CmsVfsDriver.writeContent
(CmsDbContext dbc, CmsUUID resourceId, byte[] content) void
CmsUserDriver.writeGroup
(CmsDbContext dbc, CmsGroup group) void
CmsVfsDriver.writeLastModifiedProjectId
(CmsDbContext dbc, CmsProject project, CmsUUID projectId, CmsResource resource) void
CmsProjectDriver.writeLocks
(CmsDbContext dbc, List<CmsLock> locks) void
CmsUserDriver.writeOrganizationalUnit
(CmsDbContext dbc, CmsOrganizationalUnit organizationalUnit) void
CmsUserDriver.writePassword
(CmsDbContext dbc, String userFqn, String oldPassword, String newPassword) void
CmsHistoryDriver.writePrincipal
(CmsDbContext dbc, I_CmsPrincipal principal) void
CmsHistoryDriver.writeProject
(CmsDbContext dbc, int publishTag, long publishDate) void
CmsProjectDriver.writeProject
(CmsDbContext dbc, CmsProject project) void
CmsHistoryDriver.writeProperties
(CmsDbContext dbc, CmsResource resource, List<CmsProperty> properties, int publishTag) void
CmsVfsDriver.writePropertyObject
(CmsDbContext dbc, CmsProject project, CmsResource resource, CmsProperty property) void
CmsVfsDriver.writePropertyObjects
(CmsDbContext dbc, CmsProject project, CmsResource resource, List<CmsProperty> properties) void
CmsProjectDriver.writePublishHistory
(CmsDbContext dbc, CmsUUID publishId, CmsPublishedResource resource) void
CmsProjectDriver.writePublishJob
(CmsDbContext dbc, CmsPublishJobInfoBean publishJob) void
CmsProjectDriver.writePublishReport
(CmsDbContext dbc, CmsUUID publishId, byte[] content) void
CmsHistoryDriver.writeResource
(CmsDbContext dbc, CmsResource resource, List<CmsProperty> properties, int publishTag) void
CmsVfsDriver.writeResource
(CmsDbContext dbc, CmsUUID projectId, CmsResource resource, int changed) void
CmsVfsDriver.writeResourceState
(CmsDbContext dbc, CmsProject project, CmsResource resource, int changed, boolean isPublishing) void
CmsProjectDriver.writeStaticExportPublishedResource
(CmsDbContext dbc, String resourceName, int linkType, String linkParameter, long timestamp) void
CmsUserDriver.writeUser
(CmsDbContext dbc, CmsUser user) void
CmsUserDriver.writeUserInfo
(CmsDbContext dbc, CmsUUID userId, String key, Object value) void
CmsProjectDriver.writeUserPublishListEntries
(CmsDbContext dbc, List<CmsUserPublishListEntry> publishListAdditions) -
Uses of CmsDbContext in org.opencms.db.log
ModifierConstructorDescriptionCmsLogEntry
(CmsDbContext dbc, CmsUUID structureId, CmsLogEntryType type, String[] data) Public constructor, will use the current time for time stamp. -
Uses of CmsDbContext in org.opencms.db.mssql
-
Uses of CmsDbContext in org.opencms.db.mysql
Modifier and TypeMethodDescriptionvoid
CmsSubscriptionDriver.markResourceAsVisitedBy
(CmsDbContext dbc, String poolName, CmsResource resource, CmsUser user) CmsHistoryDriver.readProjects
(CmsDbContext dbc) -
Uses of CmsDbContext in org.opencms.db.oracle
Modifier and TypeMethodDescriptionstatic void
CmsSqlManager.closeAllInTransaction
(CmsSqlManager sqlManager, CmsDbContext dbc, Connection con, PreparedStatement stmnt, ResultSet res, PreparedStatement commit, boolean wasInTransaction) Attempts to close the connection, statement and result set after a statement has been executed.void
CmsVfsDriver.createContent
(CmsDbContext dbc, CmsUUID projectId, CmsUUID resourceId, byte[] content) void
CmsVfsDriver.createOnlineContent
(CmsDbContext dbc, CmsUUID resourceId, byte[] contents, int publishTag, boolean keepOnline, boolean needToUpdateContent) void
CmsProjectDriver.createPublishJob
(CmsDbContext dbc, CmsPublishJobInfoBean publishJob) protected void
CmsUserDriver.internalUpdateUserInfo
(CmsDbContext dbc, CmsUUID userId, String key, Object value) Updates additional user info.protected void
CmsUserDriver.internalUpdateUserInfoData
(CmsDbContext dbc, CmsUUID userId, String key, Object value) Updates the given user information entry.protected void
CmsVfsDriver.internalWriteContent
(CmsDbContext dbc, CmsUUID projectId, CmsUUID resourceId, byte[] contents, int publishTag) Writes the resource content with the specified resource id.protected void
CmsUserDriver.internalWriteUserInfo
(CmsDbContext dbc, CmsUUID userId, String key, Object value) Writes a new additional user info.void
CmsSubscriptionDriver.markResourceAsVisitedBy
(CmsDbContext dbc, String poolName, CmsResource resource, CmsUser user) CmsHistoryDriver.readProjects
(CmsDbContext dbc) void
CmsVfsDriver.writeContent
(CmsDbContext dbc, CmsUUID resourceId, byte[] content) void
CmsProjectDriver.writePublishReport
(CmsDbContext dbc, CmsUUID publishId, byte[] content) -
Uses of CmsDbContext in org.opencms.db.postgresql
-
Uses of CmsDbContext in org.opencms.db.userpublishlist
Modifier and TypeMethodDescriptionvoid
A_CmsLogPublishListConverter.writeChangesToDatabase
(CmsDbContext dbc, I_CmsProjectDriver projectDriver) Writes the collected changes to the database. -
Uses of CmsDbContext in org.opencms.lock
Modifier and TypeMethodDescriptionvoid
CmsLockManager.addResource
(CmsDbContext dbc, CmsResource resource, CmsUser user, CmsProject project, CmsLockType type) Adds a resource to the lock manager.CmsLockManager.getLock
(CmsDbContext dbc, CmsResource resource) Returns the lock state of the given resource.CmsLockManager.getLock
(CmsDbContext dbc, CmsResource resource, boolean includeSiblings) Returns the lock state of the given resource.CmsLockManager.getLockedResources
(CmsDbContext dbc, CmsResource resource, CmsLockFilter filter) Returns all exclusive locked resources matching the given resource and filter.CmsLockManager.getLockedResourcesWithCache
(CmsDbContext dbc, CmsResource resource, CmsLockFilter filter, Map<String, CmsResource> cache) Returns all exclusive locked resources matching the given resource and filter, but uses a cache for resource loookups.CmsLockManager.getLocks
(CmsDbContext dbc, String resourceName, CmsLockFilter filter) Returns all exclusive locked resources matching the given resource name and filter.boolean
CmsLockManager.hasSystemLocks
(CmsDbContext dbc, CmsResource resource) Returnstrue
if the given resource contains a resource that has a system lock.void
CmsLockManager.readLocks
(CmsDbContext dbc) Reads the latest saved locks from the database and installs them to this lock manager.void
CmsLockManager.removeDeletedResource
(CmsDbContext dbc, String resourceName) Removes a resource after it has been deleted by the driver manager.CmsLockManager.removeResource
(CmsDbContext dbc, CmsResource resource, boolean forceUnlock, boolean removeSystemLock) Removes a resource from the lock manager.void
CmsLockManager.writeLocks
(CmsDbContext dbc) Writes the locks that are currently stored in-memory to the database to allow restoring them in later startups. -
Uses of CmsDbContext in org.opencms.publish
Modifier and TypeMethodDescriptionprotected CmsDbContext
CmsPublishEngine.getDbContext
(CmsRequestContext ctx) Returns the a new db context object. -
Uses of CmsDbContext in org.opencms.relations
Modifier and TypeMethodDescriptionprotected boolean
CmsRelationSystemValidator.checkLinkForNewOrChangedLinkSource
(CmsDbContext dbc, CmsResource resource, CmsRelation relation, String link, CmsProject project, Map<String, CmsResource> fileLookup) Checks a link from a resource which has changed.protected List<CmsRelation>
CmsRelationSystemValidator.validateLinks
(CmsDbContext dbc, CmsResource resource, Map<String, CmsResource> fileLookup, CmsProject project, I_CmsReport report) Validates the links for the specified resource.CmsRelationSystemValidator.validateResources
(CmsDbContext dbc, CmsPublishList publishList, I_CmsReport report) Validates the relations against the online project. -
Uses of CmsDbContext in org.opencms.security
Modifier and TypeMethodDescriptionCmsDefaultPermissionHandler.hasPermissions
(CmsDbContext dbc, CmsResource resource, CmsPermissionSet requiredPermissions, I_CmsPermissionHandler.LockCheck checkLock, CmsResourceFilter filter) I_CmsPermissionHandler.hasPermissions
(CmsDbContext dbc, CmsResource resource, CmsPermissionSet requiredPermissions, I_CmsPermissionHandler.LockCheck checkLock, CmsResourceFilter filter) Performs a non-blocking permission check on a resource.