public class ActivityFeedDAOImpl extends ActivitiesDAOImpl implements ActivityFeedDAO
template
MAX_LEN_ACTIVITY_SUMMARY, MAX_LEN_ACTIVITY_TYPE, MAX_LEN_APP_TOOL_ID, MAX_LEN_SITE_ID, MAX_LEN_USER_ID
KEY_ACTIVITY_NULL_VALUE
Constructor and Description |
---|
ActivityFeedDAOImpl() |
Modifier and Type | Method and Description |
---|---|
Long |
countSiteFeedEntries(String siteId,
int maxFeedSize) |
Long |
countUserFeedEntries(String feedUserId,
String siteId,
boolean excludeThisUser,
boolean excludeOtherUsers,
long minFeedId,
int maxFeedSize) |
int |
deleteFeedEntries(Date keepDate) |
int |
deleteFeedEntries(Integer maxIdRange) |
int |
deleteSiteFeedEntries(String siteId) |
int |
deleteSiteFeedEntries(String siteId,
Date keepDate) |
int |
deleteUserFeedEntries(String feedUserId) |
int |
deleteUserFeedEntries(String feedUserId,
Date keepDate) |
long |
insertFeedEntry(ActivityFeedEntity activityFeed) |
org.alfresco.query.PagingResults<ActivityFeedEntity> |
selectPagedUserFeedEntries(String feedUserId,
String networkId,
String siteId,
boolean excludeThisUser,
boolean excludeOtherUsers,
long minFeedId,
org.alfresco.query.PagingRequest pagingRequest) |
List<ActivityFeedEntity> |
selectSiteFeedEntries(String siteId,
int maxFeedSize) |
List<ActivityFeedEntity> |
selectSiteFeedsToClean(int maxFeedSize) |
List<ActivityFeedEntity> |
selectUserFeedEntries(String feedUserId,
String siteId,
boolean excludeThisUser,
boolean excludeOtherUsers,
long minFeedId,
int maxFeedSize) |
List<ActivityFeedEntity> |
selectUserFeedsToClean(int maxFeedSize) |
void |
setFetchBatchSize(int fetchBatchSize) |
void |
setTenantService(org.alfresco.repo.tenant.TenantService tenantService) |
commitTransaction, endTransaction, rollbackTransaction, setSqlSessionTemplate, startTransaction
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
commitTransaction, endTransaction, rollbackTransaction, startTransaction
public void setTenantService(org.alfresco.repo.tenant.TenantService tenantService)
public void setFetchBatchSize(int fetchBatchSize)
public long insertFeedEntry(ActivityFeedEntity activityFeed) throws SQLException
insertFeedEntry
in interface ActivityFeedDAO
SQLException
public int deleteFeedEntries(Integer maxIdRange) throws SQLException
deleteFeedEntries
in interface ActivityFeedDAO
SQLException
public int deleteFeedEntries(Date keepDate) throws SQLException
deleteFeedEntries
in interface ActivityFeedDAO
SQLException
public int deleteSiteFeedEntries(String siteId) throws SQLException
deleteSiteFeedEntries
in interface ActivityFeedDAO
SQLException
public int deleteSiteFeedEntries(String siteId, Date keepDate) throws SQLException
deleteSiteFeedEntries
in interface ActivityFeedDAO
SQLException
public int deleteUserFeedEntries(String feedUserId, Date keepDate) throws SQLException
deleteUserFeedEntries
in interface ActivityFeedDAO
SQLException
public int deleteUserFeedEntries(String feedUserId) throws SQLException
deleteUserFeedEntries
in interface ActivityFeedDAO
SQLException
public List<ActivityFeedEntity> selectUserFeedsToClean(int maxFeedSize) throws SQLException
selectUserFeedsToClean
in interface ActivityFeedDAO
SQLException
public Long countUserFeedEntries(String feedUserId, String siteId, boolean excludeThisUser, boolean excludeOtherUsers, long minFeedId, int maxFeedSize) throws SQLException
countUserFeedEntries
in interface ActivityFeedDAO
SQLException
public List<ActivityFeedEntity> selectSiteFeedsToClean(int maxFeedSize) throws SQLException
selectSiteFeedsToClean
in interface ActivityFeedDAO
SQLException
public List<ActivityFeedEntity> selectUserFeedEntries(String feedUserId, String siteId, boolean excludeThisUser, boolean excludeOtherUsers, long minFeedId, int maxFeedSize) throws SQLException
selectUserFeedEntries
in interface ActivityFeedDAO
SQLException
public org.alfresco.query.PagingResults<ActivityFeedEntity> selectPagedUserFeedEntries(String feedUserId, String networkId, String siteId, boolean excludeThisUser, boolean excludeOtherUsers, long minFeedId, org.alfresco.query.PagingRequest pagingRequest) throws SQLException
selectPagedUserFeedEntries
in interface ActivityFeedDAO
SQLException
public Long countSiteFeedEntries(String siteId, int maxFeedSize) throws SQLException
countSiteFeedEntries
in interface ActivityFeedDAO
SQLException
public List<ActivityFeedEntity> selectSiteFeedEntries(String siteId, int maxFeedSize) throws SQLException
selectSiteFeedEntries
in interface ActivityFeedDAO
SQLException
Copyright © 2005–2017 Alfresco Software. All rights reserved.