001/*
002 * (C) Copyright 2014 Nuxeo SA (http://nuxeo.com/) and others.
003 *
004 * Licensed under the Apache License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 *     http://www.apache.org/licenses/LICENSE-2.0
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 *
016 * Contributors:
017 *     Vladimir Pasquier <vpasquier@nuxeo.com>
018 */
019package org.nuxeo.binary.metadata.api;
020
021/**
022 * @since 7.1
023 */
024public class BinaryMetadataConstants {
025
026    /**
027     * Commandline id - read metadata from binary with exiftool.
028     */
029    public static final String EXIFTOOL_READ = "exiftool-read";
030
031    /**
032     * @since 7.3
033     */
034    public static final String EXIFTOOL_READ_NOPREFIX = "exiftool-read-noprefix";
035
036    /**
037     * Commandline id - read metadata listing from binary with exiftool.
038     */
039    public static final String EXIFTOOL_READ_TAGLIST = "exiftool-read-taglist";
040
041    /**
042     * @since 7.3
043     */
044    public static final String EXIFTOOL_READ_TAGLIST_NOPREFIX = "exiftool-read-taglist-noprefix";
045
046    /**
047     * Commandline id - Write metadata into binary with exiftool.
048     */
049    public static final String EXIFTOOL_WRITE = "exiftool-write";
050
051    /**
052     * @since 7.3
053     */
054    public static final String EXIFTOOL_WRITE_NOPREFIX = "exiftool-write-noprefix";
055
056    public static final String METADATA_MAPPING_EP = "metadataMappings";
057
058    public static final String METADATA_PROCESSORS_EP = "metadataProcessors";
059
060    public static final String METADATA_RULES_EP = "metadataRules";
061
062    public static final String EXIF_TOOL_CONTRIBUTION_ID = "exifTool";
063
064    /**
065     * Flag to disable binary metadata listener.
066     */
067    public static final String DISABLE_BINARY_METADATA_LISTENER = "disableBinaryMetadataListener";
068
069    /**
070     * Constant map key to do the async update of given metadata listing.
071     */
072    public static final String ASYNC_MAPPING_RESULT = "asyncMappingResult";
073
074    /**
075     * Flag to execute the worker if async update should be done.
076     *
077     * @since 7.2
078     */
079    public static final String ASYNC_BINARY_METADATA_EXECUTE = "asyncExecute";
080
081    /**
082     * Binary Metadata configuration constant to active/deactivate metrics.
083     *
084     * @since 7.2
085     */
086    public static final String BINARY_METADATA_MONITOR = "binary.metadata.monitor.enable";
087}