|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opencms.db.generic.CmsVfsDriver
org.opencms.db.oracle.CmsVfsDriver
public class CmsVfsDriver
Oracle implementation of the VFS driver methods.
Field Summary |
---|
Fields inherited from class org.opencms.db.generic.CmsVfsDriver |
---|
m_driverManager, m_resOp, m_sqlManager |
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, todo |
Constructor Summary | |
---|---|
CmsVfsDriver()
|
Method Summary | |
---|---|
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. |
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 Detail |
---|
public CmsVfsDriver()
Method Detail |
---|
public void createContent(CmsDbContext dbc, CmsUUID projectId, CmsUUID resourceId, byte[] content) throws CmsDataAccessException
I_CmsVfsDriver
createContent
in interface I_CmsVfsDriver
createContent
in class CmsVfsDriver
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
CmsDataAccessException
- 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_CmsVfsDriver
createOnlineContent
in interface I_CmsVfsDriver
createOnlineContent
in class CmsVfsDriver
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
CmsDataAccessException
- if something goes wrongCmsVfsDriver.createOnlineContent(CmsDbContext, CmsUUID, byte[], int, boolean, boolean)
public CmsSqlManager initSqlManager(java.lang.String classname)
I_CmsVfsDriver
To obtain JDBC connections from different pools, further {online|offline|history} pool Urls have to be specified.
initSqlManager
in interface I_CmsVfsDriver
initSqlManager
in class CmsVfsDriver
classname
- the class name of the SQL manager
I_CmsVfsDriver.initSqlManager(String)
public void writeContent(CmsDbContext dbc, CmsUUID resourceId, byte[] content) throws CmsDataAccessException
I_CmsVfsDriver
writeContent
in interface I_CmsVfsDriver
writeContent
in class CmsVfsDriver
dbc
- the current database contextresourceId
- the id of the resource used to identify the content to updatecontent
- the new content of the file
CmsDataAccessException
- 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 content
CmsDataAccessException
- if something goes wrong
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |