Subversion Repositories bacoAlunos

Rev

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

Rev 1478 Rev 1703
Line 208... Line 208...
208
        RepositoryService repositoryService = new RepositoryService();
208
        RepositoryService repositoryService = new RepositoryService();
209
        User owner = userSession.getUser();
209
        User owner = userSession.getUser();
210
 
210
 
211
        if(cu.getEvaluationStreamId() == null)
211
        if(cu.getEvaluationStreamId() == null)
212
        {
212
        {
213
            1.5.0/docs/api/java/lang/String.html">String identifier = repositoryService.storeRepositoryFile(new 1.5.0/docs/api/java/io/FileInputStream.html">FileInputStream(path), "application/pdf", "pdf",((int) new 1.5.0/docs/api/java/io/File.html">File(path).length()), cu.getCode() + "-evaluation.pdf", "courseunit.evaluation.description" + cu.getName(), ResourceAccessControlEnum.courseunitEvaluationDomain,owner);
213
            1.5.0/docs/api/java/lang/String.html">String identifier = repositoryService.storeRepositoryFile(new 1.5.0/docs/api/java/io/FileInputStream.html">FileInputStream(path), "application/pdf", "pdf",((int) new 1.5.0/docs/api/java/io/File.html">File(path).length()), cu.getCode() + "-evaluation.pdf", "courseunit.evaluation.description" + cu.getName(), ResourceAccessControlEnum.courseunitEvaluationDomain, null, owner);
214
            cu.setEvaluationStreamId(identifier);
214
            cu.setEvaluationStreamId(identifier);
215
        }
215
        }
216
        else
216
        else
217
        {
217
        {
218
            repositoryService.updateRepositoryFile(cu.getEvaluationStreamId(), new 1.5.0/docs/api/java/io/FileInputStream.html">FileInputStream(path),  "application/pdf", "pdf", ((int)new 1.5.0/docs/api/java/io/File.html">File(path).length()),cu.getCode() + "-evaluation.pdf", "evaluation.evaluation.description " + cu.getName(), ResourceAccessControlEnum.courseunitEvaluationDomain);
218
            repositoryService.updateRepositoryFile(cu.getEvaluationStreamId(), new 1.5.0/docs/api/java/io/FileInputStream.html">FileInputStream(path),  "application/pdf", "pdf", ((int)new 1.5.0/docs/api/java/io/File.html">File(path).length()),cu.getCode() + "-evaluation.pdf", "evaluation.evaluation.description " + cu.getName(), ResourceAccessControlEnum.courseunitEvaluationDomain);