Examples of save()


Examples of com.dianping.cat.broker.api.app.BucketHandler.save()

    for (int i = 0; i < 10; i++) {
      AppData createAppData = createAppData(i);
      data.put(createAppData.toString(), createAppData);
    }

    handler.save(file);

    datas.clear();

    handler.load(file);
    AppDataQueue<AppData> queue = handler.getAppDataQueue();
View Full Code Here

Examples of com.dilanperera.rapidws.config.ServiceDataMap.save()

        // get the service and operation name
        String serviceName = messageContext.getServiceName();
        String operationName = messageContext.getOperationName();

      serviceDataMap.save();

        // check whether the service has been mapped in configuration
        if (serviceDataMap.containsKey(serviceName))
        {
            // get service data from configuration mapping
View Full Code Here

Examples of com.directededge.Item.save()

        options.put("tagOperation", "AND");
        assertFalse(product.getRelated(tags, options).size() > 0);

        Item taggedAsBoth = new Item(database, "product35");
        taggedAsBoth.addTag("customer");
        taggedAsBoth.save();

        assertTrue(product.getRelated(tags, options).size() > 0);
    }

    @Test
View Full Code Here

Examples of com.dmissoh.biologic.editor.SequenceEditor.save()

                  .openQuestion(window.getShell(),
                      "Overwrite",
                      "The given file already exist, do you really want to overwrite it?");
            }
            if(ok){             
              editor.save(selectedFile);
            }
          }
        } else {
          MessageDialog.openInformation(window.getShell(),
              "Information", "There is nothing to save");
View Full Code Here

Examples of com.documentum.fc.client.IDfPersistentObject.save()

              obj.appendString(name, item.getString(listItemName ));
            }
          }
        }
      }
      obj.save();
      reload();
      master.reload();
     
      getConnection().fireElementUpdated(getId());
     
View Full Code Here

Examples of com.documentum.fc.client.IDfSysObject.save()

            IDfSysObject child = (IDfSysObject) i.next();
            monitor.log().debug(DctmUtils.getPath(child));
            if (unlink
                && child.getValueCount("i_folder_id") > 1) {
              child.unlink(obj.getObjectId().toString());
              child.save();
             
              if (useTransaction) {
                events.add(new String[] {"u",child.getObjectId().getId(),obj.getObjectId().getId()});
              } else {
                sources.getConnection().fireElementUnlink(obj.getObjectId().getId(),child.getObjectId().getId());
View Full Code Here

Examples of com.dotcms.repackage.net.sf.hibernate.Session.save()

        if (portletPreferences.isNew()) {
          PortletPreferencesHBM portletPreferencesHBM = new PortletPreferencesHBM(portletPreferences.getPortletId(),
              portletPreferences.getLayoutId(),
              portletPreferences.getUserId(),
              portletPreferences.getPreferences());
          session.save(portletPreferencesHBM);
          session.flush();
        }
        else {
          try {
            PortletPreferencesHBM portletPreferencesHBM = (PortletPreferencesHBM)session.load(PortletPreferencesHBM.class,
View Full Code Here

Examples of com.dotmarketing.business.IdentifierAPI.save()

    List<Contentlet> contentlets = APILocator.getContentletAPI().findContentletsByFolder(folder, systemUser, false);


    folderId.setParentPath(newParentPath);
    folderId.setHostId(newParentHostId);
    identAPI.save(folderId);

    for (Object page : htmlPages) {
      APILocator.getHTMLPageAPI().movePage((HTMLPage) page, folder, systemUser, false);
    }
View Full Code Here

Examples of com.dotmarketing.business.PermissionAPI.save()

      //adding roles to user
      Permission permission = null;
      if (readPermissions != null) {
        for (int n = 0; n < readPermissions.length; n++) {
          permission = new Permission(userProxyInode, readPermissions[n],  PERMISSION_READ);
          perAPI.save(permission, userProxy, user, false);
        }
      }

      if (writePermissions != null) {
        for (int n = 0; n < writePermissions.length; n++) {
View Full Code Here

Examples of com.dotmarketing.business.RoleAPI.save()

    ActivityLogger.logInfo(getClass(), "Adding Role", "Date: " + date + "; "+ "User:" + user.getUserId());
    AdminLogger.log(getClass(), "Adding Role", "Date: " + date + "; "+ "User:" + user.getUserId());

    try {
      role = roleAPI.save(role);
    } catch(DotDataException | DotStateException e) {
      ActivityLogger.logInfo(getClass(), "Error Adding Role", "Date: " + date + ";  "+ "User:" + user.getUserId());
      AdminLogger.log(getClass(), "Error Adding Role", "Date: " + date + ";  "+ "User:" + user.getUserId());
      throw e;
    }
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.