Examples of save()


Examples of org.jets3t.service.security.ProviderCredentials.save()

        final ByteArrayInputStream[] bais = new ByteArrayInputStream[1];
        try {
            // Convert credentials into a readable input stream.
            String algorithm = myProperties.getStringProperty("crypto.algorithm", "PBEWithMD5AndDES");
            ByteArrayOutputStream baos = new ByteArrayOutputStream();
            credentials.save(password, baos, algorithm);
            bais[0] = new ByteArrayInputStream(baos.toByteArray());
        } catch (RuntimeException e) {
            throw e;
        } catch (Exception e) {
            String message = "Unable to encrypt your credentials";
View Full Code Here

Examples of org.jitterbit.application.ui.window.editor.Editor.save()

    private boolean saveIfDirty(IntegrationEntity e) {
        Editor page = (pages != null ? pages.findOpenPage(e) : null);
        if (page != null && page.isDirty()) {
            try {
                page.save();
            } catch (SaveEditorException ex) {
                pages.openPage(e);
                ErrorLog.attention(AllLocationsTester.class, "Failed to save the " +
                                e.getEntityType().getDisplayName() + " \"" + e.getName() + "\".", ex);
                return false;
View Full Code Here

Examples of org.jitterbit.integration.client.project.permission.PermissionsManager.save()

            savingService.submit(new Runnable() {

                @Override
                public void run() {
                    try {
                        mgr.save();
                    } catch (PermissionsStorageException e) {
                        ErrorLog.attention(PermissionsPage.class, Strings.get("Permissions.Page.Save.Error"), e);
                    }
                }
            });
View Full Code Here

Examples of org.jitterbit.integration.data.folder.FolderStructureDuplicator.save()

                try {
                    EntityType sourceType = sourceFolder.getItemType();
                    FolderStructureDuplicator duplicator = new FolderStructureDuplicator(project, sourceType);
                    duplicator.duplicateTo(destinationTypes);
                    int newFolders = duplicator.getNumberOfNewFolders();
                    duplicator.save(persistor);
                    return newFolders;
                } finally {
                    IntegrationProjectLock.release();
                }
            }
View Full Code Here

Examples of org.jitterbit.integration.data.persist.ProjectPersistor.save()

    @Override
    public void save(Transformation tf) {
        try {
            ProjectPersistor persistor = getView().getProjectPersistor();
            persistor.save(tf);
        } catch (InterchangeSavingException ex) {
            ErrorLog.attention(TreeMapperContainerImpl.class, "The transformation \"" + tf.getName()
                            + "\" could not be saved: " + ex.getMessage(), ex);
        }
    }
View Full Code Here

Examples of org.jitterbit.integration.data.structure.text.SegmentPersistor.save()

    private void writeSegmentsTo(Persistor media) {
        SegmentPersistor writer = new SegmentPersistor();
        Persistor segmentRoot = media.createChild("Segments");
        for (Segment s : segmentList) {
            writer.save(s, segmentRoot.createChild("Segment"));
        }
    }

    @Override
    public void restoreFrom(Persistor media) {
View Full Code Here

Examples of org.jitterbit.integration.database.info.DatabaseObjectPersistor.save()

                return;
            }
        }
        for (Map.Entry<DatabaseObject, Integer> e : objects.entrySet()) {
            Persistor item = root.createChild("Item");
            op.save(e.getKey(), item.createChild("Object"));
            item.putInteger("value", e.getValue());
        }
    }

    public BeginEndQuote getBeginEndQuote() {
View Full Code Here

Examples of org.jivesoftware.smackx.packet.VCard.save()

    }

    public void testBinaryAvatar() throws Throwable {
        VCard card = new VCard();
        card.setAvatar(getAvatarBinary());
        card.save(getConnection(0));
        System.out.println(card.getChildElementXML());

        VCard loaded = new VCard();
        try {
            loaded.load(getConnection(0));
View Full Code Here

Examples of org.jivesoftware.smackx.vcardtemp.packet.VCard.save()

    VCard vCard = new VCard();
    vCard.setFirstName("Mr.");
    vCard.setLastName("Jenkins");
    vCard.setNickName(this.nick);
    setAvatarImage(vCard);
    vCard.save(this.connection);
  }
 
  private void setAvatarImage(VCard vCard) {
        InputStream input = null;
        ByteArrayOutputStream output = null;
View Full Code Here

Examples of org.jmule.core.configmanager.ConfigurationManager.save()

          
            _config.setDownloadBandwidth( nbs.getDownloadBandwidth() );
          
            _config.setUploadBandwidth( nbs.getUploadBandwidth() );
           
            _config.save();
            }catch( Throwable cause ) {
              cause.printStackTrace();
            }
          CommonUIPreferences.getSingleton().setUIType( ((UIChooser)stage5).getChosenUI() );
        
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.