Package no.ugland.utransprod.service

Examples of no.ugland.utransprod.service.ArticleTypeManager


   */
  @Override
  public AbstractProductionPackageViewHandler<Produceable> getViewHandler() {
    GavlProductionVManager gavlProductionVManager = (GavlProductionVManager) ModelUtil
        .getBean("gavlProductionVManager");
        ArticleTypeManager articleTypeManager=(ArticleTypeManager)ModelUtil.getBean("articleTypeManager");
        ArticleType articleType = articleTypeManager.findByName(ApplicationParamUtil.findParamByName(getParamArticleName()));
    return new GavlProductionViewHandler(new ProductionApplyList(login,
        gavlProductionVManager, "Gavl", "Gavl",
        null,managerRepository), "Gavlproduksjon", login,articleType,managerRepository,deviationViewHandlerFactory,setProductionUnitActionFactory);
  }
View Full Code Here


    ApplicationUserManager applicationUserManager = (ApplicationUserManager) ModelUtil
        .getBean(ApplicationUserManager.MANAGER_NAME);
    when(managerRepository.getApplicationUserManager()).thenReturn(
        applicationUserManager);
    ArticleTypeManager articleTypeManager = (ArticleTypeManager) ModelUtil
        .getBean(ArticleTypeManager.MANAGER_NAME);
    when(managerRepository.getArticleTypeManager()).thenReturn(
        articleTypeManager);
    ProductAreaGroupManager productAreaGroupManager = (ProductAreaGroupManager) ModelUtil
        .getBean(ProductAreaGroupManager.MANAGER_NAME);
View Full Code Here

    when(login.getUserType()).thenReturn(userType);
    ConstructionTypeManager constructionTypeManager = (ConstructionTypeManager) ModelUtil
        .getBean(ConstructionTypeManager.MANAGER_NAME);
    when(managerRepository.getConstructionTypeManager()).thenReturn(
        constructionTypeManager);
    ArticleTypeManager articleTypeManager = (ArticleTypeManager) ModelUtil
        .getBean(ArticleTypeManager.MANAGER_NAME);
    when(managerRepository.getArticleTypeManager()).thenReturn(
        articleTypeManager);

    ConstructionTypeViewHandler viewHandler = new ConstructionTypeViewHandler(
View Full Code Here

    /**
     *
     */
    public SearchAttributeViewHandler() {
        ArticleTypeManager articleTypeManager = (ArticleTypeManager) ModelUtil
                .getBean("articleTypeManager");
        querySettings = new QuerySettings();
        queryPresentationModel = new PresentationModel(querySettings);

        List<ArticleType> articles = articleTypeManager.findAllTopLevel();
        if (articles != null) {
            lazyLoadArticles(articles);
        } else {
            articles = new ArrayList<ArticleType>();
        }
View Full Code Here

    /**
     * @return artikkel
     */
    private ArticleType getConstructionType() {
        ArticleType article = null;
        ArticleTypeManager articleTypeManager = (ArticleTypeManager) ModelUtil
                .getBean("articleTypeManager");
        List<Attribute> attributes = articleTypeManager
                .findAllConstructionTypeAttributes();
        if (attributes != null && attributes.size() != 0) {
            article = new ArticleType();
            Set<ArticleTypeAttribute> constructionTypeAttributes = new HashSet<ArticleTypeAttribute>();
            article.setArticleTypeName("Garasjetype");
View Full Code Here

    /**
     * Lazy laster artikler
     * @param articles
     */
    private void lazyLoadArticles(List<ArticleType> articles) {
        ArticleTypeManager articleTypeManager = (ArticleTypeManager) ModelUtil
                .getBean("articleTypeManager");
        for (ArticleType article : articles) {
            articleTypeManager.lazyLoad(article, new LazyLoadArticleTypeEnum[] {
                    LazyLoadArticleTypeEnum.ARTICLE_TYPE_ARTICLE_TYPE_REF,
                    LazyLoadArticleTypeEnum.ARTICLE_TYPE_ARTICLE_TYPE,
                    LazyLoadArticleTypeEnum.ATTRIBUTE});
        }
    }
View Full Code Here

        managerRepository.getTakstolPackageVManager(),
        managerRepository.getTakstolProductionVManager());
  }

  public static StatusCheckerInterface<Transportable> getGavlChecker() {
    ArticleTypeManager articleTypeManager = (ArticleTypeManager) ModelUtil
        .getBean("articleTypeManager");

    if (gavlArticleType == null) {
      gavlArticleType = articleTypeManager
          .findByName(getGavlArticleName());
    }

    return new DefaultProductionStatusChecker(gavlArticleType);
  }
View Full Code Here

    return new DefaultProductionStatusChecker(gavlArticleType);
  }

  public static StatusCheckerInterface<Transportable> getGulvsponChecker() {
    ArticleTypeManager articleTypeManager = getArticleTypeManager();

    if (gulvsponArticleType == null) {
      gulvsponArticleType = articleTypeManager
          .findByName(getGulvsponArticleName());
    }

    return new GulvsponStatusChecker(gulvsponArticleType);
  }
View Full Code Here

            .getBean(ArticleTypeManager.MANAGER_NAME);
  }

  public static StatusCheckerInterface<Transportable> getFrontChecker() {

    ArticleTypeManager articleTypeManager = (ArticleTypeManager) ModelUtil
        .getBean("articleTypeManager");
    ArticleType frontArticleType = articleTypeManager
        .findByName(getFrontArticleName());
    return new OnStorageStatusChecker(frontArticleType);
  }
View Full Code Here

        .findByName(getFrontArticleName());
    return new OnStorageStatusChecker(frontArticleType);
  }

  public static StatusCheckerInterface<Transportable> getVeggChecker() {
    ArticleTypeManager articleTypeManager = (ArticleTypeManager) ModelUtil
        .getBean("articleTypeManager");
    ArticleType veggArticleType = articleTypeManager
        .findByName(getVeggArticleName());
    return new OnStorageStatusChecker(veggArticleType);
  }
View Full Code Here

TOP

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

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.