All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.sphere.sdk.categories.commands.CategoryCreateCommand Maven / Gradle / Ivy

There is a newer version: 1.0.0-M26
Show newest version
package io.sphere.sdk.categories.commands;

import io.sphere.sdk.categories.Category;
import io.sphere.sdk.categories.CategoryDraft;
import io.sphere.sdk.categories.expansion.CategoryExpansionModel;
import io.sphere.sdk.commands.CreateCommand;
import io.sphere.sdk.expansion.MetaModelExpansionDsl;

/**
 * Command to create a category.
 *
 *
 * For construction of a {@link io.sphere.sdk.categories.CategoryDraft} (a draft for a new category) use a {@link io.sphere.sdk.categories.CategoryDraftBuilder}:
 *
 *
 * {@include.example io.sphere.sdk.categories.commands.CategoryCreateCommandTest#execution()}
 */
public interface CategoryCreateCommand extends CreateCommand, MetaModelExpansionDsl> {

    static CategoryCreateCommand of(final CategoryDraft categoryDraft) {
        return new CategoryCreateCommandImpl(categoryDraft);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy