# File lib/openshift-origin-controller/app/models/rest_application_template.rb, line 4
  def initialize(template, url, nolinks=false)
    @uuid, @display_name, @descriptor_yaml, @git_url, @tags, @gear_cost, @metadata =
     template.uuid, template.display_name, template.descriptor_yaml, template.git_url, template.tags,
        template.gear_cost, template.metadata
        
    self.links = {
      "GET_TEMPLATE" => Link.new("Get specific template", "GET", URI::join(url, "application_templates/#{@uuid}")),
      "LIST_TEMPLATES" => Link.new("Get specific template", "GET", URI::join(url, "application_templates")),
      "LIST_TEMPLATES_BY_TAG" => Link.new("Get specific template", "GET", URI::join(url, "application_templates/TAG"))
    } unless nolinks
  end