Package 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
MySQL implementation of the subscription driver.
- Since:
- 8.0.0
-
Field Summary
Fields inherited from class org.opencms.db.generic.CmsSubscriptionDriver
m_driverManager, m_sqlManagerFields inherited from interface org.opencms.db.I_CmsDriver
AND_CONDITION, BEGIN_CONDITION, BEGIN_EXCLUDE_CONDITION, BEGIN_INCLUDE_CONDITION, END_CONDITION, OR_CONDITIONFields inherited from interface org.opencms.db.I_CmsSubscriptionDriver
DRIVER_TYPE_ID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioninitSqlManager(String classname) Initializes the SQL manager for this driver.voidmarkResourceAsVisitedBy(CmsDbContext dbc, String poolName, CmsResource resource, CmsUser user) Mark the given resource as visited by the user.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, unsubscribeResourceForAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opencms.db.I_CmsDriver
toString
-
Constructor Details
-
CmsSubscriptionDriver
public CmsSubscriptionDriver()
-
-
Method Details
-
initSqlManager
Description copied from interface:I_CmsSubscriptionDriverInitializes 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:
initSqlManagerin interfaceI_CmsSubscriptionDriver- Overrides:
initSqlManagerin classCmsSubscriptionDriver- Parameters:
classname- the classname of the SQL manager- Returns:
- the SQL manager for this driver
- See Also:
-
markResourceAsVisitedBy
public void markResourceAsVisitedBy(CmsDbContext dbc, String poolName, CmsResource resource, CmsUser user) throws CmsDataAccessException Description copied from interface:I_CmsSubscriptionDriverMark the given resource as visited by the user.- Specified by:
markResourceAsVisitedByin interfaceI_CmsSubscriptionDriver- Overrides:
markResourceAsVisitedByin classCmsSubscriptionDriver- 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:
-