Class Category
java.lang.Object
com.commercetools.graphql.api.types.Category
- All Implemented Interfaces:
ReferenceExpandable,Versioned
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionCategory()Category(String id, String key, Long version, String name, List<LocalizedString> nameAllLocales, String description, List<LocalizedString> descriptionAllLocales, String slug, List<LocalizedString> slugAllLocales, List<Reference> ancestorsRef, List<Category> ancestors, Reference parentRef, Category _parent, String orderHint, String externalId, String metaTitle, List<LocalizedString> metaTitleAllLocales, String metaKeywords, List<LocalizedString> metaKeywordsAllLocales, String metaDescription, List<LocalizedString> metaDescriptionAllLocales, Integer stagedProductCount, Integer childCount, List<Category> children, OffsetDateTime createdAt, OffsetDateTime lastModifiedAt, List<Asset> assets, CustomFieldsType custom, Initiator createdBy, Initiator lastModifiedBy) -
Method Summary
Modifier and TypeMethodDescriptionbooleanNumber of direct child categories.Direct child categories.getId()getKey()getName()getSlug()Number of staged products in the category subtree.inthashCode()static Category.BuildervoidsetAncestors(List<Category> ancestors) voidsetAncestorsRef(List<Reference> ancestorsRef) voidvoidsetChildCount(Integer childCount) voidsetChildren(List<Category> children) voidsetCreatedAt(OffsetDateTime createdAt) voidsetCreatedBy(Initiator createdBy) voidsetCustom(CustomFieldsType custom) voidsetDescription(String description) voidsetDescriptionAllLocales(List<LocalizedString> descriptionAllLocales) voidsetExternalId(String externalId) voidvoidvoidsetLastModifiedAt(OffsetDateTime lastModifiedAt) voidsetLastModifiedBy(Initiator lastModifiedBy) voidsetMetaDescription(String metaDescription) voidsetMetaDescriptionAllLocales(List<LocalizedString> metaDescriptionAllLocales) voidsetMetaKeywords(String metaKeywords) voidsetMetaKeywordsAllLocales(List<LocalizedString> metaKeywordsAllLocales) voidsetMetaTitle(String metaTitle) voidsetMetaTitleAllLocales(List<LocalizedString> metaTitleAllLocales) voidvoidsetNameAllLocales(List<LocalizedString> nameAllLocales) voidsetOrderHint(String orderHint) voidvoidsetParentRef(Reference parentRef) voidvoidsetSlugAllLocales(List<LocalizedString> slugAllLocales) voidsetStagedProductCount(Integer stagedProductCount) voidsetVersion(Long version) toString()
-
Constructor Details
-
Category
public Category() -
Category
public Category(String id, String key, Long version, String name, List<LocalizedString> nameAllLocales, String description, List<LocalizedString> descriptionAllLocales, String slug, List<LocalizedString> slugAllLocales, List<Reference> ancestorsRef, List<Category> ancestors, Reference parentRef, Category _parent, String orderHint, String externalId, String metaTitle, List<LocalizedString> metaTitleAllLocales, String metaKeywords, List<LocalizedString> metaKeywordsAllLocales, String metaDescription, List<LocalizedString> metaDescriptionAllLocales, Integer stagedProductCount, Integer childCount, List<Category> children, OffsetDateTime createdAt, OffsetDateTime lastModifiedAt, List<Asset> assets, CustomFieldsType custom, Initiator createdBy, Initiator lastModifiedBy)
-
-
Method Details
-
getId
- Specified by:
getIdin interfaceReferenceExpandable- Specified by:
getIdin interfaceVersioned
-
setId
- Specified by:
setIdin interfaceReferenceExpandable- Specified by:
setIdin interfaceVersioned
-
getKey
-
setKey
-
getVersion
- Specified by:
getVersionin interfaceVersioned
-
setVersion
- Specified by:
setVersionin interfaceVersioned
-
getName
-
setName
-
getNameAllLocales
-
setNameAllLocales
-
getDescription
-
setDescription
-
getDescriptionAllLocales
-
setDescriptionAllLocales
-
getSlug
-
setSlug
-
getSlugAllLocales
-
setSlugAllLocales
-
getAncestorsRef
-
setAncestorsRef
-
getAncestors
-
setAncestors
-
getParentRef
-
setParentRef
-
getParent
-
setParent
-
getOrderHint
-
setOrderHint
-
getExternalId
-
setExternalId
-
getMetaTitle
-
setMetaTitle
-
getMetaTitleAllLocales
-
setMetaTitleAllLocales
-
getMetaKeywords
-
setMetaKeywords
-
getMetaKeywordsAllLocales
-
setMetaKeywordsAllLocales
-
getMetaDescription
-
setMetaDescription
-
getMetaDescriptionAllLocales
-
setMetaDescriptionAllLocales
-
getStagedProductCount
Number of staged products in the category subtree. -
setStagedProductCount
-
getChildCount
Number of direct child categories. -
setChildCount
-
getChildren
Direct child categories. -
setChildren
-
getCreatedAt
- Specified by:
getCreatedAtin interfaceVersioned
-
setCreatedAt
- Specified by:
setCreatedAtin interfaceVersioned
-
getLastModifiedAt
- Specified by:
getLastModifiedAtin interfaceVersioned
-
setLastModifiedAt
- Specified by:
setLastModifiedAtin interfaceVersioned
-
getAssets
-
setAssets
-
getCustom
-
setCustom
-
getCreatedBy
- Specified by:
getCreatedByin interfaceVersioned
-
setCreatedBy
- Specified by:
setCreatedByin interfaceVersioned
-
getLastModifiedBy
- Specified by:
getLastModifiedByin interfaceVersioned
-
setLastModifiedBy
- Specified by:
setLastModifiedByin interfaceVersioned
-
toString
-
equals
-
hashCode
public int hashCode() -
newBuilder
-