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.2 $
Author:
Michael Moossen

Field Summary
 
Fields inherited from class org.opencms.db.generic.CmsVfsDriver
m_driverManager, 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
 
Constructor Summary
CmsVfsDriver()
           
 
Method Summary
 java.util.List readResourcesWithProperty(CmsDbContext dbc, CmsUUID projectId, CmsUUID propertyDef, java.lang.String path, java.lang.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
countSiblings, createContent, createFile, createFile, createFolder, createOnlineContent, createPropertyDefinition, createRelation, createResource, createResource, createSibling, deletePropertyDefinition, deletePropertyObjects, deleteRelations, destroy, escapeDbWildcard, getSqlManager, init, internalCountProperties, internalPublishVersions, internalReadParentId, internalReadRelation, internalReadResourceState, internalReadStructureState, internalRemoveFolder, internalUpdateVersions, internalValidateResourceLength, moveRelations, moveResource, prepareExpiredTimeRangeCondition, preparePathCondition, prepareProjectCondition, prepareRelationConditions, prepareReleasedTimeRangeCondition, prepareResourceCondition, prepareStateCondition, prepareTimeRangeCondition, prepareTypeCondition, publishResource, readChildResources, readContent, readFolder, readFolder, readParentFolder, readPropertyDefinition, readPropertyDefinitions, readPropertyObject, readPropertyObjects, readRelations, readResource, readResource, readResources, readResourcesForPrincipalACE, readResourcesForPrincipalAttr, readResourceTree, readSiblings, readVersions, removeFile, removeFolder, replaceResource, transferResource, updateBrokenRelations, updateRelations, validateResourceIdExists, validateStructureIdExists, writeContent, 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 Detail

CmsVfsDriver

public CmsVfsDriver()
Method Detail

readResourcesWithProperty

public java.util.List readResourcesWithProperty(CmsDbContext dbc,
                                                CmsUUID projectId,
                                                CmsUUID propertyDef,
                                                java.lang.String path,
                                                java.lang.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.

If the value parameter is null, all resources having the given property set are returned.

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, CmsUUID, org.opencms.util.CmsUUID, String, String)