Examples of save()


Examples of org.apache.chemistry.opencmis.client.api.TransientFolder.save()

        assertEquals(folder2.getProperty(PropertyIds.NAME).getValueAsString(),
                FixtureData.FOLDER1_NAME.toString());
        assertEquals(tfolder.getProperty(PropertyIds.NAME).getValueAsString(),
                newFolderName);

        tfolder.save();
        session2.clear();

        ObjectId id = session2.createObjectId(tfolder.getId());

        Folder folder3 = (Folder) session2.getObject(id);
View Full Code Here

Examples of org.apache.cocoon.components.xmlform.Form.save()

            // create new form
            form = new Form(getFormId(), getFormModel());
            Validator v = getFormValidator();

            form.setValidator(v);
            form.save(getObjectModel(), getFormScope());
            return form;
        }
    }

    public Map act(Redirector redirector, SourceResolver resolver,
View Full Code Here

Examples of org.apache.cocoon.forms.flow.java.FormInstance.save()

        // Load the Bean to the form
        form.load(employee);
        // Let Cocoon Forms handle the form
        form.show("form/employee");
        // Update the Bean based on user input
        form.save(employee);
        // Update Bean in Database
        broker.store(employee);
        // Send response to the user
        doShowEmployee();
    }
View Full Code Here

Examples of org.apache.commons.compress.Archive.save()

      if (files != null) {
        for (File file: files) {
          archiver.add(file);
        }
      }
      archiver.save(new File(archive));
      manager.completeWorkItem(workItem.getId(), null);
    } catch (Throwable t) {
      t.printStackTrace();
      manager.abortWorkItem(workItem.getId());
    }
View Full Code Here

Examples of org.apache.commons.configuration.FileConfiguration.save()

        if ( configuration instanceof FileConfiguration )
        {
            FileConfiguration fileConfiguration = (FileConfiguration) configuration;
            try
            {
                fileConfiguration.save();
            }
            catch ( ConfigurationException e )
            {
                throw new RegistryException( e.getMessage(), e );
            }
View Full Code Here

Examples of org.apache.commons.configuration.PropertiesConfiguration.save()

      {
        // interpolate the file so that no includes are required
        PropertiesConfiguration c2 = (PropertiesConfiguration) _fileConfiguration.interpolatedConfiguration();

        // save the file
        c2.save(cn);
      }
      return cn.getCanonicalPath();

    }
    catch (Exception ex)
View Full Code Here

Examples of org.apache.commons.configuration.XMLConfiguration.save()

    {
        XMLConfiguration testConfiguration = new XMLConfiguration();
        testConfiguration.setProperty("virtualhost." + hostName + ".store.class",
                getTestProfileMessageStoreClassName());
        testConfiguration.setProperty("virtualhost." + hostName + ".store.environment-path", storeLocation);
        testConfiguration.save(configFile);
        return testConfiguration;
    }

    private void assertNewVirtualHost(Map<String, Object> hostDetails)
    {
View Full Code Here

Examples of org.apache.commons.configuration2.io.FileHandler.save()

        File file = folder.newFile("sys.properties");
        PropertiesConfiguration pconfig = new PropertiesConfiguration();
        FileHandler handler = new FileHandler(pconfig);
        pconfig.addProperty("fromFile", Boolean.TRUE);
        handler.setFile(file);
        handler.save();
        SystemConfiguration.setSystemProperties(handler.getBasePath(),
                handler.getFileName());
        SystemConfiguration sconf = new SystemConfiguration();
        assertTrue("Property from file not found", sconf.getBoolean("fromFile"));
    }
View Full Code Here

Examples of org.apache.directory.ldapstudio.schemas.model.Schema.save()

            if ( schema != null )
            {
                try
                {
                    schema.save();
                }
                catch ( Exception e )
                {
                    ErrorDialog
                        .openError(
View Full Code Here

Examples of org.apache.felix.sigil.eclipse.model.project.ISigilProjectModel.save()

                {
                    @Override
                    protected void execute(IProgressMonitor monitor) throws CoreException
                    {
                        mod.getBundle().getBundleInfo().addExport(pe);
                        mod.save(monitor);
                    }
                };

                SigilUI.runWorkspaceOperation(op, null);
                e = pe;
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.