| 1 | |
|
| 2 | |
|
| 3 | |
|
| 4 | |
|
| 5 | |
|
| 6 | |
|
| 7 | |
|
| 8 | |
|
| 9 | |
|
| 10 | |
|
| 11 | |
|
| 12 | |
|
| 13 | |
|
| 14 | |
|
| 15 | |
|
| 16 | |
package net.sf.webphotos.sync.FTP; |
| 17 | |
|
| 18 | |
import java.io.File; |
| 19 | |
import java.io.IOException; |
| 20 | |
import java.io.InputStream; |
| 21 | |
import java.io.OutputStream; |
| 22 | |
import java.util.ArrayList; |
| 23 | |
import java.util.Iterator; |
| 24 | |
import java.util.List; |
| 25 | |
import java.util.StringTokenizer; |
| 26 | |
import net.sf.webphotos.Album; |
| 27 | |
import net.sf.webphotos.BancoImagem; |
| 28 | |
import net.sf.webphotos.PhotoDTO; |
| 29 | |
import net.sf.webphotos.sync.Sync; |
| 30 | |
import net.sf.webphotos.sync.SyncEvent; |
| 31 | |
import net.sf.webphotos.sync.SyncException; |
| 32 | |
import net.sf.webphotos.sync.SyncListener; |
| 33 | |
import net.sf.webphotos.util.Util; |
| 34 | |
import net.sf.webphotos.util.legacy.Arquivo; |
| 35 | |
import net.sf.webphotos.util.legacy.CacheFTP; |
| 36 | |
import net.sf.webphotos.util.legacy.ComandoFTP; |
| 37 | |
import org.apache.commons.net.ftp.FTPClient; |
| 38 | |
import org.apache.commons.net.ftp.FTPClientConfig; |
| 39 | |
import org.apache.commons.net.ftp.FTPReply; |
| 40 | |
import org.apache.commons.net.io.CopyStreamListener; |
| 41 | |
import org.apache.log4j.Logger; |
| 42 | |
|
| 43 | |
|
| 44 | |
|
| 45 | |
|
| 46 | |
|
| 47 | |
|
| 48 | |
|
| 49 | |
|
| 50 | |
|
| 51 | |
public class SyncObject extends FTPClient implements Sync { |
| 52 | |
|
| 53 | |
private int reply; |
| 54 | 0 | private ArrayList<Arquivo> listaArquivos = new ArrayList<Arquivo>(); |
| 55 | 0 | private String ftpRoot = null; |
| 56 | |
private List listFTP; |
| 57 | 0 | private File albunsRoot = Util.getAlbunsRoot(); |
| 58 | |
private String usuario; |
| 59 | |
private char[] senha; |
| 60 | 0 | private long totalBytes = 0; |
| 61 | 0 | private long transmitido = 0; |
| 62 | |
private boolean enviarAltaResolucao; |
| 63 | 0 | private SyncListener syncListener = null; |
| 64 | 0 | private CopyStreamListener copyStreamListener = null; |
| 65 | |
private String ftpHost; |
| 66 | |
private int ftpPort; |
| 67 | |
private int retry; |
| 68 | 0 | private static final Logger log = Logger.getLogger(SyncObject.class); |
| 69 | |
|
| 70 | |
|
| 71 | |
|
| 72 | |
|
| 73 | |
public SyncObject() { |
| 74 | 0 | super(); |
| 75 | 0 | enviarAltaResolucao = Util.getProperty("enviarAltaResolucao").equals("true"); |
| 76 | 0 | } |
| 77 | |
|
| 78 | |
|
| 79 | |
|
| 80 | |
|
| 81 | |
|
| 82 | |
|
| 83 | |
|
| 84 | |
|
| 85 | |
|
| 86 | |
|
| 87 | |
|
| 88 | |
@Override |
| 89 | |
public void transferFile(InputStream streamOrigem, OutputStream streamDestino, long streamSize) |
| 90 | |
throws IOException { |
| 91 | |
|
| 92 | 0 | org.apache.commons.net.io.Util.copyStream( |
| 93 | |
streamOrigem, |
| 94 | |
streamDestino, |
| 95 | |
getBufferSize(), |
| 96 | |
streamSize, |
| 97 | |
copyStreamListener, |
| 98 | |
true); |
| 99 | |
|
| 100 | 0 | streamDestino.flush(); |
| 101 | 0 | streamOrigem.close(); |
| 102 | 0 | streamDestino.close(); |
| 103 | |
|
| 104 | 0 | completePendingCommand(); |
| 105 | 0 | } |
| 106 | |
|
| 107 | |
|
| 108 | |
|
| 109 | |
|
| 110 | |
|
| 111 | |
|
| 112 | |
|
| 113 | |
|
| 114 | |
|
| 115 | |
@Override |
| 116 | |
public void cd(String diretorioFilho) throws IOException, SyncException { |
| 117 | 0 | changeWorkingDirectory(getSyncFolder()); |
| 118 | 0 | Util.out.println(printWorkingDirectory()); |
| 119 | 0 | changeWorkingDirectory(diretorioFilho); |
| 120 | 0 | if (getReplyCode() != FTPReply.CODE_250) { |
| 121 | 0 | Util.log(getSyncFolder() + File.separator + diretorioFilho + " não existe..criando"); |
| 122 | 0 | if (!makeDirectory(diretorioFilho)) { |
| 123 | 0 | throw new SyncException("[FTP.cd]/ERRO: não foi possível criar diretório " + diretorioFilho + " verifique suas permissões com o provedor"); |
| 124 | |
} |
| 125 | |
} |
| 126 | 0 | pwd(); |
| 127 | 0 | Util.log("ok cd " + printWorkingDirectory()); |
| 128 | 0 | } |
| 129 | |
|
| 130 | |
|
| 131 | |
|
| 132 | |
|
| 133 | |
|
| 134 | |
|
| 135 | |
|
| 136 | |
|
| 137 | |
|
| 138 | |
|
| 139 | |
|
| 140 | |
|
| 141 | |
@Override |
| 142 | |
public boolean makeDirectory(String pathName) throws IOException { |
| 143 | 0 | if (pathName.startsWith("/")) { |
| 144 | 0 | changeWorkingDirectory("/"); |
| 145 | 0 | pathName = pathName.substring(1); |
| 146 | |
} |
| 147 | 0 | Util.out.println(super.printWorkingDirectory()); |
| 148 | 0 | String[] dirs = pathName.split("/"); |
| 149 | 0 | for (String dir : dirs) { |
| 150 | 0 | if (!super.printWorkingDirectory().endsWith(dir)) { |
| 151 | 0 | super.changeWorkingDirectory(dir); |
| 152 | 0 | if (!FTPReply.isPositiveCompletion(super.getReplyCode())) { |
| 153 | 0 | super.makeDirectory(dir); |
| 154 | 0 | super.changeWorkingDirectory(dir); |
| 155 | 0 | if (!FTPReply.isPositiveCompletion(super.getReplyCode())) { |
| 156 | 0 | return false; |
| 157 | |
} |
| 158 | |
} |
| 159 | |
} |
| 160 | |
} |
| 161 | 0 | return (getReplyCode() == FTPReply.CODE_250 || getReplyCode() == FTPReply.CODE_250); |
| 162 | |
} |
| 163 | |
|
| 164 | |
|
| 165 | |
|
| 166 | |
|
| 167 | |
|
| 168 | |
|
| 169 | |
|
| 170 | |
|
| 171 | |
@Override |
| 172 | |
public boolean connect() { |
| 173 | 0 | boolean conectado = false; |
| 174 | |
|
| 175 | 0 | ftpHost = Util.getProperty("servidorFTP"); |
| 176 | 0 | ftpPort = Util.getConfig().getInt("FTPport"); |
| 177 | |
|
| 178 | 0 | String ftpProxyHost = Util.getProperty("FTPproxyHost"); |
| 179 | |
int ftpProxyPort; |
| 180 | |
try { |
| 181 | 0 | ftpProxyPort = Util.getConfig().getInt("FTPproxyPort"); |
| 182 | 0 | } catch (Exception e) { |
| 183 | 0 | ftpProxyPort = 0; |
| 184 | 0 | } |
| 185 | |
|
| 186 | 0 | Util.log("Iniciando conexão com " + ftpHost); |
| 187 | |
try { |
| 188 | |
|
| 189 | 0 | FTPClientConfig auxConfig = new FTPClientConfig(FTPClientConfig.SYST_NT); |
| 190 | 0 | configure(auxConfig); |
| 191 | 0 | Util.out.println("Timeout (antes): " + getDefaultTimeout()); |
| 192 | 0 | setDefaultTimeout(25000); |
| 193 | 0 | Util.out.println("Timeout (depois): " + getDefaultTimeout()); |
| 194 | |
|
| 195 | |
|
| 196 | |
|
| 197 | |
|
| 198 | 0 | if (ftpProxyHost == null && ftpProxyPort != 0) { |
| 199 | 0 | System.getProperties().put("ftp.proxyHost", ftpProxyHost); |
| 200 | 0 | System.getProperties().put("ftp.proxyPort", ftpProxyPort); |
| 201 | |
} |
| 202 | |
|
| 203 | 0 | super.connect(ftpHost, ftpPort); |
| 204 | 0 | reply = getReplyCode(); |
| 205 | |
|
| 206 | 0 | if (!FTPReply.isPositiveCompletion(reply)) { |
| 207 | 0 | disconnect("[FtpClient.connect]/ERRO: não foi possivel conectar"); |
| 208 | 0 | return false; |
| 209 | |
} |
| 210 | 0 | Util.log("ok " + ftpHost + " encontrado.. autenticando.."); |
| 211 | |
|
| 212 | 0 | SyncEvent ev = null; |
| 213 | 0 | if (syncListener != null) { |
| 214 | 0 | ev = new SyncEvent(this); |
| 215 | |
} |
| 216 | 0 | reply = FTPReply.NOT_LOGGED_IN; |
| 217 | |
do { |
| 218 | |
|
| 219 | 0 | if (syncListener != null && ev != null) { |
| 220 | 0 | syncListener.logonStarted(ev); |
| 221 | |
} |
| 222 | 0 | Util.log("servidor: " + ftpHost + " em " + ftpRoot + "\nsolicitando conexão..."); |
| 223 | |
|
| 224 | 0 | login(usuario, new String(senha)); |
| 225 | 0 | Util.log("usuário: " + usuario + " senha: ***"); |
| 226 | 0 | reply = getReplyCode(); |
| 227 | 0 | retry--; |
| 228 | |
|
| 229 | |
|
| 230 | 0 | } while (reply != FTPReply.USER_LOGGED_IN && retry >= 0); |
| 231 | |
|
| 232 | 0 | if (reply != FTPReply.USER_LOGGED_IN) { |
| 233 | 0 | disconnect("[FtpClient.connect]/ERRO: login/senha incorreto."); |
| 234 | 0 | return conectado; |
| 235 | |
} else { |
| 236 | |
|
| 237 | 0 | BancoImagem.getBancoImagem().setUserFTP(getUsuario()); |
| 238 | 0 | BancoImagem.getBancoImagem().setPasswordFTP(getSenha()); |
| 239 | |
} |
| 240 | |
|
| 241 | 0 | Util.log("ok conexão aceita.."); |
| 242 | |
|
| 243 | |
|
| 244 | 0 | setFileType(FTPClient.BINARY_FILE_TYPE); |
| 245 | |
|
| 246 | |
|
| 247 | |
|
| 248 | |
|
| 249 | |
|
| 250 | 0 | changeWorkingDirectory(ftpRoot); |
| 251 | 0 | if (getReplyCode() != FTPReply.CODE_250) { |
| 252 | 0 | Util.log(ftpRoot + " não existe..criando"); |
| 253 | 0 | if (makeDirectory(ftpRoot)) { |
| 254 | 0 | Util.log("[FtpClient.connect]/ERRO: não foi possível criar diretório " + ftpRoot + " Retorno: " + reply); |
| 255 | 0 | disconnect("não foi possível criar diretório"); |
| 256 | 0 | return conectado; |
| 257 | |
} |
| 258 | 0 | changeWorkingDirectory(ftpRoot); |
| 259 | 0 | reply = getReplyCode(); |
| 260 | 0 | if (reply != FTPReply.CODE_250) { |
| 261 | 0 | disconnect("[FtpClient.connect]/ERRO: não foi possível entrar no diretório " + ftpRoot + " que foi recém criado."); |
| 262 | 0 | return conectado; |
| 263 | |
} |
| 264 | |
} |
| 265 | 0 | conectado = true; |
| 266 | 0 | getSyncListener().connected(new SyncEvent(this)); |
| 267 | 0 | } catch (Exception e) { |
| 268 | 0 | conectado = false; |
| 269 | 0 | log.error(e); |
| 270 | 0 | disconnect("[FtpClient.connect]/ERRO: não foi possivel manter esta conexão"); |
| 271 | 0 | } |
| 272 | |
|
| 273 | 0 | return conectado; |
| 274 | |
|
| 275 | |
} |
| 276 | |
|
| 277 | |
|
| 278 | |
|
| 279 | |
|
| 280 | |
|
| 281 | |
|
| 282 | |
@Override |
| 283 | |
public void disconnect(String msg) { |
| 284 | |
try { |
| 285 | 0 | Util.log("Desconectando (" + msg + ") ok"); |
| 286 | 0 | super.disconnect(); |
| 287 | 0 | } catch (Exception e) { |
| 288 | 0 | Util.log("Erro ao tentar desconectar."); |
| 289 | |
} finally { |
| 290 | 0 | Util.log(msg); |
| 291 | |
try { |
| 292 | |
|
| 293 | |
|
| 294 | 0 | Iterator iter = listFTP.iterator(); |
| 295 | 0 | while (iter.hasNext()) { |
| 296 | 0 | Arquivo a = new Arquivo((List) iter.next()); |
| 297 | |
|
| 298 | 0 | if (!a.getStatus().startsWith("ok")) { |
| 299 | 0 | CacheFTP.getCache().addCommand(a.getAcao(), a.getAlbumID(), a.getFotoID()); |
| 300 | |
} |
| 301 | 0 | } |
| 302 | 0 | } catch (Exception e) { |
| 303 | 0 | } |
| 304 | |
|
| 305 | 0 | if (syncListener != null) { |
| 306 | 0 | syncListener.disconnected(new SyncEvent(this)); |
| 307 | |
} |
| 308 | |
} |
| 309 | 0 | } |
| 310 | |
|
| 311 | |
|
| 312 | |
|
| 313 | |
|
| 314 | |
|
| 315 | |
|
| 316 | |
|
| 317 | |
|
| 318 | |
@Override |
| 319 | |
public void loadSyncCache() { |
| 320 | |
|
| 321 | 0 | Iterator<ComandoFTP> i = CacheFTP.getCache().iterator(); |
| 322 | |
String linha; |
| 323 | 0 | Util.out.println("Numero de linhas: " + CacheFTP.getCache().toString()); |
| 324 | |
|
| 325 | 0 | while (i.hasNext()) { |
| 326 | 0 | linha = i.next().toString(); |
| 327 | 0 | if (linha.startsWith("3")) { |
| 328 | 0 | loadSyncCacheLine(linha); |
| 329 | |
} |
| 330 | |
} |
| 331 | |
|
| 332 | 0 | i = CacheFTP.getCache().iterator(); |
| 333 | 0 | while (i.hasNext()) { |
| 334 | 0 | linha = i.next().toString(); |
| 335 | 0 | if (linha.startsWith("1")) { |
| 336 | 0 | loadSyncCacheLine(linha); |
| 337 | |
} |
| 338 | |
} |
| 339 | |
|
| 340 | 0 | i = CacheFTP.getCache().iterator(); |
| 341 | 0 | while (i.hasNext()) { |
| 342 | 0 | linha = i.next().toString(); |
| 343 | 0 | if (linha.startsWith("2")) { |
| 344 | 0 | loadSyncCacheLine(linha); |
| 345 | |
} |
| 346 | |
} |
| 347 | |
|
| 348 | |
|
| 349 | 0 | CacheFTP.getCache().clear(); |
| 350 | |
|
| 351 | 0 | } |
| 352 | |
|
| 353 | |
|
| 354 | |
|
| 355 | |
|
| 356 | |
|
| 357 | |
|
| 358 | |
|
| 359 | |
|
| 360 | |
|
| 361 | |
@Override |
| 362 | |
public void loadSyncCacheLine(String linha) { |
| 363 | 0 | StringTokenizer tok = new StringTokenizer(linha); |
| 364 | 0 | int acao = -1; |
| 365 | 0 | int albumID = -1; |
| 366 | 0 | int fotoID = -1; |
| 367 | |
|
| 368 | 0 | Util.out.println("carrega: " + linha); |
| 369 | |
|
| 370 | 0 | if (tok.countTokens() == 3) { |
| 371 | 0 | acao = Integer.parseInt(tok.nextToken()); |
| 372 | 0 | albumID = Integer.parseInt(tok.nextToken()); |
| 373 | 0 | fotoID = Integer.parseInt(tok.nextToken()); |
| 374 | |
} else { |
| 375 | |
|
| 376 | 0 | Util.out.println("erro: " + linha); |
| 377 | 0 | return; |
| 378 | |
} |
| 379 | |
|
| 380 | |
|
| 381 | 0 | File f = new File(getAlbunsRoot(), Integer.toString(albumID)); |
| 382 | 0 | String[] ls = f.list(); |
| 383 | |
|
| 384 | 0 | switch (acao) { |
| 385 | |
|
| 386 | |
case CacheFTP.DELETE: |
| 387 | |
|
| 388 | |
case CacheFTP.DOWNLOAD: |
| 389 | 0 | if (fotoID == 0) { |
| 390 | |
|
| 391 | 0 | listaArquivos.add(new Arquivo(linha, acao, albumID, 0, "* todos")); |
| 392 | |
} else { |
| 393 | |
|
| 394 | 0 | listaArquivos.add(new Arquivo(linha, acao, albumID, fotoID, "_a" + fotoID + ".jpg")); |
| 395 | 0 | listaArquivos.add(new Arquivo(linha, acao, albumID, fotoID, "_b" + fotoID + ".jpg")); |
| 396 | 0 | listaArquivos.add(new Arquivo(linha, acao, albumID, fotoID, "_c" + fotoID + ".jpg")); |
| 397 | 0 | listaArquivos.add(new Arquivo(linha, acao, albumID, fotoID, "_d" + fotoID + ".jpg")); |
| 398 | 0 | if (isEnviarAltaResolucao() == true) { |
| 399 | 0 | listaArquivos.add(new Arquivo(linha, acao, albumID, fotoID, fotoID + ".jpg")); |
| 400 | 0 | listaArquivos.add(new Arquivo(linha, acao, albumID, fotoID, fotoID + ".zip")); |
| 401 | |
} |
| 402 | 0 | listaArquivos.add(new Arquivo(linha, acao, albumID, 0, albumID + ".xml")); |
| 403 | 0 | listaArquivos.add(new Arquivo(linha, acao, albumID, 0, albumID + ".js")); |
| 404 | |
} |
| 405 | 0 | break; |
| 406 | |
|
| 407 | |
case CacheFTP.UPLOAD: |
| 408 | 0 | if (fotoID == 0) { |
| 409 | |
|
| 410 | 0 | Album.getAlbum().loadAlbum(albumID); |
| 411 | 0 | for (PhotoDTO atual : Album.getAlbum().getFotos()) { |
| 412 | 0 | fotoID = atual.getFotoID(); |
| 413 | 0 | listaArquivos.add(new Arquivo(linha, acao, albumID, fotoID, "_a" + fotoID + ".jpg")); |
| 414 | 0 | listaArquivos.add(new Arquivo(linha, acao, albumID, fotoID, "_b" + fotoID + ".jpg")); |
| 415 | 0 | listaArquivos.add(new Arquivo(linha, acao, albumID, fotoID, "_c" + fotoID + ".jpg")); |
| 416 | 0 | listaArquivos.add(new Arquivo(linha, acao, albumID, fotoID, "_d" + fotoID + ".jpg")); |
| 417 | 0 | if (isEnviarAltaResolucao() == true) { |
| 418 | 0 | listaArquivos.add(new Arquivo(linha, acao, albumID, fotoID, fotoID + ".jpg")); |
| 419 | 0 | listaArquivos.add(new Arquivo(linha, acao, albumID, fotoID, fotoID + ".zip")); |
| 420 | |
} |
| 421 | |
} |
| 422 | 0 | listaArquivos.add(new Arquivo(linha, acao, albumID, 0, albumID + ".xml")); |
| 423 | 0 | listaArquivos.add(new Arquivo(linha, acao, albumID, 0, albumID + ".js")); |
| 424 | |
} else { |
| 425 | |
|
| 426 | 0 | Util.out.println("Upload alta: " + isEnviarAltaResolucao()); |
| 427 | 0 | for (String fileName : ls) { |
| 428 | 0 | if ((fileName.startsWith("_") && fileName.toLowerCase().endsWith(fotoID + ".jpg")) |
| 429 | |
|| (isEnviarAltaResolucao() && fileName.toLowerCase().endsWith(fotoID + ".zip")) |
| 430 | |
|| (isEnviarAltaResolucao() && fileName.toLowerCase().endsWith(fotoID + ".jpg"))) { |
| 431 | |
|
| 432 | 0 | Arquivo a = new Arquivo(linha, acao, albumID, fotoID, fileName); |
| 433 | 0 | listaArquivos.add(a); |
| 434 | |
} |
| 435 | |
} |
| 436 | |
} |
| 437 | |
break; |
| 438 | |
} |
| 439 | 0 | } |
| 440 | |
|
| 441 | |
|
| 442 | |
|
| 443 | |
|
| 444 | |
|
| 445 | |
|
| 446 | |
@Override |
| 447 | |
public String getSyncFolder() { |
| 448 | 0 | return ftpRoot; |
| 449 | |
} |
| 450 | |
|
| 451 | |
|
| 452 | |
|
| 453 | |
|
| 454 | |
|
| 455 | |
|
| 456 | |
@Override |
| 457 | |
public void setSyncFolder(String ftpRoot) { |
| 458 | 0 | this.ftpRoot = ftpRoot; |
| 459 | 0 | } |
| 460 | |
|
| 461 | |
|
| 462 | |
|
| 463 | |
|
| 464 | |
|
| 465 | |
|
| 466 | |
@Override |
| 467 | |
public SyncListener getSyncListener() { |
| 468 | 0 | return syncListener; |
| 469 | |
} |
| 470 | |
|
| 471 | |
|
| 472 | |
|
| 473 | |
|
| 474 | |
|
| 475 | |
|
| 476 | |
@Override |
| 477 | |
public void setSyncListener(SyncListener listener) { |
| 478 | 0 | this.syncListener = listener; |
| 479 | 0 | } |
| 480 | |
|
| 481 | |
|
| 482 | |
|
| 483 | |
|
| 484 | |
|
| 485 | |
|
| 486 | |
@Override |
| 487 | |
public CopyStreamListener getCopyStreamListener() { |
| 488 | 0 | return copyStreamListener; |
| 489 | |
} |
| 490 | |
|
| 491 | |
|
| 492 | |
|
| 493 | |
|
| 494 | |
|
| 495 | |
|
| 496 | |
@Override |
| 497 | |
public void setCopyStreamListener(CopyStreamListener copyStreamListener) { |
| 498 | 0 | this.copyStreamListener = copyStreamListener; |
| 499 | 0 | } |
| 500 | |
|
| 501 | |
|
| 502 | |
|
| 503 | |
|
| 504 | |
|
| 505 | |
|
| 506 | |
@Override |
| 507 | |
public String getUsuario() { |
| 508 | 0 | return usuario; |
| 509 | |
} |
| 510 | |
|
| 511 | |
|
| 512 | |
|
| 513 | |
|
| 514 | |
|
| 515 | |
|
| 516 | |
@Override |
| 517 | |
public void setUsuario(String usuario) { |
| 518 | 0 | this.usuario = usuario; |
| 519 | 0 | } |
| 520 | |
|
| 521 | |
|
| 522 | |
|
| 523 | |
|
| 524 | |
|
| 525 | |
|
| 526 | |
@Override |
| 527 | |
public char[] getSenha() { |
| 528 | 0 | return senha; |
| 529 | |
} |
| 530 | |
|
| 531 | |
|
| 532 | |
|
| 533 | |
|
| 534 | |
|
| 535 | |
|
| 536 | |
@Override |
| 537 | |
public void setSenha(char[] senha) { |
| 538 | 0 | this.senha = senha; |
| 539 | 0 | } |
| 540 | |
|
| 541 | |
|
| 542 | |
|
| 543 | |
|
| 544 | |
|
| 545 | |
|
| 546 | |
@Override |
| 547 | |
public ArrayList<Arquivo> getListaArquivos() { |
| 548 | 0 | return listaArquivos; |
| 549 | |
} |
| 550 | |
|
| 551 | |
|
| 552 | |
|
| 553 | |
|
| 554 | |
|
| 555 | |
|
| 556 | |
public void setListaArquivos(ArrayList<Arquivo> _listaArquivos) { |
| 557 | 0 | this.listaArquivos = _listaArquivos; |
| 558 | 0 | } |
| 559 | |
|
| 560 | |
|
| 561 | |
|
| 562 | |
|
| 563 | |
|
| 564 | |
|
| 565 | |
|
| 566 | |
@Override |
| 567 | |
public boolean isEnviarAltaResolucao() { |
| 568 | 0 | return enviarAltaResolucao; |
| 569 | |
} |
| 570 | |
|
| 571 | |
|
| 572 | |
|
| 573 | |
|
| 574 | |
|
| 575 | |
|
| 576 | |
|
| 577 | |
public File getAlbunsRoot() { |
| 578 | 0 | return albunsRoot; |
| 579 | |
} |
| 580 | |
} |