Package at.molindo.notify.model

Examples of at.molindo.notify.model.IPreferences


    }
  }

  @Nonnull
  private PushResultMessage push(@Nonnull Notification notification, boolean ignoreFrequency) {
    IPreferences prefs;

    final String unknownChannel = notification.getParams().get(INotifyService.NOTIFY_UNKNOWN);
    if (unknownChannel != null) {
      prefs = new Preferences().setUserId(notification.getUserId());
    } else {
View Full Code Here


  private Integer _defaultAmount = DEFAULT_AMOUNT;

  @Override
  public boolean isAuthorized(String userId, IChannelPreferences cPrefs) {
    IPreferences p = _preferencesDAO.getPreferences(userId);
    if (p == null) {
      return false;
    }
    String prefSecret = p.getParams().get(SECRET);
    String reqSecret = cPrefs.getParams().get(SECRET);

    return prefSecret != null && StringUtils.equals(prefSecret, reqSecret);
  }
View Full Code Here

  }

  @Override
  public final String pull(String userId, IChannelPreferences cPrefs) throws PullException {

    IPreferences prefs = _preferencesDAO.getPreferences(userId);

    Integer amount = cPrefs.getParams().get(AMOUNT);
    if (amount == null) {
      amount = _defaultAmount;
    }
View Full Code Here

TOP

Related Classes of at.molindo.notify.model.IPreferences

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.