Examples of save()


Examples of org.apache.felix.utils.properties.Properties.save()

        for (String key : propertiesToRemove) {
            p.remove(key);
        }
        // save the cfg file
        storage.mkdirs();
        p.save();
        updateFileInstall(storageFile);
    }

    /**
     * Trigger felix fileinstall to update the config so there is no delay till it polls the file
View Full Code Here

Examples of org.apache.fop.afp.AFPPaintingState.save()

        // Image positioning
        AFPObjectAreaInfo objectAreaInfo = AFPImageHandler.createObjectAreaInfo(paintingState, pos);
        graphicsObjectInfo.setObjectAreaInfo(objectAreaInfo);

        paintingState.save(); // save
        AffineTransform placement = new AffineTransform();
        placement.translate(pos.x, pos.y);
        paintingState.concatenate(placement);

        //Set up painter and target
View Full Code Here

Examples of org.apache.fop.fonts.FontCache.save()

        List fontInfoList = buildFontListFromConfiguration(cfg,
                userAgent.getFontBaseURL(), fontResolver, strict,
                fontCache);
       
        if (fontCache != null && fontCache.hasChanged()) {
            fontCache.save();
        }
        printRenderer.addFontList(fontInfoList);
    }

    /**
 
View Full Code Here

Examples of org.apache.ftpserver.ftplet.UserManager.save()

        UserFactory userFact = new UserFactory();
        userFact.setName("myNewUser");
        userFact.setPassword("secret");
        userFact.setHomeDirectory("ftproot");
        User user = userFact.createUser();
        um.save(user);
    }
}
View Full Code Here

Examples of org.apache.ftpserver.usermanager.PropertiesUserManager.save()

      ftpUser.setHomeDirectory( ftpHomeDir.getAbsolutePath() );
      Authority[] auths = { new WritePermission() };
      ftpUser.setAuthorities( auths );
          ftpUser.setEnabledtrue );
          propertiesUserManager.configure();
      propertiesUserManager.save( ftpUser );
     
      BaseUser adminUser = new BaseUser();
      adminUser.setName( "admin" );
      adminUser.setHomeDirectory( ftpHomeDir.getAbsolutePath() );
      propertiesUserManager.save( adminUser );
View Full Code Here

Examples of org.apache.geronimo.deployment.xbeans.ServiceDocument.save()

                targetDir.mkdirs();
            }
            File output = new File(targetDir, "geronimo-dependency.xml");
            XmlOptions xmlOptions = new XmlOptions();
            xmlOptions.setSavePrettyPrint();
            serviceDocument.save(output, xmlOptions);
        }
    }
}
View Full Code Here

Examples of org.apache.geronimo.system.configuration.LocalAttributeManager.save()

                serverInfo);
        attributeStore.load();
        for (ModuleType module : overrides.getModule()) {
            Artifact artifact = Artifact.create(module.getName());
            attributeStore.setModuleGBeans(artifact, module.getGbean(), module.isLoad(), module.getCondition());
            attributeStore.save();
        }
        if (overrides.getConfiguration().size() > 0) {
            throw new UnsupportedOperationException("Use modules, not configurations");
        }
    }
View Full Code Here

Examples of org.apache.geronimo.system.configuration.PluginAttributeStore.save()

        }
        PluginAttributeStore attributeStore = serverInstance.getAttributeStore();
        for (ModuleType module: overrides.getModule()) {
            Artifact artifact = Artifact.create(module.getName());
            attributeStore.setModuleGBeans(artifact, module.getGbean(), module.isLoad(), module.getCondition());
            attributeStore.save();
        }
        if (overrides.getConfiguration().size() > 0) {
            throw new UnsupportedOperationException("Use modules, not configurations");
        }
    }
View Full Code Here

Examples of org.apache.geronimo.xbeans.geronimo.j2ee.GerApplicationDocument.save()

        ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
        XmlOptions options = new XmlOptions();
        options.setSavePrettyPrint();
        options.setSavePrettyPrintIndent(4);
        options.setUseDefaultNamespace();
        appDocument.save(outputStream, options);
        outputStream.close();
        deploymentPlan = new String(outputStream.toByteArray(), "US-ASCII");
        return deploymentPlan;
    }
View Full Code Here

Examples of org.apache.geronimo.xbeans.geronimo.web.GerWebAppDocument.save()

        ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
        XmlOptions options = new XmlOptions();
        options.setSavePrettyPrint();
        options.setSavePrettyPrintIndent(4);
        options.setUseDefaultNamespace();
        webAppDocument.save(outputStream, options);
        outputStream.close();
        deploymentPlan = new String(outputStream.toByteArray(), "US-ASCII");
        return deploymentPlan;
    }
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.