You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@creadur.apache.org by rd...@apache.org on 2012/08/14 22:48:25 UTC

svn commit: r1373079 - /creadur/whisker/trunk/apache-whisker-model/src/main/java/org/apache/creadur/whisker/model/Descriptor.java

Author: rdonkin
Date: Tue Aug 14 20:48:24 2012
New Revision: 1373079

URL: http://svn.apache.org/viewvc?rev=1373079&view=rev
Log:
Thanks to PMD for spotting that organisations aren't stored.

Modified:
    creadur/whisker/trunk/apache-whisker-model/src/main/java/org/apache/creadur/whisker/model/Descriptor.java

Modified: creadur/whisker/trunk/apache-whisker-model/src/main/java/org/apache/creadur/whisker/model/Descriptor.java
URL: http://svn.apache.org/viewvc/creadur/whisker/trunk/apache-whisker-model/src/main/java/org/apache/creadur/whisker/model/Descriptor.java?rev=1373079&r1=1373078&r2=1373079&view=diff
==============================================================================
--- creadur/whisker/trunk/apache-whisker-model/src/main/java/org/apache/creadur/whisker/model/Descriptor.java (original)
+++ creadur/whisker/trunk/apache-whisker-model/src/main/java/org/apache/creadur/whisker/model/Descriptor.java Tue Aug 14 20:48:24 2012
@@ -37,10 +37,13 @@ public class Descriptor {
     private final String primaryNotice;
     /** License meta-data, indexed by id. */
     private final Map<String, License> licenses;
+    /** Organisation meta-data, indexed by id */
+    private final Map<String, Organisation> organisations;
     /** Notice meta-data, indexed by id. */
     private final Map<String, String> notices;
     /** Directories expected to be contained within the release. */
     private final Collection<WithinDirectory> contents;
+    
 
     /**
      * Constructs a description of the expected licensing qualities of a
@@ -115,6 +118,7 @@ public class Descriptor {
         this.primaryNotice = primaryNotice;
         this.licenses = licenses;
         this.notices = notices;
+        this.organisations = organisations;
         this.contents = contents;
     }
 
@@ -158,6 +162,14 @@ public class Descriptor {
     }
 
     /**
+     * Gets the organisations described.
+     * @return organisations indexed by id, not null
+     */
+    public Map<String, Organisation> getOrganisations() {
+        return organisations;
+    }
+
+    /**
      * Collates NOTICE meta-data not linked to any resource.
      * 
      * @return not null, possibly empty