Package org.apache.jackrabbit.spi.commons.privilege

Examples of org.apache.jackrabbit.spi.commons.privilege.PrivilegeDefinitionReader


    }

    public void loadPrivileges(InputStream in, String systemId)
            throws IOException {
        try {
            PrivilegeDefinitionReader reader = new PrivilegeDefinitionReader(in, "text/xml");
            Collections.addAll(privileges.getDefinitions(), reader.getPrivilegeDefinitions());
            for (Map.Entry<String, String> e: reader.getNamespaces().entrySet()) {
                privileges.getNamespaceMapping().setMapping(e.getKey(), e.getValue());
            }
        } catch (ParseException e) {
            log.error("Error while reading Privileges: {}", e.toString());
            IOException io = new IOException("Error while reading privileges.");
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.spi.commons.privilege.PrivilegeDefinitionReader

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.