Examples of IWidgetTypeManager


Examples of org.entando.entando.aps.system.services.widgettype.IWidgetTypeManager

      ICacheManager cacheManager = (ICacheManager) ApsWebApplicationUtils.getBean(SystemConstants.CACHE_MANAGER, this.getRequest());
      PublicContentAuthorizationInfo authInfo = new PublicContentAuthorizationInfo(content);
      cacheManager.putInCache(JacmsSystemConstants.CONTENT_AUTH_INFO_CACHE_PREFIX + contentId, authInfo);
      this.setUserOnSession("admin");
      Widget widget = new Widget();
            IWidgetTypeManager widgetTypeMan =
              (IWidgetTypeManager) this.getService(SystemConstants.WIDGET_TYPE_MANAGER);
            WidgetType WidgetType = widgetTypeMan.getWidgetType("content_feedback_viewer");
            widget.setType(WidgetType);
            ApsProperties prop = new ApsProperties();
            prop.put("contentId", contentId);
            prop.put(ContentFeedbackWidgetAction.WIDGET_PARAM_COMMENT_ACTIVE, "true");
            prop.put(ContentFeedbackWidgetAction.WIDGET_PARAM_COMMENT_MODERATED, "false");
View Full Code Here

Examples of org.entando.entando.aps.system.services.widgettype.IWidgetTypeManager

      ICacheManager cacheManager = (ICacheManager) ApsWebApplicationUtils.getBean(SystemConstants.CACHE_MANAGER, this.getRequest());
      PublicContentAuthorizationInfo authInfo = new PublicContentAuthorizationInfo(content);
      cacheManager.putInCache(JacmsSystemConstants.CONTENT_AUTH_INFO_CACHE_PREFIX + contentId, authInfo);
      this.setUserOnSession("admin");
      Widget showlet = new Widget();
            IWidgetTypeManager showletTypeMan =
              (IWidgetTypeManager) this.getService(SystemConstants.WIDGET_TYPE_MANAGER);
            WidgetType WidgetType = showletTypeMan.getWidgetType("content_feedback_viewer");
            showlet.setType(WidgetType);
            ApsProperties prop = new ApsProperties();
            prop.put("contentId", contentId);
            prop.put(ContentFeedbackWidgetAction.WIDGET_PARAM_COMMENT_ACTIVE, "true");
            prop.put(ContentFeedbackWidgetAction.WIDGET_PARAM_COMMENT_MODERATED, "false");
View Full Code Here

Examples of org.entando.entando.aps.system.services.widgettype.IWidgetTypeManager

      PublicContentAuthorizationInfo authInfo = new PublicContentAuthorizationInfo(content);
      cacheManager.putInCache(JacmsSystemConstants.CONTENT_AUTH_INFO_CACHE_PREFIX + contentId, authInfo);
      this.setUserOnSession("admin");
      this._contentManager.loadContent(contentId, true);
      Widget showlet = new Widget();
            IWidgetTypeManager showletTypeMan =
              (IWidgetTypeManager) this.getService(SystemConstants.WIDGET_TYPE_MANAGER);
            WidgetType WidgetType = showletTypeMan.getWidgetType("content_feedback_viewer");
            showlet.setType(WidgetType);
            ApsProperties prop = new ApsProperties();
            prop.put("contentId", contentId);
            prop.put(ContentFeedbackWidgetAction.WIDGET_PARAM_COMMENT_ACTIVE, "true");
            prop.put(ContentFeedbackWidgetAction.WIDGET_PARAM_COMMENT_MODERATED, "false");
View Full Code Here

Examples of org.entando.entando.aps.system.services.widgettype.IWidgetTypeManager

 
  @Override
  public void validate() {
    super.validate();
    Set<String> widgetTypeCodes = this.getWidgetTypeCodes();
    IWidgetTypeManager widgetTypeManager = this.getWidgetTypeManager();
    for (String widgetCode : widgetTypeCodes) {
      if (!this.isWidgetAllowed(widgetTypeManager.getWidgetType(widgetCode))) {
        this.addFieldError("showlets", this.getText("errors.jpmyportalConfig.widgets.notValid", new String[] { widgetCode }));
      }
    }
  }
View Full Code Here

Examples of org.entando.entando.aps.system.services.widgettype.IWidgetTypeManager

    return SUCCESS;
  }
 
  private void populateForm(MyPortalConfig config) {
    Set<String> allowedShowlets = config.getAllowedShowlets();
    IWidgetTypeManager widgetTypeManager = this.getWidgetTypeManager();
    Set<String> showlets = new TreeSet<String>();
    for (String showletCode : allowedShowlets) {
      if (this.isWidgetAllowed(widgetTypeManager.getWidgetType(showletCode))) {
        showlets.add(showletCode);
      }
    }
    this.setWidgetTypeCodes(showlets);
  }
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.