org.alfresco.repo.domain.activities.ibatis
Class ActivityFeedDAOImpl

java.lang.Object
  extended by org.alfresco.repo.domain.activities.ibatis.ActivitiesDAOImpl
      extended by org.alfresco.repo.domain.activities.ibatis.ActivityFeedDAOImpl
All Implemented Interfaces:
ActivitiesDAO, ActivityFeedDAO

public class ActivityFeedDAOImpl
extends ActivitiesDAOImpl
implements ActivityFeedDAO


Field Summary
 
Fields inherited from class org.alfresco.repo.domain.activities.ibatis.ActivitiesDAOImpl
template
 
Fields inherited from interface org.alfresco.repo.domain.activities.ActivityFeedDAO
MAX_LEN_ACTIVITY_FORMAT, MAX_LEN_ACTIVITY_SUMMARY, MAX_LEN_ACTIVITY_TYPE, MAX_LEN_APP_TOOL_ID, MAX_LEN_SITE_ID, MAX_LEN_USER_ID
 
Constructor Summary
ActivityFeedDAOImpl()
           
 
Method Summary
 int deleteFeedEntries(java.util.Date keepDate)
           
 int deleteSiteFeedEntries(java.lang.String siteId)
           
 int deleteSiteFeedEntries(java.lang.String siteId, java.lang.String format, java.util.Date keepDate)
           
 int deleteUserFeedEntries(java.lang.String feedUserId)
           
 int deleteUserFeedEntries(java.lang.String feedUserId, java.lang.String format, java.util.Date keepDate)
           
 long insertFeedEntry(ActivityFeedEntity activityFeed)
           
 java.util.List selectFeedsToClean(int maxFeedSize)
           
 java.util.List selectSiteFeedEntries(java.lang.String siteId, java.lang.String format, int maxFeedSize)
           
 java.util.List selectUserFeedEntries(java.lang.String feedUserId, java.lang.String format, java.lang.String siteId, boolean excludeThisUser, boolean excludeOtherUsers, long minFeedId, int maxFeedSize)
           
 
Methods inherited from class org.alfresco.repo.domain.activities.ibatis.ActivitiesDAOImpl
commitTransaction, endTransaction, rollbackTransaction, setSqlSessionTemplate, startTransaction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.alfresco.repo.domain.activities.ActivitiesDAO
commitTransaction, endTransaction, rollbackTransaction, startTransaction
 

Constructor Detail

ActivityFeedDAOImpl

public ActivityFeedDAOImpl()
Method Detail

insertFeedEntry

public long insertFeedEntry(ActivityFeedEntity activityFeed)
                     throws java.sql.SQLException
Specified by:
insertFeedEntry in interface ActivityFeedDAO
Throws:
java.sql.SQLException

deleteFeedEntries

public int deleteFeedEntries(java.util.Date keepDate)
                      throws java.sql.SQLException
Specified by:
deleteFeedEntries in interface ActivityFeedDAO
Throws:
java.sql.SQLException

deleteSiteFeedEntries

public int deleteSiteFeedEntries(java.lang.String siteId)
                          throws java.sql.SQLException
Specified by:
deleteSiteFeedEntries in interface ActivityFeedDAO
Throws:
java.sql.SQLException

deleteSiteFeedEntries

public int deleteSiteFeedEntries(java.lang.String siteId,
                                 java.lang.String format,
                                 java.util.Date keepDate)
                          throws java.sql.SQLException
Specified by:
deleteSiteFeedEntries in interface ActivityFeedDAO
Throws:
java.sql.SQLException

deleteUserFeedEntries

public int deleteUserFeedEntries(java.lang.String feedUserId,
                                 java.lang.String format,
                                 java.util.Date keepDate)
                          throws java.sql.SQLException
Specified by:
deleteUserFeedEntries in interface ActivityFeedDAO
Throws:
java.sql.SQLException

deleteUserFeedEntries

public int deleteUserFeedEntries(java.lang.String feedUserId)
                          throws java.sql.SQLException
Specified by:
deleteUserFeedEntries in interface ActivityFeedDAO
Throws:
java.sql.SQLException

selectFeedsToClean

public java.util.List selectFeedsToClean(int maxFeedSize)
                                  throws java.sql.SQLException
Specified by:
selectFeedsToClean in interface ActivityFeedDAO
Throws:
java.sql.SQLException

selectUserFeedEntries

public java.util.List selectUserFeedEntries(java.lang.String feedUserId,
                                            java.lang.String format,
                                            java.lang.String siteId,
                                            boolean excludeThisUser,
                                            boolean excludeOtherUsers,
                                            long minFeedId,
                                            int maxFeedSize)
                                     throws java.sql.SQLException
Specified by:
selectUserFeedEntries in interface ActivityFeedDAO
Throws:
java.sql.SQLException

selectSiteFeedEntries

public java.util.List selectSiteFeedEntries(java.lang.String siteId,
                                            java.lang.String format,
                                            int maxFeedSize)
                                     throws java.sql.SQLException
Specified by:
selectSiteFeedEntries in interface ActivityFeedDAO
Throws:
java.sql.SQLException


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.