Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/24/10 14:34:07 (15 years ago)
Author:
gkronber
Message:
  • replaced column ContactInformation with ContactName and ContactEmail in DB-schema and updated WCF deployment service
  • regenerated proxy classes
  • made PluginDescription from data contract implement IPluginDescription from plugin infrastructure
  • updated GUI on request by swagner (icons)
  • fixed problems in the upload plugins control.

#860 (Deployment server for plugin installation from web locations)

Location:
branches/DeploymentServer Prototype/HeuristicLab.Services/HeuristicLab.Services.Deployment
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/DeploymentServer Prototype/HeuristicLab.Services/HeuristicLab.Services.Deployment/PluginDescription.cs

    r2816 r2860  
    2121    }
    2222
    23     [DataMember(Name = "ContactInformation")]
    24     private string contactInformation;
    25     public string ContactInformation {
    26       get { return contactInformation; }
     23    [DataMember(Name = "ContactName")]
     24    private string contactName;
     25    public string ContactName {
     26      get { return contactName; }
     27    }
     28
     29    [DataMember(Name = "ContactEmail")]
     30    private string contactEmail;
     31    public string ContactEmail {
     32      get { return contactEmail; }
    2733    }
    2834
     
    3945    }
    4046
    41     public PluginDescription(string name, Version version, IEnumerable<PluginDescription> dependencies, string contactInformation, string license) {
     47    public PluginDescription(string name, Version version, IEnumerable<PluginDescription> dependencies,
     48      string contactName, string contactEmail, string license) {
    4249      if (string.IsNullOrEmpty(name)) throw new ArgumentException("name is empty");
    43       if (version == null || dependencies == null || contactInformation == null || license == null) throw new ArgumentNullException();
     50      if (version == null || dependencies == null ||
     51        contactName == null || contactEmail == null ||
     52        license == null) throw new ArgumentNullException();
    4453      this.name = name;
    4554      this.version = version;
    4655      this.dependencies = new List<PluginDescription>(dependencies);
    4756      this.licenseText = license;
    48       this.contactInformation = contactInformation;
     57      this.contactName = contactName;
     58      this.contactEmail = contactEmail;
    4959    }
    5060
     
    5464
    5565    public PluginDescription(string name, Version version, IEnumerable<PluginDescription> dependencies)
    56       : this(name, version, dependencies, string.Empty, string.Empty) {
     66      : this(name, version, dependencies, string.Empty, string.Empty, string.Empty) {
    5767    }
    5868  }
  • branches/DeploymentServer Prototype/HeuristicLab.Services/HeuristicLab.Services.Deployment/PluginStore.cs

    r2816 r2860  
    144144      // update plugin data
    145145      pluginEntity.License = pluginDescription.LicenseText;
    146       pluginEntity.ContactInformation = pluginDescription.ContactInformation;
    147      
     146      pluginEntity.ContactName = pluginDescription.ContactName;
     147      pluginEntity.ContactEmail = pluginDescription.ContactEmail;
     148
    148149      // delete cached entry
    149150      if (pluginDescriptions.ContainsKey(pluginEntity)) pluginDescriptions.Remove(pluginEntity);
     
    196197          from dep in GetDependencies(ctx, plugin)
    197198          select MakePluginDescription(ctx, dep),
    198           plugin.ContactInformation ?? string.Empty,
     199          plugin.ContactName ?? string.Empty,
     200          plugin.ContactEmail ?? string.Empty,
    199201          plugin.License ?? string.Empty
    200202          );
     
    208210      plugin.Name = pluginDescription.Name;
    209211      plugin.Version = pluginDescription.Version.ToString();
    210       plugin.ContactInformation = pluginDescription.ContactInformation;
     212      plugin.ContactName = pluginDescription.ContactName;
     213      plugin.ContactEmail = pluginDescription.ContactEmail;
    211214      plugin.License = pluginDescription.LicenseText;
    212215      return plugin;
Note: See TracChangeset for help on using the changeset viewer.