Examples of PermissionsDeploymentDescriptorFile


Examples of com.sun.enterprise.deployment.io.PermissionsDeploymentDescriptorFile

        if (permissionsXml.exists()) {
            FileInputStream fi = null;
            try {
                //this one uses the Node approach
                PermissionsDeploymentDescriptorFile pddf = new PermissionsDeploymentDescriptorFile();
               
                if (serviceLocator != null) {
                    dasConfig = serviceLocator.getService(DasConfig.class);
                    if (dasConfig != null) {
                        String xmlValidationLevel = dasConfig.getDeployXmlValidation();
                        if (xmlValidationLevel.equals("none"))
                            pddf.setXMLValidation(false);
                        else
                            pddf.setXMLValidation(true);                   
                        pddf.setXMLValidationLevel(xmlValidationLevel);
                    }
                }
                   
                fi = new FileInputStream(permissionsXml);
                PermissionsDescriptor pd = (PermissionsDescriptor)pddf.read(fi);
               
                declaredPermXml = pd.getDeclaredPermissions();
               
            } catch (SAXParseException e) {
                throw new SecurityException(e);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.