| Package | Description |
|---|---|
| org.attribyte.wp.db | |
| org.attribyte.wp.model |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<Meta> |
DB.selectPostMeta(long postId)
Selects metadata for a post.
|
java.util.List<Meta> |
DB.selectTermMeta(long termId)
Selects metadata for a term.
|
java.util.List<Meta> |
DB.userMetadata(long userId)
Selects metadata for a user.
|
java.util.List<Meta> |
DB.userMetadata(long userId,
java.lang.String key)
Selects user metadata with a specified key.
|
| Modifier and Type | Method and Description |
|---|---|
void |
DB.setPostMeta(long postId,
java.util.List<Meta> postMeta)
Sets metadata for a post.
|
void |
DB.setTermMeta(long termId,
java.util.List<Meta> termMeta)
Sets metadata for a term.
|
| Modifier and Type | Field and Description |
|---|---|
com.google.common.collect.ImmutableList<Meta> |
Post.metadata
Metadata associated with the user.
|
com.google.common.collect.ImmutableList<Meta> |
User.metadata
Metadata associated with the user.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<Meta> |
Post.Builder.getMetadata()
Gets the metadata.
|
| Modifier and Type | Method and Description |
|---|---|
Post.Builder |
Post.Builder.setMetadata(java.util.List<Meta> metadata)
Sets the metadata.
|
Post |
Post.withMetadata(java.util.List<Meta> metadata)
Adds metadata to a post.
|
User |
User.withMetadata(java.util.List<Meta> metadata)
Creates a user with added metadata.
|
| Constructor and Description |
|---|
User(long id,
java.lang.String username,
java.lang.String displayName,
java.lang.String email,
long createTimestamp,
java.util.Collection<Meta> metadata)
Creates a user with a generated slug.
|
User(long id,
java.lang.String username,
java.lang.String displayName,
java.lang.String slug,
java.lang.String email,
long createTimestamp,
java.util.Collection<Meta> metadata)
Creates a user with a slug.
|