org.opencms.db.mysql3
Class CmsVfsDriver

java.lang.Object
  extended by org.opencms.db.generic.CmsVfsDriver
      extended by org.opencms.db.mysql.CmsVfsDriver
          extended by org.opencms.db.mysql3.CmsVfsDriver
All Implemented Interfaces:
I_CmsDriver, I_CmsVfsDriver

public class CmsVfsDriver
extends CmsVfsDriver

MySQL3 implementation of the VFS driver methods.

Since:
6.0.0
Version:
$Revision: 1.1 $
Author:
Michael Moossen

Field Summary
 
Fields inherited from class org.opencms.db.generic.CmsVfsDriver
BEGIN_EXCLUDE_CONDITION, BEGIN_INCLUDE_CONDITION, END_CONDITION, m_driverManager, m_sqlManager
 
Fields inherited from interface org.opencms.db.I_CmsVfsDriver
DRIVER_TYPE_ID
 
Constructor Summary
CmsVfsDriver()
           
 
Method Summary
 List readResourcesWithProperty(CmsDbContext dbc, int projectId, CmsUUID propertyDef, String path)
          Reads all resources that have a value set for the specified property (definition), in the given path.
 List readResourcesWithProperty(CmsDbContext dbc, int projectId, CmsUUID propertyDef, String path, String value)
          Reads all resources that have a value (containing the specified value) set for the specified property (definition), in the given path.
 
Methods inherited from class org.opencms.db.mysql.CmsVfsDriver
initSqlManager
 
Methods inherited from class org.opencms.db.generic.CmsVfsDriver
createContent, createFile, createFile, createFolder, createPropertyDefinition, createResource, createResource, createSibling, deletePropertyDefinition, deletePropertyObjects, destroy, escapeDbWildcard, finalize, getSqlManager, init, internalCountProperties, internalCountSiblings, internalReadParentId, internalRemoveFolder, internalValidateResourceLength, publishResource, readChildResources, readFile, readFolder, readFolder, readPropertyDefinition, readPropertyDefinitions, readPropertyObject, readPropertyObjects, readResource, readResource, readResources, readResourcesForPrincipalACE, readResourcesForPrincipalAttr, readResourceTree, readSiblings, removeFile, removeFolder, replaceResource, transferResource, validateResourceIdExists, validateStructureIdExists, writeContent, writeLastModifiedProjectId, writePropertyObject, writePropertyObjects, writeResource, writeResourceState
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.opencms.db.I_CmsDriver
toString
 

Constructor Detail

CmsVfsDriver

public CmsVfsDriver()
Method Detail

readResourcesWithProperty

public List readResourcesWithProperty(CmsDbContext dbc,
                                      int projectId,
                                      CmsUUID propertyDef,
                                      String path)
                               throws CmsDataAccessException
Description copied from interface: I_CmsVfsDriver
Reads all resources that have a value set for the specified property (definition), in the given path.

Both individual and shared properties of a resource are checked.

Specified by:
readResourcesWithProperty in interface I_CmsVfsDriver
Overrides:
readResourcesWithProperty in class CmsVfsDriver
Parameters:
dbc - the current database context
projectId - the id of the project
propertyDef - the id of the property definition
path - the folder to get the resources with the property from
Returns:
a list of all CmsResource objects that have a value set for the specified property.
Throws:
CmsDataAccessException - if something goes wrong
See Also:
I_CmsVfsDriver.readResourcesWithProperty(org.opencms.db.CmsDbContext, int, org.opencms.util.CmsUUID, String)

readResourcesWithProperty

public List readResourcesWithProperty(CmsDbContext dbc,
                                      int projectId,
                                      CmsUUID propertyDef,
                                      String path,
                                      String value)
                               throws CmsDataAccessException
Description copied from interface: I_CmsVfsDriver
Reads all resources that have a value (containing the specified value) set for the specified property (definition), in the given path.

Both individual and shared properties of a resource are checked.

Specified by:
readResourcesWithProperty in interface I_CmsVfsDriver
Overrides:
readResourcesWithProperty in class CmsVfsDriver
Parameters:
dbc - the current database context
projectId - the id of the project
propertyDef - the id of the property definition
path - the folder to get the resources with the property from
value - the string to search in the value of the property
Returns:
a list of all CmsResource objects that have a value set for the specified property.
Throws:
CmsDataAccessException - if something goes wrong
See Also:
I_CmsVfsDriver.readResourcesWithProperty(org.opencms.db.CmsDbContext, int, org.opencms.util.CmsUUID, String, String)