Exemplo n.º 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));
   }
 }
Exemplo n.º 2
0
 public static ExternalAccountList getAll() {
   return new ExternalAccountList(DBRequests.getAll(DaoExternalAccount.class));
 }
Exemplo n.º 3
0
 public static ExternalAccount getById(final Integer id) {
   return ExternalAccount.create(DBRequests.getById(DaoExternalAccount.class, id));
 }
Exemplo n.º 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));
 }