You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by bu...@apache.org on 2014/12/05 15:58:27 UTC

svn commit: r931544 - in /websites/staging/isis/trunk: cgi-bin/ content/ content/more-advanced-topics/How-to-suppress-contributions.html

Author: buildbot
Date: Fri Dec  5 14:58:27 2014
New Revision: 931544

Log:
Staging update by buildbot for isis

Modified:
    websites/staging/isis/trunk/cgi-bin/   (props changed)
    websites/staging/isis/trunk/content/   (props changed)
    websites/staging/isis/trunk/content/more-advanced-topics/How-to-suppress-contributions.html

Propchange: websites/staging/isis/trunk/cgi-bin/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Fri Dec  5 14:58:27 2014
@@ -1 +1 @@
-1643312
+1643313

Propchange: websites/staging/isis/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Fri Dec  5 14:58:27 2014
@@ -1 +1 @@
-1643312
+1643313

Modified: websites/staging/isis/trunk/content/more-advanced-topics/How-to-suppress-contributions.html
==============================================================================
--- websites/staging/isis/trunk/content/more-advanced-topics/How-to-suppress-contributions.html (original)
+++ websites/staging/isis/trunk/content/more-advanced-topics/How-to-suppress-contributions.html Fri Dec  5 14:58:27 2014
@@ -445,33 +445,50 @@ includes an example showing how this can
 <p>The <a href="https://github.com/isisaddons/isis-app-kitchensink/tree/d4fd4e8b799af42c343b7e451bbf6f5d218869a1/dom/src/main/java/org/isisaddons/app/kitchensink/dom/contrib/contributed/PreferenceContributions.java">PreferenceContributions</a> service contributes the following:</p>
 
 <ul>
-<li><code>likes(...)</code> - a contributed collection to <code>Person</code>:</p>
+<li><code>likes(...)</code> - a contributed collection to <code>Person</code>:</li>
+</ul>
+
+<pre>
+    @NotContributed(NotContributed.As.ACTION) // ie contributed as collection
+    @NotInServiceMenu
+    @ActionSemantics(ActionSemantics.Of.SAFE)
+    public List<FoodStuff> likes(final Person person) { ... }
+</pre>
+
+<ul>
+<li><code>firstLove(...)</code> - contributed property, also to <code>Person</code></li>
+</ul>
+
+<pre>
+    @NotContributed(NotContributed.As.ACTION) // ie contributed as property
+    @NotInServiceMenu
+    @ActionSemantics(ActionSemantics.Of.SAFE)
+    public FoodStuff firstLove(final Person person) { ... }
+</pre>
 
-<p>@NotContributed(NotContributed.As.ACTION) // ie contributed as collection
-@NotInServiceMenu
-@ActionSemantics(ActionSemantics.Of.SAFE)
-public List<FoodStuff> likes(final Person person) { ... }</li>
-<li><code>firstLove(...)</code> - contributed property, also to <code>Person</code></p>
-
-<p>@NotContributed(NotContributed.As.ACTION) // ie contributed as property
-@NotInServiceMenu
-@ActionSemantics(ActionSemantics.Of.SAFE)
-public FoodStuff firstLove(final Person person) { ... }</li>
-<li><code>addPreference(...)</code> - a contributed action to both <code>Person</code> and <code>FoodStuff</code></p>
-
-<p>@NotInServiceMenu
-public Preference addPreference(
-        final Person person,
-        final @Named("Type") Preference.PreferenceType preferenceType,
-        final FoodStuff foodStuff) { ... }</li>
-<li><code>removePreference(...)</code> - a contributed action to both <code>Person</code> and <code>FoodStuff</code></p>
-
-<p>@NotInServiceMenu
-public Person removePreference(final Person person, final FoodStuff foodStuff) {
-    final List<Preference> preferences1 = preferences.listAllPreferences();
-    for (Preference preference : preferences1) { ... }</li>
+<ul>
+<li><code>addPreference(...)</code> - a contributed action to both <code>Person</code> and <code>FoodStuff</code></li>
+</ul>
+
+<pre>
+    @NotInServiceMenu
+    public Preference addPreference(
+            final Person person,
+            final @Named("Type") Preference.PreferenceType preferenceType,
+            final FoodStuff foodStuff) { ... }
+</pre>
+
+<ul>
+<li><code>removePreference(...)</code> - a contributed action to both <code>Person</code> and <code>FoodStuff</code></li>
 </ul>
 
+<pre>
+    @NotInServiceMenu
+    public Person removePreference(final Person person, final FoodStuff foodStuff) {
+        final List<Preference> preferences1 = preferences.listAllPreferences();
+        for (Preference preference : preferences1) { ... }
+</pre>
+
 <p>However, although <code>addPreference(...)</code> and <code>removePreference(...)</code> <em>are</em> contributed to both <code>Person</code> and <code>FoodStuff</code>, this can be hidden using the <code>.layout.json</code> file.  Thus, in <a href="https://github.com/isisaddons/isis-app-kitchensink/tree/d4fd4e8b799af42c343b7e451bbf6f5d218869a1/dom/src/main/java/org/isisaddons/app/kitchensink/dom/contrib/contributee/FoodStuff.layout.json#L57-57">FoodStuff,layout.json</a> we have:</p>
 
 <pre><code>"actions": {