/** * 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.content; 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.content.DocumentInstallation; import com.mozu.api.contracts.content.View; /** * Properties for the document list type. Document lists contain documents with an associated document type, such as web pages. */ @JsonIgnoreProperties(ignoreUnknown = true) public class DocumentListType implements Serializable { // Default Serial Version UID private static final long serialVersionUID = 1L; /** * The fully qualified name for the document list type for content. */ protected String documentListTypeFQN; public String getDocumentListTypeFQN() { return this.documentListTypeFQN; } public void setDocumentListTypeFQN(String documentListTypeFQN) { this.documentListTypeFQN = documentListTypeFQN; } /** * List of fully qualified names for the document type. */ protected List<String> documentTypeFQNs; public List<String> getDocumentTypeFQNs() { return this.documentTypeFQNs; } public void setDocumentTypeFQNs(List<String> documentTypeFQNs) { this.documentTypeFQNs = documentTypeFQNs; } /** * Determines if documentLists belonging to this documentListType have ActiveDateRanges turned on or off. Each documentList created from the documentListType will use this value, but it can be overridden in an individual documentList. */ protected Boolean enableActiveDateRanges; public Boolean getEnableActiveDateRanges() { return this.enableActiveDateRanges; } public void setEnableActiveDateRanges(Boolean enableActiveDateRanges) { this.enableActiveDateRanges = enableActiveDateRanges; } /** * Indicates if the document list and document list type are enabled to publish. If true, publishing of draft documents in this document list/document list type is enabled for the site. If false, all document changes are immediately published in live mode. */ protected Boolean enablePublishing; public Boolean getEnablePublishing() { return this.enablePublishing; } public void setEnablePublishing(Boolean enablePublishing) { this.enablePublishing = enablePublishing; } /** * The package of document lists and content documents to be installed. */ protected String installationPackage; public String getInstallationPackage() { return this.installationPackage; } public void setInstallationPackage(String installationPackage) { this.installationPackage = installationPackage; } /** * The user supplied name that appears in . You can use this field for identification purposes. */ protected String name; public String getName() { return this.name; } public void setName(String name) { this.name = name; } /** * The namespace for the accessible APIs and source capabilities in the core of APIs. */ protected String namespace; public String getNamespace() { return this.namespace; } public void setNamespace(String namespace) { this.namespace = namespace; } /** * The type of scope associated with the documentList. For example, if the documentList is pageTemplateContent, the scopeType is Site.Valid values are: "Tenant", "MasterCatalog", and "Site". */ protected String scopeType; public String getScopeType() { return this.scopeType; } public void setScopeType(String scopeType) { this.scopeType = scopeType; } /** * Determines if documentLists belonging to this documentListType will support drafting and ActiveDateRanges documents. This field defaults to false and cannot be updated. Each documentList created from the documentListType will use this value. */ protected Boolean supportsActiveDateRanges; public Boolean getSupportsActiveDateRanges() { return this.supportsActiveDateRanges; } public void setSupportsActiveDateRanges(Boolean supportsActiveDateRanges) { this.supportsActiveDateRanges = supportsActiveDateRanges; } /** * Indicates if modified documents are published automatically or saved to publish at a later time. If true, changed documents in this list can be saved as drafts until they are published to the site. If false, all document changes are immediately published in live mode. System-supplied and read only. */ protected Boolean supportsPublishing; public Boolean getSupportsPublishing() { return this.supportsPublishing; } public void setSupportsPublishing(Boolean supportsPublishing) { this.supportsPublishing = supportsPublishing; } /** * A string array that determines where the document or entity list displays. The options are , for displaying content in the Custom Schema page in , and , for displaying content in the site tree in Site Builder (applies only to document lists). The following example demonstrates how to display content across both options: */ protected List<String> usages; public List<String> getUsages() { return this.usages; } public void setUsages(List<String> usages) { this.usages = usages; } /** * The current version number of the order, wish list, document list, or document type list. */ protected String version; public String getVersion() { return this.version; } public void setVersion(String version) { this.version = version; } /** * Definition of any documents to create with a document list is created. */ protected List<DocumentInstallation> defaultDocuments; public List<DocumentInstallation> getDefaultDocuments() { return this.defaultDocuments; } public void setDefaultDocuments(List<DocumentInstallation> defaultDocuments) { this.defaultDocuments = defaultDocuments; } /** * 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; } /** * The view in the site used by associated entities or document lists/list types. */ protected List<View> views; public List<View> getViews() { return this.views; } public void setViews(List<View> views) { this.views = views; } 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); } } }