Examples of ApplicationUser


Examples of no.ugland.utransprod.model.ApplicationUser

        ApplicationUserManager applicationUserManager=(ApplicationUserManager)ModelUtil.getBean(ApplicationUserManager.MANAGER_NAME);
        return applicationUserManager.login(userName, password);
    }
    private static UserType initUserType(){
        ApplicationUserManager applicationUserManager=(ApplicationUserManager)ModelUtil.getBean(ApplicationUserManager.MANAGER_NAME);
        ApplicationUser user=getUser();
        applicationUserManager.lazyLoad(user, new LazyLoadEnum[][]{{LazyLoadEnum.USER_ROLES,LazyLoadEnum.NONE}});
        return user.getUserRoles().iterator().next().getUserType();
    }
View Full Code Here

Examples of no.ugland.utransprod.model.ApplicationUser

        .getBean(ApplicationUserManager.MANAGER_NAME);
    when(managerRepository.getApplicationUserManager()).thenReturn(applicationUserManager);
    final DeviationManager deviationManager = (DeviationManager) ModelUtil
        .getBean(DeviationManager.MANAGER_NAME);
    when(managerRepository.getDeviationManager()).thenReturn(deviationManager);
    final ApplicationUser applicationUser = new ApplicationUser();
   
    final ProductArea productArea = productAreaManager
        .findByName("Garasje villa");
    ProductAreaGroupManager productAreaGroupManager = (ProductAreaGroupManager) ModelUtil
        .getBean(ProductAreaGroupManager.MANAGER_NAME);
    ProductAreaGroup productAreaGroup = productAreaGroupManager
        .findByName("Garasje");
    productArea.setProductAreaGroup(productAreaGroup);
    applicationUser.setProductArea(productArea);
    applicationUser.setUserName("username");
    applicationUser.setGroupUser("Nei");
    when(login.getApplicationUser()).thenReturn(applicationUser);
    final UserType userType = new UserType();
    Set<UserTypeAccess> userTypeAccesses = new HashSet<UserTypeAccess>();
    UserTypeAccess userTypeAccess = new UserTypeAccess();
    userTypeAccess.setWriteAccess(1);
View Full Code Here

Examples of no.ugland.utransprod.model.ApplicationUser

    MockitoAnnotations.initMocks(this);
    JobFunctionManager jobFunctionManager = (JobFunctionManager) ModelUtil
        .getBean(JobFunctionManager.MANAGER_NAME);
    when(managerRepository.getJobFunctionManager()).thenReturn(
        jobFunctionManager);
    ApplicationUser applicationUser = new ApplicationUser();
    applicationUser.setUserName("username");
    when(login.getApplicationUser()).thenReturn(applicationUser);
    UserType userType = new UserType();
    userType.setIsAdmin(1);
    when(login.getUserType()).thenReturn(userType);
    preventiveActionManager = (PreventiveActionManager) ModelUtil
View Full Code Here

Examples of no.ugland.utransprod.model.ApplicationUser

    userTypeAccess.setWindowAccess(windowAccess);
    userTypeAccesses.add(userTypeAccess);
    userType.setUserTypeAccesses(userTypeAccesses);

    when(login.getUserType()).thenReturn(userType);
    ApplicationUser applicationUser = new ApplicationUser();
    applicationUser.setGroupUser("Nei");
    when(login.getApplicationUser()).thenReturn(applicationUser);
    when(managerRepository.getAccidentManager())
        .thenReturn(accidentManager);
    List<Accident> accidentList = Lists.newArrayList();
    Accident accident = new Accident();
View Full Code Here

Examples of no.ugland.utransprod.model.ApplicationUser

  /**
   * @see no.ugland.utransprod.gui.handlers.AbstractViewHandler#getNewObject()
   */
  @Override
  public ApplicationUser getNewObject() {
    return new ApplicationUser();
  }
View Full Code Here

Examples of no.ugland.utransprod.model.ApplicationUser

   * @param window
   * @param presentationModel
   */
  void addProductAreaGroup(WindowInterface window,
      PresentationModel presentationModel) {
    ApplicationUser user = ((ApplicationUserModel) presentationModel
        .getBean()).getObject();
    List<ProductAreaGroup> groups = new ArrayList<ProductAreaGroup>(
        productAreaGroups);
       
    if (user.getProductArea() != null) {
      groups.remove(user.getProductArea().getProductAreaGroup());
    }
    ProductAreaGroup selectedGroup = (ProductAreaGroup) JOptionPane
        .showInputDialog(window.getComponent(), "Velg produktomr�de",
            "Legg til produktomr�de",
            JOptionPane.INFORMATION_MESSAGE, null,
View Full Code Here

Examples of no.ugland.utransprod.model.ApplicationUser

     * @param rowIndex
     * @param columnIndex
     * @return verdi
     */
    public Object getValueAt(int rowIndex, int columnIndex) {
      ApplicationUser applicationUser = (ApplicationUser) getRow(rowIndex);
      switch (columnIndex) {
      case 0:
        return applicationUser.getUserName();
      case 1:
        return applicationUser.getFirstName();
      case 2:
        return applicationUser.getLastName();
      case 3:
        return applicationUser.getGroupUser();
      case 4:
        return applicationUser.getProductArea();
      default:
        throw new IllegalStateException("Unknown column");
      }

    }
View Full Code Here

Examples of no.ugland.utransprod.model.ApplicationUser

     */
    public void propertyChange(PropertyChangeEvent arg0) {
      JobFunction function = (JobFunction) presentationModel
          .getBufferedValue(DeviationModel.PROPERTY_DEVIATION_FUNCTION);
      if (function != null) {
        ApplicationUser manager = function.getManager();
        if (manager != null
            && manager.equals(login.getApplicationUser())) {
          dateChooserProcedureCheck.setEnabled(true);
        }
      }

    }
View Full Code Here

Examples of no.ugland.utransprod.model.ApplicationUser

                    presentationModel));
        JobFunction function = (JobFunction) presentationModel
            .getBufferedValue(DeviationModel.PROPERTY_DEVIATION_FUNCTION);
        if (function != null) {

          ApplicationUser manager = function.getManager();
          if (manager != null
              && manager.equals(login.getApplicationUser())) {
            dateChooserProcedureCheck.setEnabled(true);
          }
        }
      }
View Full Code Here

Examples of org.dozer.vo.iface.ApplicationUser

  @Test
  public void testInterface() throws Exception {
    log.info("Starting");
    mapper = getMapper("interfaceMapping.xml");
    { // warm up to load the config
      ApplicationUser source = new ApplicationUser();
      UpdateMember target = new UpdateMember();
      mapper.map(source, target);
    }
    for (int j = 1; j <= 16384; j += j) {
      long start = System.currentTimeMillis();
      for (int i = 0; i < j; i++) {
        ApplicationUser source = new ApplicationUser();
        UpdateMember target = new UpdateMember();
        mapper.map(source, target);
      }
      long applicationUserTime = (System.currentTimeMillis() - start);
      start = System.currentTimeMillis();
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.