| Package | Description |
|---|---|
| org.attribyte.wp.db | |
| org.attribyte.wp.model |
| Modifier and Type | Method and Description |
|---|---|
TaxonomyTerm |
DB.createTaxonomyTerm(java.lang.String taxonomy,
java.lang.String name,
java.lang.String slug,
java.lang.String description)
Creates a taxonomy term.
|
TaxonomyTerm |
DB.resolveTaxonomyTerm(long id)
Resolves a taxonomy term by id.
|
TaxonomyTerm |
DB.resolveTaxonomyTerm(java.lang.String taxonomy,
java.lang.String name)
Resolves a taxonomy term, creating if required.
|
TaxonomyTerm |
DB.selectTaxonomyTerm(java.lang.String taxonomy,
java.lang.String name)
Selects a taxonomy term.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<TaxonomyTerm> |
DB.selectPostTerms(long postId)
Selects all terms associated with a post for any taxonomy.
|
java.util.List<TaxonomyTerm> |
DB.selectPostTerms(long postId,
java.lang.String taxonomy)
Selects all terms associated with a post.
|
java.util.List<TaxonomyTerm> |
DB.setPostTerms(long postId,
java.lang.String taxonomy,
java.util.List<java.lang.String> terms)
Sets terms associated with a post, replacing any existing terms with the specified taxonomy.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.Long> |
DB.selectPostIds(Post.Type type,
Post.Status status,
java.util.Collection<TaxonomyTerm> terms,
Post.Sort sort,
Paging paging)
Selects a page of posts with a specified type.
|
| Modifier and Type | Field and Description |
|---|---|
com.google.common.collect.ImmutableMap<java.lang.String,com.google.common.collect.ImmutableList<TaxonomyTerm>> |
Post.taxonomyTerms
A map of taxonomy terms vs taxonomy name.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.common.collect.ImmutableList<TaxonomyTerm> |
Post.categories()
An immutable list of categories associated with this post.
|
com.google.common.collect.ImmutableList<TaxonomyTerm> |
Post.tags()
An immutable list of tags associated with this post.
|
com.google.common.collect.ImmutableList<TaxonomyTerm> |
Post.terms(java.lang.String taxonomy)
An immutable list of terms associated with this post from a specified taxonomy.
|
| Modifier and Type | Method and Description |
|---|---|
Post.Builder |
Post.Builder.addTaxonomyTerm(TaxonomyTerm term)
Adds a taxonomy term.
|
| Modifier and Type | Method and Description |
|---|---|
Post.Builder |
Post.Builder.setTaxonomyTerms(java.util.List<TaxonomyTerm> terms)
Sets terms for a taxonomy, replacing any existing.
|
Post |
Post.withTaxonomyTerms(java.util.Map<java.lang.String,java.util.List<TaxonomyTerm>> taxonomyTerms)
Adds taxonomy terms to a post.
|