// Path: src/main/java/org/scrutmydocs/webapp/constant/SMDSearchProperties.java
// public interface SMDSearchProperties {
// 
// 	public static final String INDEX_NAME = "docs";
// 	public static final String INDEX_TYPE_DOC = "doc";
// 	public static final String INDEX_TYPE_FOLDER = "folder";
// 	public static final String INDEX_TYPE_FS = "fsRiver";
// 
// 	public static final String DOC_FIELD_NAME = "name";
// 	public static final String DOC_FIELD_DATE = "postDate";
// 	public static final String DOC_FIELD_PATH_ENCODED = "pathEncoded";
// 	public static final String DOC_FIELD_VIRTUAL_PATH = "virtualpath";
// 	public static final String DOC_FIELD_ROOT_PATH = "rootpath";
// 	
// 	public static final String DIR_FIELD_NAME = "name";
// 	public static final String DIR_FIELD_PATH_ENCODED = "pathEncoded";
// 	public static final String DIR_FIELD_VIRTUAL_PATH = "virtualpath";
// 	public static final String DIR_FIELD_ROOT_PATH = "rootpath";
// 
// 	public static final String ES_META_INDEX = "smdadmin";
// 	public static final String ES_META_RIVERS = "rivers";
// 	
// }


import java.io.Serializable;
import org.scrutmydocs.webapp.constant.SMDSearchProperties;

/*
 * Licensed to scrutmydocs.org (the "Author") under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership. Author licenses this
 * file to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */

package org.scrutmydocs.webapp.api.document.data;




public class Document implements Serializable {
	private static final long serialVersionUID = 1L;

	private String id = null;
	private String index = null;
	private String type = null;
	private String name = null;
	private String contentType = null;
	private String content = null;
	
	/**
	 * Default constructor
	 */
	public Document() {
	}
	
	/**
	 * @param id Technical Unique ID for this document. May be null.
	 * @param index Index where will be stored your document (E.g.: mycompany)
	 * @param type Functionnal type of your document (E.g.: mybusinessunit)
	 * @param name Document fancy name
	 * @param contentType File ContentType. May be null. 
	 * @param content Base64 encoded file content
	 */
	public Document(String id, String index, String type, String name,
			String contentType, String content) {
		super();
		this.id = id;
		this.index = index;
		this.type = type;
		this.name = name;
		this.contentType = contentType;
		this.content = content;
	}
	
	
	/**
	 * @param id Technical Unique ID for this document. May be null.
	 * @param index Index where will be stored your document (E.g.: mycompany)
	 * @param type Functionnal type of your document (E.g.: mybusinessunit)
	 * @param name Document fancy name
	 * @param content Base64 encoded file content
	 */
	public Document(String id, String index, String type, String name, String content) {
		this(id, index, type, name, null, content);
	}
	
	/**
	 * @param index Index where will be stored your document (E.g.: mycompany)
	 * @param type Functionnal type of your document (E.g.: mybusinessunit)
	 * @param name Document fancy name
	 * @param content Base64 encoded file content
	 */
	public Document(String index, String type, String name, String content) {
		this(null, index, type, name, null, content);
	}
	
	/**
	 * @param name Document fancy name
	 * @param content Base64 encoded file content
	 */
	public Document(String name, String content) {

// Path: src/main/java/org/scrutmydocs/webapp/constant/SMDSearchProperties.java
// public interface SMDSearchProperties {
// 
// 	public static final String INDEX_NAME = "docs";
// 	public static final String INDEX_TYPE_DOC = "doc";
// 	public static final String INDEX_TYPE_FOLDER = "folder";
// 	public static final String INDEX_TYPE_FS = "fsRiver";
// 
// 	public static final String DOC_FIELD_NAME = "name";
// 	public static final String DOC_FIELD_DATE = "postDate";
// 	public static final String DOC_FIELD_PATH_ENCODED = "pathEncoded";
// 	public static final String DOC_FIELD_VIRTUAL_PATH = "virtualpath";
// 	public static final String DOC_FIELD_ROOT_PATH = "rootpath";
// 	
// 	public static final String DIR_FIELD_NAME = "name";
// 	public static final String DIR_FIELD_PATH_ENCODED = "pathEncoded";
// 	public static final String DIR_FIELD_VIRTUAL_PATH = "virtualpath";
// 	public static final String DIR_FIELD_ROOT_PATH = "rootpath";
// 
// 	public static final String ES_META_INDEX = "smdadmin";
// 	public static final String ES_META_RIVERS = "rivers";
// 	
// }


// Path: src/main/java/org/scrutmydocs/webapp/api/document/data/Document.java
import java.io.Serializable;
import org.scrutmydocs.webapp.constant.SMDSearchProperties;

/*
 * Licensed to scrutmydocs.org (the "Author") under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership. Author licenses this
 * file to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */

package org.scrutmydocs.webapp.api.document.data;




public class Document implements Serializable {
	private static final long serialVersionUID = 1L;

	private String id = null;
	private String index = null;
	private String type = null;
	private String name = null;
	private String contentType = null;
	private String content = null;
	
	/**
	 * Default constructor
	 */
	public Document() {
	}
	
	/**
	 * @param id Technical Unique ID for this document. May be null.
	 * @param index Index where will be stored your document (E.g.: mycompany)
	 * @param type Functionnal type of your document (E.g.: mybusinessunit)
	 * @param name Document fancy name
	 * @param contentType File ContentType. May be null. 
	 * @param content Base64 encoded file content
	 */
	public Document(String id, String index, String type, String name,
			String contentType, String content) {
		super();
		this.id = id;
		this.index = index;
		this.type = type;
		this.name = name;
		this.contentType = contentType;
		this.content = content;
	}
	
	
	/**
	 * @param id Technical Unique ID for this document. May be null.
	 * @param index Index where will be stored your document (E.g.: mycompany)
	 * @param type Functionnal type of your document (E.g.: mybusinessunit)
	 * @param name Document fancy name
	 * @param content Base64 encoded file content
	 */
	public Document(String id, String index, String type, String name, String content) {
		this(id, index, type, name, null, content);
	}
	
	/**
	 * @param index Index where will be stored your document (E.g.: mycompany)
	 * @param type Functionnal type of your document (E.g.: mybusinessunit)
	 * @param name Document fancy name
	 * @param content Base64 encoded file content
	 */
	public Document(String index, String type, String name, String content) {
		this(null, index, type, name, null, content);
	}
	
	/**
	 * @param name Document fancy name
	 * @param content Base64 encoded file content
	 */
	public Document(String name, String content) {

		this(null, SMDSearchProperties.INDEX_NAME, SMDSearchProperties.INDEX_TYPE_DOC, name, null, content);
