001/*
002 * (C) Copyright 2014 Nuxeo SA (http://nuxeo.com/) and others.
003 *
004 * All rights reserved. This program and the accompanying materials
005 * are made available under the terms of the GNU Lesser General Public License
006 * (LGPL) version 2.1 which accompanies this distribution, and is available at
007 * http://www.gnu.org/licenses/lgpl-2.1.html
008 *
009 * This library is distributed in the hope that it will be useful,
010 * but WITHOUT ANY WARRANTY; without even the implied warranty of
011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
012 * Lesser General Public License for more details.
013 *
014 * Contributors:
015 *     Vladimir Pasquier <vpasquier@nuxeo.com>
016 */
017package org.nuxeo.binary.metadata.api;
018
019/**
020 * @since 7.1
021 */
022public class BinaryMetadataConstants {
023
024    /**
025     * Commandline id - read metadata from binary with exiftool.
026     */
027    public static final String EXIFTOOL_READ = "exiftool-read";
028
029    /**
030     * @since 7.3
031     */
032    public static final String EXIFTOOL_READ_NOPREFIX = "exiftool-read-noprefix";
033
034    /**
035     * Commandline id - read metadata listing from binary with exiftool.
036     */
037    public static final String EXIFTOOL_READ_TAGLIST = "exiftool-read-taglist";
038
039    /**
040     * @since 7.3
041     */
042    public static final String EXIFTOOL_READ_TAGLIST_NOPREFIX = "exiftool-read-taglist-noprefix";
043
044    /**
045     * Commandline id - Write metadata into binary with exiftool.
046     */
047    public static final String EXIFTOOL_WRITE = "exiftool-write";
048
049    /**
050     * @since 7.3
051     */
052    public static final String EXIFTOOL_WRITE_NOPREFIX = "exiftool-write-noprefix";
053
054    public static final String METADATA_MAPPING_EP = "metadataMappings";
055
056    public static final String METADATA_PROCESSORS_EP = "metadataProcessors";
057
058    public static final String METADATA_RULES_EP = "metadataRules";
059
060    public static final String EXIF_TOOL_CONTRIBUTION_ID = "exifTool";
061
062    /**
063     * Flag to disable binary metadata listener.
064     */
065    public static final String DISABLE_BINARY_METADATA_LISTENER = "disableBinaryMetadataListener";
066
067    /**
068     * Constant map key to do the async update of given metadata listing.
069     */
070    public static final String ASYNC_MAPPING_RESULT = "asyncMappingResult";
071
072    /**
073     * Flag to execute the worker if async update should be done.
074     *
075     * @since 7.2
076     */
077    public static final String ASYNC_BINARY_METADATA_EXECUTE = "asyncExecute";
078
079    /**
080     * Binary Metadata configuration constant to active/deactivate metrics.
081     *
082     * @since 7.2
083     */
084    public static final String BINARY_METADATA_MONITOR = "binary.metadata.monitor.enable";
085}