Examples of update()


Examples of org.jayasoft.woj.portal.business.services.users.UserService.update()

                       
                        String newPassword = AlphaNumericalPassGenerator.INSTANCE.generate();
                        u.setPassword(ChecksumUtil.encodeAsString(ChecksumUtil.SHA_1, newPassword));
                       
                        LOGGER.debug("changing password for user " + u.getLogin() + "[" + newPassword + ":" + u.getPassword() + "]");
                        us.update(u);
                        Portal.getInstance().getMailService().asyncSendMail(Portal.getInstance().getMailFactory().createRetrievePasswordMail(u.getEmail(), u.getLogin(), newPassword));
                       
                        return null;
                    }
                }
View Full Code Here

Examples of org.jayasoft.woj.server.data.BackupTimerDao.update()

   */
  public void updateBackupTimers(BackupTimer[] timers) {
    BackupTimerDao dao = WOJServer.getInstance().getDataService().getBackupTimerDao();
    for (int i = 0; i < timers.length; i++) {
      BackupTimer timer = timers[i];
      dao.update(timer);
    }
  }
 
  public String prepareModuleBackup(final long since, final String fileName, final long today){
    // Ensure update directory creation.
View Full Code Here

Examples of org.jayasoft.woj.server.data.GroupDao.update()

    public void updateGroup(Group[] grps) {
        GroupDao dao= WOJServer.getInstance().getDataService().getGroupDao();
        for (int i = 0; i < grps.length; i++) {
            Group group = grps[i];
            dao.update(group);
        }
        LOGGER.info(grps.length + "groups successfully updates.");
    }

    public void addUser(User[] usrs) {
View Full Code Here

Examples of org.jayasoft.woj.server.data.ModuleDescriptorDao.update()

            if (md instanceof ModuleDescriptorImpl) {
                LOGGER.debug("storing size of "+md.getModuleInfoAsString()+": "+size);
                ModuleDescriptorImpl mdimpl = (ModuleDescriptorImpl)md;
                mdimpl.setSize(size);
                ModuleDescriptorDao dao = WOJServer.getInstance().getDataService().getModuleDescriptorDao();
                dao.update(mdimpl);
            }
        }
        return size;
    }
View Full Code Here

Examples of org.jayasoft.woj.server.data.RightsDao.update()

                    prToUpdate = rightDao.getRightById(new Long(pr.getPrincipalId()));
                    if (prToUpdate == null) {
                      rightDao.insert(pr);
                    } else {
                      BeanHelper.copy(pr, prToUpdate, User.class);
                      rightDao.update(prToUpdate);
                    }
                }
            }
        }
        return null;
View Full Code Here

Examples of org.jayasoft.woj.server.data.UpdateTimerDao.update()

 
  public void updateUpdateTimers(UpdateTimer[] timers) {
    UpdateTimerDao dao = WOJServer.getInstance().getDataService().getUpdateTimerDao();
    for (int i = 0; i < timers.length; i++) {
      UpdateTimer timer = timers[i];
      dao.update(timer);
    }
  }
 
  public String getFtpHost() {
    return _ftpHost;
View Full Code Here

Examples of org.jayasoft.woj.server.data.UserDao.update()

    public void updateUser(User[] usrs) {
        UserDao dao= WOJServer.getInstance().getDataService().getUserDao();
        for (int i = 0; i < usrs.length; i++) {
            User usr = usrs[i];
            dao.update(usr);
        }
        LOGGER.info(usrs.length + "groups successfully updated.");
    }

  public User getUser(String login) {
View Full Code Here

Examples of org.jboss.aerogear.unifiedpush.jpa.dao.impl.JPAPushApplicationDao.update()

        variantDao.create(sp);

        // register the variants with the Push Application:
        pa.getVariants().add(av);
        pa.getVariants().add(sp);
        pushApplicationDao.update(pa);

        // ============== Android client installations =========
        Installation android1 = new Installation();
        android1.setAlias("foo@bar.org");
        android1.setDeviceToken(DEVICE_TOKEN_1);
View Full Code Here

Examples of org.jboss.aerogear.unifiedpush.jpa.dao.impl.JPAVariantDao.update()

        // register them:
        android1.setVariant(av);
        android2.setVariant(av);
        android3.setVariant(av);
        variantDao.update(av);

        // ============== SimplePush client installations =========
        Installation simplePush1 = new Installation();
        simplePush1.setAlias("foo@bar.org");
        simplePush1.setDeviceToken("http://server:8080/update/" + UUID.randomUUID().toString());
View Full Code Here

Examples of org.jboss.as.console.client.administration.role.form.PrincipalFormItem.update()

        final Form<RoleAssignment> form = new Form<RoleAssignment>(RoleAssignment.class);
        String title = type == GROUP ? Console.CONSTANTS.common_label_group() : Console.CONSTANTS.common_label_user();
        final PrincipalFormItem principalItem = new PrincipalFormItem(type, "principal", title);
        principalItem.setRequired(true);
        principalItem.update(principals);
        final TextBoxItem realmItem = new TextBoxItem("realm", "Realm", false);
        final ComboBoxItem includeExcludeItem = new ComboBoxItem("includeExclude",
                Console.CONSTANTS.administration_include_exclude());
        includeExcludeItem.setValueMap(
                new String[]{Console.CONSTANTS.common_label_include(), Console.CONSTANTS.common_label_exclude()});
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.