code: public List<Long> selectPostIds(final Post.Type type,
                                     final Post.Status status,
                                     final Collection<TaxonomyTerm> terms,
                                     final Post.Sort sort,
                                     final Paging paging) throws SQLException {
        return selectPostIds(type != null ? EnumSet.of(type) : null, status, terms, sort, paging);
     }
docs: Selects a page of posts with a specified type.
  @param type The post type. May be {@code null} for any type.
  @param status The required post status.
  @param terms A collection of terms attached to the posts.
  @param sort The page sort.
  @param paging The page range and interval.
  @return The list of posts.
  @throws SQLException on database error.