Rev 1798 | Rev 1801 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1798 | Rev 1800 | ||
---|---|---|---|
Line 182... | Line 182... | ||
182 | public boolean sendPdfFtpIonline(CourseUnit cu, List<String> errors, UserSession u, FTPClient client, List<String> warns) throws 1.5.0/docs/api/java/io/IOException.html">IOException, 1.5.0/docs/api/javax/xml/transform/TransformerException.html">TransformerException, FOPException |
182 | public boolean sendPdfFtpIonline(CourseUnit cu, List<String> errors, UserSession u, FTPClient client, List<String> warns) throws 1.5.0/docs/api/java/io/IOException.html">IOException, 1.5.0/docs/api/javax/xml/transform/TransformerException.html">TransformerException, FOPException |
183 | { |
183 | { |
184 | RepositoryService repositoryService = new RepositoryService(); |
184 | RepositoryService repositoryService = new RepositoryService(); |
185 | if(cu.getProgramStreamId() != null && cu.getProgramStreamId().length()> 0) |
185 | if(cu.getProgramStreamId() != null && cu.getProgramStreamId().length()> 0) |
186 | { |
186 | { |
- | 187 | try |
|
- | 188 | { |
|
187 | RepositoryFileImpl repoFile = repositoryService.loadView(cu.getProgramStreamId()); |
189 | RepositoryFileImpl repoFile = repositoryService.loadView(cu.getProgramStreamId()); |
188 | 1.5.0/docs/api/java/lang/String.html">String path = generatePdfFile(cu, errors, u); |
190 | 1.5.0/docs/api/java/lang/String.html">String path = generatePdfFile(cu, errors, u); |
189 | sendPdfFtpIonline(cu,errors,u,path,repoFile.getLastVersion().getSaveDate(),client,warns); |
191 | sendPdfFtpIonline(cu,errors,u,path,repoFile.getLastVersion().getSaveDate(),client,warns); |
190 | return true; |
192 | return true; |
- | 193 | } |
|
- | 194 | catch(1.5.0/docs/api/java/lang/Throwable.html">Throwable e) |
|
- | 195 | { |
|
- | 196 | logger.error("Loading repository file: " + cu.getProgramStreamId() + " " + e.toString(),e); |
|
- | 197 | } |
|
191 | } |
198 | } |
192 | return false; |
199 | return false; |
193 | } |
200 | } |
194 | 201 | ||
195 | 1.5.0/docs/api/java/text/SimpleDateFormat.html">SimpleDateFormat sdf = new 1.5.0/docs/api/java/text/SimpleDateFormat.html">SimpleDateFormat("yyyy_MM_dd.HH_mm_ss"); |
202 | 1.5.0/docs/api/java/text/SimpleDateFormat.html">SimpleDateFormat sdf = new 1.5.0/docs/api/java/text/SimpleDateFormat.html">SimpleDateFormat("yyyy_MM_dd.HH_mm_ss"); |