Examples of ProfileHashtable


Examples of ru.org.linux.util.ProfileHashtable

    this.boxes = boxes;
  }

  public Map<String, String> getSettings() {
    ProfileHashtable p = new ProfileHashtable(DefaultProfile.getDefaultProfile(), new HashMap<String, String>());

    p.setString(STYLE_PROPERTY, style);
    p.setString(FORMAT_MODE_PROPERTY, formatMode);
    p.setBoolean(HOVER_PROPERTY, useHover);
    p.setInt(MESSAGES_PROPERTY, messages);
    p.setBoolean(NEWFIRST_PROPERTY, showNewFirst);
    p.setInt(TOPICS_PROPERTY, topics);
    p.setBoolean(PHOTOS_PROPERTY, showPhotos);
    p.setBoolean(HIDE_ADSENSE_PROPERTY, hideAdsense);
    p.setBoolean(MAIN_GALLERY_PROPERTY, showGalleryOnMain);
    p.setString(AVATAR_PROPERTY, avatarMode);
    p.setBoolean(SHOW_ANONYMOUS_PROPERTY, showAnonymous);
    p.setBoolean(SHOW_SOCIAL_PROPERTY, showSocial);
    p.setString(TRACKER_MODE, trackerMode.getValue());

    return p.getSettings();
  }
View Full Code Here

Examples of ru.org.linux.util.ProfileHashtable

  public void setShowSocial(boolean showSocial) {
    this.showSocial = showSocial;
  }

  public static Profile createDefault() {
    return new Profile(new ProfileHashtable(DefaultProfile.getDefaultProfile(), new HashMap<String, String>()), null);
  }
View Full Code Here

Examples of ru.org.linux.util.ProfileHashtable

              public Profile mapRow(ResultSet resultSet, int i) throws SQLException {
                Array boxes = resultSet.getArray("main");

                if (boxes != null) {
                  return new Profile(
                          new ProfileHashtable(DefaultProfile.getDefaultProfile(), (Map<String, String>) resultSet.getObject("settings")),
                          Arrays.asList((String[]) boxes.getArray())
                  );
                } else {
                  return new Profile(
                          new ProfileHashtable(DefaultProfile.getDefaultProfile(), (Map<String, String>) resultSet.getObject("settings")),
                          null
                  );
                }
              }
            },
            user.getId()
    );

    if (profiles.isEmpty()) {
      return new Profile(new ProfileHashtable(DefaultProfile.getDefaultProfile(), new HashMap<String, String>()), null);
    } else {
      return profiles.get(0);
    }
  }
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.