Examples of UserType


Examples of no.ugland.utransprod.model.UserType

        @Override
        public void setValueAt(Object object, int rowIndex, int columnIndex) {
            Boolean access = (Boolean) object;
            WindowAccess windowAccess = (WindowAccess) getRow(rowIndex);
            UserTypeAccess userTypeAccess = userTypeAccessMap.get(windowAccess);
            UserType userType = ((UserTypeModel) presentationModel.getBean())
                    .getObject();
            List<UserTypeAccess> userTypeAccessList = (List<UserTypeAccess>) presentationModel
                    .getBufferedValue(UserTypeModel.PROPERTY_USER_TYPE_ACCESS_LIST);
            if (access) {
                if (userTypeAccess == null) {
View Full Code Here

Examples of no.ugland.utransprod.model.UserType

        .getBean("applicationUserManager");
    ApplicationUser user;
    user = applicationUserManager.login("admin", "admin");
    applicationUserManager.lazyLoad(user, new LazyLoadEnum[][] { {
        LazyLoadEnum.USER_ROLES, LazyLoadEnum.NONE } });
    UserType userType = user.getUserRoles().iterator().next().getUserType();

    Login login = new LoginImpl(user, userType);

    AccidentViewHandler accidentViewHandler = new AccidentViewHandler(
        login, managerRepository);
View Full Code Here

Examples of no.ugland.utransprod.model.UserType

    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);
    WindowAccess windowAccess = new WindowAccess();
    windowAccess.setWindowName("Produksjonsenhet");
    userTypeAccess.setWindowAccess(windowAccess);
    userTypeAccesses.add(userTypeAccess);
    userType.setUserTypeAccesses(userTypeAccesses);
    userType.setIsAdmin(1);
    when(login.getUserType()).thenReturn(userType);
    final DeviationOverviewViewFactory deviationOverviewViewFactory = new DeviationOverviewViewFactory() {

      public DeviationOverviewView create(
          DeviationViewHandler deviationViewHandler,
View Full Code Here

Examples of no.ugland.utransprod.model.UserType

    when(managerRepository.getApplicationUserManager()).thenReturn(
        applicationUserManager);
    when(managerRepository.getOrderManager()).thenReturn(orderManager);
    ApplicationUser applicationUser = new ApplicationUser();
    when(login.getApplicationUser()).thenReturn(applicationUser);
    UserType userType = new UserType();
    UserTypeAccess userTypeAccess = new UserTypeAccess();
    userTypeAccess.setWindowAccess(new WindowAccess(null, "Attributter",
        null));
    userType.setIsAdmin(1);
    Set<UserTypeAccess> userTypeAccesses = new HashSet<UserTypeAccess>();
    userTypeAccesses.add(userTypeAccess);
    userType.setUserTypeAccesses(userTypeAccesses);
    when(login.getUserType()).thenReturn(userType);

    OrderViewHandler orderViewHandler = new OrderViewHandler(login,
        managerRepository, deviationOverviewViewFactory,
        deviationViewHandlerFactory, true);
View Full Code Here

Examples of no.ugland.utransprod.model.UserType

  private ManagerRepository managerRepository;

  @Before
  public void setUp() throws Exception {
    MockitoAnnotations.initMocks(this);
    final UserType userType = new UserType();
    userType.setIsAdmin(1);
    when(login.getUserType()).thenReturn(userType);
    AttributeManager attributeManager = (AttributeManager) ModelUtil
        .getBean(AttributeManager.MANAGER_NAME);
    when(managerRepository.getAttributeManager()).thenReturn(
        attributeManager);
View Full Code Here

Examples of no.ugland.utransprod.model.UserType

    MockitoAnnotations.initMocks(this);
    final Colli colli = new Colli();
    final ColliModel colliModel = new ColliModel(colli);

    final Packable packable = null;
    final UserType userType = new UserType();
    Set<UserTypeAccess> userTypeAccesses = new HashSet<UserTypeAccess>();
    userType.setUserTypeAccesses(userTypeAccesses);
    UserUtil.setUserTypeManagerForTest(userTypeManager);
    when(managerRepository.getColliManager()).thenReturn(colliManager);
    when(login.getUserType()).thenReturn(userType);

   
View Full Code Here

Examples of no.ugland.utransprod.model.UserType

    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);
    WindowAccess windowAccess = new WindowAccess();
    windowAccess.setWindowName("Produksjonsenhet");
    userTypeAccess.setWindowAccess(windowAccess);
    userTypeAccesses.add(userTypeAccess);
    userType.setUserTypeAccesses(userTypeAccesses);
    userType.setIsAdmin(1);
    when(login.getUserType()).thenReturn(userType);

    final DeviationOverviewViewFactory deviationOverviewViewFactory = new DeviationOverviewViewFactory() {

      public DeviationOverviewView create(
View Full Code Here

Examples of no.ugland.utransprod.model.UserType

        .getBean("applicationUserManager");
    ApplicationUser user;
    user = applicationUserManager.login("admin", "admin");
    applicationUserManager.lazyLoad(user, new LazyLoadEnum[][] { {
        LazyLoadEnum.USER_ROLES, LazyLoadEnum.NONE } });
    UserType userType = user.getUserRoles().iterator().next().getUserType();

    ApplicationParamViewHandler applicationParamViewHandler = new ApplicationParamViewHandler(
        "Kollier", applicationParamManager, userType);

    final EditColliSetupView editColliSetupView = new EditColliSetupView(
View Full Code Here

Examples of no.ugland.utransprod.model.UserType

    DeviationManager deviationManager=(DeviationManager)ModelUtil.getBean(DeviationManager.MANAGER_NAME);
    when(managerRepository.getDeviationManager()).thenReturn(deviationManager);
    OrderManager orderManager = (OrderManager) ModelUtil
        .getBean(OrderManager.MANAGER_NAME);
    when(managerRepository.getOrderManager()).thenReturn(orderManager);
    final UserType userType = new UserType();
    Set<UserTypeAccess> userTypeAccesses = new HashSet<UserTypeAccess>();
    UserTypeAccess userTypeAccess = new UserTypeAccess();
    userTypeAccess.setWriteAccess(1);
    WindowAccess windowAccess = new WindowAccess();
    windowAccess.setWindowName("Produksjonsenhet");
    userTypeAccess.setWindowAccess(windowAccess);
    userTypeAccesses.add(userTypeAccess);
    userType.setUserTypeAccesses(userTypeAccesses);
    when(login.getUserType()).thenReturn(userType);
    final ApplicationUser applicationUser = new ApplicationUser();
    ProductArea productArea = new ProductArea();
    ProductAreaGroup productAreaGroup = new ProductAreaGroup();
    productArea.setProductAreaGroup(productAreaGroup);
View Full Code Here

Examples of no.ugland.utransprod.model.UserType

  private Login login;

  @Before
  public void setUp() throws Exception {
    MockitoAnnotations.initMocks(this);
    UserType userType = new UserType();
    userType.setIsAdmin(1);
    when(login.getUserType()).thenReturn(userType);

    TransportCostBasisManager transportCostBasisManager = (TransportCostBasisManager) ModelUtil
        .getBean(TransportCostBasisManager.MANAGER_NAME);
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.