001/*
002 * #%L
003 * Netarchivesuite - harvester
004 * %%
005 * Copyright (C) 2005 - 2014 The Royal Danish Library, the Danish State and University Library,
006 *             the National Library of France and the Austrian National Library.
007 * %%
008 * This program is free software: you can redistribute it and/or modify
009 * it under the terms of the GNU Lesser General Public License as
010 * published by the Free Software Foundation, either version 2.1 of the
011 * License, or (at your option) any later version.
012 * 
013 * This program is distributed in the hope that it will be useful,
014 * but WITHOUT ANY WARRANTY; without even the implied warranty of
015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
016 * GNU General Lesser Public License for more details.
017 * 
018 * You should have received a copy of the GNU General Lesser Public
019 * License along with this program.  If not, see
020 * <http://www.gnu.org/licenses/lgpl-2.1.html>.
021 * #L%
022 */
023package dk.netarkivet.harvester.webinterface;
024
025/**
026 * Constants primarily used by class ExtendedFieldDefinition and the jsp pages with extendedField functionality. That
027 * is: HarvestDefinition/Definitions-edit-extendedfield.jsp HarvestDefinition/Definitions-list-extendedfields.jsp
028 * HarvestDefinition/Definitions-edit-domain.jsp
029 */
030public class ExtendedFieldConstants {
031
032    public static final String EXTF_ACTION = "extf_action";
033    public static final String EXTF_ACTION_CREATE = "create";
034    public static final String EXTF_ACTION_READ = "read";
035    public static final String EXTF_ACTION_DELETE = "delete";
036    public static final String EXTF_ACTION_SUBMIT = "submit";
037
038    public static final String EXTF_ID = "extf_id";
039    public static final String EXTF_TYPE_ID = "exf_type_id";
040    public static final String EXTF_NAME = "extf_name";
041    public static final String EXTF_FORMAT = "extf_format";
042    public static final String EXTF_FORMAT_JSCALENDAR = "extf_format_jscalendar";
043    public static final String EXTF_DATATYPE = "extf_datatype";
044    public static final String EXTF_MANDATORY = "extf_mandatory";
045    public static final String EXTF_SEQUENCENR = "extf_sequencenr";
046    public static final String EXTF_DEFAULTVALUE_TEXTFIELD = "extf_defaultvalue_textfield";
047    public static final String EXTF_DEFAULTVALUE_TEXTAREA = "extf_defaultvalue_textarea";
048    public static final String EXTF_DEFAULTVALUE_CHECKBOX = "extf_defaultvalue_checkbox";
049    public static final String EXTF_OPTIONS = "extf_options";
050    public static final String EXTF_MAXLEN = "extf_maxlen";
051
052    public static final String EXTF_PREFIX = "extf_";
053    public static final String EXTF_ALLFIELDIDS = "extf_allfieldids";
054
055    public static final String TRUE = "1";
056    public static final String FALSE = "0";
057
058    public static final int MAXLEN_EXTF_BOOLEAN = 1;
059    public static final int MAXLEN_EXTF_NAME = 50;
060    public static final int MAXLEN_EXTF_FORMAT = 50;
061    public static final int MAXLEN_EXTF_DEFAULTVALUE = 50;
062    public static final int MAXLEN_EXTF_OPTIONS = 1000;
063
064    public static final int MAXLEN_EXTF_CONTENT = 30000;
065
066}