Package eu.scape_project.planning.model

Examples of eu.scape_project.planning.model.RDFPolicy


        this.preservationCases = preservationCases;
    }

    public void init() {
        preservationCases.clear();
        RDFPolicy policy = user.getUserGroup().getLatestPolicy();

        if (policy == null) {
            return;
        }

        try {
            resolvePreservationCases(policy.getPolicy());
        } catch (Exception e) {
            log.error("Failed to load policy preservationCases.", e);
        }
    }
View Full Code Here


        try {
            String content = IOUtils.toString(input, "UTF-8");
            input.close();

            resolvePreservationCases(content);
            user.getUserGroup().getPolicies().add(new RDFPolicy(content));
            log.info("Imported new policies for user " + user.getUsername());
            return true;
        } catch (Exception e) {
            log.error("Failed to import policies for user " + user.getUsername(), e);
        }
View Full Code Here

TOP

Related Classes of eu.scape_project.planning.model.RDFPolicy

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.