Package org.opencms.db.oracle
Class CmsStorageVfsDriver
java.lang.Object
org.opencms.db.generic.CmsVfsDriver
org.opencms.db.generic.CmsStorageVfsDriver
org.opencms.db.oracle.CmsStorageVfsDriver
- All Implemented Interfaces:
I_CmsDriver,I_CmsVfsDriver
Oracle VFS driver for the OpenCms deduplicating media storage engine (DMSE).
- See Also:
-
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.CmsStorageVfsDriver
m_storageManager, m_storedContentInfoCacheFields 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.CmsStorageVfsDriver
createFile, createFile, createStoredContentInfoCache, deleteHistoryContent, destroy, getAdditionalSqlQueryProperties, getStoredContentDelivery, init, readContent, readContentFrom, readContentTo, readHistoryContent, readStoredContentInfo, removeFileMethods inherited from class org.opencms.db.generic.CmsVfsDriver
addUrlNameMappingEntry, checkWritePermissionsInFolder, countSiblings, createFolder, createPropertyDefinition, createRelation, createResource, createResource, createSibling, deleteAliases, deletePropertyDefinition, deletePropertyObjects, deleteRelations, deleteRewriteAliases, deleteUrlNameMappingEntries, escapeDbWildcard, getResourceOus, getSqlManager, incrementCounter, 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, readFolder, readFolder, readFolderSizeStats, readParentFolder, readPropertyDefinition, readPropertyDefinitions, readPropertyObject, readPropertyObjects, readRelations, readResource, readResource, readResources, readResourcesForPrincipalACE, readResourcesForPrincipalAttr, readResourcesWithProperty, readResourceTree, readRewriteAliases, readSiblings, readTypesInResourceTree, readUrlNameMappingEntries, readVersions, 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
toString
-
Constructor Details
-
CmsStorageVfsDriver
public CmsStorageVfsDriver()
-
-
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 classCmsStorageVfsDriver- 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 classCmsStorageVfsDriver- 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 classCmsStorageVfsDriver- 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 classCmsStorageVfsDriver- 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 classCmsStorageVfsDriver- 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
-