Package com.agiletec.plugins.jpmyportalplus.aps.system.services.pagemodel

Examples of com.agiletec.plugins.jpmyportalplus.aps.system.services.pagemodel.Frame


      Integer currentFrame = (Integer) reqCtx.getExtraParam(SystemConstants.EXTRAPAR_CURRENT_FRAME);
      IMyPortalConfigManager myportalConfigManager =
          (IMyPortalConfigManager) ApsWebApplicationUtils.getBean(JpmyportalplusSystemConstants.MYPORTAL_CONFIG_MANAGER, reqCtx.getRequest());
      Set<String> allowedShowlet = myportalConfigManager.getConfig().getAllowedShowlets();
      MyPortalPageModel model = (MyPortalPageModel) page.getModel();
      Frame currentFrameObject = model.getFrameConfigs()[currentFrame];
      return (!currentFrameObject.isLocked() && allowedShowlet.contains(showlet.getType().getCode()));
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "needsDecoration", "Error checking widget decorators");
      throw new RuntimeException("Error checking widget decorators", t);
    }
  }
View Full Code Here


      if (null == columnDest) {
        throw new RuntimeException("MARCATORE COLONNA NULLO di POSIZIONE PREC  " + this.getTargetPrevFramePos() +
            " o di POSIZIONE SUCC " + this.getTargetNextFramePos());
      }
      for (int i = 0; i < pageModel.getFrameConfigs().length; i++) {
        Frame frame = pageModel.getFrameConfigs()[i];
        if (null != frame.getColumn() && frame.getColumn().equals(columnDest)) {
          frames = this.addFrame(frames, i);
          //System.out.println("COLONNA " + columnDest + " - FRAME " + i);
        }
      }
    } catch (Throwable t) {
View Full Code Here

      Widget[] customShowlets = (null == config || config.getConfig() == null) ? null : config.getConfig();
      Widget[] showletsToRender = this.getPageUserConfigManager().getShowletsToRender(currentPage, customShowlets);
      Lang currentLang = this.getCurrentLang();
      String voidShowletCode = this.getPageUserConfigManager().getVoidShowlet().getCode();
      for (int i = 0; i < showletsToRender.length; i++) {
        Frame frame = pageModel.getFrameConfigs()[i];
        Integer columnId = frame.getColumn();
        if (frame.isLocked() || null == columnId || i == this.getFrameWhereOpenSection().intValue()) continue;
        Widget widget = showletsToRender[i];
        if (columnId.equals(currentColumnId)) {
          if (widget != null && !widget.getType().getCode().equals(voidShowletCode)) {
            FrameSelectItem item = new FrameSelectItem(currentColumnId, columnId, widget, i, currentLang);
            selectItems.add(item);
View Full Code Here

            List<String> allowedShowlets = new ArrayList<String>();
            Map<String, WidgetType> customizableShowlets = this.getCustomizableShowlets(pageUserConfigManager);
            allowedShowlets.addAll(customizableShowlets.keySet());
            Frame[] frames = ((MyPortalPageModel) currentPage.getModel()).getFrameConfigs();
            for (int i = 0; i < frames.length; i++) {
                Frame frame = frames[i];
                if (!frame.isLocked()) {
                    Widget showlet = showletsToRender[i];
                    if (null != showlet && allowedShowlets.contains(showlet.getType().getCode())) {
                        WidgetCheckInfo info = new WidgetCheckInfo(showlet.getType(), true, currentLang);
                        allowedShowlets.remove(showlet.getType().getCode());
                        checkInfos.add(info);
View Full Code Here

      //}

      String voidShowletCode = this.getPageUserConfigManager().getVoidShowlet().getCode();
      Frame[] frames = ((MyPortalPageModel) currentPage.getModel()).getFrameConfigs();
      for (int i = 0; i < frames.length; i++) {
        Frame frame = frames[i];
        if (!frame.isLocked()) {
          boolean isFrameToFlow = framesToFlow.contains(i);
          if (isFrameToFlow) {
            if (showletsToAdd.size()>0) {
              this.addNewWidgetUpdateInfo(showletsToAdd, i, isFrameToFlow);
            } else {
View Full Code Here

    List<Integer> framesToFlow = new ArrayList<Integer>();
    try {
      String voidShowletCode = this.getPageUserConfigManager().getVoidShowlet().getCode();
      Frame[] frames = ((MyPortalPageModel) currentPage.getModel()).getFrameConfigs();
      for (int i = 0; i < frames.length; i++) {
        Frame frame = frames[i];
        if (!frame.isLocked()) {
          Widget showlet = showletsToRender[i];
          if (null != showlet &&
              !showlet.getType().getCode().equals(voidShowletCode) &&
              (null == this.getShowletToShow() || !this.getShowletToShow().contains(showlet.getType().getCode()))) {
            framesToFlow.add(i);
View Full Code Here

      if (null != this.getShowletToShow()) {
        showletsToAdd.addAll(this.getShowletToShow());
      }
      Frame[] frames = ((MyPortalPageModel) currentPage.getModel()).getFrameConfigs();
      for (int i = 0; i < frames.length; i++) {
        Frame frame = frames[i];
        if (!frame.isLocked()) {
          Widget showlet = showletsToRender[i];
          if (null != showlet) {
            showletsToAdd.remove(showlet.getType().getCode());
          }
        }
View Full Code Here

      Widget[] customShowletConfig = this.getCustomShowletConfig(currentPage, pageUserConfigManager);
      Widget[] showletsToRender = pageUserConfigManager.getShowletsToRender(currentPage, customShowletConfig);

      String voidShowletCode = pageUserConfigManager.getVoidShowlet().getCode();
      for (int i = 0; i < showletsToRender.length; i++) {
        Frame frame = pageModel.getFrameConfigs()[i];
        Integer columnId = frame.getColumn();
        if (frame.isLocked() || null == columnId || i == currentFrame.intValue()) continue;
        Widget showlet = showletsToRender[i];
        if (columnId.equals(currentColumnId)) {
          if (showlet != null && !showlet.getType().getCode().equals(voidShowletCode)) {
            FrameSelectItem item = new FrameSelectItem(currentColumnId, columnId,
                showlet, i, currentLang);
View Full Code Here

      String value = null;
      if (null == this.getParamName() || this.getParamName().equals(PARAM_NAME_FIRST_FRAME_ID)) {
        MyPortalPageModel model = (MyPortalPageModel) currPage.getModel();
        Frame[] frames = model.getFrameConfigs();
        for (int i = 0; i < frames.length; i++) {
          Frame frame = frames[i];
          //FIXME attenzione: getColumn può essere null
          if (null != frame.getColumn() && (frame.getColumn().equals(this.getColumnId()))) {
            value = String.valueOf(frame.getPos());
          }
          if (null != value) break;
        }
      }
      if (null != value) {
View Full Code Here

TOP

Related Classes of com.agiletec.plugins.jpmyportalplus.aps.system.services.pagemodel.Frame

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.