@@ -22,6 +22,9 @@ public class TaskBasedCaching implements Serializable {
2222 @ Column (name =COLUMN_PREFIX +"update_users" )
2323 private Date updateUsers ;
2424
25+ @ Column (name =COLUMN_PREFIX +"update_urls" )
26+ private Date updatedUrls ;
27+
2528 @ Column (name =COLUMN_PREFIX +"update_users_from_mentions" )
2629 private Date updateUsersFromMentions ;
2730
@@ -89,6 +92,9 @@ public Boolean isCached(TaskType taskType, long timeToLive){
8992 case UPDATE_MENTIONS_FOR_USERS :
9093 lastApiCall = updateUsersFromMentions ;
9194 break ;
95+ case UPDATE_URLS :
96+ lastApiCall = updatedUrls ;
97+ break ;
9298 case FETCH_USERS_FROM_LIST :
9399 lastApiCall = fetchUsersFromList ;
94100 break ;
@@ -172,6 +178,9 @@ public void store(TaskType taskType){
172178 case FETCH_USERS_FROM_LIST :
173179 fetchUsersFromList = lastApiCall ;
174180 break ;
181+ case UPDATE_URLS :
182+ updatedUrls = lastApiCall ;
183+ break ;
175184 case CREATE_TESTDATA_TWEETS :
176185 controllerGetTestdataTweets = lastApiCall ;
177186 break ;
@@ -219,7 +228,7 @@ public void store(TaskType taskType){
219228 }
220229 }
221230
222- public TaskBasedCaching (Date fetchTweetsFromSearch , Date updateTweets , Date updateUsers , Date updateUsersFromMentions , Date fetchUsersFromList , Date controllerGetTestdataTweets , Date controllerGetTestdataUser , Date controllerAddUserForScreenName , Date controllerCreateImprintUser , Date removeOldDataFromStorage , Date fetchFollower , Date fetchFriends , Date getHomeTimeline , Date getUserTimeline , Date getMentions , Date getFavorites , Date getRetweetsOfMe , Date getLists ,Date fetchUserlistOwners ,Date startGarbageCollection ) {
231+ public TaskBasedCaching (Date fetchTweetsFromSearch , Date updateTweets , Date updateUsers , Date updateUsersFromMentions , Date fetchUsersFromList , Date controllerGetTestdataTweets , Date controllerGetTestdataUser , Date controllerAddUserForScreenName , Date controllerCreateImprintUser , Date removeOldDataFromStorage , Date fetchFollower , Date fetchFriends , Date getHomeTimeline , Date getUserTimeline , Date getMentions , Date getFavorites , Date getRetweetsOfMe , Date getLists ,Date fetchUserlistOwners ,Date startGarbageCollection , Date updatedUrls ) {
223232 this .fetchTweetsFromSearch = fetchTweetsFromSearch ;
224233 this .updateTweets = updateTweets ;
225234 this .updateUsers = updateUsers ;
@@ -240,6 +249,7 @@ public TaskBasedCaching(Date fetchTweetsFromSearch, Date updateTweets, Date upda
240249 this .getLists = getLists ;
241250 this .fetchUserlistOwners = fetchUserlistOwners ;
242251 this .startGarbageCollection = startGarbageCollection ;
252+ this .updatedUrls = updatedUrls ;
243253 }
244254
245255 public TaskBasedCaching () {
@@ -262,6 +272,7 @@ public TaskBasedCaching() {
262272 this .getLists = null ;
263273 this .fetchUserlistOwners = null ;
264274 this .startGarbageCollection = null ;
275+ this .updatedUrls = null ;
265276 }
266277
267278 public Date getFetchTweetsFromSearch () {
@@ -344,6 +355,10 @@ public Date getStartGarbageCollection() {
344355 return startGarbageCollection ;
345356 }
346357
358+ public Date getUpdatedUrls () {
359+ return updatedUrls ;
360+ }
361+
347362 @ Override
348363 public boolean equals (Object o ) {
349364 if (this == o ) return true ;
@@ -355,6 +370,7 @@ public boolean equals(Object o) {
355370 return false ;
356371 if (updateTweets != null ? !updateTweets .equals (that .updateTweets ) : that .updateTweets != null ) return false ;
357372 if (updateUsers != null ? !updateUsers .equals (that .updateUsers ) : that .updateUsers != null ) return false ;
373+ if (updatedUrls != null ? !updatedUrls .equals (that .updatedUrls ) : that .updatedUrls != null ) return false ;
358374 if (updateUsersFromMentions != null ? !updateUsersFromMentions .equals (that .updateUsersFromMentions ) : that .updateUsersFromMentions != null )
359375 return false ;
360376 if (fetchUsersFromList != null ? !fetchUsersFromList .equals (that .fetchUsersFromList ) : that .fetchUsersFromList != null )
@@ -391,6 +407,7 @@ public int hashCode() {
391407 int result = fetchTweetsFromSearch != null ? fetchTweetsFromSearch .hashCode () : 0 ;
392408 result = 31 * result + (updateTweets != null ? updateTweets .hashCode () : 0 );
393409 result = 31 * result + (updateUsers != null ? updateUsers .hashCode () : 0 );
410+ result = 31 * result + (updatedUrls != null ? updatedUrls .hashCode () : 0 );
394411 result = 31 * result + (updateUsersFromMentions != null ? updateUsersFromMentions .hashCode () : 0 );
395412 result = 31 * result + (fetchUsersFromList != null ? fetchUsersFromList .hashCode () : 0 );
396413 result = 31 * result + (controllerGetTestdataTweets != null ? controllerGetTestdataTweets .hashCode () : 0 );
@@ -417,6 +434,7 @@ public String toString() {
417434 "fetchTweetsFromSearch=" + fetchTweetsFromSearch +
418435 ", updateTweets=" + updateTweets +
419436 ", updateUsers=" + updateUsers +
437+ ", updatedUrls=" + updatedUrls +
420438 ", updateUsersFromMentions=" + updateUsersFromMentions +
421439 ", fetchUsersFromList=" + fetchUsersFromList +
422440 ", controllerGetTestdataTweets=" + controllerGetTestdataTweets +
0 commit comments