Package fr.openwide.maven.artifact.notifier.core.business.user.model

Examples of fr.openwide.maven.artifact.notifier.core.business.user.model.User


  @Test
  public void testUser() throws ServiceException, SecurityServiceException {
   
    {
      User user = new User();
      user.setUserName("firstname.lastname@test.fr");
      user.setFullName("firstname lastname");
     
      userService.create(user);
    }
   
    List<User> userList = userService.list();
View Full Code Here


     
      Artifact artifact = new Artifact("guice");
      group.addArtifact(artifact);
      artifactService.create(artifact);
     
      User user = new User();
      user.setUserName("firstname.lastname@test.fr");
      user.setEmail(user.getUserName());
      userService.create(user);

      userService.followArtifact(user, artifact);
    }
   
View Full Code Here

  private IUserService userService;
 
  public ConfirmRegistrationHtmlNotificationDemoPage(PageParameters parameters) {
    super(parameters);

    User user = userService.getByUserName(ConsoleNotificationIndexPage.DEFAULT_USERNAME);
    if (user == null) {
      LOGGER.error("There is no user available");
      Session.get().error(getString("console.notifications.noDataAvailable"));
     
      throw new RestartResponseException(ConsoleNotificationIndexPage.class);
    }
    user.setNotificationHash(userService.getHash(user, user.getUserName()));
   
    add(new ConfirmRegistrationHtmlNotificationPanel("htmlPanel", Model.of(user)));
    user.setNotificationHash(null);
  }
View Full Code Here

  private IUserService userService;

  public NewVersionsHtmlNotificationDemoPage(PageParameters parameters) {
    super(parameters);
   
    User user = userService.getByUserName(ConsoleNotificationIndexPage.DEFAULT_USERNAME);
    if (user == null) {
      LOGGER.error("There is no user or email address available");
      Session.get().error(getString("console.notifications.noDataAvailable"));
     
      throw new RestartResponseException(ConsoleNotificationIndexPage.class);
View Full Code Here

  private IUserService userService;

  public NewVersionsAdditionalEmailHtmlNotificationDemoPage(PageParameters parameters) {
    super(parameters);
   
    User user = userService.getByUserName(ConsoleNotificationIndexPage.DEFAULT_USERNAME);
    if (user == null) {
      LOGGER.error("There is no user available");
      Session.get().error(getString("console.notifications.noDataAvailable"));
     
      throw new RestartResponseException(ConsoleNotificationIndexPage.class);
    }
   
    List<EmailAddress> emailAddresses = user.getAdditionalEmails();
    if (emailAddresses == null || emailAddresses.isEmpty()) {
      LOGGER.error("There is no additional email address available");
      Session.get().error(getString("console.notifications.noDataAvailable"));
     
      throw new RestartResponseException(ConsoleNotificationIndexPage.class);
View Full Code Here

TOP

Related Classes of fr.openwide.maven.artifact.notifier.core.business.user.model.User

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.