Uses of Class
org.opencms.file.CmsDataAccessException
Package
Description
Low-level database connection and access functionality.
Generic (ANSI-SQL) implementation of the OpenCms database connector.
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.
This important package provides the methods to access the OpenCms VFS repository with the permissions
of an authenticated user.
Collectors allow to gather lists of OpenCms resources from the OpenCms VFS using specific rules.
-
Uses of CmsDataAccessException in org.opencms.db
Modifier and TypeClassDescriptionclass
Signals that a data source consistency problem has been detected.class
Signals that an attempt to create an object was not successfull because it already exists.class
Signals that an attempt to read an object from a data source, that is supposed to exist, was not successfull.class
Signals that a low-level exception occurred when accessing the OpenCms database.class
Signals that an IO exception occurred when reading from or writing to the OpenCms database.class
Signals that a foreign key in the VFS STRUCTURE, RESOURCES or FILES database tables is either invalid or empty.class
Used to signal sql related issues.class
Signals that an attempt to create a resource was not successfull since at the given location another online resource with a different structure id has been found.Modifier and TypeMethodDescriptionprotected 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
I_CmsUserDriver.addResourceToOrganizationalUnit
(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.protected void
CmsSecurityManager.checkRoleForUserModification
(CmsDbContext dbc, String username, CmsRole role) Checks that the current user has enough permissions to modify the given user.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.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.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.I_CmsUserDriver.createOrganizationalUnit
(CmsDbContext dbc, String name, String description, int flags, CmsOrganizationalUnit parent, String associationRootPath) Creates a new organizational unit.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.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
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.I_CmsVfsDriver.createResource
(CmsDbContext dbc, CmsUUID projectId, CmsResource resource, byte[] content) Creates a new resource from a givenCmsResource
object.void
I_CmsVfsDriver.createSibling
(CmsDbContext dbc, CmsProject project, CmsResource resource) Creates a new sibling for a specified resource.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
I_CmsVfsDriver.deleteAliases
(CmsDbContext dbc, CmsProject project, CmsAliasFilter filter) Deletes the aliases matching a given filter.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
I_CmsProjectDriver.deleteLog
(CmsDbContext dbc, CmsLogFilter filter) Deletes log entries matching the given filter.void
I_CmsUserDriver.deleteOrganizationalUnit
(CmsDbContext dbc, CmsOrganizationalUnit organizationalUnit) Deletes an organizational unit.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
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
I_CmsProjectDriver.deletePublishJob
(CmsDbContext dbc, CmsUUID publishHistoryId) Deletes a publish job identified by its history id.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
I_CmsVfsDriver.deleteRewriteAliases
(CmsDbContext dbc, CmsRewriteAliasFilter filter) Deletes rewrite aliases matching a given filter.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
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.boolean
I_CmsUserDriver.existsGroup
(CmsDbContext dbc, String groupFqn) Tests if a group with the specified name exists.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.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.I_CmsHistoryDriver.getAllDeletedEntries
(CmsDbContext dbc) Returns all historical resources (of deleted resources).I_CmsHistoryDriver.getAllNotDeletedEntries
(CmsDbContext dbc) Returns all historical resources (of not deleted resources).I_CmsUserDriver.getGroups
(CmsDbContext dbc, CmsOrganizationalUnit orgUnit, boolean includeSubOus, boolean readRoles) Returns all groups of the given organizational unit.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.I_CmsVfsDriver.getResourceOus
(CmsDbContext dbc, CmsUUID projectId, CmsResource resource) Returns all organizational units for the given resource.I_CmsUserDriver.getResourcesForOrganizationalUnit
(CmsDbContext dbc, CmsOrganizationalUnit orgUnit) Returns all resources of the given organizational unit.I_CmsUserDriver.getUsers
(CmsDbContext dbc, CmsOrganizationalUnit orgUnit, boolean recursive) Returns all users of the given organizational unit.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.I_CmsUserDriver.getUsersWithoutAdditionalInfo
(CmsDbContext dbc, CmsOrganizationalUnit orgUnit, boolean recursive) Returns all users of the given organizational unit, without reading their additional infos.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
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.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.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.void
I_CmsSubscriptionDriver.markResourceAsVisitedBy
(CmsDbContext dbc, String poolName, CmsResource resource, CmsUser user) Mark the given resource as visited by the user.void
I_CmsVfsDriver.moveResource
(CmsDbContext dbc, CmsUUID projectId, CmsResource source, String destinationPath) Moves the given resource to the specified destination path.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
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.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.I_CmsVfsDriver.readAliases
(CmsDbContext dbc, CmsProject project, CmsAliasFilter filter) Reads the aliases matching a given filter.I_CmsHistoryDriver.readAllAvailableVersions
(CmsDbContext dbc, CmsUUID structureId) Reads all file headers of the resource with the given structure id.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.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.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.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.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.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.I_CmsProjectDriver.readLocks
(CmsDbContext dbc) I_CmsProjectDriver.readLog
(CmsDbContext dbc, CmsLogFilter filter) Reads log entries matching the given filter.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.I_CmsUserDriver.readOrganizationalUnit
(CmsDbContext dbc, String ouFqn) Reads an organizational Unit based on its fully qualified name.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.I_CmsHistoryDriver.readPrincipal
(CmsDbContext dbc, CmsUUID principalId) Reads an historical principal entry.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.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.I_CmsHistoryDriver.readProperties
(CmsDbContext dbc, I_CmsHistoryResource historicalResource) Returns a list of all properties of a historical file or folder.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.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.I_CmsVfsDriver.readPropertyObjects
(CmsDbContext dbc, CmsProject project, CmsResource resource) Reads all property objects mapped to a specified resource from the database.I_CmsProjectDriver.readPublishedResources
(CmsDbContext dbc, CmsUUID publishHistoryId) Reads the resources that were published during a publish process for a given publish history ID.I_CmsProjectDriver.readPublishJob
(CmsDbContext dbc, CmsUUID publishHistoryId) Reads a single publish job identified by its publish history id.I_CmsProjectDriver.readPublishJobs
(CmsDbContext dbc, long startTime, long endTime) Reads all publish jobs finished in the given time range.I_CmsProjectDriver.readPublishList
(CmsDbContext dbc, CmsUUID publishHistoryId) Reads the publish list 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, CmsUUID structureID, CmsResourceFilter filter) Reads a resource from the 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.I_CmsSubscriptionDriver.readResourcesVisitedBy
(CmsDbContext dbc, String poolName, CmsVisitedByFilter filter) Returns the resources that were visited by a user set in the filter.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.I_CmsVfsDriver.readRewriteAliases
(CmsDbContext dbc, CmsRewriteAliasFilter filter) Reads the rewrite aliases matching a given filter.I_CmsVfsDriver.readSiblings
(CmsDbContext dbc, CmsUUID projectId, CmsResource resource, boolean includeDeleted) Reads all siblings that point to the resource record of a specified resource.I_CmsProjectDriver.readStaticExportPublishedResourceParameters
(CmsDbContext dbc, String rfsName) Returns the parameters of a resource in the table of all published template resources.I_CmsProjectDriver.readStaticExportResources
(CmsDbContext dbc, int parameterResources, long timestamp) Returns a list of all template resources which must be processed during a static export.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.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.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
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.removeResourceFromUsersPubList
(CmsDbContext dbc, CmsUUID userId, Collection<CmsUUID> structureIds) Removes the given resource to the given user's publish list.void
I_CmsVfsDriver.replaceResource
(CmsDbContext dbc, CmsResource newResource, byte[] newResourceContent, int newResourceType) Replaces the content and properties of an existing resource.protected void
CmsDriverManager.resetResourcesInProject
(CmsDbContext dbc, CmsUUID projectId, List<CmsResource> modifiedFiles, List<CmsResource> modifiedFolders) Resets the resources in a project to their online state.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
I_CmsSubscriptionDriver.setSubscribedResourceAsDeleted
(CmsDbContext dbc, String poolName, CmsResource resource) Marks a subscribed resource as deleted.void
I_CmsUserDriver.setUsersOrganizationalUnit
(CmsDbContext dbc, CmsOrganizationalUnit orgUnit, CmsUser user) Moves an user to the given organizational unit.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
I_CmsProjectDriver.unmarkProjectResources
(CmsDbContext dbc, CmsProject project) Removes the project id from all resources within a project.void
I_CmsSubscriptionDriver.unsubscribeAllDeletedResources
(CmsDbContext dbc, String poolName, long deletedTo) Unsubscribes all deleted resources that were deleted before the specified time stamp.void
I_CmsSubscriptionDriver.unsubscribeAllResourcesFor
(CmsDbContext dbc, String poolName, CmsPrincipal principal) Unsubscribes the principal from all resources.void
I_CmsSubscriptionDriver.unsubscribeResourceFor
(CmsDbContext dbc, String poolName, CmsPrincipal principal, CmsResource resource) Unsubscribes the principal from the resource.void
I_CmsSubscriptionDriver.unsubscribeResourceForAll
(CmsDbContext dbc, String poolName, CmsResource resource) Unsubscribes all groups and users from the resource.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.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
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
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
I_CmsProjectDriver.writeLocks
(CmsDbContext dbc, List<CmsLock> locks) 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
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
I_CmsVfsDriver.writePropertyObject
(CmsDbContext dbc, CmsProject project, CmsResource resource, CmsProperty property) Writes a property object to the database mapped to 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
I_CmsProjectDriver.writePublishJob
(CmsDbContext dbc, CmsPublishJobInfoBean publishJob) Writes a publish job.void
I_CmsProjectDriver.writePublishReport
(CmsDbContext dbc, CmsUUID publishId, byte[] content) Writes a publish report for a publish job.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
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
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. -
Uses of CmsDataAccessException 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
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) 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
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
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) 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) CmsUserDriver.getGroups
(CmsDbContext dbc, CmsOrganizationalUnit orgUnit, boolean includeSubOus, boolean readRoles) CmsUserDriver.getOrganizationalUnits
(CmsDbContext dbc, CmsOrganizationalUnit parent, boolean includeChildren) 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
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
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 String
CmsVfsDriver.internalReadParentId
(CmsDbContext dbc, CmsUUID projectId, String resourcename) Returns the parent id 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.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
CmsVfsDriver.internalValidateResourceLength
(CmsResource resource) Validates that the length setting of a resource is always correct.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.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
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
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) 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) -
Uses of CmsDataAccessException in org.opencms.db.mssql
-
Uses of CmsDataAccessException in org.opencms.db.mysql
Modifier and TypeMethodDescriptionvoid
CmsSubscriptionDriver.markResourceAsVisitedBy
(CmsDbContext dbc, String poolName, CmsResource resource, CmsUser user) CmsHistoryDriver.readProjects
(CmsDbContext dbc) -
Uses of CmsDataAccessException in org.opencms.db.oracle
Modifier and TypeMethodDescriptionvoid
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 CmsDataAccessException in org.opencms.db.postgresql
-
Uses of CmsDataAccessException 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 CmsDataAccessException in org.opencms.file
Modifier and TypeClassDescriptionclass
Signals that an attempt to call a method has failed since it is not implemented.class
Used to signal VFS related issues, for example during file access.class
Signals that a VFS resource unexpectedly exists.class
Signals that an attempt to read a resource in the VFS denoted by a specified pathname has failed. -
Uses of CmsDataAccessException in org.opencms.file.collectors
Modifier and TypeMethodDescriptionA_CmsResourceCollector.getCreateLink
(CmsObject cms) CmsCategoryResourceCollector.getCreateLink
(CmsObject cms, String collectorName, String param) CmsDateResourceCollector.getCreateLink
(CmsObject cms, String collectorName, String param) CmsDefaultResourceCollector.getCreateLink
(CmsObject cms, String collectorName, String param) CmsTimeFrameCategoryCollector.getCreateLink
(CmsObject cms, String collectorName, String param) I_CmsResourceCollector.getCreateLink
(CmsObject cms) Returns the link that must be executed when a user clicks on the direct edit "new" button on a list created by the default collector.I_CmsResourceCollector.getCreateLink
(CmsObject cms, String collectorName, String param) Returns the link that must be executed when a user clicks on the direct edit "new" button on a list created by the named collector.A_CmsResourceCollector.getCreateParam
(CmsObject cms) CmsCategoryResourceCollector.getCreateParam
(CmsObject cms, String collectorName, String param) CmsDateResourceCollector.getCreateParam
(CmsObject cms, String collectorName, String param) CmsDefaultResourceCollector.getCreateParam
(CmsObject cms, String collectorName, String param) CmsPriorityResourceCollector.getCreateParam
(CmsObject cms, String collectorName, String param) CmsSolrCollector.getCreateParam
(CmsObject cms, String collectorName, String param) I_CmsResourceCollector.getCreateParam
(CmsObject cms) Returns the default parameter that must be passed to theI_CmsResourceCollector.getCreateLink(CmsObject, String, String)
method.I_CmsResourceCollector.getCreateParam
(CmsObject cms, String collectorName, String param) Returns the parameter that must be passed to theI_CmsResourceCollector.getCreateLink(CmsObject, String, String)
method.A_CmsResourceCollector.getResults
(CmsObject cms) CmsCategoryResourceCollector.getResults
(CmsObject cms, String collectorName, String param) CmsCategoryResourceCollector.getResults
(CmsObject cms, String collectorName, String param, int numResults) CmsChangedResourceCollector.getResults
(CmsObject cms, String collectorName, String param) CmsChangedResourceCollector.getResults
(CmsObject cms, String collectorName, String param, int numResults) CmsDateResourceCollector.getResults
(CmsObject cms, String collectorName, String param) CmsDateResourceCollector.getResults
(CmsObject cms, String collectorName, String param, int numResults) CmsDefaultResourceCollector.getResults
(CmsObject cms, String collectorName, String param) CmsDefaultResourceCollector.getResults
(CmsObject cms, String collectorName, String param, int numResults) CmsPriorityResourceCollector.getResults
(CmsObject cms, String collectorName, String param) CmsPriorityResourceCollector.getResults
(CmsObject cms, String collectorName, String param, int numResults) CmsSolrCollector.getResults
(CmsObject cms, String collectorName, String param) CmsSubscriptionCollector.getResults
(CmsObject cms, String collectorName, String param) CmsSubscriptionCollector.getResults
(CmsObject cms, String collectorName, String param, int numResults) CmsTimeFrameCategoryCollector.getResults
(CmsObject cms, String collectorName, String param) CmsTimeFrameCategoryCollector.getResults
(CmsObject cms, String collectorName, String param, int numResults) I_CmsResourceCollector.getResults
(CmsObject cms) Returns a list ofCmsResource
Objects that are gathered in the VFS using the default collector name and parameter.I_CmsResourceCollector.getResults
(CmsObject cms, String collectorName, String param) Returns a list ofCmsResource
Objects that are gathered in the VFS using the named collector.