|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opencms.db.generic.CmsProjectDriver
Generic (ANSI-SQL) implementation of the project driver methods.
Field Summary | |
protected CmsDriverManager |
m_driverManager
The driver manager. |
protected int[] |
m_maxIds
Array containing all max-ids for the tables. |
protected CmsSqlManager |
m_sqlManager
The SQL manager. |
protected static java.lang.String |
TABLE_PROJECTS
Table key for projects. |
Fields inherited from interface org.opencms.db.I_CmsProjectDriver |
DRIVER_TYPE_ID, TEMP_FILE_PROJECT_NAME |
Constructor Summary | |
CmsProjectDriver()
|
Method Summary | |
CmsProject |
createProject(CmsDbContext dbc,
CmsUser owner,
CmsGroup group,
CmsGroup managergroup,
CmsTask task,
java.lang.String name,
java.lang.String description,
int flags,
int type,
java.lang.Object reservedParam)
Creates a new project. |
void |
createProjectResource(CmsDbContext dbc,
int projectId,
java.lang.String resourcePath,
java.lang.Object reservedParam)
Creates a new projectResource from a given CmsResource object. |
void |
deleteAllStaticExportPublishedResources(CmsDbContext dbc,
CmsProject currentProject,
int linkType)
Deletes all entries in the published resource table. |
void |
deleteProject(CmsDbContext dbc,
CmsProject project)
Deletes a project from the cms. |
void |
deleteProjectResource(CmsDbContext dbc,
int projectId,
java.lang.String resourceName)
Delete a projectResource from an given CmsResource object. |
void |
deleteProjectResources(CmsDbContext dbc,
CmsProject project)
Deletes a specified project. |
void |
deletePublishHistory(CmsDbContext dbc,
int projectId,
int maxBackupTagId)
Deletes all publish history entries with backup tag IDs >=0 and < the specified max. backup tag ID. |
void |
deletePublishHistoryEntry(CmsDbContext dbc,
int projectId,
CmsUUID publishHistoryId,
CmsPublishedResource publishedResource)
Deletes a publish history entry with backup tag IDs >=0 and < the specified max. backup tag ID. |
void |
deleteStaticExportPublishedResource(CmsDbContext dbc,
CmsProject currentProject,
java.lang.String resourceName,
int linkType,
java.lang.String linkParameter)
Deletes an entry in the published resource table. |
void |
destroy()
Destroys this driver. |
void |
fillDefaults(CmsDbContext dbc)
Fills the OpenCms database tables with default values. |
protected void |
finalize()
|
CmsSqlManager |
getSqlManager()
Returns the SqlManager of this driver. |
void |
init(CmsDbContext dbc,
CmsConfigurationManager configurationManager,
java.util.List successiveDrivers,
CmsDriverManager driverManager)
Initializes the driver. |
CmsSqlManager |
initSqlManager(java.lang.String classname)
Initializes the SQL manager for this driver. |
protected void |
internalResetResourceState(CmsDbContext dbc,
CmsResource resource)
Resets the state to UNCHANGED and the last-modified-in-project-ID to the current project for a specified resource. |
void |
publishDeletedFolder(CmsDbContext dbc,
I_CmsReport report,
int m,
int n,
CmsProject onlineProject,
CmsFolder currentFolder,
boolean backupEnabled,
long publishDate,
CmsUUID publishHistoryId,
int backupTagId,
int maxVersions)
Publishes a deleted folder. |
void |
publishFile(CmsDbContext dbc,
I_CmsReport report,
int m,
int n,
CmsProject onlineProject,
CmsResource offlineResource,
java.util.Set publishedContentIds,
boolean backupEnabled,
long publishDate,
CmsUUID publishHistoryId,
int backupTagId,
int maxVersions)
Publishes a new, changed or deleted file. |
CmsFile |
publishFileContent(CmsDbContext dbc,
CmsProject offlineProject,
CmsProject onlineProject,
CmsResource offlineResource,
java.util.Set publishedResourceIds)
Publishes the content record of a file. |
void |
publishFolder(CmsDbContext dbc,
I_CmsReport report,
int m,
int n,
CmsProject onlineProject,
CmsFolder offlineFolder,
boolean backupEnabled,
long publishDate,
CmsUUID publishHistoryId,
int backupTagId,
int maxVersions)
Publishes a new or changed folder. |
void |
publishProject(CmsDbContext dbc,
I_CmsReport report,
CmsProject onlineProject,
CmsPublishList publishList,
boolean backupEnabled,
int backupTagId,
int maxVersions)
Publishes a specified project to the online project. |
CmsProject |
readProject(CmsDbContext dbc,
int id)
Reads a project given the projects id. |
CmsProject |
readProject(CmsDbContext dbc,
java.lang.String name)
Reads a project. |
java.lang.String |
readProjectResource(CmsDbContext dbc,
int projectId,
java.lang.String resourcePath,
java.lang.Object reservedParam)
Reads the project resource path for a given project and resource path, to validate if a resource path for a given project already exists. |
java.util.List |
readProjectResources(CmsDbContext dbc,
CmsProject project)
Reads the project resources for a specified project. |
java.util.List |
readProjects(CmsDbContext dbc,
int state)
Returns all projects with the given state. |
java.util.List |
readProjectsForGroup(CmsDbContext dbc,
CmsGroup group)
Returns all projects, which are accessible by a group. |
java.util.List |
readProjectsForManagerGroup(CmsDbContext dbc,
CmsGroup group)
Returns all projects, which are manageable by a group. |
java.util.List |
readProjectsForUser(CmsDbContext dbc,
CmsUser user)
Reads all projects which are owned by a specified user. |
java.util.List |
readProjectView(CmsDbContext dbc,
int project,
java.lang.String filter)
Reads all resources that build the "view" of a project. |
java.util.List |
readPublishedResources(CmsDbContext dbc,
int projectId,
CmsUUID publishHistoryId)
Reads the resources that were published during a publish process for a given publish history ID. |
java.lang.String |
readStaticExportPublishedResourceParameters(CmsDbContext dbc,
CmsProject currentProject,
java.lang.String rfsName)
Returns the parameters of a resource in the table of all published template resources. |
java.util.List |
readStaticExportResources(CmsDbContext dbc,
CmsProject currentProject,
int parameterResources,
long timestamp)
Returns a list of all template resources which must be processed during a static export. |
void |
unmarkProjectResources(CmsDbContext dbc,
CmsProject project)
Removes the project id from all resources within a project. |
void |
writeProject(CmsDbContext dbc,
CmsProject project)
Writes an already existing project. |
void |
writePublishHistory(CmsDbContext dbc,
CmsProject currentProject,
CmsUUID publishId,
CmsPublishedResource resource)
Inserts an entry in the publish history for a published VFS resource. |
void |
writeStaticExportPublishedResource(CmsDbContext dbc,
CmsProject currentProject,
java.lang.String resourceName,
int linkType,
java.lang.String linkParameter,
long timestamp)
Inserts an entry in the published resource table. |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.opencms.db.I_CmsDriver |
toString |
Field Detail |
protected static final java.lang.String TABLE_PROJECTS
protected CmsDriverManager m_driverManager
protected int[] m_maxIds
protected CmsSqlManager m_sqlManager
Constructor Detail |
public CmsProjectDriver()
Method Detail |
public CmsProject createProject(CmsDbContext dbc, CmsUser owner, CmsGroup group, CmsGroup managergroup, CmsTask task, java.lang.String name, java.lang.String description, int flags, int type, java.lang.Object reservedParam) throws CmsDataAccessException
I_CmsProjectDriver
createProject
in interface I_CmsProjectDriver
dbc
- the current database contextowner
- the owner of the projectgroup
- the group for the projectmanagergroup
- the managergroup for the projecttask
- the base workflow task for the projectname
- the name of the project to createdescription
- the description for the projectflags
- the flags for the projecttype
- the type for the projectreservedParam
- reserved optional parameter, should be null
on standard OpenCms installations
CmsProject
instance
CmsDataAccessException
- if something goes wrongI_CmsProjectDriver.createProject(org.opencms.db.CmsDbContext, org.opencms.file.CmsUser, org.opencms.file.CmsGroup, org.opencms.file.CmsGroup, org.opencms.workflow.CmsTask, java.lang.String, java.lang.String, int, int, java.lang.Object)
public void createProjectResource(CmsDbContext dbc, int projectId, java.lang.String resourcePath, java.lang.Object reservedParam) throws CmsDataAccessException
I_CmsProjectDriver
createProjectResource
in interface I_CmsProjectDriver
dbc
- the current database contextprojectId
- The project in which the resource will be usedresourcePath
- The resource to be written to the CmsreservedParam
- reserved optional parameter, should be null on standard OpenCms installations
CmsDataAccessException
- if something goes wrongI_CmsProjectDriver.createProjectResource(org.opencms.db.CmsDbContext, int, java.lang.String, java.lang.Object)
public void deleteAllStaticExportPublishedResources(CmsDbContext dbc, CmsProject currentProject, int linkType) throws CmsDataAccessException
I_CmsProjectDriver
deleteAllStaticExportPublishedResources
in interface I_CmsProjectDriver
dbc
- the current database contextcurrentProject
- the current projectlinkType
- the type of resource deleted (0= non-paramter, 1=parameter)
CmsDataAccessException
- if something goes wrongI_CmsProjectDriver.deleteAllStaticExportPublishedResources(org.opencms.db.CmsDbContext, org.opencms.file.CmsProject, int)
public void deleteProject(CmsDbContext dbc, CmsProject project) throws CmsDataAccessException
I_CmsProjectDriver
Therefore it deletes all files, resources and properties.
deleteProject
in interface I_CmsProjectDriver
dbc
- the current database contextproject
- the project to delete
CmsDataAccessException
- if something goes wrongI_CmsProjectDriver.deleteProject(org.opencms.db.CmsDbContext, org.opencms.file.CmsProject)
public void deleteProjectResource(CmsDbContext dbc, int projectId, java.lang.String resourceName) throws CmsDataAccessException
I_CmsProjectDriver
deleteProjectResource
in interface I_CmsProjectDriver
dbc
- the current database contextprojectId
- id of the project in which the resource is usedresourceName
- name of the resource to be deleted from the Cms
CmsDataAccessException
- if something goes wrongI_CmsProjectDriver.deleteProjectResource(org.opencms.db.CmsDbContext, int, java.lang.String)
public void deleteProjectResources(CmsDbContext dbc, CmsProject project) throws CmsDataAccessException
I_CmsProjectDriver
deleteProjectResources
in interface I_CmsProjectDriver
dbc
- the current database contextproject
- the project to be deleted
CmsDataAccessException
- if operation was not succesfulI_CmsProjectDriver.deleteProjectResources(org.opencms.db.CmsDbContext, org.opencms.file.CmsProject)
public void deletePublishHistory(CmsDbContext dbc, int projectId, int maxBackupTagId) throws CmsDataAccessException
I_CmsProjectDriver
deletePublishHistory
in interface I_CmsProjectDriver
dbc
- the current database contextprojectId
- the ID of the current projectmaxBackupTagId
- entries with backup tag IDs >=0 and < this max. backup tag ID get deleted
CmsDataAccessException
- if something goes wrongI_CmsProjectDriver.deletePublishHistory(org.opencms.db.CmsDbContext, int, int)
public void deletePublishHistoryEntry(CmsDbContext dbc, int projectId, CmsUUID publishHistoryId, CmsPublishedResource publishedResource) throws CmsDataAccessException
I_CmsProjectDriver
deletePublishHistoryEntry
in interface I_CmsProjectDriver
dbc
- the current database contextprojectId
- the ID of the current projectpublishHistoryId
- the id of the history to delete the entry frompublishedResource
- the entry to delete
CmsDataAccessException
- if something goes wrongI_CmsProjectDriver.deletePublishHistoryEntry(org.opencms.db.CmsDbContext, int, org.opencms.util.CmsUUID, org.opencms.db.CmsPublishedResource)
public void deleteStaticExportPublishedResource(CmsDbContext dbc, CmsProject currentProject, java.lang.String resourceName, int linkType, java.lang.String linkParameter) throws CmsDataAccessException
I_CmsProjectDriver
deleteStaticExportPublishedResource
in interface I_CmsProjectDriver
dbc
- the current database contextcurrentProject
- the current projectresourceName
- The name of the resource to be deleted in the static exportlinkType
- the type of resource deleted (0= non-paramter, 1=parameter)linkParameter
- the parameters of the resource
CmsDataAccessException
- if something goes wrongI_CmsProjectDriver.deleteStaticExportPublishedResource(org.opencms.db.CmsDbContext, org.opencms.file.CmsProject, java.lang.String, int, java.lang.String)
public void destroy() throws java.lang.Throwable
I_CmsProjectDriver
destroy
in interface I_CmsProjectDriver
java.lang.Throwable
- if something goes wrongI_CmsProjectDriver.destroy()
public void fillDefaults(CmsDbContext dbc) throws CmsDataAccessException
I_CmsProjectDriver
fillDefaults
in interface I_CmsProjectDriver
dbc
- the current database context
CmsDataAccessException
- if something goes wrongI_CmsProjectDriver.fillDefaults(org.opencms.db.CmsDbContext)
public CmsSqlManager getSqlManager()
I_CmsProjectDriver
getSqlManager
in interface I_CmsProjectDriver
I_CmsProjectDriver.getSqlManager()
public void init(CmsDbContext dbc, CmsConfigurationManager configurationManager, java.util.List successiveDrivers, CmsDriverManager driverManager)
I_CmsDriver
init
in interface I_CmsDriver
dbc
- the current database contextconfigurationManager
- the configuration managersuccessiveDrivers
- a list of successive drivers to be initializeddriverManager
- the initialized OpenCms driver managerI_CmsDriver.init(org.opencms.db.CmsDbContext, org.opencms.configuration.CmsConfigurationManager, java.util.List, org.opencms.db.CmsDriverManager)
public CmsSqlManager initSqlManager(java.lang.String classname)
I_CmsProjectDriver
To obtain JDBC connections from different pools, further {online|offline|backup} pool Urls have to be specified.
initSqlManager
in interface I_CmsProjectDriver
classname
- the classname of the SQL manager
I_CmsProjectDriver.initSqlManager(String)
public void publishDeletedFolder(CmsDbContext dbc, I_CmsReport report, int m, int n, CmsProject onlineProject, CmsFolder currentFolder, boolean backupEnabled, long publishDate, CmsUUID publishHistoryId, int backupTagId, int maxVersions) throws CmsDataAccessException
I_CmsProjectDriver
publishDeletedFolder
in interface I_CmsProjectDriver
dbc
- the current database contextreport
- the report to log the output tom
- the number of the folder to publishn
- the number of all folders to publishonlineProject
- the online projectcurrentFolder
- the offline folder to publishbackupEnabled
- flag if backup is enabledpublishDate
- the publishing datepublishHistoryId
- the publish history idbackupTagId
- the backup tag idmaxVersions
- the maxmum number of backup versions for each resource
CmsDataAccessException
- if something goes wrongI_CmsProjectDriver.publishDeletedFolder(org.opencms.db.CmsDbContext, org.opencms.report.I_CmsReport, int, int, org.opencms.file.CmsProject, org.opencms.file.CmsFolder, boolean, long, org.opencms.util.CmsUUID, int, int)
public void publishFile(CmsDbContext dbc, I_CmsReport report, int m, int n, CmsProject onlineProject, CmsResource offlineResource, java.util.Set publishedContentIds, boolean backupEnabled, long publishDate, CmsUUID publishHistoryId, int backupTagId, int maxVersions) throws CmsDataAccessException
I_CmsProjectDriver
publishFile
in interface I_CmsProjectDriver
dbc
- the current database contextreport
- the report to log the output tom
- the number of the file to publishn
- the number of all files to publishonlineProject
- the online projectofflineResource
- the offline file to publishpublishedContentIds
- contains the UUIDs of already published content recordsbackupEnabled
- flag if backup is enabledpublishDate
- the publishing datepublishHistoryId
- the publish history idbackupTagId
- the backup tag idmaxVersions
- the maxmum number of backup versions for each resource
CmsDataAccessException
- if something goes wrongI_CmsProjectDriver.publishFile(org.opencms.db.CmsDbContext, org.opencms.report.I_CmsReport, int, int, org.opencms.file.CmsProject, org.opencms.file.CmsResource, java.util.Set, boolean, long, org.opencms.util.CmsUUID, int, int)
public CmsFile publishFileContent(CmsDbContext dbc, CmsProject offlineProject, CmsProject onlineProject, CmsResource offlineResource, java.util.Set publishedResourceIds) throws CmsDataAccessException
I_CmsProjectDriver
The content record is only published unless it's UUID is not contained in publishedContentIds. The calling method has to take care about whether an existing content record has to be deleted before or not.
The intention of this method is to get overloaded in a project driver for a specific DB server to shift the binary content from the offline into the online table in a more sophisticated way than in the generic ANSI-SQL implementation of this interface.
publishFileContent
in interface I_CmsProjectDriver
dbc
- the current database contextofflineProject
- the offline project to read dataonlineProject
- the online project to write dataofflineResource
- the offline header of the file of which the content gets publishedpublishedResourceIds
- a Set with the UUIDs of the already published content records
CmsDataAccessException
- if something goes wrongI_CmsProjectDriver.publishFileContent(org.opencms.db.CmsDbContext, org.opencms.file.CmsProject, org.opencms.file.CmsProject, org.opencms.file.CmsResource, java.util.Set)
public void publishFolder(CmsDbContext dbc, I_CmsReport report, int m, int n, CmsProject onlineProject, CmsFolder offlineFolder, boolean backupEnabled, long publishDate, CmsUUID publishHistoryId, int backupTagId, int maxVersions) throws CmsDataAccessException
I_CmsProjectDriver
publishFolder
in interface I_CmsProjectDriver
dbc
- the current database contextreport
- the report to log the output tom
- the number of the folder to publishn
- the number of all folders to publishonlineProject
- the online projectofflineFolder
- the offline folder to publishbackupEnabled
- flag if backup is enabledpublishDate
- the publishing datepublishHistoryId
- the publish history idbackupTagId
- the backup tag idmaxVersions
- the maxmum number of backup versions for each resource
CmsDataAccessException
- if something goes wrongI_CmsProjectDriver.publishFolder(org.opencms.db.CmsDbContext, org.opencms.report.I_CmsReport, int, int, org.opencms.file.CmsProject, org.opencms.file.CmsFolder, boolean, long, org.opencms.util.CmsUUID, int, int)
public void publishProject(CmsDbContext dbc, I_CmsReport report, CmsProject onlineProject, CmsPublishList publishList, boolean backupEnabled, int backupTagId, int maxVersions) throws CmsException
I_CmsProjectDriver
publishProject
in interface I_CmsProjectDriver
dbc
- the current database contextreport
- an I_CmsReport instance to print output messagesonlineProject
- the online projectpublishList
- a Cms publish listbackupEnabled
- true if published resources should be written to the Cms backupbackupTagId
- the backup tag IDmaxVersions
- maximum number of backup versions
CmsException
- if something goes wrongI_CmsProjectDriver.publishProject(org.opencms.db.CmsDbContext, org.opencms.report.I_CmsReport, org.opencms.file.CmsProject, org.opencms.db.CmsPublishList, boolean, int, int)
public CmsProject readProject(CmsDbContext dbc, int id) throws CmsDataAccessException
I_CmsProjectDriver
readProject
in interface I_CmsProjectDriver
dbc
- the current database contextid
- the id of the project
CmsDataAccessException
- if something goes wrongI_CmsProjectDriver.readProject(org.opencms.db.CmsDbContext, int)
public CmsProject readProject(CmsDbContext dbc, java.lang.String name) throws CmsDataAccessException
I_CmsProjectDriver
readProject
in interface I_CmsProjectDriver
dbc
- the current database contextname
- the name of the project
CmsDataAccessException
- if something goes wrongI_CmsProjectDriver.readProject(org.opencms.db.CmsDbContext, java.lang.String)
public java.lang.String readProjectResource(CmsDbContext dbc, int projectId, java.lang.String resourcePath, java.lang.Object reservedParam) throws CmsDataAccessException
I_CmsProjectDriver
readProjectResource
in interface I_CmsProjectDriver
dbc
- the current database contextprojectId
- the ID of the project for which the resource path is readresourcePath
- the project's resource pathreservedParam
- reserved optional parameter, should be null on standard OpenCms installations
CmsDataAccessException
- if something goes wrongI_CmsProjectDriver.readProjectResource(org.opencms.db.CmsDbContext, int, java.lang.String, java.lang.Object)
public java.util.List readProjectResources(CmsDbContext dbc, CmsProject project) throws CmsDataAccessException
I_CmsProjectDriver
readProjectResources
in interface I_CmsProjectDriver
dbc
- the current database contextproject
- the project for which the resource path is read
CmsDataAccessException
- if something goes wrongI_CmsProjectDriver.readProjectResources(org.opencms.db.CmsDbContext, org.opencms.file.CmsProject)
public java.util.List readProjects(CmsDbContext dbc, int state) throws CmsDataAccessException
I_CmsProjectDriver
readProjects
in interface I_CmsProjectDriver
dbc
- the current database contextstate
- the requested project state
CmsProject
CmsDataAccessException
- if something goes wrongI_CmsProjectDriver.readProjects(org.opencms.db.CmsDbContext, int)
public java.util.List readProjectsForGroup(CmsDbContext dbc, CmsGroup group) throws CmsDataAccessException
I_CmsProjectDriver
readProjectsForGroup
in interface I_CmsProjectDriver
dbc
- the current database contextgroup
- the requesting group
CmsDataAccessException
- if something goes wrongI_CmsProjectDriver.readProjectsForGroup(org.opencms.db.CmsDbContext, org.opencms.file.CmsGroup)
public java.util.List readProjectsForManagerGroup(CmsDbContext dbc, CmsGroup group) throws CmsDataAccessException
I_CmsProjectDriver
readProjectsForManagerGroup
in interface I_CmsProjectDriver
dbc
- the current database contextgroup
- The requesting group
CmsDataAccessException
- if something goes wrongI_CmsProjectDriver.readProjectsForManagerGroup(org.opencms.db.CmsDbContext, org.opencms.file.CmsGroup)
public java.util.List readProjectsForUser(CmsDbContext dbc, CmsUser user) throws CmsDataAccessException
I_CmsProjectDriver
readProjectsForUser
in interface I_CmsProjectDriver
dbc
- the current database contextuser
- the user
CmsProject
CmsDataAccessException
- if something goes wrongI_CmsProjectDriver.readProjectsForUser(org.opencms.db.CmsDbContext, org.opencms.file.CmsUser)
public java.util.List readProjectView(CmsDbContext dbc, int project, java.lang.String filter) throws CmsDataAccessException
I_CmsProjectDriver
readProjectView
in interface I_CmsProjectDriver
dbc
- the current database contextproject
- the id of the project in which the resource will be usedfilter
- the filter for the resources to read
CmsDataAccessException
- if something goes wrongI_CmsProjectDriver.readProjectView(org.opencms.db.CmsDbContext, int, java.lang.String)
public java.util.List readPublishedResources(CmsDbContext dbc, int projectId, CmsUUID publishHistoryId) throws CmsDataAccessException
I_CmsProjectDriver
readPublishedResources
in interface I_CmsProjectDriver
dbc
- the current database contextprojectId
- the ID of the current projectpublishHistoryId
- unique int ID to identify the publish process in the publish history
CmsPublishedResource
objects
CmsDataAccessException
- if something goes wrongI_CmsProjectDriver.readPublishedResources(org.opencms.db.CmsDbContext, int, org.opencms.util.CmsUUID)
public java.lang.String readStaticExportPublishedResourceParameters(CmsDbContext dbc, CmsProject currentProject, java.lang.String rfsName) throws CmsDataAccessException
I_CmsProjectDriver
readStaticExportPublishedResourceParameters
in interface I_CmsProjectDriver
dbc
- the current database contextcurrentProject
- the current projectrfsName
- the rfs name of the resource
CmsDataAccessException
- if something goes wrongI_CmsProjectDriver.readStaticExportPublishedResourceParameters(org.opencms.db.CmsDbContext, org.opencms.file.CmsProject, java.lang.String)
public java.util.List readStaticExportResources(CmsDbContext dbc, CmsProject currentProject, int parameterResources, long timestamp) throws CmsDataAccessException
I_CmsProjectDriver
readStaticExportResources
in interface I_CmsProjectDriver
dbc
- the current database contextcurrentProject
- the current projectparameterResources
- flag for reading resources with parameters (1) or without (0)timestamp
- the timestamp information
String
objects
CmsDataAccessException
- if something goes wrongI_CmsProjectDriver.readStaticExportResources(org.opencms.db.CmsDbContext, org.opencms.file.CmsProject, int, long)
public void unmarkProjectResources(CmsDbContext dbc, CmsProject project) throws CmsDataAccessException
I_CmsProjectDriver
This must be done when a project will deleted
unmarkProjectResources
in interface I_CmsProjectDriver
dbc
- the current database contextproject
- the project to delete
CmsDataAccessException
- if something goes wrongI_CmsProjectDriver.unmarkProjectResources(org.opencms.db.CmsDbContext, org.opencms.file.CmsProject)
public void writeProject(CmsDbContext dbc, CmsProject project) throws CmsDataAccessException
I_CmsProjectDriver
The project id has to be a valid OpenCms project id.
The project with the given id will be completely overriden
by the given data.
writeProject
in interface I_CmsProjectDriver
dbc
- the current database contextproject
- the project that should be written
CmsDataAccessException
- if operation was not successfulI_CmsProjectDriver.writeProject(org.opencms.db.CmsDbContext, org.opencms.file.CmsProject)
public void writePublishHistory(CmsDbContext dbc, CmsProject currentProject, CmsUUID publishId, CmsPublishedResource resource) throws CmsDataAccessException
I_CmsProjectDriver
writePublishHistory
in interface I_CmsProjectDriver
dbc
- the current database contextcurrentProject
- the current projectpublishId
- the ID of the current publishing processresource
- the state of the resource *before* it was published
CmsDataAccessException
- if something goes wrongI_CmsProjectDriver.writePublishHistory(org.opencms.db.CmsDbContext, org.opencms.file.CmsProject, org.opencms.util.CmsUUID, org.opencms.db.CmsPublishedResource)
public void writeStaticExportPublishedResource(CmsDbContext dbc, CmsProject currentProject, java.lang.String resourceName, int linkType, java.lang.String linkParameter, long timestamp) throws CmsDataAccessException
I_CmsProjectDriver
This is done during static export.
writeStaticExportPublishedResource
in interface I_CmsProjectDriver
dbc
- the current database contextcurrentProject
- the current projectresourceName
- The name of the resource to be added to the static exportlinkType
- the type of resource exported (0= non-paramter, 1=parameter)linkParameter
- the parameters added to the resourcetimestamp
- a timestamp for writing the data into the db
CmsDataAccessException
- if something goes wrongI_CmsProjectDriver.writeStaticExportPublishedResource(org.opencms.db.CmsDbContext, org.opencms.file.CmsProject, java.lang.String, int, java.lang.String, long)
protected void finalize() throws java.lang.Throwable
java.lang.Throwable
Object.finalize()
protected void internalResetResourceState(CmsDbContext dbc, CmsResource resource) throws CmsDataAccessException
dbc
- the current database contextresource
- the Cms resource
CmsDataAccessException
- if something goes wrong
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |