Examples of ArticleTypeManager


Examples of no.ugland.utransprod.service.ArticleTypeManager

    return list;
  }

  public static List<ArticleType> getArticleTypeList() {
    if (articleTypeList == null) {
      ArticleTypeManager articleTypeManager = getArticleTypeManager();
      articleTypeList = new ArrayList<ArticleType>(
          articleTypeManager.findAll());
    }
    return articleTypeList;
  }
View Full Code Here

Examples of no.ugland.utransprod.service.ArticleTypeManager

   * @param articleType
   * @param orderLineMain
   */
  private void setOrderLineRefs(ArticleType articleType,
      OrderLine orderLineMain) {
    ArticleTypeManager articleTypeManager = (ArticleTypeManager) ModelUtil
        .getBean("articleTypeManager");
    articleTypeManager
        .lazyLoad(
            articleType,
            new LazyLoadArticleTypeEnum[] { LazyLoadArticleTypeEnum.ARTICLE_TYPE_ARTICLE_TYPE });
    Set<ArticleTypeArticleType> articleRefs = articleType
        .getArticleTypeArticleTypes();
    OrderLine orderLine;
    Set<OrderLineAttribute> orderLineAttributes;
    Set<OrderLine> orderLineRefs = new HashSet<OrderLine>();
    if (articleRefs != null) {
      for (ArticleTypeArticleType articleRef : articleRefs) {
        orderLine = OrderLine
            .getInstance(
                (Order) presentationModelPackable
                    .getBufferedValue(ICostableModel.PROPERTY_ORDER),
                articleRef.getArticleTypeRef(),
                orderLineMain,
                (Deviation) presentationModelPackable
                    .getBufferedValue(ICostableModel.PROPERTY_DEVIATION));

        ArticleType articleTypeRef = articleRef.getArticleTypeRef();
        articleTypeManager
            .lazyLoad(
                articleTypeRef,
                new LazyLoadArticleTypeEnum[] { LazyLoadArticleTypeEnum.ATTRIBUTE });
        Set<ArticleTypeAttribute> attributes = articleTypeRef
            .getArticleTypeAttributes();
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.