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
-
Field Summary
Fields inherited from class org.opencms.db.generic.CmsVfsDriver
m_driverManager, m_resOp, m_sqlManager, OFFLINE, ONLINE
Fields inherited from interface org.opencms.db.I_CmsDriver
AND_CONDITION, BEGIN_CONDITION, BEGIN_EXCLUDE_CONDITION, BEGIN_INCLUDE_CONDITION, END_CONDITION, OR_CONDITION
Fields inherited from interface org.opencms.db.I_CmsVfsDriver
DRIVER_TYPE_ID, REQ_ATTR_CHECK_PERMISSIONS, REQ_ATTR_RESOURCE_OUS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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.initSqlManager
(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.Methods inherited from class org.opencms.db.generic.CmsVfsDriver
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, writeResourceState
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.opencms.db.I_CmsDriver
toString
-
Constructor Details
-
CmsVfsDriver
public CmsVfsDriver()
-
-
Method Details
-
createContent
public void createContent(CmsDbContext dbc, CmsUUID projectId, CmsUUID resourceId, byte[] content) throws CmsDataAccessException Description copied from interface:I_CmsVfsDriver
Creates a content entry for the resource identified by the specified resource id.- Specified by:
createContent
in interfaceI_CmsVfsDriver
- Overrides:
createContent
in classCmsVfsDriver
- Parameters:
dbc
- the current database contextprojectId
- the id of the current projectresourceId
- the resource id of 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_CmsVfsDriver
Creates a new content in the offline project.- Specified by:
createOnlineContent
in interfaceI_CmsVfsDriver
- Overrides:
createOnlineContent
in 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_CmsVfsDriver
Initializes 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:
initSqlManager
in interfaceI_CmsVfsDriver
- Overrides:
initSqlManager
in classCmsVfsDriver
- Parameters:
classname
- the class name of the SQL manager- Returns:
- the SQL manager for this driver
- See Also:
-
writeContent
public void writeContent(CmsDbContext dbc, CmsUUID resourceId, byte[] content) throws CmsDataAccessException Description copied from interface:I_CmsVfsDriver
Writes the resource content with the specified resource id.- Specified by:
writeContent
in interfaceI_CmsVfsDriver
- Overrides:
writeContent
in classCmsVfsDriver
- Parameters:
dbc
- the current database contextresourceId
- the id of 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
-