Search in sources :

Example 11 with FeedModel

use of com.gitblit.models.FeedModel in project gitblit by gitblit.

the class GitblitClient method getLastFeedRefresh.

public Date getLastFeedRefresh(String repository, String branch) {
    FeedModel feed = new FeedModel();
    feed.repository = repository;
    feed.branch = branch;
    if (reg.feeds.contains(feed)) {
        int idx = reg.feeds.indexOf(feed);
        feed = reg.feeds.get(idx);
        return feed.lastRefreshDate;
    }
    return NEVER;
}
Also used : FeedModel(com.gitblit.models.FeedModel)

Aggregations

FeedModel (com.gitblit.models.FeedModel)11 ArrayList (java.util.ArrayList)3 Date (java.util.Date)3 ForbiddenException (com.gitblit.GitBlitException.ForbiddenException)2 File (java.io.File)2 IOException (java.io.IOException)2 ConnectException (java.net.ConnectException)2 ConfigInvalidException (org.eclipse.jgit.errors.ConfigInvalidException)2 StoredConfig (org.eclipse.jgit.lib.StoredConfig)2 FeedEntryModel (com.gitblit.models.FeedEntryModel)1 BorderLayout (java.awt.BorderLayout)1 FlowLayout (java.awt.FlowLayout)1 Insets (java.awt.Insets)1 ActionEvent (java.awt.event.ActionEvent)1 ActionListener (java.awt.event.ActionListener)1 BufferedReader (java.io.BufferedReader)1 FileReader (java.io.FileReader)1 FileWriter (java.io.FileWriter)1 SimpleDateFormat (java.text.SimpleDateFormat)1 Collection (java.util.Collection)1