/** * 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.util.List; import java.util.HashMap; import java.io.Serializable; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import org.joda.time.DateTime; import java.io.IOException; import java.lang.ClassNotFoundException; import com.mozu.api.contracts.mzdb.ListViewField; /** * Properties for the list view that specifies what fields and content display per page load. All associated fields in the list view correspond with object data. */ @JsonIgnoreProperties(ignoreUnknown = true) public class ListView implements Serializable { // Default Serial Version UID private static final long serialVersionUID = 1L; /** * Sets the default sorting for content. Sort does not use AND in determining the order. */ protected String defaultSort; public String getDefaultSort() { return this.defaultSort; } public void setDefaultSort(String defaultSort) { this.defaultSort = defaultSort; } /** * A set of expressions that consist of a field, operator, and value and represent search parameter syntax when filtering results of a query. Valid operators include equals (eq), does not equal (ne), greater than (gt), less than (lt), greater than or equal to (ge), less than or equal to (le), starts with (sw), or contains (cont). For example - "filter=IsDisplayed+eq+true" */ protected String filter; public String getFilter() { return this.filter; } public void setFilter(String filter) { this.filter = filter; } /** * The display name of the source product property. For a product field it will be the display name of the field. For a product attribute it will be the Attribute Name. */ protected String name; public String getName() { return this.name; } public void setName(String name) { this.name = name; } /** * Indicates the security level for the document content as public, administrator, or owner. */ protected String security; public String getSecurity() { return this.security; } public void setSecurity(String security) { this.security = security; } /** * List description of usages for content within a view and scope. */ protected List<String> usages; public List<String> getUsages() { return this.usages; } public void setUsages(List<String> usages) { this.usages = usages; } /** * The list of fields to display for a view or an associated schema. For example, the address schema would display fields for postal addresses. */ protected List<ListViewField> fields; public List<ListViewField> getFields() { return this.fields; } public void setFields(List<ListViewField> fields) { this.fields = fields; } /** * Metadata content for entities, used by document lists, document type lists, document type, views, entity lists, and list views. */ protected transient com.fasterxml.jackson.databind.JsonNode metaData; public com.fasterxml.jackson.databind.JsonNode getMetaData() { return this.metaData; } public void setMetaData(com.fasterxml.jackson.databind.JsonNode metaData) { this.metaData = metaData; } private void writeObject(java.io.ObjectOutputStream out) throws IOException { out.defaultWriteObject(); if(metaData == 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, metaData); } } private void readObject(java.io.ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); if(in.readBoolean()){ this.metaData = 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); } } }