|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opencms.db.generic.CmsSubscriptionDriver
org.opencms.db.mysql.CmsSubscriptionDriver
public class CmsSubscriptionDriver
MySQL implementation of the subscription driver.
Field Summary |
---|
Fields inherited from class org.opencms.db.generic.CmsSubscriptionDriver |
---|
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_CmsSubscriptionDriver |
---|
DRIVER_TYPE_ID |
Constructor Summary | |
---|---|
CmsSubscriptionDriver()
|
Method Summary | |
---|---|
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. |
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 |
---|
public CmsSubscriptionDriver()
Method Detail |
---|
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 manager
CmsSubscriptionDriver.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 resource
CmsDataAccessException
- if something goes wrongCmsSubscriptionDriver.markResourceAsVisitedBy(org.opencms.db.CmsDbContext, java.lang.String, org.opencms.file.CmsResource, org.opencms.file.CmsUser)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |