| Package | Description |
|---|---|
| org.attribyte.wp.db | |
| org.attribyte.wp.model |
| Modifier and Type | Method and Description |
|---|---|
Post |
DB.insertPost(Post post,
java.util.TimeZone tz)
Inserts a post.
|
Post |
DB.updatePost(Post post,
java.util.TimeZone tz)
Updates a post.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<Post> |
DB.selectAuthorPosts(long userId,
Post.Sort sort,
Paging paging,
boolean withResolve)
Selects a page of posts for an author.
|
java.util.List<Post> |
DB.selectChildren(long parentId,
boolean withResolve)
Gets all children for a post.
|
java.util.List<Post> |
DB.selectModifiedPosts(Post.Type type,
long startTimestamp,
long startId,
int limit,
boolean withResolve)
Selects recently modified posts, in ascending order after a specified timestamp and id.
|
java.util.List<Post> |
DB.selectPosts(Post.Type type,
Post.Status status,
Post.Sort sort,
Paging paging,
boolean withResolve)
Selects a page of posts with a specified type.
|
java.util.List<Post> |
DB.selectPosts(java.lang.String slug,
boolean withResolve)
Selects all posts with a "slug".
|
| Modifier and Type | Method and Description |
|---|---|
Post |
DB.insertPost(Post post,
java.util.TimeZone tz)
Inserts a post.
|
Post |
DB.updatePost(Post post,
java.util.TimeZone tz)
Updates a post.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ImageAttachment
A post that represents an image attachment.
|
| Modifier and Type | Field and Description |
|---|---|
com.google.common.collect.ImmutableList<Post> |
Post.children
A list of children.
|
| Modifier and Type | Method and Description |
|---|---|
Post |
Post.Builder.build()
Builds an immutable post.
|
Post |
Post.modifiedNow()
Changes the modified time of a post to the current time.
|
Post |
Post.withAuthor(User user)
Adds an author to a post.
|
Post |
Post.withChildren(java.util.List<Post> children)
Adds children to a post.
|
Post |
Post.withContent(java.lang.String content)
Replaces post content.
|
Post |
Post.withId(long id)
Adds an id to a post.
|
Post |
Post.withMetadata(java.util.List<Meta> metadata)
Adds metadata to a post.
|
Post |
Post.withParent(long parentId)
Adds a parent id to a post.
|
Post |
Post.withTaxonomyTerms(java.util.Map<java.lang.String,java.util.List<TaxonomyTerm>> taxonomyTerms)
Adds taxonomy terms to a post.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<Post> |
Post.Builder.getChildren()
Gets the children.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
Site.buildPermalink(Post post)
Builds the permalink for a post from this site.
|
static Post.Builder |
Post.newBuilder(Post post)
Creates an immutable post builder with data from an existing post.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Post.Builder.setChildren(java.util.List<Post> children)
Sets the children.
|
Post |
Post.withChildren(java.util.List<Post> children)
Adds children to a post.
|
| Constructor and Description |
|---|
ImageAttachment(Post post)
Creates an image attachment from a post.
|
ImageAttachment(Post parent,
long id,
java.lang.String path,
java.lang.String slug,
java.lang.String caption,
java.lang.String mimeType)
Creates an image attachment with assigned id.
|
ImageAttachment(Post parent,
java.lang.String path,
java.lang.String slug,
java.lang.String caption,
java.lang.String mimeType)
Creates an image attachment with unassigned id.
|