Examples of save()


Examples of org.apache.archiva.metadata.repository.MetadataRepository.save()

                                artifact.getVersion();
                            MavenArtifactFacet mavenArtifactFacetToCompare = new MavenArtifactFacet();
                            mavenArtifactFacetToCompare.setClassifier( artifact.getClassifier() );
                            metadataRepository.removeArtifact( repositoryId, groupId, artifactId, version,
                                                               mavenArtifactFacetToCompare );
                            metadataRepository.save();
                        }

                    }
                    else
                    {
View Full Code Here

Examples of org.apache.archiva.metadata.repository.RepositorySession.save()

                    }

                    triggerAuditEvent( repositoryId, path, AuditEvent.REMOVE_FILE );
                }
            }
            repositorySession.save();
        }

        catch ( ContentNotFoundException e )
        {
            throw new ArchivaRestServiceException( "Artifact does not exist: " + e.getMessage(), 400 );
View Full Code Here

Examples of org.apache.axiom.om.impl.builder.test.xmlbeans.OrderDocument.save()

        item = order.addNewItem();
        item.setPartId("O85-554-66");
        item.setQuantity(1);
       
        StringWriter out = new StringWriter();
        document.save(out);
        SAXOMBuilder builder = new SAXOMBuilder();
        document.save(builder, builder);
       
        assertXMLIdentical(compareXML(out.toString(), builder.getRootElement().toString()), true);
    }
View Full Code Here

Examples of org.apache.beehive.netui.compiler.model.schema.validator11.FormValidationDocument.save()

        //
        // Write the file.
        //
        XmlOptions options = new XmlOptions();
        options.setSavePrettyPrint();
        doc.save( outputStream, options );
    }
   
    protected String getHeaderComment( File mergeFile )
            throws FatalCompileTimeException
    {
View Full Code Here

Examples of org.apache.beehive.netui.tools.testrecorder.x2004.diffsession.RecorderDiffDocument.save()

    public static void createDiffFile( File diffFile, PlaybackSessionBean bean ) throws IOException {
        XmlOptions xmlOptions = new XmlOptions();
        xmlOptions.setSavePrettyPrint();
        xmlOptions.setSavePrettyPrintIndent( 3 );
        RecorderDiffDocument doc = createDiffSessionDocument( bean, xmlOptions );
        doc.save( diffFile, xmlOptions );
    }

    private static RecorderDiffDocument createDiffSessionDocument( PlaybackSessionBean bean, XmlOptions options ) {
        RecorderDiffDocument doc = RecorderDiffDocument.Factory.newInstance( options );
        RecorderDiffDocument.RecorderDiff diff = doc.addNewRecorderDiff();
View Full Code Here

Examples of org.apache.catalina.Store.save()

                Store store = ((PersistentManager) manager).getStore();
                if (store != null && session!=null &&
                    session.isValid() &&
                    !isSessionStale(session, System.currentTimeMillis())) {
                    // ((StandardSession)session).passivate();
                    store.save(session);
                    ((PersistentManager) manager).removeSuper(session);
                    session.recycle();
                } else {
                    if (container.getLogger().isDebugEnabled())
                        container.getLogger().debug("newsessionId store: " + store + " session: " +
View Full Code Here

Examples of org.apache.catalina.users.MemoryUserDatabase.save()

            Role user = memoryUserDatabase.createRole(AUTH_ROLE, AUTH_ROLE);
            memoryUserDatabase.createUser(
                    commandLineParams.basicAuthUser,
                    commandLineParams.basicAuthPw,
                    commandLineParams.basicAuthUser).addRole(user);
            memoryUserDatabase.save();
           
        } else if (System.getenv("BASIC_AUTH_USER") != null && System.getenv("BASIC_AUTH_PW") != null) {
           
            memoryUserDatabase.setReadonly(false);
            Role user = memoryUserDatabase.createRole(AUTH_ROLE, AUTH_ROLE);
View Full Code Here

Examples of org.apache.cayenne.project.Project.save()

        if (!chooseDestination(p)) {
            return false;
        }

        p.save();

        // update preferences domain key
        preference.rename(p.getMainFile().getAbsolutePath());

        getApplication().getFrameController().addToLastProjListAction(
View Full Code Here

Examples of org.apache.cayenne.project.ProjectSaver.save()

            getProjectController().getProjectWatcher().pauseWatching();

            ProjectSaver saver = getApplication().getInjector().getInstance(
                    ProjectSaver.class);
            saver.save(p);

            RenamedPreferences.removeOldPreferences();

            // if change DataChanelDescriptor name - as result change name of xml file
            // we will need change preferences path
View Full Code Here

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

        String filename2 = UUID.randomUUID().toString();
        tdoc2.setName(filename2);
        assertEquals(filename2, tdoc2.getName());

        ObjectId id2 = tdoc2.save();
        assertNotNull(id2);

        // set new content and save
        Document doc3 = (Document) session.getObject(id2, oc);
        TransientDocument tdoc3 = doc3.getTransientDocument();
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.