public static class Storefront.Blog extends AbstractResponse<Storefront.Blog> implements Storefront.HasMetafields, Storefront.MenuItemResource, Storefront.MetafieldParentResource, Storefront.Node, Storefront.OnlineStorePublishable
optimisticData, responseData| Modifier and Type | Method and Description |
|---|---|
Storefront.Article |
getArticleByHandle()
Find an article by its handle.
|
Storefront.ArticleConnection |
getArticles()
List of the blog's articles.
|
java.util.List<Storefront.ArticleAuthor> |
getAuthors()
The authors who have contributed to the blog.
|
java.lang.String |
getGraphQlTypeName() |
java.lang.String |
getHandle()
A human-friendly unique string for the Blog automatically generated from its title.
|
ID |
getId()
A globally-unique ID.
|
Storefront.Metafield |
getMetafield()
Returns a metafield found by namespace and key.
|
java.util.List<Storefront.Metafield> |
getMetafields()
The metafields associated with the resource matching the supplied list of namespaces and keys.
|
java.lang.String |
getOnlineStoreUrl()
The URL used for viewing the resource on the shop's Online Store.
|
Storefront.SEO |
getSeo()
The blog's SEO information.
|
java.lang.String |
getTitle()
The blogs’s title.
|
Storefront.Blog |
setArticleByHandle(Storefront.Article arg) |
Storefront.Blog |
setArticles(Storefront.ArticleConnection arg) |
Storefront.Blog |
setAuthors(java.util.List<Storefront.ArticleAuthor> arg) |
Storefront.Blog |
setHandle(java.lang.String arg) |
Storefront.Blog |
setMetafield(Storefront.Metafield arg) |
Storefront.Blog |
setMetafields(java.util.List<Storefront.Metafield> arg) |
Storefront.Blog |
setOnlineStoreUrl(java.lang.String arg) |
Storefront.Blog |
setSeo(Storefront.SEO arg) |
Storefront.Blog |
setTitle(java.lang.String arg) |
boolean |
unwrapsToObject(java.lang.String key) |
collectNodes, get, getFieldName, getKey, jsonAsArray, jsonAsBoolean, jsonAsDouble, jsonAsInteger, jsonAsObject, jsonAsString, withAliaspublic Blog()
public Blog(JsonObject fields)
throws SchemaViolationError
SchemaViolationErrorpublic java.lang.String getGraphQlTypeName()
getGraphQlTypeName in interface Storefront.HasMetafieldsgetGraphQlTypeName in interface Storefront.MenuItemResourcegetGraphQlTypeName in interface Storefront.MetafieldParentResourcegetGraphQlTypeName in interface Storefront.NodegetGraphQlTypeName in interface Storefront.OnlineStorePublishablegetGraphQlTypeName in interface Nodepublic Storefront.Article getArticleByHandle()
public Storefront.Blog setArticleByHandle(Storefront.Article arg)
public Storefront.ArticleConnection getArticles()
public Storefront.Blog setArticles(Storefront.ArticleConnection arg)
public java.util.List<Storefront.ArticleAuthor> getAuthors()
public Storefront.Blog setAuthors(java.util.List<Storefront.ArticleAuthor> arg)
public java.lang.String getHandle()
public Storefront.Blog setHandle(java.lang.String arg)
public ID getId()
getId in interface Storefront.NodegetId in interface Nodepublic Storefront.Metafield getMetafield()
getMetafield in interface Storefront.HasMetafieldspublic Storefront.Blog setMetafield(Storefront.Metafield arg)
public java.util.List<Storefront.Metafield> getMetafields()
getMetafields in interface Storefront.HasMetafieldspublic Storefront.Blog setMetafields(java.util.List<Storefront.Metafield> arg)
public java.lang.String getOnlineStoreUrl()
getOnlineStoreUrl in interface Storefront.OnlineStorePublishablepublic Storefront.Blog setOnlineStoreUrl(java.lang.String arg)
public Storefront.SEO getSeo()
public Storefront.Blog setSeo(Storefront.SEO arg)
public java.lang.String getTitle()
public Storefront.Blog setTitle(java.lang.String arg)
public boolean unwrapsToObject(java.lang.String key)
unwrapsToObject in class AbstractResponse<Storefront.Blog>