Package nz.org.winters.appspot.acrareporter.store

Examples of nz.org.winters.appspot.acrareporter.store.AppUser


  }

  public UserEdit(DialogCallback callback)
  {
    this.callback = callback;
    this.appUser = new AppUser();
    initWidget(uiBinder.createAndBindUi(this));

    textEMailAddress.setText("");
    textEMailAddress.setReadOnly(false);
View Full Code Here


  }

  @Override
  public List<AppPackage> getPackages(LoginInfo loginInfo) throws IllegalArgumentException
  {
    AppUser appUser = getAppUser(loginInfo);
    long ownerId = getOwnerId(appUser);

    List<AppPackage> list = ObjectifyService.ofy().load().type(AppPackage.class).filter("Owner", ownerId).order("PACKAGE_NAME").list();

    for (AppPackage p : list)
View Full Code Here

    {
      return;
    }
    ObjectifyService.ofy().delete().entity(bei);

    AppUser user = getAppUser(bei.Owner);
    AppPackage ap = getAppPackage(bei.PACKAGE_NAME);

    DailyCounts counts = DailyCountsGetters.getDate(getOwnerId(user), bei.Timestamp);

    counts.incDeleted();
View Full Code Here

    {
      if (bei.lookedAt != state)
      {
        bei.lookedAt = state;

        AppUser user = getAppUser(bei.Owner);
        AppPackage ap = getAppPackage(bei.PACKAGE_NAME);
        DailyCounts userCounts = DailyCountsGetters.getDate(getOwnerId(user), bei.Timestamp);
        DailyCounts packageCounts = DailyCountsGetters.getDate(bei.PACKAGE_NAME, bei.Timestamp);
        if (state)
        {
View Full Code Here

    if (bei != null)
    {
      if (bei.fixed != state)
      {
        bei.fixed = state;
        AppUser user = getAppUser(bei.Owner);
        AppPackage ap = getAppPackage(bei.PACKAGE_NAME);
        DailyCounts userCounts = DailyCountsGetters.getDate(getOwnerId(user), bei.Timestamp);
        DailyCounts packageCounts = DailyCountsGetters.getDate(bei.PACKAGE_NAME, bei.Timestamp);
        if (state)
        {
View Full Code Here

  }

  @Override
  public void writeAppUser(AppUser appUserIn) throws IllegalArgumentException
  {
    AppUser appUser = ObjectifyService.ofy().load().type(AppUser.class).id(appUserIn.id).now();
    if (appUser != null)
    {

      if (!Utils.isEmpty(appUserIn.AndroidKey))
      {
        AppUser other = ObjectifyService.ofy().load().type(AppUser.class).filter("AndroidKey", appUserIn.AndroidKey).first().now();
        if (other != null)
        {
          if (other.id != appUser.id)
          {
            throw new IllegalArgumentException("Android API Key is already used by another user!");
View Full Code Here

  }

  @Override
  public void addAppUser(LoginInfo user, AppUser appUserIn) throws IllegalArgumentException
  {
    AppUser appUser = ObjectifyService.ofy().load().type(AppUser.class).filter("EMailAddress", user.getEmailAddress()).first().now();
    if (appUser != null)
    {
      throw new IllegalArgumentException(user.getEmailAddress() + " is already a user!");
    }
View Full Code Here

    ObjectifyService.ofy().delete().type(ACRALog.class).ids(idsACRA);

    if (owner != 0L)
    {
      AppPackage appPackage = getAppPackage(packageName);
      AppUser appUser = getAppUser(owner);

      appPackage.Totals.Deleted = appPackage.Totals.Deleted + reportIds.size();
      appPackage.Totals.LookedAt = appPackage.Totals.LookedAt - lookedAt;
      ObjectifyService.ofy().save().entity(appPackage);
View Full Code Here

  @Override
  public void sendFixedEMail(LoginInfo loginInfo, List<String> reportIds, String bcc, String subject, String body) throws IllegalArgumentException
  {

    AppUser appUser = getAppUser(loginInfo);

    String[] bccs = bcc.split("\n");

    try
    {
View Full Code Here

  }

  @Override
  public void addAppUser(AppUser appUserIn) throws IllegalArgumentException
  {
    AppUser appUser = ObjectifyService.ofy().load().type(AppUser.class).filter("EMailAddress", appUserIn.EMailAddress).first().now();
    if (appUser != null)
    {
      throw new IllegalArgumentException(appUser.EMailAddress + " is already a user!");
    }
View Full Code Here

TOP

Related Classes of nz.org.winters.appspot.acrareporter.store.AppUser

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.