Examples of save()


Examples of javax.enterprise.deploy.spi.DeploymentConfiguration.save()

        //connection manager properties
//        connectionDefinitionInstance1.setBlockingTimeout(3000);

        //check the results
        ByteArrayOutputStream baos = new ByteArrayOutputStream();
        rarConfiguration.save(baos);
        baos.flush();
        byte[] bytes = baos.toByteArray();
        baos.close();
        InputStream is = new ByteArrayInputStream(bytes);
        GerConnectorDocument gcDoc = GerConnectorDocument.Factory.parse(is);
View Full Code Here

Examples of javax.jcr.Item.save()

            log.debug("saving session");
            CommandHelper.getSession(ctx).save();
        } else {
            log.debug("saving node at " + path);
            Item i = CommandHelper.getItem(ctx, path);
            i.save();
        }

        return false;
    }
View Full Code Here

Examples of javax.jcr.Node.save()

        // reading the node and it's definition must succeed.
        assertTrue(testSession.nodeExists(childNPath));
        Node n = testSession.getNode(childNPath);

        n.addNode("someChild");
        n.save();
    }
}
View Full Code Here

Examples of javax.jcr.Property.save()

        // check lock status
        checkLock();

        Version v = session.getVersionManager().checkin(this);
        Property prop = internalSetProperty(QName.JCR_ISCHECKEDOUT, InternalValue.create(false));
        prop.save();
        prop = internalSetProperty(QName.JCR_BASEVERSION, InternalValue.create(new UUID(v.getUUID())));
        prop.save();
        prop = internalSetProperty(QName.JCR_PREDECESSORS, InternalValue.EMPTY_ARRAY, PropertyType.REFERENCE);
        prop.save();
        return v;
View Full Code Here

Examples of javax.jcr.Session.save()

        // test if testuser can modify AC-items
        // 1) add an ac-entry
        ACLTemplate acl = (ACLTemplate) policies[0];
        acl.addAccessControlEntry(testUser.getPrincipal(), privilegesFromName(PrivilegeRegistry.REP_WRITE));
        testAcMgr.setPolicy(path, acl);
        testSession.save();

        assertTrue(testAcMgr.hasPrivileges(path,
                privilegesFromName(Privilege.JCR_REMOVE_CHILD_NODES)));

        // 2) remove the policy
View Full Code Here

Examples of jc.pbntools.PbnFile.save()

    try {
      File file = new File(sDir, m_sDirName.toLowerCase() + ".pbn");
      PbnFile pbnFile = new PbnFile();
      pbnFile.addDeals(aDeal);
      sPath = file.getAbsolutePath();
      pbnFile.save(file.getAbsolutePath());
    }
    catch (IOException ioe) {
      throw new DownloadFailedException(ioe, m_ow, !m_bSilent);
    }
    return sPath;
View Full Code Here

Examples of jnipap.Pool.save()

    pool1.default_type = "assignment";
    pool1.ipv4_default_prefix_length = 28;
    pool1.ipv6_default_prefix_length = 64;

    try {
      pool1.save(this.connection);
      pool2 = Pool.get(this.connection, pool1.id);
    } catch (JnipapException e) {
      fail("Operation resulted in " + e.getClass().getName() + " with message \"" + e.getMessage() + "\"");
      return;
    }
View Full Code Here

Examples of jnipap.Prefix.save()

    prefix1.prefix = "192.168.0.0/16";
    prefix1.type = "reservation";
    prefix1.description = "RFC1918 class B block";

    try {
      prefix1.save(this.connection);
      prefix2 = Prefix.get(this.connection, prefix1.id);
    } catch (JnipapException e) {
      fail("Operation resulted in " + e.getClass().getName() + " with message \"" + e.getMessage() + "\"");
      return;
    }
View Full Code Here

Examples of jnipap.VRF.save()

    vrf1.rt = "123:456";
    vrf1.name = "Test VRF #1";
    vrf1.description = "A test VRF.";

    try {
      vrf1.save(this.connection);
      vrf2 = VRF.get(this.connection, vrf1.id);
    } catch (JnipapException e) {
      fail("Operation resulted in exception " + e.getMessage());
      return;
    }
View Full Code Here

Examples of jsky.catalog.CatalogDirectory.save()

                Catalog existingCat = rootDir.getCatalog(cat.getName());
                if (existingCat != null && existingCat != cat) {
                    rootDir.removeCatalog(existingCat);
                }
                rootDir.addCatalog(1, cat);
                rootDir.save();
            }
        }
    }

    /**
 
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.