public static class Storefront.Page extends AbstractResponse<Storefront.Page> implements Storefront.HasMetafields, Storefront.MenuItemResource, Storefront.MetafieldParentResource, Storefront.MetafieldReference, Storefront.Node, Storefront.OnlineStorePublishable, Storefront.SearchResultItem, Storefront.Trackable
optimisticData, responseData| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getBody()
The description of the page, complete with HTML formatting.
|
java.lang.String |
getBodySummary()
Summary of the page body.
|
DateTime |
getCreatedAt()
The timestamp of the page creation.
|
java.lang.String |
getGraphQlTypeName() |
java.lang.String |
getHandle()
A human-friendly unique string for the page 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 page's SEO information.
|
java.lang.String |
getTitle()
The title of the page.
|
java.lang.String |
getTrackingParameters()
A URL parameters to be added to a page URL when it is linked from a GraphQL result.
|
DateTime |
getUpdatedAt()
The timestamp of the latest page update.
|
Storefront.Page |
setBody(java.lang.String arg) |
Storefront.Page |
setBodySummary(java.lang.String arg) |
Storefront.Page |
setCreatedAt(DateTime arg) |
Storefront.Page |
setHandle(java.lang.String arg) |
Storefront.Page |
setMetafield(Storefront.Metafield arg) |
Storefront.Page |
setMetafields(java.util.List<Storefront.Metafield> arg) |
Storefront.Page |
setOnlineStoreUrl(java.lang.String arg) |
Storefront.Page |
setSeo(Storefront.SEO arg) |
Storefront.Page |
setTitle(java.lang.String arg) |
Storefront.Page |
setTrackingParameters(java.lang.String arg) |
Storefront.Page |
setUpdatedAt(DateTime arg) |
boolean |
unwrapsToObject(java.lang.String key) |
collectNodes, get, getFieldName, getKey, jsonAsArray, jsonAsBoolean, jsonAsDouble, jsonAsInteger, jsonAsObject, jsonAsString, withAliaspublic Page()
public Page(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.MetafieldReferencegetGraphQlTypeName in interface Storefront.NodegetGraphQlTypeName in interface Storefront.OnlineStorePublishablegetGraphQlTypeName in interface Storefront.SearchResultItemgetGraphQlTypeName in interface Storefront.TrackablegetGraphQlTypeName in interface Nodepublic java.lang.String getBody()
public Storefront.Page setBody(java.lang.String arg)
public java.lang.String getBodySummary()
public Storefront.Page setBodySummary(java.lang.String arg)
public DateTime getCreatedAt()
public Storefront.Page setCreatedAt(DateTime arg)
public java.lang.String getHandle()
public Storefront.Page 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.Page setMetafield(Storefront.Metafield arg)
public java.util.List<Storefront.Metafield> getMetafields()
getMetafields in interface Storefront.HasMetafieldspublic Storefront.Page setMetafields(java.util.List<Storefront.Metafield> arg)
public java.lang.String getOnlineStoreUrl()
getOnlineStoreUrl in interface Storefront.OnlineStorePublishablepublic Storefront.Page setOnlineStoreUrl(java.lang.String arg)
public Storefront.SEO getSeo()
public Storefront.Page setSeo(Storefront.SEO arg)
public java.lang.String getTitle()
public Storefront.Page setTitle(java.lang.String arg)
public java.lang.String getTrackingParameters()
getTrackingParameters in interface Storefront.Trackablepublic Storefront.Page setTrackingParameters(java.lang.String arg)
public DateTime getUpdatedAt()
public Storefront.Page setUpdatedAt(DateTime arg)
public boolean unwrapsToObject(java.lang.String key)
unwrapsToObject in class AbstractResponse<Storefront.Page>