Package no.ugland.utransprod.service

Examples of no.ugland.utransprod.service.UserTypeManager


        LazyLoadEnum.USER_ROLES, LazyLoadEnum.NONE } });
    JobFunctionManager jobFunctionManager = (JobFunctionManager) ModelUtil
        .getBean("jobFunctionManager");
    if (user == null) {

      UserTypeManager userTypeManager = (UserTypeManager) ModelUtil
          .getBean("userTypeManager");
      JobFunction jobFunction = new JobFunction();
      jobFunction.setJobFunctionName("Transport");
      List<JobFunction> jobFunctions = jobFunctionManager
          .findByObject(jobFunction);
      jobFunction = jobFunctions.get(0);

      user = new ApplicationUser(null, "avviktransport",
          "avviktransport", "avviktransport", "avviktransport", null,
          "Nei", jobFunction, productArea, null);
      applicationUserManager.saveObject(user);

      UserType userType = new UserType();
      userType.setDescription("Avvik");
      List<UserType> userTypes = userTypeManager.findByObject(userType);
      userType = userTypes.get(0);

      Set<UserRole> userRoles = new HashSet<UserRole>();
      UserRole userRole = new UserRole(null, userType, user);
      userRoles.add(userRole);
View Full Code Here


    userType.setUserTypeAccesses(userTypeAccesses);
    when(login.getUserType()).thenReturn(userType);
    ApplicationParamUtil.setApplicationParamManger(applicationParamManager);

   
    final UserTypeManager userTypeManager = new UserTypeManagerTest();
    UserUtil.setUserTypeManagerForTest(userTypeManager);

   
    JDialog dialog = GuiActionRunner.execute(new GuiQuery<JDialog>() {
      protected JDialog executeInEDT() {
View Full Code Here

   * @param userType
   */
  public ApplicationUserViewHandler(Login aLogin,ApplicationUserManager applicationUserManager) {
    super("Brukere", applicationUserManager, aLogin.getUserType(), true);

    UserTypeManager userTypeManager = (UserTypeManager) ModelUtil
        .getBean("userTypeManager");
    userTypes = userTypeManager.findAll();
    userRoleList = new ArrayListModel();
    userRoleSelectionList = new SelectionInList((ListModel) userRoleList);
    userRoleSelectionList.addPropertyChangeListener(
        SelectionInList.PROPERTYNAME_SELECTION_EMPTY,
        new EmptyListenerUserRole());
View Full Code Here

TOP

Related Classes of no.ugland.utransprod.service.UserTypeManager

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.