Examples of save()


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

      //DOTCMS-4943
      UserAPI userAPI = APILocator.getUserAPI();     
      boolean respectFrontend = WebAPILocator.getUserWebAPI().isLoggedToBackend(req);     
      Locale userSelectedLocale = (Locale)req.getSession().getAttribute(Globals.LOCALE_KEY);     
      user.setLanguageId(userSelectedLocale.toString());
      userAPI.save(user, userAPI.getSystemUser(), respectFrontend);

      ses.setAttribute(WebKeys.USER_ID, userId);
     
      //DOTCMS-6392
      PreviewFactory.setVelocityURLS(req);
View Full Code Here

Examples of com.dotmarketing.db.HibernateUtil.save()

              } catch (Exception e) {
                _dh.saveWithPrimaryKey(obj, prop);
              }

            } else {
              _dh.save(obj);
            }
          }

        } 
    } catch (DotHibernateException e) {
View Full Code Here

Examples of com.dotmarketing.plugin.business.PluginAPI.save()

        String pluginName = attrs.getValue("Plugin-Name") ==  null ? "":attrs.getValue("Plugin-Name");
        String author = attrs.getValue("Author") ==  null ? "":attrs.getValue("Author");
        plugin.setAuthor(author);
        plugin.setPluginName(pluginName);
        try{
          pluginAPI.save(plugin);
        } catch (DotDataException e2) {
          Logger.fatal(this, "Method loadPlugins : Error deploying plugin id:" + id, e2);
          continue;
        }
        loadPluginProperties(jar, plugin.getId());
View Full Code Here

Examples of com.dotmarketing.portlets.hostvariable.bussiness.HostVariableAPI.save()

    hostVariable.setKey(key);
    hostVariable.setValue(value);
    hostVariable.setLastModifierId(user.getUserId());
    hostVariable.setLastModDate(new Date());
    try {
      hostVariableAPI.save(hostVariable, user, respectFrontendRoles);
    } catch (DotSecurityException e) {
      return LanguageUtil.get(user, "message.hostvariables.permission.error.save");
    }
   
    return null;
View Full Code Here

Examples of com.ebspos.model.Employee.save()

        m.set("upd_time",new Timestamp((new Date()).getTime()));
        m.update();
      } else {
        m.set("pwd",MD5.getMD5ofStr("123456"));
        m.set("upd_time",new Timestamp((new Date()).getTime()));
        m.save();
      }
//       Db.update("update employee e set e.orgid=(select p.orgid from partment p where p.id=e.partmentid)");
      toDwzJson(200, "保存成功!", navTabId);
    } catch (Exception e) {
      log.error("保存员工异常", e);
View Full Code Here

Examples of com.ebspos.model.Menu.save()

    try{
      Menu m=getModel(Menu.class);
      if(m.getLong("id")!=null){
        m.update();
      }else{
        m.save();
      }
      toDwzJson( 200, "保存成功!", navTabId);
    }catch(Exception e){
      log.error("保存菜单异常",e);
      toDwzJson( 300, "保存异常!");
View Full Code Here

Examples of com.ebspos.model.Organization.save()

    try{
      Organization m=getModel(Organization.class);
      if(m.getLong("id")!=null){
        m.update();
      }else{
        m.save();
      }
      toDwzJson( 200, "保存成功!", navTabId);
    }catch(Exception e){
      toDwzJson( 300,"保存异常!");
    }
View Full Code Here

Examples of com.ebspos.model.Partment.save()

    try{
      Partment m=getModel(Partment.class);
      if(m.getLong("id")!=null){
        m.update();
      }else{
        m.save();
      }
      toDwzJson( 200, "保存成功!", navTabId);
    }catch(Exception e){
      log.error("保存部门异常",e);
      toDwzJson(300, "保存异常!");
View Full Code Here

Examples of com.ebspos.model.Role.save()

    try{
      Role m=getModel(Role.class);
      if(m.getLong("id")!=null){
        m.update();
      }else{
        m.save();
      }
      toDwzJson( 200, "保存成功!", navTabId);
    }catch(Exception e){
      toDwzJson( 300, "保存异常!");
    }
View Full Code Here

Examples of com.eclipsesource.jshint.ui.internal.preferences.JSHintPreferences.save()

  @After
  public void tearDown() throws CoreException {
    JSHintPreferences prefs = new JSHintPreferences();
    prefs.resetToDefaults();
    prefs.save();
  }

  @Test
  public void handleProblem_createsWarning() throws CoreException {
    MarkerHandler handler = new MarkerHandler( adapter, new Text( "test" ) );
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.