@Override public Optional<LocalizedStrings> getDescription() { return delegate.getDescription(); }
@Override public Optional<LocalizedString> getDescription() { return delegate.getDescription(); }
@Override public Optional<LocalizedStrings> getDescription() { return delegate.getDescription(); }
@Nullable @Override public LocalizedString getDescription() { return delegate.getDescription(); }
@Nullable @Override public LocalizedString getDescription() { return delegate.getDescription(); }
@Nullable @Override public LocalizedString getDescription() { return delegate.getDescription(); }
static String toString(final Category category) { return new ToStringBuilder(category, SdkDefaults.TO_STRING_STYLE) .append("id", category.getId()) .append("version", category.getVersion()) .append("createdAt", category.getCreatedAt()) .append("lastModifiedAt", category.getLastModifiedAt()) .append("name", category.getName()) .append("slug", category.getSlug()) .append("description", category.getDescription()) .append("ancestors", join(category.getAncestors())) .append("parent", category.getParent()) .append("orderHint", category.getOrderHint()) .toString(); }
public static String toString(final Category category) { final List<String> pathInTreeIds = category.getPathInTree().stream().map(Category::getId).collect(toList()); return new ToStringBuilder(category). append("id", category.getId()). append("version", category.getVersion()). append("createdAt", category.getCreatedAt()). append("lastModifiedAt", category.getLastModifiedAt()). append("name", category.getName()). append("slug", category.getSlug()). append("description", category.getDescription()). append("ancestors", join(category.getAncestors())). append("parent", category.getParent()). append("orderHint", category.getOrderHint()). append("children", category.getChildren()). append("pathInTree", join(pathInTreeIds)).toString(); } }
public static String toString(final Category category) { final List<String> pathInTreeIds = category.getPathInTree().stream().map(Category::getId).collect(toList()); return new ToStringBuilder(category, Base.TO_STRING_STYLE). append("id", category.getId()). append("version", category.getVersion()). append("createdAt", category.getCreatedAt()). append("lastModifiedAt", category.getLastModifiedAt()). append("name", category.getName()). append("slug", category.getSlug()). append("description", category.getDescription()). append("ancestors", join(category.getAncestors())). append("parent", category.getParent()). append("orderHint", category.getOrderHint()). append("children", category.getChildren()). append("pathInTree", join(pathInTreeIds)).toString(); } }
public static String toString(final Category category) { final List<String> pathInTreeIds = category.getPathInTree().stream().map(Category::getId).collect(toList()); return new ToStringBuilder(category). append("id", category.getId()). append("version", category.getVersion()). append("createdAt", category.getCreatedAt()). append("lastModifiedAt", category.getLastModifiedAt()). append("name", category.getName()). append("slug", category.getSlug()). append("description", category.getDescription()). append("ancestors", join(category.getAncestors())). append("parent", category.getParent()). append("orderHint", category.getOrderHint()). append("children", category.getChildren()). append("pathInTree", join(pathInTreeIds)).toString(); } }
@Test public void setDescription() throws Exception { withCategory(client(), category -> { final LocalizedString newDescription = randomSlug(); final CategoryUpdateCommand command = CategoryUpdateCommand.of(category, SetDescription.of(newDescription)); final Category updatedCategory = client().executeBlocking(command); assertThat(updatedCategory.getDescription()).isEqualTo(newDescription); }); }
/** * Creates a new object initialized with the fields of the template parameter. * * @param template the template * @return a new object initialized from the template */ public static CategoryDraftBuilder of(final Category template) { return new CategoryDraftBuilder(copyAssets(template.getAssets()), copyCustom(template.getCustom()), template.getDescription(), template.getExternalId(), template.getKey(), template.getMetaDescription(), template.getMetaKeywords(), template.getMetaTitle(), template.getName(), template.getOrderHint(), template.getParent(), template.getSlug()); } }
public static CategoryBuilder of(final Category category) { return new CategoryBuilder(category.getId(), category.getName(), category.getSlug()). version(category.getVersion()).createdAt(category.getCreatedAt()). lastModifiedAt(category.getLastModifiedAt()). name(category.getName()).slug(category.getSlug()).description(category.getDescription()). ancestors(category.getAncestors()).parent(category.getParent()). orderHint(category.getOrderHint()).children(category.getChildren()). pathInTree(category.getPathInTree()); }
public static CategoryBuilder of(final Category category) { return new CategoryBuilder(category.getId(), category.getName(), category.getSlug()). version(category.getVersion()).createdAt(category.getCreatedAt()). lastModifiedAt(category.getLastModifiedAt()). name(category.getName()).slug(category.getSlug()).description(category.getDescription()). ancestors(category.getAncestors()).parent(category.getParent()). orderHint(category.getOrderHint()).externalId(category.getExternalId()).children(category.getChildren()). pathInTree(category.getPathInTree()); }
public static CategoryBuilder of(final Category category) { return new CategoryBuilder(category.getId(), category.getName(), category.getSlug()). version(category.getVersion()).createdAt(category.getCreatedAt()). lastModifiedAt(category.getLastModifiedAt()). name(category.getName()).slug(category.getSlug()).description(category.getDescription()). ancestors(category.getAncestors()).parent(category.getParent()). orderHint(category.getOrderHint()).externalId(category.getExternalId()).children(category.getChildren()). pathInTree(category.getPathInTree()); }
public static CategoryBuilder of(final Category category) { return new CategoryBuilder(category.getId(), category.getName(), category.getSlug()). version(category.getVersion()).createdAt(category.getCreatedAt()). lastModifiedAt(category.getLastModifiedAt()). name(category.getName()).slug(category.getSlug()).description(category.getDescription()). ancestors(category.getAncestors()).parent(category.getParent()).assets(category.getAssets()). orderHint(category.getOrderHint()).externalId(category.getExternalId()); }