Package no.ugland.utransprod.service

Examples of no.ugland.utransprod.service.JobFunctionManager


  private ManagerRepository managerRepository;

  @Before
  public void setUp() throws Exception {
    MockitoAnnotations.initMocks(this);
    JobFunctionManager jobFunctionManager = (JobFunctionManager) ModelUtil
        .getBean(JobFunctionManager.MANAGER_NAME);
    when(managerRepository.getJobFunctionManager()).thenReturn(
        jobFunctionManager);
    ApplicationUser applicationUser = new ApplicationUser();
    applicationUser.setUserName("username");
View Full Code Here


  private ManagerRepository managerRepository;

  @Before
  public void beforeClass() {
    MockitoAnnotations.initMocks(this);
    final JobFunctionManager jobFunctionManager = (JobFunctionManager) ModelUtil
        .getBean(JobFunctionManager.MANAGER_NAME);
    when(managerRepository.getJobFunctionManager()).thenReturn(
        jobFunctionManager);
    final ProductAreaManager productAreaManager = (ProductAreaManager) ModelUtil
        .getBean(ProductAreaManager.MANAGER_NAME);
View Full Code Here

   * Setter liste med katagorier
   *
   * @param presentationModel
   */
  void setCategoryList(PresentationModel presentationModel) {
    JobFunctionManager jobFunctionManager = (JobFunctionManager) ModelUtil
        .getBean("jobFunctionManager");
    JobFunction jobFunction = (JobFunction) presentationModel
        .getBufferedValue(PreventiveActionModel.PROPERTY_JOB_FUNCTION);

    jobFunctionManager.lazyLoad(jobFunction, new LazyLoadEnum[][] { {
        LazyLoadEnum.FUNCTION_CATEGORIES, LazyLoadEnum.NONE } });
    if (jobFunction != null) {
      categoryList.clear();
      categoryList.addAll(jobFunction.getFunctionCategories());

View Full Code Here

        (ListModel) userProductAreaGroupList);
    userProductAreaGroupSelectionList.addPropertyChangeListener(
        SelectionInList.PROPERTYNAME_SELECTION_EMPTY,
        new EmptyListenerProductAreaGroup());

    JobFunctionManager jobFunctionManager = (JobFunctionManager) ModelUtil
        .getBean("jobFunctionManager");
    jobFunctionList = jobFunctionManager.findAll();

    ProductAreaManager productAreaManager = (ProductAreaManager) ModelUtil
        .getBean("productAreaManager");
    productAreaList = productAreaManager.findAll();
  }
View Full Code Here

      boolean useFromAndTo, ExcelReportEnum excelReportType) {
    super(excelReportType, new Dimension(320, 130));
    presentationModel = new PresentationModel(
        new ExcelReportSettingDeviation(excelReportType));

    JobFunctionManager jobFunctionManager = (JobFunctionManager) ModelUtil
        .getBean("jobFunctionManager");
    DeviationStatusManager deviationStatusManager = (DeviationStatusManager) ModelUtil
        .getBean("deviationStatusManager");
    // ProductAreaManager productAreaManager = (ProductAreaManager)
    // ModelUtil.getBean("productAreaManager");
    deviationFunctionList = new ArrayList<JobFunction>();
    List<JobFunction> functions = jobFunctionManager.findAll();

    if (functions != null) {
      for (JobFunction function : functions) {
        jobFunctionManager
            .lazyLoad(function, new LazyLoadEnum[][] { {
                LazyLoadEnum.FUNCTION_CATEGORIES,
                LazyLoadEnum.NONE } });
      }
      deviationFunctionList.addAll(functions);
View Full Code Here

   * Setter kategoriliste ut i fra funksjon
   *
   * @param presentationModel
   */
  void setCategoryList(PresentationModel presentationModel) {
    JobFunctionManager jobFunctionManager = (JobFunctionManager) ModelUtil
        .getBean("jobFunctionManager");
    JobFunction deviationFunction = (JobFunction) presentationModel
        .getBufferedValue(DeviationModel.PROPERTY_DEVIATION_FUNCTION);

    jobFunctionManager.lazyLoad(deviationFunction, new LazyLoadEnum[][] { {
        LazyLoadEnum.FUNCTION_CATEGORIES, LazyLoadEnum.NONE } });
    if (deviationFunction != null) {
      functionCategoryList.clear();
      functionCategoryList.addAll(deviationFunction
          .getFunctionCategories());
View Full Code Here

TOP

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

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.