Examples of save()


Examples of com.nevernote.service.PreferencesService.save()

      Preferences prefs = new Preferences();
      prefs.setUserID(savedUser.getId());
      prefs.setColors(ColorScheme.valueOf("BLACK_ON_WHITE").toString());
      prefs.setSort(SortingMethod.valueOf("ALPHA_ASCENDING").toString());
      preferenceService.save(prefs);

      String relativeWebPath = "WEB-INF/notesRepo";
      String absoluteDiskPath = getServletContext().getRealPath(relativeWebPath);
      File directory = new File(absoluteDiskPath + "/" + newUser.getId());
      boolean success = directory.mkdirs();
View Full Code Here

Examples of com.nevernote.service.UsersService.save()

      newUser.setId(request.getParameter("un"));
      newUser.setPassword(encryptedPassword);
      newUser.setPriviledge("standard");
      newUser.setEnabled(true);
      System.out.println(newUser.toString())
      Users savedUser = usersService.save(request.getParameter("un"),newUser);

      Preferences prefs = new Preferences();
      prefs.setUserID(savedUser.getId());
      prefs.setColors(ColorScheme.valueOf("BLACK_ON_WHITE").toString());
      prefs.setSort(SortingMethod.valueOf("ALPHA_ASCENDING").toString());
View Full Code Here

Examples of com.nurkiewicz.jdbcrepository.repositories.UserRepository.save()

    //when
    final List<User> users = tx.execute(new TransactionCallback<List<User>>() {
      @Override
      public List<User> doInTransaction(TransactionStatus status) {
        final User user = new User("john", new Date(), 0, false);
        userRepository.save(user);
        return userRepository.findAll();
      }
    });

    //then
View Full Code Here

Examples of com.occludens.admin.ui.Command.save()

        //Command Toggle
        //Command User
      Menu appNavigationToolbar = new Menu("APPNavigationToolbar");
      appNavigationToolbar.save();
      Command searchCommand = new Command("Search");
      searchCommand.save();
      Menu appNavigationToolbarRight = new Menu("appNavigationToolbarRight");
      appNavigationToolbarRight.save();
      Command bootplyCommand = new Command("Bootply");
      bootplyCommand.save();
     
View Full Code Here

Examples of com.occludens.admin.ui.Menu.save()

          //Command Link 1
          //Command Link 2
        //Command Toggle
        //Command User
      Menu appNavigationToolbar = new Menu("APPNavigationToolbar");
      appNavigationToolbar.save();
      Command searchCommand = new Command("Search");
      searchCommand.save();
      Menu appNavigationToolbarRight = new Menu("appNavigationToolbarRight");
      appNavigationToolbarRight.save();
      Command bootplyCommand = new Command("Bootply");
View Full Code Here

Examples of com.openshift.client.fakes.UserConfigurationFake.save()

    };

    // operation
    userConfiguration.setRhlogin(ANOTHER_USERNAME);
    userConfiguration.save();

    // verification
    File userConfigurationFile = userConfiguration.getFile();
    assertNotNull(userConfigurationFile);
    String fileContent = StreamUtils.readToString(new FileReader(userConfigurationFile));
View Full Code Here

Examples of com.orientechnologies.orient.core.db.document.ODatabaseDocument.save()

  @Test
  public void testExceptionNotOpenMemory() {

    ODatabaseDocument db = new ODatabaseDocumentTx("memory:test");
    try {
      db.save(new ODocument());
      Assert.fail();
    } catch (ODatabaseException ex) {
    }
    try {
      db.delete(new ODocument());
View Full Code Here

Examples of com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.save()

      dbTx = new ODatabaseDocumentTx("remote:localhost/test");
      dbTx.open("admin", "admin");
      ODocument document = new ODocument();
      document.field("name", "something");
      document.field("surname", "something-else");
      document = dbTx.save(document);
      dbTx.commit();
      ODocument doc = dbTx.load(document.getIdentity());
      assertEquals(doc.fields(), document.fields());
      assertEquals(doc.field("name"), document.field("name"));
      assertEquals(doc.field("surname"), document.field("surname"));
View Full Code Here

Examples of com.orientechnologies.orient.core.db.record.ODatabaseRecord.save()

    if (link instanceof ORID) {
      if (((ORID) link).isValid() && ((ORID) link).isNew()) {
        final ODatabaseRecord database = ODatabaseRecordThreadLocal.INSTANCE.get();
        ORecord record = link.getRecord();
        database.save(record);
        return record;
      }
    } else if (link instanceof ORecord) {
      ORID rid = link.getIdentity();
      if (((ORecord) link).isDirty() || (rid.isTemporary())) {
View Full Code Here

Examples of com.orientechnologies.orient.core.db.record.ODatabaseRecordInternal.save()

    final ODatabaseRecordInternal database = getDatabase();
    final ORecordBytes identityRecord = new ORecordBytes();
    final OAbstractPaginatedStorage storageLocalAbstract = (OAbstractPaginatedStorage) database.getStorage();

    database.save(identityRecord, clusterIndexName);
    identity = identityRecord.getIdentity();

    hashFunction.setValueSerializer(keySerializer);
    hashTable.create(indexName, keySerializer, (OBinarySerializer<V>) valueSerializer,
        indexDefinition != null ? indexDefinition.getTypes() : null, storageLocalAbstract, indexDefinition != null
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.