Package com.abiquo.server.core.appslibrary

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


    *      TemplateDefinitionListResource-Retrieveatemplatedefinitionlist</a>
    * @return Template definition with the given id or <code>null</code> if it
    *         does not exist.
    */
   public TemplateDefinitionList getTemplateDefinitionList(final Integer id) {
      TemplateDefinitionListDto templateList = context.getApi().getEnterpriseApi()
            .getTemplateDefinitionList(target, id);
      return wrap(context, TemplateDefinitionList.class, templateList);
   }
View Full Code Here


         this.url = url;
         return this;
      }

      public TemplateDefinitionList build() {
         TemplateDefinitionListDto dto = new TemplateDefinitionListDto();
         dto.setName(name);
         dto.setUrl(url);

         TemplateDefinitionList templateList = new TemplateDefinitionList(context, dto);
         templateList.enterprise = enterprise;
         return templateList;
View Full Code Here

    *      TemplateDefinitionListResource-Retrieveatemplatedefinitionlist</a>
    * @return Template definition with the given id or <code>null</code> if it
    *         does not exist.
    */
   public TemplateDefinitionList getTemplateDefinitionList(final Integer id) {
      TemplateDefinitionListDto templateList = context.getApi().getEnterpriseApi()
            .getTemplateDefinitionList(target, id);
      return wrap(context, TemplateDefinitionList.class, templateList);
   }
View Full Code Here

      limits.addLink(new RESTLink("edit", "http://localhost/api/admin/enterprises/" + enterprise.getId() + "/limits/1"));
      return limits;
   }

   public static TemplateDefinitionListDto templateListPost() {
      TemplateDefinitionListDto templateList = new TemplateDefinitionListDto();
      templateList.setName("myList");
      templateList.setUrl("http://virtualapp-repository.com/vapp1.ovf");
      return templateList;
   }
View Full Code Here

      templateList.setUrl("http://virtualapp-repository.com/vapp1.ovf");
      return templateList;
   }

   public static TemplateDefinitionListDto templateListPut() {
      TemplateDefinitionListDto templateList = templateListPost();
      templateList.setId(1);
      templateList.addLink(new RESTLink("edit",
            "http://localhost/api/admin/enterprises/1/appslib/templateDefinitionLists/1"));
      templateList.addLink(new RESTLink("repositoryStatus",
            "http://localhost/api/admin/enterprises/1/appslib/templateDefinitionLists/1/actions/repositoryStatus"));
      return templateList;
   }
View Full Code Here

      checkFilters(request);
   }

   public void testCreateTemplateDefinitionList() throws SecurityException, NoSuchMethodException, IOException {
      EnterpriseDto enterprise = EnterpriseResources.enterprisePut();
      TemplateDefinitionListDto template = EnterpriseResources.templateListPost();

      Invokable<?, ?> method = method(EnterpriseApi.class, "createTemplateDefinitionList", EnterpriseDto.class,
            TemplateDefinitionListDto.class);
      GeneratedHttpRequest request = processor.apply(Invocation.create(method,
            ImmutableList.<Object> of(enterprise, template)));
View Full Code Here

      checkFilters(request);
   }

   public void testUpdateTemplateDefinitionList() throws SecurityException, NoSuchMethodException, IOException {
      TemplateDefinitionListDto template = EnterpriseResources.templateListPut();

      Invokable<?, ?> method = method(EnterpriseApi.class, "updateTemplateDefinitionList",
            TemplateDefinitionListDto.class);
      GeneratedHttpRequest request = processor.apply(Invocation.create(method, ImmutableList.<Object> of(template)));
View Full Code Here

         this.url = url;
         return this;
      }

      public TemplateDefinitionList build() {
         TemplateDefinitionListDto dto = new TemplateDefinitionListDto();
         dto.setName(name);
         dto.setUrl(url);

         TemplateDefinitionList templateList = new TemplateDefinitionList(context, dto);
         templateList.enterprise = enterprise;
         return templateList;
View Full Code Here

      limits.addLink(new RESTLink("edit", "http://localhost/api/admin/enterprises/" + enterprise.getId() + "/limits/1"));
      return limits;
   }

   public static TemplateDefinitionListDto templateListPost() {
      TemplateDefinitionListDto templateList = new TemplateDefinitionListDto();
      templateList.setName("myList");
      templateList.setUrl("http://virtualapp-repository.com/vapp1.ovf");
      return templateList;
   }
View Full Code Here

      templateList.setUrl("http://virtualapp-repository.com/vapp1.ovf");
      return templateList;
   }

   public static TemplateDefinitionListDto templateListPut() {
      TemplateDefinitionListDto templateList = templateListPost();
      templateList.setId(1);
      templateList.addLink(new RESTLink("edit",
            "http://localhost/api/admin/enterprises/1/appslib/templateDefinitionLists/1"));
      templateList.addLink(new RESTLink("repositoryStatus",
            "http://localhost/api/admin/enterprises/1/appslib/templateDefinitionLists/1/actions/repositoryStatus"));
      return templateList;
   }
View Full Code Here

TOP

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

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.