public class CmsSubscriptionDriver extends CmsSubscriptionDriver
m_driverManager, m_sqlManager
AND_CONDITION, BEGIN_CONDITION, BEGIN_EXCLUDE_CONDITION, BEGIN_INCLUDE_CONDITION, END_CONDITION, OR_CONDITION
DRIVER_TYPE_ID
Constructor and Description |
---|
CmsSubscriptionDriver() |
Modifier and Type | Method and Description |
---|---|
CmsSqlManager |
initSqlManager(java.lang.String classname)
Initializes the SQL manager for this driver.
|
void |
markResourceAsVisitedBy(CmsDbContext dbc,
java.lang.String poolName,
CmsResource resource,
CmsUser user)
Mark the given resource as visited by the user.
|
addVisit, deleteVisits, getDateLastVisitedBy, getSqlManager, init, internalReadVisitEntry, prepareVisitConditions, readAllSubscribedResources, readResourcesVisitedBy, readSubscribedDeletedResources, readSubscribedResources, readVisits, setSubscribedResourceAsDeleted, subscribeResourceFor, unsubscribeAllDeletedResources, unsubscribeAllResourcesFor, unsubscribeResourceFor, unsubscribeResourceForAll
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
toString
public CmsSubscriptionDriver()
public CmsSqlManager initSqlManager(java.lang.String classname)
I_CmsSubscriptionDriver
To obtain JDBC connections from different pools, further {online|offline|history} pool Urls have to be specified.
initSqlManager
in interface I_CmsSubscriptionDriver
initSqlManager
in class CmsSubscriptionDriver
classname
- the classname of the SQL managerCmsSubscriptionDriver.initSqlManager(java.lang.String)
public void markResourceAsVisitedBy(CmsDbContext dbc, java.lang.String poolName, CmsResource resource, CmsUser user) throws CmsDataAccessException
I_CmsSubscriptionDriver
markResourceAsVisitedBy
in interface I_CmsSubscriptionDriver
markResourceAsVisitedBy
in class CmsSubscriptionDriver
dbc
- the database contextpoolName
- the name of the database pool to useresource
- the resource to mark as visiteduser
- the user that visited the resourceCmsDataAccessException
- if something goes wrongCmsSubscriptionDriver.markResourceAsVisitedBy(org.opencms.db.CmsDbContext, java.lang.String, org.opencms.file.CmsResource, org.opencms.file.CmsUser)