001/** 002 * Copyright 2015 Tampere University of Technology, Pori Department 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 */ 016package service.tut.pori.contentanalysis.video; 017 018/** 019 * Definitions for video content analysis. 020 */ 021public final class Definitions { 022 /* elements */ 023 /** xml element declaration */ 024 public static final String ELEMENT_DELETED_VIDEOLIST = "deletedMediaList"; 025 /** xml element declaration */ 026 public static final String ELEMENT_SEQUENCE_DURATION = "sequenceDuration"; 027 /** xml element declaration */ 028 public static final String ELEMENT_SEQUENCE_TYPE = "sequenceType"; 029 /** xml element declaration */ 030 public static final String ELEMENT_TIMECODE = "timeCode"; 031 /** xml element declaration */ 032 public static final String ELEMENT_TIMECODELIST = "timeCodeList"; 033 /** xml element declaration */ 034 public static final String ELEMENT_TIMECODE_START = "from"; 035 /** xml element declaration */ 036 public static final String ELEMENT_TIMECODE_END = "to"; 037 /** xml element declaration */ 038 public static final String ELEMENT_VIDEO = "media"; 039 /** xml element declaration */ 040 public static final String ELEMENT_VIDEOLIST = "mediaList"; 041 042 /* methods */ 043 /** service method declaration */ 044 public static final String METHOD_RETRIEVE_VIDEO_METADATA = "getVideos"; 045 /** service method declaration */ 046 public static final String METHOD_SEARCH_SIMILAR_BY_ID = "similarVideosById"; 047 /** service method declaration */ 048 public static final String METHOD_SEARCH_SIMILAR_BY_OBJECT = "similarVideosByObject"; 049 050 /* services */ 051 /** service name declaration */ 052 public static final String SERVICE_VCA = "vca"; 053 054 /* solr dynamic field datatypes */ 055 private static final String SOLR_DATE = "_dt"; 056 private static final String SOLR_DOUBLE = "_d"; 057 private static final String SOLR_INTEGER = "_i"; 058 private static final String SOLR_LONG = "_l"; 059 private static final String SOLR_STRING = "_s"; 060 private static final String SOLR_TEXT = "_s"; 061 062 /* solr fields */ 063 /** SOLR field declaration */ 064 protected static final String SOLR_FIELD_CONFIDENCE = service.tut.pori.contentanalysis.Definitions.ELEMENT_CONFIDENCE+SOLR_DOUBLE; 065 /** SOLR field declaration */ 066 protected static final String SOLR_FIELD_CREDITS = service.tut.pori.contentanalysis.Definitions.ELEMENT_CREDITS+SOLR_STRING; 067 /** SOLR field declaration */ 068 protected static final String SOLR_FIELD_DESCRIPTION = service.tut.pori.contentanalysis.Definitions.ELEMENT_DESCRIPTION+SOLR_TEXT; 069 /** SOLR field declaration */ 070 protected static final String SOLR_FIELD_NAME = service.tut.pori.contentanalysis.Definitions.ELEMENT_NAME+SOLR_STRING; 071 /** SOLR field declaration */ 072 protected static final String SOLR_FIELD_SERVICE_ID = service.tut.pori.contentanalysis.Definitions.ELEMENT_SERVICE_ID+SOLR_INTEGER; 073 /** SOLR field declaration */ 074 protected static final String SOLR_FIELD_UPDATED = "updated"+SOLR_DATE; 075 /** SOLR field declaration */ 076 protected static final String SOLR_FIELD_USER_ID = core.tut.pori.users.Definitions.ELEMENT_USER_ID+SOLR_LONG; 077 /** SOLR field declaration */ 078 protected static final String SOLR_FIELD_VISIBILITY = service.tut.pori.contentanalysis.Definitions.ELEMENT_VISIBILITY+SOLR_INTEGER; 079 080 /** 081 * 082 */ 083 private Definitions() { 084 // nothing needed 085 } 086}