Package org.opencms.db.oracle
Class CmsVfsDriver
java.lang.Object
org.opencms.db.generic.CmsVfsDriver
org.opencms.db.oracle.CmsVfsDriver
- All Implemented Interfaces:
I_CmsDriver,I_CmsVfsDriver
Oracle implementation of the VFS driver methods.
- Since:
- 6.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opencms.db.generic.CmsVfsDriver
CmsVfsDriver.RelationConditionMode -
Field Summary
Fields inherited from class org.opencms.db.generic.CmsVfsDriver
m_driverManager, m_resOp, m_sqlManager, OFFLINE, ONLINEFields inherited from interface org.opencms.db.I_CmsDriver
AND_CONDITION, BEGIN_CONDITION, BEGIN_EXCLUDE_CONDITION, BEGIN_INCLUDE_CONDITION, END_CONDITION, OR_CONDITIONFields inherited from interface org.opencms.db.I_CmsVfsDriver
DRIVER_TYPE_ID, REQ_ATTR_CHECK_PERMISSIONS, REQ_ATTR_RESOURCE_OUS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateContent(CmsDbContext dbc, CmsUUID projectId, CmsResource resource, byte[] content) Creates a content entry for the specified resource.voidcreateOnlineContent(CmsDbContext dbc, CmsUUID resourceId, byte[] contents, int publishTag, boolean keepOnline, boolean needToUpdateContent) Creates a new content in the offline project.initSqlManager(String classname) Initializes the SQL manager for this driver.initSqlManager(String classname, List<String> additionalQueryProperties) Initializes the SQL manager for this driver and loads additional SQL query property files.protected voidinternalWriteContent(CmsDbContext dbc, CmsUUID projectId, CmsUUID resourceId, byte[] contents, int publishTag) Writes the resource content with the specified resource id.voidwriteContent(CmsDbContext dbc, CmsResource resource, byte[] content) Writes the resource content for the specified resource.Methods inherited from class org.opencms.db.generic.CmsVfsDriver
addUrlNameMappingEntry, checkWritePermissionsInFolder, countSiblings, createFile, createFile, createFolder, createPropertyDefinition, createRelation, createResource, createResource, createSibling, deleteAliases, deleteHistoryContent, deletePropertyDefinition, deletePropertyObjects, deleteRelations, deleteRewriteAliases, deleteUrlNameMappingEntries, destroy, escapeDbWildcard, getAdditionalSqlQueryProperties, 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, readFolderSizeStats, readHistoryContent, 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, writeResourceStateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opencms.db.I_CmsDriver
toStringMethods inherited from interface org.opencms.db.I_CmsVfsDriver
getStoredContentDelivery, readContentFrom, readContentTo, readStoredContentInfo
-
Constructor Details
-
CmsVfsDriver
public CmsVfsDriver()
-
-
Method Details
-
createContent
public void createContent(CmsDbContext dbc, CmsUUID projectId, CmsResource resource, byte[] content) throws CmsDataAccessException Description copied from interface:I_CmsVfsDriverCreates a content entry for the specified resource.- Specified by:
createContentin interfaceI_CmsVfsDriver- Overrides:
createContentin classCmsVfsDriver- Parameters:
dbc- the current database contextprojectId- the id of the current projectresource- the resource to create the content forcontent- the content to write- Throws:
CmsDataAccessException- if something goes wrong- See Also:
-
createOnlineContent
public void createOnlineContent(CmsDbContext dbc, CmsUUID resourceId, byte[] contents, int publishTag, boolean keepOnline, boolean needToUpdateContent) throws CmsDataAccessException Description copied from interface:I_CmsVfsDriverCreates a new content in the offline project.- Specified by:
createOnlineContentin interfaceI_CmsVfsDriver- Overrides:
createOnlineContentin classCmsVfsDriver- Parameters:
dbc- 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 updated- Throws:
CmsDataAccessException- if something goes wrong- See Also:
-
initSqlManager
Description copied from interface:I_CmsVfsDriverInitializes the SQL manager for this driver.To obtain JDBC connections from different pools, further {online|offline|history} pool Urls have to be specified.
- Specified by:
initSqlManagerin interfaceI_CmsVfsDriver- Overrides:
initSqlManagerin classCmsVfsDriver- Parameters:
classname- the class name of the SQL manager- Returns:
- the SQL manager for this driver
- See Also:
-
initSqlManager
Description copied from class:CmsVfsDriverInitializes the SQL manager for this driver and loads additional SQL query property files.- Overrides:
initSqlManagerin classCmsVfsDriver- Parameters:
classname- the class name of the SQL manageradditionalQueryProperties- the additional SQL query property files to load- Returns:
- the SQL manager for this driver
- See Also:
-
writeContent
public void writeContent(CmsDbContext dbc, CmsResource resource, byte[] content) throws CmsDataAccessException Description copied from interface:I_CmsVfsDriverWrites the resource content for the specified resource.- Specified by:
writeContentin interfaceI_CmsVfsDriver- Overrides:
writeContentin classCmsVfsDriver- Parameters:
dbc- the current database contextresource- the resource used to identify the content to updatecontent- the new content of the file- Throws:
CmsDataAccessException- if something goes wrong- See Also:
-
internalWriteContent
protected void internalWriteContent(CmsDbContext dbc, CmsUUID projectId, CmsUUID resourceId, byte[] contents, int publishTag) throws CmsDataAccessException Writes the resource content with the specified resource id.- Parameters:
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 content- Throws:
CmsDataAccessException- if something goes wrong
-