org.opencms.db.mysql
Class CmsSubscriptionDriver
java.lang.Object
org.opencms.db.generic.CmsSubscriptionDriver
org.opencms.db.mysql.CmsSubscriptionDriver
- All Implemented Interfaces:
- I_CmsDriver, I_CmsSubscriptionDriver
public class CmsSubscriptionDriver
- extends CmsSubscriptionDriver
MySQL implementation of the subscription driver.
- Since:
- 8.0.0
Methods inherited from class org.opencms.db.generic.CmsSubscriptionDriver |
addVisit, deleteVisits, getDateLastVisitedBy, getSqlManager, init, internalReadVisitEntry, prepareVisitConditions, readAllSubscribedResources, readResourcesVisitedBy, readSubscribedDeletedResources, readSubscribedResources, readVisits, setSubscribedResourceAsDeleted, subscribeResourceFor, unsubscribeAllDeletedResources, unsubscribeAllResourcesFor, unsubscribeResourceFor, unsubscribeResourceForAll |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CmsSubscriptionDriver
public CmsSubscriptionDriver()
initSqlManager
public CmsSqlManager initSqlManager(String classname)
- Description copied from interface:
I_CmsSubscriptionDriver
- 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 interface I_CmsSubscriptionDriver
- Overrides:
initSqlManager
in class CmsSubscriptionDriver
- Parameters:
classname
- the classname of the SQL manager
- Returns:
- the SQL manager for this driver
- See Also:
CmsSubscriptionDriver.initSqlManager(java.lang.String)
markResourceAsVisitedBy
public void markResourceAsVisitedBy(CmsDbContext dbc,
String poolName,
CmsResource resource,
CmsUser user)
throws CmsDataAccessException
- Description copied from interface:
I_CmsSubscriptionDriver
- Mark the given resource as visited by the user.
- Specified by:
markResourceAsVisitedBy
in interface I_CmsSubscriptionDriver
- Overrides:
markResourceAsVisitedBy
in class CmsSubscriptionDriver
- Parameters:
dbc
- the database contextpoolName
- the name of the database pool to useresource
- the resource to mark as visiteduser
- the user that visited the resource
- Throws:
CmsDataAccessException
- if something goes wrong- See Also:
CmsSubscriptionDriver.markResourceAsVisitedBy(org.opencms.db.CmsDbContext, java.lang.String, org.opencms.file.CmsResource, org.opencms.file.CmsUser)