public class CmsVfsDriver extends CmsVfsDriver
m_driverManager, m_resOp, m_sqlManager, OFFLINE, ONLINEAND_CONDITION, BEGIN_CONDITION, BEGIN_EXCLUDE_CONDITION, BEGIN_INCLUDE_CONDITION, END_CONDITION, OR_CONDITIONDRIVER_TYPE_ID, REQ_ATTR_CHECK_PERMISSIONS, REQ_ATTR_RESOURCE_OUS| 构造器和说明 |
|---|
CmsVfsDriver() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
createContent(CmsDbContext dbc,
CmsUUID projectId,
CmsUUID resourceId,
byte[] content)
Creates a content entry for the resource identified by the specified resource id.
|
void |
createOnlineContent(CmsDbContext dbc,
CmsUUID resourceId,
byte[] contents,
int publishTag,
boolean keepOnline,
boolean needToUpdateContent)
Creates a new content in the offline project.
|
CmsSqlManager |
initSqlManager(java.lang.String classname)
Initializes the SQL manager for this driver.
|
protected void |
internalWriteContent(CmsDbContext dbc,
CmsUUID projectId,
CmsUUID resourceId,
byte[] contents,
int publishTag)
Writes the resource content with the specified resource id.
|
void |
writeContent(CmsDbContext dbc,
CmsUUID resourceId,
byte[] content)
Writes the resource content with the specified resource id.
|
addUrlNameMappingEntry, checkWritePermissionsInFolder, countSiblings, createFile, createFile, createFolder, createPropertyDefinition, createRelation, createResource, createResource, createSibling, deleteAliases, deletePropertyDefinition, deletePropertyObjects, deleteRelations, deleteRewriteAliases, deleteUrlNameMappingEntries, destroy, escapeDbWildcard, getResourceOus, getSqlManager, incrementCounter, init, insertAlias, insertRewriteAliases, internalCountProperties, internalCreateCounter, internalCreateUrlNameMappingEntry, internalIncrementCounter, internalReadAlias, internalReadCounter, internalReadParentId, internalReadRelation, internalReadResourceState, internalReadStructureState, internalRemoveFolder, internalUpdateVersions, internalValidateResourceLength, moveRelations, moveResource, prepareExpiredTimeRangeCondition, preparePathCondition, prepareProjectCondition, prepareRelationConditions, prepareReleasedTimeRangeCondition, prepareResourceCondition, prepareStateCondition, prepareTimeRangeCondition, prepareTypeCondition, prepareTypesCondition, prepareUrlNameMappingConditions, publishResource, publishVersions, readAliases, readChildResources, readContent, readFolder, readFolder, readParentFolder, readPropertyDefinition, readPropertyDefinitions, readPropertyObject, readPropertyObjects, readRelations, readResource, readResource, readResources, readResourcesForPrincipalACE, readResourcesForPrincipalAttr, readResourcesWithProperty, readResourceTree, readRewriteAliases, readSiblings, readTypesInResourceTree, readUrlNameMappingEntries, readVersions, removeFile, removeFolder, repairBrokenRelations, replaceResource, setDriverManager, setSqlManager, transferResource, updateBrokenRelations, updateRelations, validateResourceIdExists, validateStructureIdExists, wrapException, writeLastModifiedProjectId, writePropertyObject, writePropertyObjects, writeResource, writeResourceStateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittoStringpublic void createContent(CmsDbContext dbc, CmsUUID projectId, CmsUUID resourceId, byte[] content) throws CmsDataAccessException
I_CmsVfsDrivercreateContent 在接口中 I_CmsVfsDrivercreateContent 在类中 CmsVfsDriverdbc - the current database contextprojectId - the id of the current projectresourceId - the resource id of the resource to create the content forcontent - the content to writeCmsDataAccessException - if something goes wrongI_CmsVfsDriver.createContent(CmsDbContext, CmsUUID, CmsUUID, byte[])public void createOnlineContent(CmsDbContext dbc, CmsUUID resourceId, byte[] contents, int publishTag, boolean keepOnline, boolean needToUpdateContent) throws CmsDataAccessException
I_CmsVfsDrivercreateOnlineContent 在接口中 I_CmsVfsDrivercreateOnlineContent 在类中 CmsVfsDriverdbc - the current database contextresourceId - the resource id of the content to writecontents - the content to publishpublishTag - the publish tagkeepOnline - if the content is online or has to be put in the historyneedToUpdateContent - if the content blob has to be updatedCmsDataAccessException - if something goes wrongCmsVfsDriver.createOnlineContent(CmsDbContext, CmsUUID, byte[], int, boolean, boolean)public CmsSqlManager initSqlManager(java.lang.String classname)
I_CmsVfsDriverTo obtain JDBC connections from different pools, further {online|offline|history} pool Urls have to be specified.
initSqlManager 在接口中 I_CmsVfsDriverinitSqlManager 在类中 CmsVfsDriverclassname - the class name of the SQL managerI_CmsVfsDriver.initSqlManager(String)public void writeContent(CmsDbContext dbc, CmsUUID resourceId, byte[] content) throws CmsDataAccessException
I_CmsVfsDriverwriteContent 在接口中 I_CmsVfsDriverwriteContent 在类中 CmsVfsDriverdbc - the current database contextresourceId - the id of the resource used to identify the content to updatecontent - the new content of the fileCmsDataAccessException - if something goes wrongI_CmsVfsDriver.writeContent(CmsDbContext, CmsUUID, byte[])protected void internalWriteContent(CmsDbContext dbc, CmsUUID projectId, CmsUUID resourceId, byte[] contents, int publishTag) throws CmsDataAccessException
dbc - the current database contextprojectId - the id of the current projectresourceId - the id of the resource used to identify the content to updatecontents - the new content of the filepublishTag - the publish tag if to be written to the online contentCmsDataAccessException - if something goes wrong