You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by da...@apache.org on 2013/08/15 10:50:34 UTC

svn commit: r1514203 - in /isis/site/trunk/content/applib-guide/how-tos: about.md how-to-03-017-How-to-specify-default-value-of-an-object-property.md how-to-07-070-How-to-hook-into-the-object-lifecycle-using-callbacks.md

Author: danhaywood
Date: Thu Aug 15 08:50:34 2013
New Revision: 1514203

URL: http://svn.apache.org/r1514203
Log:
updates on defaultXxx and callback methods

Added:
    isis/site/trunk/content/applib-guide/how-tos/how-to-03-017-How-to-specify-default-value-of-an-object-property.md
    isis/site/trunk/content/applib-guide/how-tos/how-to-07-070-How-to-hook-into-the-object-lifecycle-using-callbacks.md
Modified:
    isis/site/trunk/content/applib-guide/how-tos/about.md

Modified: isis/site/trunk/content/applib-guide/how-tos/about.md
URL: http://svn.apache.org/viewvc/isis/site/trunk/content/applib-guide/how-tos/about.md?rev=1514203&r1=1514202&r2=1514203&view=diff
==============================================================================
--- isis/site/trunk/content/applib-guide/how-tos/about.md (original)
+++ isis/site/trunk/content/applib-guide/how-tos/about.md Thu Aug 15 08:50:34 2013
@@ -100,6 +100,8 @@ this can also be specified.
 
 * [How to specify an auto-complete for a property](./how-to-03-015-How-to-specify-an-autocomplete-for-a-property.html)
 
+* [How to specify the default value of an object property](./how-to-03-017-How-to-specify-default-value-of-an-object-property.html)
+
 * [How to specify a set of choices for an action parameter](./how-to-03-020-How-to-specify-a-set-of-choices-for-an-action-parameter.html)
 
 * [How to specify an auto-complete for an action parameter](./how-to-03-025-How-to-specify-an-autocomplete-for-an-action-parameter.html)
@@ -111,6 +113,7 @@ this can also be specified.
 * [How to specify default values for an action parameter](./how-to-03-050-How-to-specify-default-values-for-an-action-parameter.html)
 
 
+
 ##How to derive properties and collections, and other side-effects
 
 The *Isis* viewers will automatically render the state of properties and

Added: isis/site/trunk/content/applib-guide/how-tos/how-to-03-017-How-to-specify-default-value-of-an-object-property.md
URL: http://svn.apache.org/viewvc/isis/site/trunk/content/applib-guide/how-tos/how-to-03-017-How-to-specify-default-value-of-an-object-property.md?rev=1514203&view=auto
==============================================================================
--- isis/site/trunk/content/applib-guide/how-tos/how-to-03-017-How-to-specify-default-value-of-an-object-property.md (added)
+++ isis/site/trunk/content/applib-guide/how-tos/how-to-03-017-How-to-specify-default-value-of-an-object-property.md Thu Aug 15 08:50:34 2013
@@ -0,0 +1,6 @@
+How to specify default value of an object property
+--------------------------------------------------
+
+See [How to set up the initial value of a property programmatically](./how-to-07-010-How-to-set-up-the-initial-value-of-a-property-programmatically.html).
+
+

Added: isis/site/trunk/content/applib-guide/how-tos/how-to-07-070-How-to-hook-into-the-object-lifecycle-using-callbacks.md
URL: http://svn.apache.org/viewvc/isis/site/trunk/content/applib-guide/how-tos/how-to-07-070-How-to-hook-into-the-object-lifecycle-using-callbacks.md?rev=1514203&view=auto
==============================================================================
--- isis/site/trunk/content/applib-guide/how-tos/how-to-07-070-How-to-hook-into-the-object-lifecycle-using-callbacks.md (added)
+++ isis/site/trunk/content/applib-guide/how-tos/how-to-07-070-How-to-hook-into-the-object-lifecycle-using-callbacks.md Thu Aug 15 08:50:34 2013
@@ -0,0 +1,59 @@
+How to hook into the object lifecycle using callbacks
+-----------------------------------------------------
+
+Isis supports a number of callback methods corresponding to the persistence lifecycle of the object.
+
+They are:
+ 
+<table>
+<tr>
+    <th>Method</th>
+    <th>Called?</th>
+    <th>Notes</th>
+</tr>
+<tr>
+    <td><tt>created()</tt></td>
+    <td>After the object has been instantiated with <tt>DomainObjectContainer#newTransientInstance()</tt></td>
+    <td></td>
+</tr>
+<tr>
+    <td><tt>persisting()</tt></td>
+    <td>Before the object is persisted for the first time (INSERTed) into the object store</td>
+    <td><tt>saving()</tt> is also supported, but is deprecated</td>
+</tr>
+<tr>
+    <td><tt>persisted()</tt></td>
+    <td>After the object has been persisted for the first time (INSERTed) into the object store</td>
+    <td><tt>saved()</tt> is also supported, but is deprecated</td>
+</tr>
+<tr>
+    <td><tt>loading()</tt></td>
+    <td>Before the object is retrieved (resolved) from the object store</td>
+    <td></td>
+</tr>
+<tr>
+    <td><tt>loaded()</tt></td>
+    <td>After the object is retrieved (resolved) from the object store</td>
+    <td></td>
+</tr>
+<tr>
+    <td><tt>updating()</tt></td>
+    <td>Before the changed object is flushed (UPDATEd) to the object store</td>
+    <td></td>
+</tr>
+<tr>
+    <td><tt>updated()</tt></td>
+    <td>After the changed object is flushed (UPDATEd) to the object store</td>
+    <td></td>
+</tr>
+<tr>
+    <td><tt>removing()</tt></td>
+    <td>Before a removed object (through <tt>DomainObjectContainer#remove()</tt>) is removed (DELETEd) from the object store</td>
+    <td><tt>deleting()</tt> is also supported, but is deprecated</td>
+</tr>
+<tr>
+    <td><tt>removed()</tt></td>
+    <td>After a removed object has been removed (DELETEd) from the object store</td>
+    <td><tt>deleted()</tt> is also supported, but is deprecated</td>
+</tr>
+</table>