1 /* 2 * Copyright (c) 2002-2014, Mairie de Paris 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 9 * 1. Redistributions of source code must retain the above copyright notice 10 * and the following disclaimer. 11 * 12 * 2. Redistributions in binary form must reproduce the above copyright notice 13 * and the following disclaimer in the documentation and/or other materials 14 * provided with the distribution. 15 * 16 * 3. Neither the name of 'Mairie de Paris' nor 'Lutece' nor the names of its 17 * contributors may be used to endorse or promote products derived from 18 * this software without specific prior written permission. 19 * 20 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 21 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 22 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 23 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE 24 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 25 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 30 * POSSIBILITY OF SUCH DAMAGE. 31 * 32 * License 1.0 33 */ 34 package fr.paris.lutece.plugins.directory.modules.pdfproducer.business.producerconfig; 35 36 import java.util.Locale; 37 38 import fr.paris.lutece.portal.service.i18n.I18nService; 39 40 41 /** 42 * DefaultConfigProducer 43 * 44 */ 45 public class DefaultConfigProducer implements IConfigProducer 46 { 47 private static final String PROPERTY_DEFAULT_CONFIG_NAME = "module.directory.pdfproducer.create.producer.default.config.name"; 48 private static final String DEFAULT_TYPE_FILE_NAME = "default"; 49 private String _strType; 50 51 /** 52 * @return the _nIdProducerConfig 53 */ 54 public int getIdProducerConfig( ) 55 { 56 return -1; 57 } 58 59 /** 60 * @param nIdProducerConfig the _nIdProducerConfig to set 61 */ 62 public void setIdProducerConfig( int nIdProducerConfig ) 63 { 64 } 65 66 /** 67 * @return the _strName 68 */ 69 public String getName( ) 70 { 71 return null; 72 } 73 74 /** 75 * @param locale locale 76 * @return the _strName 77 */ 78 public String getName( Locale locale ) 79 { 80 return I18nService.getLocalizedString( PROPERTY_DEFAULT_CONFIG_NAME, locale ); 81 } 82 83 /** 84 * @param nIdEntryFileName the _nIdEntryFileName to set 85 */ 86 public void setIdEntryFileName( int nIdEntryFileName ) 87 { 88 } 89 90 /** 91 * @return the _nIdEntryFileName 92 */ 93 public int getIdEntryFileName( ) 94 { 95 return -1; 96 } 97 98 /** 99 * @return the FileName 100 */ 101 public int getFileName( ) 102 { 103 return -1; 104 } 105 106 /** 107 * @param strName the _strName to set 108 */ 109 public void setName( String strName ) 110 { 111 } 112 113 /** 114 * @return the _nIdDirectory 115 */ 116 public int getIdDirectory( ) 117 { 118 return -1; 119 } 120 121 /** 122 * @param nIdDirectory the _nIdDirectory to set 123 */ 124 public void setIdDirectory( int nIdDirectory ) 125 { 126 } 127 128 /** 129 * @return the _strType 130 */ 131 public String getType( ) 132 { 133 return _strType; 134 } 135 136 /** 137 * @param strType the _strType to set 138 */ 139 public void setType( String strType ) 140 { 141 _strType = strType; 142 } 143 144 /** 145 * @return the _strTypeConfigFileName 146 */ 147 public String getTypeConfigFileName( ) 148 { 149 return DEFAULT_TYPE_FILE_NAME; 150 } 151 152 /** 153 * @param strTypeConfigFileName the _strTypeConfigFileName to set 154 */ 155 public void setTypeConfigFileName( String strTypeConfigFileName ) 156 { 157 } 158 159 /** 160 * @return the _strTextFileName 161 */ 162 public String getTextFileName( ) 163 { 164 return null; 165 } 166 167 /** 168 * @param strTextFileName the _strTextFileName to set 169 */ 170 public void setTextFileName( String strTextFileName ) 171 { 172 } 173 174 /** 175 * @return the _bExtractNotFilled 176 */ 177 public Boolean getExtractNotFilled( ) 178 { 179 return true; 180 } 181 182 /** 183 * @param bExtractNotFilled the _bExtractNotFilled to set 184 */ 185 public void setExtractNotFilled( Boolean bExtractNotFilled ) 186 { 187 } 188 }