| Package | Description |
|---|---|
| org.attribyte.wp.db | |
| org.attribyte.wp.model |
| Modifier and Type | Method and Description |
|---|---|
Post.Builder |
DB.resolve(Post.Builder post)
Resolves user, author, terms and meta for a post.
|
Post.Builder |
DB.selectPost(long postId)
Selects a post by id.
|
| Modifier and Type | Method and Description |
|---|---|
Post.Builder |
DB.resolve(Post.Builder post)
Resolves user, author, terms and meta for a post.
|
| Modifier and Type | Method and Description |
|---|---|
Post.Builder |
Post.Builder.addTaxonomyTerm(TaxonomyTerm term)
Adds a taxonomy term.
|
static Post.Builder |
Post.newBuilder()
Creates an immutable post builder.
|
static Post.Builder |
Post.newBuilder(Post post)
Creates an immutable post builder with data from an existing post.
|
Post.Builder |
Post.Builder.setAuthor(User author)
Sets the author.
|
Post.Builder |
Post.Builder.setAuthorId(long authorId)
Sets the author id.
|
Post.Builder |
Post.Builder.setCommentCount(int commentCount)
Sets the comment count.
|
Post.Builder |
Post.Builder.setContent(java.lang.String content)
Sets the content.
|
Post.Builder |
Post.Builder.setExcerpt(java.lang.String excerpt)
Sets the excerpt.
|
Post.Builder |
Post.Builder.setGUID(java.lang.String guid)
Sets the GUID.
|
Post.Builder |
Post.Builder.setId(long id)
Sets the id.
|
Post.Builder |
Post.Builder.setMetadata(java.util.List<Meta> metadata)
Sets the metadata.
|
Post.Builder |
Post.Builder.setMimeType(java.lang.String mimeType)
Sets the mime type.
|
Post.Builder |
Post.Builder.setModifiedTimestamp(long modifiedTimestamp)
Sets the last modified timestamp.
|
Post.Builder |
Post.Builder.setParentId(long parentId)
Sets the parent id.
|
Post.Builder |
Post.Builder.setPublishTimestamp(long publishTimestamp)
Sets the publish timestamp.
|
Post.Builder |
Post.Builder.setSlug(java.lang.String slug)
Sets the slug.
|
Post.Builder |
Post.Builder.setStatus(Post.Status status)
Sets the status.
|
Post.Builder |
Post.Builder.setTaxonomyTerms(java.util.List<TaxonomyTerm> terms)
Sets terms for a taxonomy, replacing any existing.
|
Post.Builder |
Post.Builder.setTitle(java.lang.String title)
Sets the title.
|
Post.Builder |
Post.Builder.setType(Post.Type type)
Sets the post type.
|