Examples of save()


Examples of de.codolith.Cinema.CinemaFile.save()

          e.printStackTrace();
        }
      }
      CinemaFile cf = new CinemaFile(frames);
      try {
        cf.save(outputFile);
        sender.sendMessage("Conversion successful");
      } catch (IOException e) {
        sender.sendMessage("Conversion failed, can't save file");
        e.printStackTrace();
      }
View Full Code Here

Examples of de.hpi.eworld.db.DatabaseAccess.save()

      mm.addModelElement(m);
      // save test case structural information for later use
      mmm.addModelElement(m);
    }
    // save and load again from the DB
    dba.save();
    dba.load();
   
    Collection<ModelElement> loadedModelElements = mm.getAllModelElements();
    ModelManagerMockUp mmmCompare = ModelManagerMockUp.getInstance();
    for(ModelElement m : loadedModelElements) {
View Full Code Here

Examples of de.innovationgate.webgate.api.WGCSSJSModule.save()

            mod = _db.createMetadataModule(SYNCSTATUS_MODULE);
            mod.setDescription("Module used internally by WGA to store the current status of design synchronisation.");
        }    
   
        mod.setCode(_xstream.toXML(_syncStatus));
        mod.save();
        
    }

    @Override
    protected FileObject initialDeployFileContainer(WGFileContainer con) throws IOException, InstantiationException, IllegalAccessException, WGAPIException, WGDesignSyncException {
View Full Code Here

Examples of de.innovationgate.webgate.api.WGContent.save()

            // If the store does not yet have a type item we regard it as just created an initialize it
            if (!document.hasItem(ITEM_TYPE)) {
                _hdb.setListener(document, HDBModelListener.class.getName());
                document.setItemValue(ITEM_TYPE, TYPE_STORAGE);
                document.setItemValue(ITEM_STORAGE_ID, modelNode.attributeValue("sid"));
                document.save();
            }
   
            // Initialize eventual children
            children = modelNode.elements().iterator();       
            while (children.hasNext()) {
View Full Code Here

Examples of de.innovationgate.webgate.api.WGDocument.save()

    else {
      WGDocument doc = context.getdocument();

            tmlForm.attach(doc);

      doc.save();
    }
    
   
    return new Boolean(true);
  }
View Full Code Here

Examples of de.innovationgate.webgate.api.WGFileContainer.save()

       
        WGFileContainer con = (WGFileContainer) db.getDocumentByDocumentKey(getDocumentKey());
        if (con == null) {
            WGDocumentKey docKey = new WGDocumentKey(getDocumentKey());
            con = db.createFileContainer(docKey.getName());
            con.save();
        }

        // Find new and updated files
        FileObject[] filesArray = codeFile.getChildren();
        if (filesArray == null) {
View Full Code Here

Examples of de.innovationgate.webgate.api.WGUserProfile.save()

            userProfile = persDB.getDummyProfile(wgpid);
        }

        if (userProfile != null && !userProfile.isDummy()) {
            TMLUserProfile.prepareNewProfile(userProfile);
            userProfile.save();
        }

        return userProfile;
    }
View Full Code Here

Examples of de.innovationgate.wgpublisher.plugins.WGAPluginSet.save()

      while (pluginIt.hasNext()) {
        InstallPluginOperation operation = pluginSet.loadPluginToWorkspace(pluginIt.next().getInputStream());
        operations.add(operation);
      }
      pluginSet.performOperations(operations);
      pluginSet.save();
     
      operations.clear();
      _core.updatePlugins();
    } catch (Exception e) {
      throw new WGAServiceException("Plugin installation failed.", e);
View Full Code Here

Examples of de.kumpelblase2.remoteentities.api.RemoteEntity.save()

   
    //Some serializers allow single entities to be saved, i.e. the YML serializer
    //But first, we need to create an entitiy.
    RemoteEntity entity = this.npcManager.createEntity(RemoteEntityType.Zombie, Bukkit.getWorld("world").getSpawnLocation());
    //Now we can just call the save method. Keep in mind that it will not work when the serializer doesn't support single entity serialization
    entity.save();
   
    //To load the entities we saved, you can just do this:
    this.npcManager.loadEntities();
    //Now all the entities should be back like you never removed them
  }
View Full Code Here

Examples of de.kumpelblase2.remoteentities.persistence.ISingleEntitySerializer.save()

  public boolean save()
  {
    if(this.getManager().getSerializer() instanceof ISingleEntitySerializer)
    {
      ISingleEntitySerializer serializer = (ISingleEntitySerializer)this.getManager().getSerializer();
      serializer.save(serializer.prepare(this));
      return true;
    }

    return false;
  }
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.