/*******************************************************************************
 * Copyright (c) 2002, 2008 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Initial Contributors:
 * The following IBM employees contributed to the Remote System Explorer
 * component that contains this file: David McKnight, Kushal Munir,
 * Michael Berger, David Dykstal, Phil Coulthard, Don Yantzi, Eric Simpson,
 * Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
 * 
 * Contributors:
 * Martin Oberhuber (Wind River) - [183165] Do not implement constant interfaces
 * David McKnight   (IBM) - [196624] dstore miner IDs should be String constants rather than dynamic lookup
 * David McKnight   (IBM) - [209593] [api] add support for "file permissions" and "owner" properties for unix files
 * Martin Oberhuber (Wind River) - [cleanup] Add API "since" Javadoc tags
 * David McKnight   (IBM)  - [225507] Removed used commands
 *******************************************************************************/

package org.eclipse.rse.dstore.universal.miners;

public interface IUniversalDataStoreConstants
{
	/*
	 * Miner names, used for logging
	 */
	public static final String UNIVERSAL_FILESYSTEM_MINER = "UniversalFileSystemMiner"; //$NON-NLS-1$


	/*
	 * Miner IDs
	 */
	/**
	 * Universal Filesystem miner ID. Value =
	 * "org.eclipse.rse.dstore.universal.miners.UniversalFileSystemMiner".
	 * 
	 * @since org.eclipse.rse.services.dstore 3.0
	 */
	public static final String UNIVERSAL_FILESYSTEM_MINER_ID = "org.eclipse.rse.dstore.universal.miners.UniversalFileSystemMiner"; //$NON-NLS-1$
	/**
	 * Universal Command miner ID. Value =
	 * "org.eclipse.rse.dstore.universal.miners.CommandMiner".
	 * 
	 * @since org.eclipse.rse.services.dstore 3.0
	 */
	public static final String UNIVERSAL_COMMAND_MINER_ID = "org.eclipse.rse.dstore.universal.miners.CommandMiner"; //$NON-NLS-1$
	/**
	 * Universal Environment miner ID. Value =
	 * "org.eclipse.rse.dstore.universal.miners.EnvironmentMiner".
	 * 
	 * @since org.eclipse.rse.services.dstore 3.0
	 */
	public static final String UNIVERSAL_ENVIRONMENT_MINER_ID = "org.eclipse.rse.dstore.universal.miners.EnvironmentMiner"; //$NON-NLS-1$
	/**
	 * Universal Process miner ID. Value =
	 * "org.eclipse.rse.dstore.universal.miners.UniversalProcessMiner".
	 * 
	 * @since org.eclipse.rse.services.dstore 3.0
	 */
	public static final String UNIVERSAL_PROCESS_MINER_ID = "org.eclipse.rse.dstore.universal.miners.UniversalProcessMiner"; //$NON-NLS-1$


	//
	// Universal File descriptors for DataStore DataElements
	//
	public static final String MESSAGE_DESCRIPTOR = "universal.message"; //$NON-NLS-1$

	public static final String UNIVERSAL_NODE_DESCRIPTOR = "universal.node"; //$NON-NLS-1$
	public static final String UNIVERSAL_TEMP_DESCRIPTOR = "universal.temp"; //$NON-NLS-1$
	public static final String UNIVERSAL_FILTER_DESCRIPTOR = "universal.FilterObject"; //$NON-NLS-1$
	public static final String UNIVERSAL_FILE_DESCRIPTOR = "universal.FileObject"; //$NON-NLS-1$
	public static final String UNIVERSAL_FOLDER_DESCRIPTOR = "universal.FolderObject"; //$NON-NLS-1$

	public static final String UNIVERSAL_ARCHIVE_FILE_DESCRIPTOR = "universal.ArchiveFileObject"; //$NON-NLS-1$
	public static final String UNIVERSAL_VIRTUAL_FILE_DESCRIPTOR = "universal.VirtualFileObject"; //$NON-NLS-1$
	public static final String UNIVERSAL_VIRTUAL_FOLDER_DESCRIPTOR = "universal.VirtualFolderObject"; //$NON-NLS-1$


	//
	// Universal File Miner Commands
	//

	public static final String C_QUERY_ROOTS = "C_QUERY_ROOTS"; //$NON-NLS-1$
	public static final String C_QUERY_VIEW_ALL = "C_QUERY_VIEW_ALL"; //$NON-NLS-1$
	public static final String C_QUERY_VIEW_FILES = "C_QUERY_VIEW_FILES"; //$NON-NLS-1$
	public static final String C_QUERY_VIEW_FOLDERS = "C_QUERY_VIEW_FOLDERS"; //$NON-NLS-1$
	public static final String C_CREATE_FILE = "C_CREATE_FILE"; //$NON-NLS-1$
	public static final String C_CREATE_FOLDER = "C_CREATE_FOLDER"; //$NON-NLS-1$
	public static final String C_QUERY_GET_REMOTE_OBJECT="C_QUERY_GET_REMOTE_OBJECT"; //$NON-NLS-1$

	public static final String C_DELETE = "C_DELETE"; //$NON-NLS-1$
	public static final String C_DELETE_BATCH = "C_DELETE_BATCH"; //$NON-NLS-1$
	public static final String C_RENAME = "C_RENAME"; //$NON-NLS-1$
	public static final String C_COPY = "C_COPY"; //$NON-NLS-1$
	public static final String C_COPY_BATCH = "C_COPY_BATCH"; //$NON-NLS-1$

	public static final String C_SEARCH = "C_SEARCH"; //$NON-NLS-1$
	public static final String C_CANCEL = "C_CANCEL"; //$NON-NLS-1$

	public static final String C_SET_READONLY = "C_SET_READONLY";//$NON-NLS-1$
	public static final String C_SET_LASTMODIFIED = "C_SET_LASTMODIFIED";//$NON-NLS-1$
	public static final String C_QUERY_BASIC_PROPERTY = "C_QUERY_BASIC_PROPERTY";//$NON-NLS-1$
	public static final String C_QUERY_CAN_WRITE_PROPERTY = "C_QUERY_CAN_WRITE_PROPERTY";//$NON-NLS-1$
	public static final String C_QUERY_ADVANCE_PROPERTY = "C_QUERY_ADVANCE_PROPERTY";//$NON-NLS-1$
	public static final String C_QUERY_EXISTS = "C_QUERY_EXISTS";//$NON-NLS-1$
	public static final String C_GET_OSTYPE = "C_GET_OSTYPE";//$NON-NLS-1$
	public static final String C_QUERY_CLASSNAME = "C_QUERY_CLASSNAME"; //$NON-NLS-1$
	public static final String C_CREATE_TEMP = "C_CREATE_TEMP"; //$NON-NLS-1$

	// Download file command
	public static final String C_DOWNLOAD_FILE = "C_DOWNLOAD_FILE"; //$NON-NLS-1$

	// Query system encoding command
	public static final String C_SYSTEM_ENCODING = "C_SYSTEM_ENCODING"; //$NON-NLS-1$

	// Query unused port
	public static final String C_QUERY_UNUSED_PORT = "C_QUERY_UNUSED_PORT"; //$NON-NLS-1$

	// Qualified class name command and return type
	public static final String C_QUERY_QUALIFIED_CLASSNAME = "C_QUERY_QUALIFIED_CLASSNAME"; //$NON-NLS-1$
	public static final String TYPE_QUALIFIED_CLASSNAME = "fullClassName"; //$NON-NLS-1$

	// permissions commands
	public static final String C_QUERY_FILE_PERMISSIONS = "C_QUERY_FILE_PERMISSIONS"; //$NON-NLS-1$
	/** @since org.eclipse.rse.services.dstore 3.0 */
	public static final String C_SET_FILE_PERMISSIONS = "C_SET_FILE_PERMISSIONS"; //$NON-NLS-1$


	// Mode of transfer: text or binary
	public static final int TEXT_MODE = -1;
	public static final int BINARY_MODE = -2;


	// Download result types and download messages
	public static final String DOWNLOAD_RESULT_SUCCESS_TYPE = "universal.download.success"; //$NON-NLS-1$
	public static final String DOWNLOAD_RESULT_SUCCESS_MESSAGE = "successful"; //$NON-NLS-1$
	public static final String DOWNLOAD_RESULT_FILE_NOT_FOUND_EXCEPTION = "FileNotFoundException"; //$NON-NLS-1$
	public static final String DOWNLOAD_RESULT_UNSUPPORTED_ENCODING_EXCEPTION = "UnsupportedEncodingException"; //$NON-NLS-1$
	public static final String DOWNLOAD_RESULT_IO_EXCEPTION = "IOException"; //$NON-NLS-1$
	public static final String DOWNLOAD_RESULT_EXCEPTION = "Exception"; //$NON-NLS-1$
	public static final String DOWNLOAD_RESULT_UNEXPECTED_ERROR = "UnexpectedError"; //$NON-NLS-1$


	// Number of bytes in a kilobyte
	public static final int KB_IN_BYTES = 1024;

	// Number of kilobytes we want
	public static final int NUM_OF_KB = 10;

	// The size of file segments to read and send across connection (in bytes)
	public static final int BUFFER_SIZE = NUM_OF_KB * KB_IN_BYTES;
}
