程序包 | 说明 |
---|---|
org.opencms.db |
Low-level database connection and access functionality.
|
org.opencms.db.generic |
Generic (ANSI-SQL) implementation of the OpenCms database connector.
|
org.opencms.db.jpa | |
org.opencms.file |
This important package provides the methods to access the OpenCms VFS repository with the permissions
of an authenticated user.
|
org.opencms.file.history |
This package contains the classes to deal with the OpenCms VFS history archive.
|
限定符和类型 | 方法和说明 |
---|---|
I_CmsHistoryResource |
CmsDriverManager.readResource(CmsDbContext dbc,
CmsResource resource,
int version)
Reads an historical resource entry for the given resource and with the given version number.
|
I_CmsHistoryResource |
I_CmsHistoryDriver.readResource(CmsDbContext dbc,
CmsUUID structureId,
int version)
Reads a historical resource version without including the file content.
|
I_CmsHistoryResource |
CmsSecurityManager.readResource(CmsRequestContext context,
CmsResource resource,
int version)
Reads the historical resource entry for the given resource with the given version number.
|
限定符和类型 | 方法和说明 |
---|---|
java.util.List<I_CmsHistoryResource> |
I_CmsHistoryDriver.getAllDeletedEntries(CmsDbContext dbc)
Returns all historical resources (of deleted resources).
|
java.util.List<I_CmsHistoryResource> |
I_CmsHistoryDriver.getAllNotDeletedEntries(CmsDbContext dbc)
Returns all historical resources (of not deleted resources).
|
java.util.List<I_CmsHistoryResource> |
CmsDriverManager.readAllAvailableVersions(CmsDbContext dbc,
CmsResource resource)
Reads all versions of the given resource.
|
java.util.List<I_CmsHistoryResource> |
I_CmsHistoryDriver.readAllAvailableVersions(CmsDbContext dbc,
CmsUUID structureId)
Reads all file headers of the resource with the given structure id.
|
java.util.List<I_CmsHistoryResource> |
CmsSecurityManager.readAllAvailableVersions(CmsRequestContext context,
CmsResource resource)
Reads all historical versions of a resource.
|
java.util.List<I_CmsHistoryResource> |
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.
|
java.util.List<I_CmsHistoryResource> |
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.
|
java.util.List<I_CmsHistoryResource> |
CmsSecurityManager.readDeletedResources(CmsRequestContext context,
CmsResource resource,
boolean readTree)
Reads all deleted (historical) resources below the given path,
including the full tree below the path, if required.
|
java.util.List<I_CmsHistoryResource> |
I_CmsSubscriptionDriver.readSubscribedDeletedResources(CmsDbContext dbc,
java.lang.String poolName,
CmsUser user,
java.util.List<CmsGroup> groups,
CmsResource parent,
boolean includeSubFolders,
long deletedFrom)
Returns the subscribed history resources that were deleted.
|
java.util.List<I_CmsHistoryResource> |
CmsDriverManager.readSubscribedDeletedResources(CmsDbContext dbc,
java.lang.String poolName,
CmsUser user,
java.util.List<CmsGroup> groups,
CmsResource parent,
boolean includeSubFolders,
long deletedFrom)
Returns the subscribed history resources that were deleted.
|
java.util.List<I_CmsHistoryResource> |
CmsSubscriptionManager.readSubscribedDeletedResources(CmsObject cms,
CmsUser user,
boolean includeGroups,
java.lang.String folderPath,
boolean includeSubFolders,
long deletedFrom)
Returns the subscribed history resources that were deleted.
|
java.util.List<I_CmsHistoryResource> |
CmsSecurityManager.readSubscribedDeletedResources(CmsRequestContext context,
java.lang.String poolName,
CmsUser user,
java.util.List<CmsGroup> groups,
CmsResource parent,
boolean includeSubFolders,
long deletedFrom)
Returns the subscribed history resources that were deleted.
|
限定符和类型 | 方法和说明 |
---|---|
int |
I_CmsHistoryDriver.deleteEntries(CmsDbContext dbc,
I_CmsHistoryResource histResource,
int versionsToKeep,
long time)
Deletes all historical versions of a resource
keeping maximal
versionsToKeep versions. |
java.util.List<CmsProperty> |
CmsDriverManager.readHistoryPropertyObjects(CmsDbContext dbc,
I_CmsHistoryResource historyResource)
Reads the list of all
objects that belongs to the given historical resource. |
java.util.List<CmsProperty> |
CmsSecurityManager.readHistoryPropertyObjects(CmsRequestContext context,
I_CmsHistoryResource resource)
Reads the list of all
objects that belong to the given historical resource. |
java.util.List<CmsProperty> |
I_CmsHistoryDriver.readProperties(CmsDbContext dbc,
I_CmsHistoryResource historicalResource)
Returns a list of all properties of a historical file or folder.
|
限定符和类型 | 方法和说明 |
---|---|
protected I_CmsHistoryResource |
CmsHistoryDriver.internalCreateResource(java.sql.ResultSet res)
Creates a valid
I_CmsHistoryResource instance from a JDBC ResultSet. |
protected I_CmsHistoryResource |
CmsHistoryDriver.internalMergeResource(I_CmsHistoryResource histRes,
java.sql.ResultSet res,
int versionOffset)
Merges an historical entry for a sibling, based on the structure data from the given historical resource
and result set for the resource entry.
|
I_CmsHistoryResource |
CmsHistoryDriver.readResource(CmsDbContext dbc,
CmsUUID structureId,
int version) |
限定符和类型 | 方法和说明 |
---|---|
java.util.List<I_CmsHistoryResource> |
CmsHistoryDriver.getAllDeletedEntries(CmsDbContext dbc) |
java.util.List<I_CmsHistoryResource> |
CmsHistoryDriver.getAllNotDeletedEntries(CmsDbContext dbc) |
java.util.List<I_CmsHistoryResource> |
CmsHistoryDriver.readAllAvailableVersions(CmsDbContext dbc,
CmsUUID structureId) |
java.util.List<I_CmsHistoryResource> |
CmsHistoryDriver.readDeletedResources(CmsDbContext dbc,
CmsUUID structureId,
CmsUUID userId) |
java.util.List<I_CmsHistoryResource> |
CmsSubscriptionDriver.readSubscribedDeletedResources(CmsDbContext dbc,
java.lang.String poolName,
CmsUser user,
java.util.List<CmsGroup> groups,
CmsResource parent,
boolean includeSubFolders,
long deletedFrom) |
限定符和类型 | 方法和说明 |
---|---|
int |
CmsHistoryDriver.deleteEntries(CmsDbContext dbc,
I_CmsHistoryResource resource,
int versionsToKeep,
long time) |
protected void |
CmsHistoryDriver.internalAddToPropMap(java.util.Map<java.lang.String,CmsProperty> propertyMap,
I_CmsHistoryResource resource,
java.lang.String propertyKey,
java.lang.String propertyValue,
int mappingType)
Updates the property map for the given resource with the given property data.
|
protected void |
CmsHistoryDriver.internalCleanup(CmsDbContext dbc,
I_CmsHistoryResource resource)
Deletes all historical entries of subresources of a folder without any historical netry left.
|
protected I_CmsHistoryResource |
CmsHistoryDriver.internalMergeResource(I_CmsHistoryResource histRes,
java.sql.ResultSet res,
int versionOffset)
Merges an historical entry for a sibling, based on the structure data from the given historical resource
and result set for the resource entry.
|
java.util.List<CmsProperty> |
CmsHistoryDriver.readProperties(CmsDbContext dbc,
I_CmsHistoryResource resource) |
限定符和类型 | 方法和说明 |
---|---|
protected I_CmsHistoryResource |
CmsHistoryDriver.internalCreateResource(java.lang.Object[] res)
Creates a valid
I_CmsHistoryResource instance from a JDBC ResultSet. |
protected I_CmsHistoryResource |
CmsHistoryDriver.internalMergeResource(I_CmsHistoryResource histRes,
CmsDAOHistoryResources hr,
int versionOffset)
Merges an historical entry for a sibling, based on the structure data from the given historical resource
and result set for the resource entry.
|
I_CmsHistoryResource |
CmsHistoryDriver.readFile(CmsDbContext dbc,
CmsUUID structureId,
int tagId)
已过时。
|
I_CmsHistoryResource |
CmsHistoryDriver.readResource(CmsDbContext dbc,
CmsUUID structureId,
int version) |
限定符和类型 | 方法和说明 |
---|---|
java.util.List<I_CmsHistoryResource> |
CmsHistoryDriver.getAllDeletedEntries(CmsDbContext dbc) |
java.util.List<I_CmsHistoryResource> |
CmsHistoryDriver.getAllNotDeletedEntries(CmsDbContext dbc) |
java.util.List<I_CmsHistoryResource> |
CmsHistoryDriver.readAllAvailableVersions(CmsDbContext dbc,
CmsUUID structureId) |
java.util.List<I_CmsHistoryResource> |
CmsHistoryDriver.readDeletedResources(CmsDbContext dbc,
CmsUUID structureId,
CmsUUID userId) |
java.util.List<I_CmsHistoryResource> |
CmsSubscriptionDriver.readSubscribedDeletedResources(CmsDbContext dbc,
java.lang.String poolName,
CmsUser user,
java.util.List<CmsGroup> groups,
CmsResource parent,
boolean includeSubFolders,
long deletedFrom) |
限定符和类型 | 方法和说明 |
---|---|
int |
CmsHistoryDriver.deleteEntries(CmsDbContext dbc,
I_CmsHistoryResource resource,
int versionsToKeep,
long time) |
protected void |
CmsHistoryDriver.internalAddToPropMap(java.util.Map<java.lang.String,CmsProperty> propertyMap,
I_CmsHistoryResource resource,
java.lang.String propertyKey,
java.lang.String propertyValue,
int mappingType)
Updates the property map for the given resource with the given property data.
|
protected void |
CmsHistoryDriver.internalCleanup(CmsDbContext dbc,
I_CmsHistoryResource resource)
Deletes all historical entries of subresources of a folder without any historical netry left.
|
protected I_CmsHistoryResource |
CmsHistoryDriver.internalMergeResource(I_CmsHistoryResource histRes,
CmsDAOHistoryResources hr,
int versionOffset)
Merges an historical entry for a sibling, based on the structure data from the given historical resource
and result set for the resource entry.
|
java.util.List<CmsProperty> |
CmsHistoryDriver.readProperties(CmsDbContext dbc,
I_CmsHistoryResource resource) |
限定符和类型 | 方法和说明 |
---|---|
I_CmsHistoryResource |
CmsObject.readResource(CmsUUID structureID,
int version)
Reads the historical resource with the given version for the resource given
the given structure id.
|
限定符和类型 | 方法和说明 |
---|---|
java.util.List<I_CmsHistoryResource> |
CmsObject.readAllAvailableVersions(java.lang.String resourceName)
Reads all historical versions of a resource.
|
java.util.List<I_CmsHistoryResource> |
CmsObject.readDeletedResources(java.lang.String resourcename,
boolean readTree)
Reads all deleted (historical) resources below the given path,
including the full tree below the path, if required.
|
限定符和类型 | 方法和说明 |
---|---|
java.util.List<CmsProperty> |
CmsObject.readHistoryPropertyObjects(I_CmsHistoryResource resource)
Reads the list of all
objects that belong to the given historical resource version. |
限定符和类型 | 类和说明 |
---|---|
class |
CmsHistoryFile
A historical version of a file in the OpenCms VFS resource history.
|
class |
CmsHistoryFolder
A historical version of a file in the OpenCms VFS resource history.
|
限定符和类型 | 方法和说明 |
---|---|
static I_CmsHistoryResource |
CmsHistoryResourceHandler.getHistoryResource(javax.servlet.ServletRequest req)
Returns the historical version of a resource,
if the given request is displaying a history version.
|
构造器和说明 |
---|
CmsHistoryFile(I_CmsHistoryResource resource)
Constructor from a history resource.
|
CmsHistoryFolder(I_CmsHistoryResource resource)
Constructor from a history resource.
|