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; 35 36 37 /** 38 * New plugins processing datas 39 */ 40 public class NewInfos 41 { 42 private String _strPluginName; 43 private String _strVersion; 44 private String _strDescription; 45 private String _strAuthor; 46 private String _strHomepageUrl; 47 private boolean _bInstallInProgress; 48 private boolean _bDownloaded; 49 50 /** 51 * Constructor 52 * @param pluginName The plugin name 53 */ 54 public NewInfos( String pluginName ) 55 { 56 _strPluginName = pluginName; 57 } 58 59 /** 60 * Gets the plugin name 61 * 62 * @return the plugin name 63 */ 64 public String getPluginName( ) 65 { 66 return _strPluginName; 67 } 68 69 /** 70 * Returns the Version 71 * 72 * @return The Version 73 */ 74 public String getVersion( ) 75 { 76 return _strVersion; 77 } 78 79 /** 80 * Sets the Version 81 * 82 * @param strVersion The Version 83 */ 84 public void setVersion( String strVersion ) 85 { 86 _strVersion = strVersion; 87 } 88 89 /** 90 * Returns the Description 91 * 92 * @return The Description 93 */ 94 public String getDescription( ) 95 { 96 return _strDescription; 97 } 98 99 /** 100 * Sets the Description 101 * 102 * @param strDescription The Description 103 */ 104 public void setDescription( String strDescription ) 105 { 106 _strDescription = strDescription; 107 } 108 109 /** 110 * Sets the HomepageUrl 111 * @param strHomepageUrl The HomepageUrl 112 */ 113 public void setHomepageUrl( String strHomepageUrl ) 114 { 115 _strHomepageUrl = strHomepageUrl; 116 } 117 118 /** 119 * Returns the HomepageUrl 120 * @return The HomepageUrl 121 */ 122 public String getHomepageUrl( ) 123 { 124 return _strHomepageUrl; 125 } 126 127 /** 128 * Sets the Author 129 * @param strAuthor The Author 130 */ 131 public void setAuthor( String strAuthor ) 132 { 133 _strAuthor = strAuthor; 134 } 135 136 /** 137 * Returns the Author 138 * @return The Author 139 */ 140 public String getAuthor( ) 141 { 142 return _strAuthor; 143 } 144 145 /** 146 * Tells wether or not the release has been downloaded 147 * @return true if downloaded, otherwise false 148 */ 149 public boolean isDownloaded( ) 150 { 151 return _bDownloaded; 152 } 153 154 /** 155 * Sets the downloaded flag 156 * @param bDownloaded The downloaded flag : true if downloaded, otherwise false 157 */ 158 public void setDownloaded( boolean bDownloaded ) 159 { 160 _bDownloaded = bDownloaded; 161 } 162 163 /** 164 * Tells if the install is in progress (process planed at shutdown and next startup) 165 * @return true if an install is in progress, otherwise false 166 */ 167 public boolean isInstallInProgress( ) 168 { 169 return _bInstallInProgress; 170 } 171 172 /** 173 * Sets the InstallInProgress flag 174 * @param bInstallInProgress The InstallInProgress flag 175 */ 176 public void setInstallInProgress( boolean bInstallInProgress ) 177 { 178 _bInstallInProgress = bInstallInProgress; 179 } 180 }