Beispiel #1
0
 /**
  * @param deleted <i>true</i> if the request must return deleted news feed, <i>false</i> otherwise
  * @return the list of news feed
  */
 public static NewsFeedList getAll(final boolean isDeleted) {
   if (isDeleted) {
     return new NewsFeedList(DBRequests.getAll(DaoNewsFeed.class));
   } else {
     return new NewsFeedList(DaoNewsFeed.getAll(isDeleted));
   }
 }
 public static ExternalAccountList getAll() {
   return new ExternalAccountList(DBRequests.getAll(DaoExternalAccount.class));
 }
 public static ExternalAccount getById(final Integer id) {
   return ExternalAccount.create(DBRequests.getById(DaoExternalAccount.class, id));
 }
Beispiel #4
0
 /** Gets the news feed matching a given id */
 public static NewsFeed getById(final Integer id) {
   return NewsFeed.create(DBRequests.getById(DaoNewsFeed.class, id));
 }