Examples of AppUser


Examples of net.sf.mark.authority.po.AppUser

    userService.saveOrUpdate(instance);
  }
 
  @Test
  public void test() {
    AppUser instance = userService.findById(USER_ID);
 
    AppRole roleInstance = roleService.findById(ROLE_ID);
   
    Set<AppRole> roles = instance.getAppRoles();
   
    roles.remove(roleInstance);
    userService.saveOrUpdate(instance);
  }
View Full Code Here

Examples of net.sf.mark.authority.po.AppUser

    userService.saveOrUpdate(instance);
  }
 
  @Test
  public void testFindById() {
    AppUser instance = userService.findById(USER_ID);
    assertNotNull(instance);
    assertEquals(instance.getId(), USER_ID);
  }
View Full Code Here

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

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

  }

  @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

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

    {
      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

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

    {
      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

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

    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

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

  }

  @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

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

  }

  @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

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

    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
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.