Package com.abiquo.server.core.appslibrary

Examples of com.abiquo.server.core.appslibrary.CategoryDto


      license.setCode(readLicense("license/expired"));
      return license;
   }

   public static CategoryDto categoryPost() {
      CategoryDto category = new CategoryDto();
      category.setName("category");
      category.setErasable(false);
      category.setDefaultCategory(false);
      return category;
   }
View Full Code Here


      category.setDefaultCategory(false);
      return category;
   }

   public static CategoryDto categoryPut() {
      CategoryDto category = categoryPost();
      category.setId(1);
      category.addLink(new RESTLink("edit", "http://localhost/api/config/categories/1"));
      return category;
   }
View Full Code Here

    *      > http://community.abiquo.com/display/ABI20/Category+Resource#
    *      CategoryResource- Retrieveacategory</a>
    */
   public Category getCategory() {
      Integer categoryId = target.getIdFromLink(ParentLinkName.CATEGORY);
      CategoryDto category = context.getApi().getConfigApi().getCategory(categoryId);
      return wrap(context, Category.class, category);
   }
View Full Code Here

      return wrap(context, Category.class, result.getCollection());
   }

   @Override
   public Category getCategory(Integer categoryId) {
      CategoryDto result = context.getApi().getConfigApi().getCategory(categoryId);
      return wrap(context, Category.class, result);
   }
View Full Code Here

         this.erasable = erasable;
         return this;
      }

      public Category build() {
         CategoryDto dto = new CategoryDto();
         dto.setErasable(erasable);
         dto.setDefaultCategory(defaultCategory);
         dto.setName(name);
         Category category = new Category(context, dto);

         return category;
      }
View Full Code Here

      return wrap(context, Category.class, result.getCollection());
   }

   @Override
   public Category getCategory(Integer categoryId) {
      CategoryDto result = context.getApi().getConfigApi().getCategory(categoryId);
      return wrap(context, Category.class, result);
   }
View Full Code Here

         this.erasable = erasable;
         return this;
      }

      public Category build() {
         CategoryDto dto = new CategoryDto();
         dto.setErasable(erasable);
         dto.setDefaultCategory(defaultCategory);
         dto.setName(name);
         Category category = new Category(context, dto);

         return category;
      }
View Full Code Here

      license.setCode(readLicense("license/expired"));
      return license;
   }

   public static CategoryDto categoryPost() {
      CategoryDto category = new CategoryDto();
      category.setName("category");
      category.setErasable(false);
      category.setDefaultCategory(false);
      return category;
   }
View Full Code Here

      category.setDefaultCategory(false);
      return category;
   }

   public static CategoryDto categoryPut() {
      CategoryDto category = categoryPost();
      category.setId(1);
      category.addLink(new RESTLink("edit", "http://localhost/api/config/categories/1"));
      return category;
   }
View Full Code Here

    *      > http://community.abiquo.com/display/ABI20/Category+Resource#
    *      CategoryResource- Retrieveacategory</a>
    */
   public Category getCategory() {
      Integer categoryId = target.getIdFromLink(ParentLinkName.CATEGORY);
      CategoryDto category = context.getApi().getConfigApi().getCategory(categoryId);
      return wrap(context, Category.class, category);
   }
View Full Code Here

TOP

Related Classes of com.abiquo.server.core.appslibrary.CategoryDto

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.