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.updater.service.catalog; 35 36 import java.util.ArrayList; 37 import java.util.List; 38 39 40 /** 41 * CatalogInfos 42 */ 43 public class CatalogInfos 44 { 45 // Variables declarations 46 private String _strPluginName; 47 private String _strDescription; 48 private String _strVersion; 49 private String _strAuthor; 50 private String _strDownloadUrl; 51 private String _strHomepageUrl; 52 private String _strCoreVersionMin; 53 private String _strCoreVersionMax; 54 private List<UpgradeInfos> _listUpgrades = new ArrayList<UpgradeInfos>( ); 55 56 /** 57 * Constructor 58 */ 59 public CatalogInfos( ) 60 { 61 } 62 63 /** 64 * Returns the PluginName 65 * @return The PluginName 66 */ 67 public String getPluginName( ) 68 { 69 return _strPluginName; 70 } 71 72 /** 73 * Sets the PluginName 74 * @param strPluginName The PluginName 75 */ 76 public void setPluginName( String strPluginName ) 77 { 78 _strPluginName = strPluginName; 79 } 80 81 /** 82 * Returns the Description 83 * 84 * @return The Description 85 */ 86 public String getDescription( ) 87 { 88 return _strDescription; 89 } 90 91 /** 92 * Sets the Description 93 * 94 * @param strDescription The Description 95 */ 96 public void setDescription( String strDescription ) 97 { 98 _strDescription = strDescription; 99 } 100 101 /** 102 * Returns the Version 103 * @return The Version 104 */ 105 public String getVersion( ) 106 { 107 return _strVersion; 108 } 109 110 /** 111 * Sets the Version 112 * @param strVersion The Version 113 */ 114 public void setVersion( String strVersion ) 115 { 116 _strVersion = strVersion; 117 } 118 119 /** 120 * Sets the DownloadUrl 121 * @param strDownloadUrl The DownloadUrl 122 */ 123 public void setDownloadUrl( String strDownloadUrl ) 124 { 125 _strDownloadUrl = strDownloadUrl; 126 } 127 128 /** 129 * Returns the DownloadUrl 130 * @return The DownloadUrl 131 */ 132 public String getDownloadUrl( ) 133 { 134 return _strDownloadUrl; 135 } 136 137 /** 138 * Sets the HomepageUrl 139 * @param strHomepageUrl The HomepageUrl 140 */ 141 public void setHomepageUrl( String strHomepageUrl ) 142 { 143 _strHomepageUrl = strHomepageUrl; 144 } 145 146 /** 147 * Returns the HomepageUrl 148 * @return The HomepageUrl 149 */ 150 public String getHomepageUrl( ) 151 { 152 return _strHomepageUrl; 153 } 154 155 /** 156 * Sets the Author 157 * @param strAuthor The Author 158 */ 159 public void setAuthor( String strAuthor ) 160 { 161 _strAuthor = strAuthor; 162 } 163 164 /** 165 * Returns the Author 166 * @return The Author 167 */ 168 public String getAuthor( ) 169 { 170 return _strAuthor; 171 } 172 173 /** 174 * Returns the CoreVersionMin 175 * @return The CoreVersionMin 176 */ 177 public String getCoreVersionMin( ) 178 { 179 return _strCoreVersionMin; 180 } 181 182 /** 183 * Sets the CoreVersionMin 184 * @param strCoreVersionMin The CoreVersionMin 185 */ 186 public void setCoreVersionMin( String strCoreVersionMin ) 187 { 188 _strCoreVersionMin = strCoreVersionMin; 189 } 190 191 /** 192 * Returns the CoreVersionMax 193 * @return The CoreVersionMax 194 */ 195 public String getCoreVersionMax( ) 196 { 197 return _strCoreVersionMax; 198 } 199 200 /** 201 * Sets the CoreVersionMax 202 * @param strCoreVersionMax The CoreVersionMax 203 */ 204 public void setCoreVersionMax( String strCoreVersionMax ) 205 { 206 _strCoreVersionMax = strCoreVersionMax; 207 } 208 209 /** 210 * Add upgrade 211 * @param ui The upgrade 212 */ 213 public void addUpgrade( UpgradeInfos ui ) 214 { 215 _listUpgrades.add( ui ); 216 } 217 218 /** 219 * Returns available upgrades 220 * @return An upgrades list 221 */ 222 public List<UpgradeInfos> getUpgrades( ) 223 { 224 return _listUpgrades; 225 } 226 }