/** * This code was auto-generated by a Codezu. * * Changes to this file may cause incorrect behavior and will be lost if * the code is regenerated. */ package com.mozu.api.contracts.mzdb; import java.io.Serializable; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import org.joda.time.DateTime; import java.io.IOException; import java.lang.ClassNotFoundException; /** * Properties of the EntityContainer within a specific tenant and site. */ @JsonIgnoreProperties(ignoreUnknown = true) public class EntityContainer implements Serializable { // Default Serial Version UID private static final long serialVersionUID = 1L; /** * The unique identifier for the product catalog. Catalogs are part of a master catalog. */ protected Integer catalogId; public Integer getCatalogId() { return this.catalogId; } public void setCatalogId(Integer catalogId) { this.catalogId = catalogId; } /** * Identifier of the user that created the object. System created and read only. */ protected String createBy; public String getCreateBy() { return this.createBy; } public void setCreateBy(String createBy) { this.createBy = createBy; } /** * The date and time in UTC format set when the object was created. */ protected DateTime createDate; public DateTime getCreateDate() { return this.createDate; } public void setCreateDate(DateTime createDate) { this.createDate = createDate; } /** * Unique identifier of the source property, such as a catalog, discount, order, or email template.For a product field it will be the name of the field.For a category ID, must be a positive integer not greater than 2000000. By default, auto-generates a category ID when categories are created. If you want to specify an ID during creation (which preserves category link relationships when migrating tenant data from one sandbox to another), you must also include the query string in the endpoint. For example, . Then, use the property to specify the desired category ID.For a product attribute it will be the Attribute FQN.For a document, the ID must be specified as a 32 character, case-insensitive, alphanumeric string. You can specify the ID as 32 sequential characters or as groups separated by dashes in the format 8-4-4-4-12. For example, or.For email templates, the ID must be one of the following values: */ protected String id; public String getId() { return this.id; } public void setId(String id) { this.id = id; } /** * The nameSpace and name for the EntityList in the format name@nameSpace. */ protected String listFullName; public String getListFullName() { return this.listFullName; } public void setListFullName(String listFullName) { this.listFullName = listFullName; } /** * Language used for the entity. Currently, only "en-US" is supported. */ protected String localeCode; public String getLocaleCode() { return this.localeCode; } public void setLocaleCode(String localeCode) { this.localeCode = localeCode; } /** * Unique identifier for the master catalog. */ protected Integer masterCatalogId; public Integer getMasterCatalogId() { return this.masterCatalogId; } public void setMasterCatalogId(Integer masterCatalogId) { this.masterCatalogId = masterCatalogId; } /** * Unique identifier for the site. This ID is used at all levels of a store, catalog, and tenant to associate objects to a site. */ protected Integer siteId; public Integer getSiteId() { return this.siteId; } public void setSiteId(Integer siteId) { this.siteId = siteId; } /** * Unique identifier of the Mozu tenant. */ protected Integer tenantId; public Integer getTenantId() { return this.tenantId; } public void setTenantId(Integer tenantId) { this.tenantId = tenantId; } /** * Identifier of the user that updated the entity most recently. */ protected String updateBy; public String getUpdateBy() { return this.updateBy; } public void setUpdateBy(String updateBy) { this.updateBy = updateBy; } /** * The date and time in UTC format the object was updated most recently. */ protected DateTime updateDate; public DateTime getUpdateDate() { return this.updateDate; } public void setUpdateDate(DateTime updateDate) { this.updateDate = updateDate; } /** * Unique identifier of the customer account (shopper or system user). System-supplied and read-only. If the shopper user is anonymous, the user ID represents a system-generated user ID string. */ protected String userId; public String getUserId() { return this.userId; } public void setUserId(String userId) { this.userId = userId; } /** * The entity in JSON format. */ protected transient com.fasterxml.jackson.databind.JsonNode item; public com.fasterxml.jackson.databind.JsonNode getItem() { return this.item; } public void setItem(com.fasterxml.jackson.databind.JsonNode item) { this.item = item; } private void writeObject(java.io.ObjectOutputStream out) throws IOException { out.defaultWriteObject(); if(item == null){ out.writeBoolean(false); } else { out.writeBoolean(true); new com.fasterxml.jackson.databind.ObjectMapper().configure(com.fasterxml.jackson.core.JsonGenerator.Feature.AUTO_CLOSE_TARGET, false).writeValue(out, item); } } private void readObject(java.io.ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); if(in.readBoolean()){ this.item = new com.fasterxml.jackson.databind.ObjectMapper().configure(com.fasterxml.jackson.core.JsonParser.Feature.AUTO_CLOSE_SOURCE, false).readValue(in, com.fasterxml.jackson.databind.JsonNode.class); } } }