Tabnine Logo
ProductData.getMetaKeywords
Code IndexAdd Tabnine to your IDE (free)

How to use
getMetaKeywords
method
in
io.sphere.sdk.products.ProductData

Best Java code snippets using io.sphere.sdk.products.ProductData.getMetaKeywords (Showing top 8 results out of 315)

origin: io.sphere.sdk.jvm/models

@Override
public Optional<LocalizedStrings> getMetaKeywords() {
  return productData.getMetaKeywords();
}
origin: io.sphere.sdk.jvm/products

@Override
public Optional<LocalizedStrings> getMetaKeywords() {
  return productData.getMetaKeywords();
}
origin: com.commercetools.sdk.jvm.core/commercetools-models

@Override
@Nullable
public LocalizedString getMetaKeywords() {
  return productData.getMetaKeywords();
}
origin: io.sphere.sdk.jvm/sphere-models

@Override
@Nullable
public LocalizedString getMetaKeywords() {
  return productData.getMetaKeywords();
}
origin: commercetools/commercetools-jvm-sdk

@Override
@Nullable
public LocalizedString getMetaKeywords() {
  return productData.getMetaKeywords();
}
origin: commercetools/commercetools-jvm-sdk

@Test
public void setMetaAttributes() throws Exception {
  withUpdateableProduct(client(), product -> {
    final MetaAttributes metaAttributes = MetaAttributes.metaAttributesOf(ENGLISH,
        "commercetools SPHERE.IO&#8482; - Next generation eCommerce",
        "SPHERE.IO&#8482; is the first and leading Platform-as-a-Service solution for eCommerce.",
        "Platform-as-a-Service, e-commerce, http, api, tool");
    final List<UpdateAction<Product>> updateActions =
        MetaAttributesUpdateActions.of(metaAttributes);
    final Product updatedProduct = client().executeBlocking(ProductUpdateCommand.of(product, updateActions));
    final ProductData productData = updatedProduct.getMasterData().getStaged();
    assertThat(productData.getMetaTitle()).isEqualTo(metaAttributes.getMetaTitle());
    assertThat(productData.getMetaDescription()).isEqualTo(metaAttributes.getMetaDescription());
    assertThat(productData.getMetaKeywords()).isEqualTo(metaAttributes.getMetaKeywords());
    return updatedProduct;
  });
}
origin: commercetools/commercetools-jvm-sdk

@Test
public void setMetaKeywords() throws Exception {
  withUpdateableProduct(client(), product -> {
    final LocalizedString metaKeywords = LocalizedString
        .of(ENGLISH, "Platform-as-a-Service, e-commerce, http, api, tool");
    final SetMetaKeywords action = SetMetaKeywords.of(metaKeywords);
    final Product updatedProduct = client().executeBlocking(ProductUpdateCommand.of(product, action));
    assertThat(updatedProduct.getMasterData().getStaged().getMetaKeywords()).isEqualTo(metaKeywords);
    return updatedProduct;
  });
}
origin: commercetools/commercetools-jvm-sdk

@Test
public void productProjectionCanBeUsedToUpdateAProduct() throws Exception {
  withUpdateableProduct(client(), product -> {
    final MetaAttributes metaAttributes = MetaAttributes.metaAttributesOf(ENGLISH,
        "commercetools SPHERE.IO&#8482; - Next generation eCommerce",
        "SPHERE.IO&#8482; is the first and leading Platform-as-a-Service solution for eCommerce.",
        "Platform-as-a-Service, e-commerce, http, api, tool");
    final List<UpdateAction<Product>> updateActions =
        MetaAttributesUpdateActions.of(metaAttributes);
    final ProductProjection productProjection = client().executeBlocking(ProductProjectionByIdGet.of(product, STAGED));
    final Product updatedProduct = client().executeBlocking(ProductUpdateCommand.of(productProjection, updateActions));
    final ProductData productData = updatedProduct.getMasterData().getStaged();
    assertThat(productData.getMetaTitle()).isEqualTo(metaAttributes.getMetaTitle());
    assertThat(productData.getMetaDescription()).isEqualTo(metaAttributes.getMetaDescription());
    assertThat(productData.getMetaKeywords()).isEqualTo(metaAttributes.getMetaKeywords());
    return updatedProduct;
  });
}
io.sphere.sdk.productsProductDatagetMetaKeywords

Popular methods of ProductData

  • getCategories
  • getDescription
  • getMasterVariant
  • getMetaDescription
  • getMetaTitle
  • getName
  • getSlug
  • getVariants
  • getSearchKeywords
  • getCategoryOrderHints
  • getAllVariants
  • getAllVariants

Popular in Java

  • Making http post requests using okhttp
  • findViewById (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • notifyDataSetChanged (ArrayAdapter)
  • Menu (java.awt)
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now