Examples of WidgetType


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

  public PageUserConfigBean getUserConfig(UserDetails user) throws ApsSystemException {
    PageUserConfigBean pageUserBean = null;
    try {
      List<WidgetType> customizables = this.getMyPortalConfigManager().getCustomizableShowlets();
      for (int i = 0; i < customizables.size(); i++) {
        WidgetType type = customizables.get(i);
        String mainGroup = type.getMainGroup();
        if (null != mainGroup
            && !mainGroup.equals(Group.FREE_GROUP_NAME)
            && !this.getAuthorizationManager().isAuthOnGroup(user, mainGroup)) {
          this.getPageUserConfigDAO().removeUnauthorizedShowlet(user.getUsername(), type.getCode());
        }
      }
      pageUserBean = this.getPageUserConfigDAO().getUserConfig(user.getUsername());
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "getUserConfig");
View Full Code Here

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

    List<WidgetType> customizableShowletsForUser = new ArrayList<WidgetType>();
    if (null == user) return customizableShowletsForUser;
    try {
      List<WidgetType> customizableShowlets = this.getMyPortalConfigManager().getCustomizableShowlets();
      for (int i = 0; i < customizableShowlets.size(); i++) {
        WidgetType type = customizableShowlets.get(i);
        String mainGroup = type.getMainGroup();
        if (null == mainGroup
            || mainGroup.equals(Group.FREE_GROUP_NAME)
            || this.getAuthorizationManager().isAuthOnGroup(user, mainGroup)) {
          customizableShowletsForUser.add(type);
        }
View Full Code Here

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

    }
    return SUCCESS;
  }
 
  private boolean isCustomizable() {
    WidgetType type = this.getWidgetTypeManager().getWidgetType(this.getWidgetTypeCode());
    if (null == type) return false;
    List<WidgetTypeParameter> typeParameters = type.getTypeParameters();
    if (!type.isUserType() && !type.isLogic() && (null != typeParameters && typeParameters.size() > 0)) return false;
    if (type.getCode().equals(this.getMyPortalConfigManager().getVoidShowletCode())) return false;
    return true;
  }
View Full Code Here

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

  @Override
  public String addWidget() {
    try {
      String widgetCode = this.getWidgetCode();
      WidgetType type = this.getWidgetTypeManager().getWidgetType(widgetCode);
      if (this.isWidgetAllowed(type)) {
        this.getWidgetTypeCodes().add(widgetCode);
      } else {
        this.addFieldError("showletCode", this.getText("Errors.jpmyportalConfig.WidgetType.notValid", new String[] { widgetCode }));
        return INPUT;
View Full Code Here

Examples of org.getspout.spoutapi.gui.WidgetType

    input.read(widgetData);
    SpoutInputStream data = new SpoutInputStream(ByteBuffer.wrap(widgetData));

    int version = input.readShort();
    screen = new UUID(msb, lsb);
    WidgetType widgetType = WidgetType.getWidgetFromId(id);
    if (widgetType != null) {
      try {
        widget = widgetType.getWidgetClass().newInstance();
        if (widget.getVersion() == version) {
          widget.readData(data);
        }
      } catch (Exception e) {
        e.printStackTrace();
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.