1 /* 2 * Copyright (c) 2002-2021, City of 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.blog.business; 35 36 import java.io.Serializable; 37 import java.util.List; 38 39 /** 40 * @author eahuma 41 * 42 */ 43 public class DocContent implements Serializable 44 { 45 /** 46 * 47 */ 48 private static final long serialVersionUID = 1L; 49 50 private int _nIdDocContent; 51 private String _strTextValue; 52 private byte [ ] _bytes; 53 private String _strValueContentType; 54 private ContentType _contentType; 55 private List<Blog> _blogs; 56 private int _nPriority; 57 58 /** 59 * Returns the IdDocContent 60 * 61 * @return The _nIdDocContent 62 */ 63 public int getId( ) 64 { 65 return _nIdDocContent; 66 } 67 68 /** 69 * Sets the _nIdDocContent 70 * 71 * @param nIdDocumentContent 72 * The _nIdDocContent 73 */ 74 public void setId( int nIdDocumentContent ) 75 { 76 _nIdDocContent = nIdDocumentContent; 77 } 78 79 /** 80 * Sets the value 81 * 82 * @param strTextValue 83 * The value 84 */ 85 public void setTextValue( String strTextValue ) 86 { 87 _strTextValue = strTextValue; 88 } 89 90 /** 91 * Gets the value 92 * 93 * @return The value 94 */ 95 public String getTextValue( ) 96 { 97 return _strTextValue; 98 } 99 100 /** 101 * Sets the value 102 * 103 * @param bytes 104 * The value 105 */ 106 public void setBinaryValue( byte [ ] bytes ) 107 { 108 _bytes = bytes; 109 } 110 111 /** 112 * Gets the value 113 * 114 * @return The value 115 */ 116 public byte [ ] getBinaryValue( ) 117 { 118 return _bytes; 119 } 120 121 /** 122 * Sets the content type value 123 * 124 * @param strValueContentType 125 * The content type value 126 */ 127 public void setValueContentType( String strValueContentType ) 128 { 129 _strValueContentType = strValueContentType; 130 } 131 132 /** 133 * Gets the content type value 134 * 135 * @return The content type value 136 */ 137 public String getValueContentType( ) 138 { 139 return _strValueContentType; 140 } 141 142 /** 143 * Sets the ContentType 144 * 145 * @param type 146 * The ContentType 147 */ 148 public void setContentType( ContentType type ) 149 { 150 _contentType = type; 151 } 152 153 /** 154 * Gets the ContentType 155 * 156 * @return The ContentType 157 */ 158 public ContentType getContentType( ) 159 { 160 return _contentType; 161 } 162 163 /** 164 * Gets the blogs 165 * 166 * @return the blogs 167 */ 168 public List<Blog> getBlogs( ) 169 { 170 return _blogs; 171 } 172 173 /** 174 * Sets the blogs 175 * 176 * @param blogs 177 * the blogs 178 */ 179 public void setBlogs( List<Blog> blogs ) 180 { 181 this._blogs = blogs; 182 } 183 184 /** 185 * Gets the priority 186 * 187 * @return the priority 188 */ 189 public int getPriority( ) 190 { 191 return _nPriority; 192 } 193 194 /** 195 * Sets the priority 196 * 197 * @param nPriority 198 * the priority to set 199 */ 200 public void setPriority( int nPriority ) 201 { 202 this._nPriority = nPriority; 203 } 204 }