/** * 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 AssetDraftBuilder of(final Asset template) { return new AssetDraftBuilder(copyCustom(template.getCustom()), template.getDescription(), template.getKey(), template.getName(), template.getSources(), template.getTags()); } }
/** * 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 AssetDraftDsl of(final AssetDraft template) { return new AssetDraftDsl(template.getCustom(), template.getDescription(), template.getKey(), template.getName(), template.getSources(), template.getTags()); } }
/** * 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 AssetDraftBuilder of(final AssetDraft template) { return new AssetDraftBuilder(template.getCustom(), template.getDescription(), template.getKey(), template.getName(), template.getSources(), template.getTags()); }
private ChangeParent(final Referenceable<Category> parent) { super("changeParent"); this.parent = parent.toReference().filled(null); }
static MetaAttributesDsl metaAttributesOf(final Locale locale, final String metaTitle, final String metaDescription, final String metaKeywords) { return MetaAttributesDsl.of() .withTitle(LocalizedString.of(locale, metaTitle)) .withDescription(LocalizedString.of(locale, metaDescription)) .withKeywords(LocalizedString.of(locale, metaKeywords)); } }
private TransitionCustomLineItemState(final String customLineItemId, final Long quantity, final Referenceable<State> fromState, final Referenceable<State> toState, final ZonedDateTime actualTransitionDate) { super("transitionCustomLineItemState", quantity, actualTransitionDate, toState.toReference(), fromState.toReference()); this.customLineItemId = customLineItemId; }
public static MetaAttributes metaAttributesOf(final Locale locale, final String metaTitle, final String metaDescription, final String metaKeywords) { return MetaAttributesDsl.of() .withTitle(LocalizedStrings.of(locale, metaTitle)) .withDescription(LocalizedStrings.of(locale, metaDescription)) .withKeywords(LocalizedStrings.of(locale, metaKeywords)); } }
private CustomerPasswordResetCommand(final Versioned<Customer> customer, final String tokenValue, final String newPassword) { this.id = customer != null ? customer.getId() : null; this.version = customer != null ? customer.getVersion() : null; this.tokenValue = tokenValue; this.newPassword = newPassword; }
private Reference<TestEntity> newFilledReference() { return newEmptyReference().filled(new TestEntity("value")); }
protected T newExample2() { return applyDataToBuilder(newExample2Builder(), new ExampleData()).build(); }
protected T newExample1() { return newExample1(new ExampleData()); }
public AssetDraftDsl withSources(final List<AssetSource> sources) { return newBuilder().sources(sources).build(); }
public AssetSourceBuilder dimensionsOfWidthAndHeight(final Integer width, final Integer height) { return dimensions(AssetDimensions.ofWidthAndHeight(width, height)); }
default String toSphereName() { return SphereEnumerationUtils.toSphereName(name()); } }
/** * Creates a new builder with the values of this object. * * @return new builder */ public AssetDraftBuilder newBuilder() { return new AssetDraftBuilder(custom, description, key, name, sources, tags); }
/** * Creates a new object initialized with the given values. * * @param sources initial value for the {@link AssetDraft#getSources()} property * @param name initial value for the {@link AssetDraft#getName()} property * @return new object initialized with the given values */ public static AssetDraftDsl of(final List<AssetSource> sources, final LocalizedString name) { return new AssetDraftDsl(null, null, null, name, sources, null); }
protected T newExample2() { return applyDataToBuilder(newExample2Builder(), new ExampleData()).build(); }
/** * Creates a new object initialized with the given values. * * @param sources initial value for the {@link AssetDraft#getSources()} property * @param name initial value for the {@link AssetDraft#getName()} property * @return new object initialized with the given values */ public static AssetDraftBuilder of(final List<AssetSource> sources, final LocalizedString name) { return new AssetDraftBuilder(null, null, null, name, sources, null); }
/** * Creates a new instance of {@code AssetDraftDsl} with the values of this builder. * * @return the instance */ public AssetDraftDsl build() { return new AssetDraftDsl(custom, description, key, name, sources, tags); }