Subversion Repositories Integrator Subversion

Rev

Rev 531 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 531 Rev 533
Line 72... Line 72...
72
        }
72
        }
73
       
73
       
74
        /*****************************************/
74
        /*****************************************/
75
       
75
       
76
        @Override
76
        @Override
77
        public String retornarCaminhoImagem(String pasta, String nomeArquivo, String extensaoArquivo) {
-
 
-
 
77
        public String retornarCaminhoImagem(String pasta, String pastaPadrao, String nomeArquivo, String extensaoArquivo) {
78
                File foto = new File(pasta + nomeArquivo + "." + StringUtil.setarLowerCase(extensaoArquivo));
78
                File foto = new File(pasta + nomeArquivo + "." + StringUtil.setarLowerCase(extensaoArquivo));
79
                return foto.exists()? pasta + nomeArquivo + "." + StringUtil.setarLowerCase(extensaoArquivo) : pasta + "SEM_IMAGEM.png";
-
 
-
 
79
                return foto.exists()? pastaPadrao + nomeArquivo + "." + StringUtil.setarLowerCase(extensaoArquivo) : pastaPadrao + "SEM_IMAGEM.png";
80
        }
80
        }
81
       
81
       
82
        @Override
82
        @Override
83
        public ImagemDTO uploadImagem(UploadedFile e, String nomeArquivo, String caminhoPasta) {
83
        public ImagemDTO uploadImagem(UploadedFile e, String nomeArquivo, String caminhoPasta) {
84
                ImagemDTO imagemAdicionada = gerarArquivo(e, nomeArquivo);
84
                ImagemDTO imagemAdicionada = gerarArquivo(e, nomeArquivo);