Package org.apache.openmeetings.db.entity.basic

Examples of org.apache.openmeetings.db.entity.basic.Naviglobal


    add(new ListView<Naviglobal>("mainItem", man.getMainMenu(WebSession.getUserLevel(), WebSession.getUserId(), WebSession.getLanguage())) {
      private static final long serialVersionUID = 2173926553418745231L;

      @Override
      protected void populateItem(ListItem<Naviglobal> item) {
        Naviglobal gl = item.getModelObject();
        item.add(new Label("label", gl.getLabel().getValue()).setRenderBodyOnly(true));
       
        item.add(new ListView<Navimain>("childItem", gl.getMainnavi()) {
          private static final long serialVersionUID = 3609635268338379087L;

          @Override
          protected void populateItem(ListItem<Navimain> item) {
            Navimain m = item.getModelObject();
View Full Code Here


  }

  public void addGlobalStructure(String action, int naviorder, long fieldvalues_id, boolean isleaf, boolean isopen, long level_id,
      String name, boolean deleted, Long tooltip_fieldvalues_id) {
    try {
      Naviglobal ng = new Naviglobal();
      ng.setAction(action);
      ng.setComment("");
      ng.setIcon("");
      ng.setNaviorder(naviorder);
      ng.setFieldvalues_id(fieldvalues_id);
      ng.setIsleaf(isleaf);
      ng.setIsopen(isopen);
      ng.setDeleted(deleted);
      ng.setLevel_id(level_id);
      ng.setName(name);
      ng.setStarttime(new Date());
      ng.setTooltip_fieldvalues_id(tooltip_fieldvalues_id);
      // CriteriaBuilder crit = em.getCriteriaBuilder();

      em.merge(ng);

    } catch (Exception ex2) {
View Full Code Here

  }

  public void addMainStructure(String action, String params, int naviorder, long fieldvalues_id, boolean isleaf, boolean isopen,
      long level_id, String name, long global_id, boolean deleted, Long tooltip_fieldvalues_id) {
    try {
      Naviglobal ng = getGlobalMenuEntry(global_id);
      List<Navimain> mainEntries = ng.getMainnavi();
      mainEntries = (mainEntries == null) ? new ArrayList<Navimain>() : mainEntries;

      Navimain nm = new Navimain();
      nm.setAction(action);
      nm.setParams(params);
      nm.setComment("");
      nm.setIcon("");
      nm.setFieldvalues_id(fieldvalues_id);
      nm.setIsleaf(isleaf);
      nm.setNaviorder(naviorder);
      nm.setIsopen(isopen);
      nm.setLevel_id(level_id);
      nm.setName(name);
      nm.setDeleted(deleted);
      nm.setGlobal_id(global_id);
      nm.setStarttime(new Date());
      nm.setTooltip_fieldvalues_id(tooltip_fieldvalues_id);

      mainEntries.add(nm);
      ng.setMainnavi(mainEntries);

      em.merge(ng);

    } catch (Exception ex2) {
      log.error("addMainStructure", ex2);
View Full Code Here

    add(new ListView<Naviglobal>("mainItem", man.getMainMenu(AuthLevelUtil.hasAdminLevel(WebSession.getRights()), WebSession.getUserId(), WebSession.getLanguage())) {
      private static final long serialVersionUID = 2173926553418745231L;

      @Override
      protected void populateItem(ListItem<Naviglobal> item) {
        Naviglobal gl = item.getModelObject();
        item.add(new Label("label", gl.getLabel().getValue()).setRenderBodyOnly(true));
       
        item.add(new ListView<Navimain>("childItem", gl.getMainnavi()) {
          private static final long serialVersionUID = 3609635268338379087L;

          @Override
          protected void populateItem(ListItem<Navimain> item) {
            Navimain m = item.getModelObject();
View Full Code Here

  }

  public void addGlobalStructure(String action, int naviorder, long fieldvalues_id, boolean isleaf, boolean isopen, long level_id,
      String name, boolean deleted, Long tooltip_fieldvalues_id) {
    try {
      Naviglobal ng = new Naviglobal();
      ng.setAction(action);
      ng.setComment("");
      ng.setIcon("");
      ng.setNaviorder(naviorder);
      ng.setFieldvalues_id(fieldvalues_id);
      ng.setIsleaf(isleaf);
      ng.setIsopen(isopen);
      ng.setDeleted(deleted);
      ng.setLevel_id(level_id);
      ng.setName(name);
      ng.setStarttime(new Date());
      ng.setTooltip_fieldvalues_id(tooltip_fieldvalues_id);
      // CriteriaBuilder crit = em.getCriteriaBuilder();

      em.merge(ng);

    } catch (Exception ex2) {
View Full Code Here

  }

  public void addMainStructure(String action, String params, int naviorder, long fieldvalues_id, boolean isleaf, boolean isopen,
      long level_id, String name, long global_id, boolean deleted, Long tooltip_fieldvalues_id) {
    try {
      Naviglobal ng = getGlobalMenuEntry(global_id);
      List<Navimain> mainEntries = ng.getMainnavi();
      mainEntries = (mainEntries == null) ? new ArrayList<Navimain>() : mainEntries;

      Navimain nm = new Navimain();
      nm.setAction(action);
      nm.setParams(params);
      nm.setComment("");
      nm.setIcon("");
      nm.setFieldvalues_id(fieldvalues_id);
      nm.setIsleaf(isleaf);
      nm.setNaviorder(naviorder);
      nm.setIsopen(isopen);
      nm.setLevel_id(level_id);
      nm.setName(name);
      nm.setDeleted(deleted);
      nm.setGlobal_id(global_id);
      nm.setStarttime(new Date());
      nm.setTooltip_fieldvalues_id(tooltip_fieldvalues_id);

      mainEntries.add(nm);
      ng.setMainnavi(mainEntries);

      em.merge(ng);

    } catch (Exception ex2) {
      log.error("addMainStructure", ex2);
View Full Code Here

TOP

Related Classes of org.apache.openmeetings.db.entity.basic.Naviglobal

Copyright © 2018 www.massapicom. 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.