Package org.fenixedu.academic.ui.struts.action.teacher.siteArchive

Examples of org.fenixedu.academic.ui.struts.action.teacher.siteArchive.Resource


        for (Rule rule : this.resource.getRules()) {
            if (rule.matches(url)) {
                transformedUrl = rule.transform(url);

                Resource resource = rule.getResource(url, transformedUrl);
                if (resource != null) {
                    this.fetcher.queue(resource);
                }

                break;
View Full Code Here


        Fetcher fetcher = new Fetcher(archive, request, response);

        for (ProjectSubmission submission : projectSubmissions) {
            StudentGroup group = submission.getStudentGroup();

            fetcher.queue(new Resource(group.getGroupNumber() + getStudentsISTID(group) + "/"
                    + submission.getProjectSubmissionFile().getFilename(), submission.getProjectSubmissionFile().getDownloadUrl()));
        }

        fetcher.process();
        archive.finish();
View Full Code Here

        Fetcher fetcher = new Fetcher(archive, request, response);

        for (ProjectSubmission submission : subList) {
            StudentGroup group = submission.getStudentGroup();

            fetcher.queue(new Resource(group.getGroupNumber() + getStudentsISTID(group) + "/"
                    + submission.getProjectSubmissionFile().getFilename(), submission.getProjectSubmissionFile().getDownloadUrl()));
        }

        fetcher.process();
        archive.finish();
View Full Code Here

     * Creates a new resource with a name that results from applying the given
     * name pattern to the url. The <tt>transformedUrl</tt> is not used.
     */
    @Override
    public Resource getResource(String url, String transformedUrl) {
        Resource resource = new Resource(transform(url, getResourceName()), url);
        resource.addAllRules(this.rules);

        return resource;
    }
View Full Code Here

TOP

Related Classes of org.fenixedu.academic.ui.struts.action.teacher.siteArchive.Resource

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.