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 2015/06/01 17:57:23 UTC
[1/4] isis git commit: ISIS-1133: working on the annotations.
Repository: isis
Updated Branches:
refs/heads/ISIS-1133 d85483af7 -> 4a9da14d9
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_testing_integ-test-support_typical-usage.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_testing_integ-test-support_typical-usage.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_testing_integ-test-support_typical-usage.adoc
index 889d3a2..3d76e8b 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_testing_integ-test-support_typical-usage.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_testing_integ-test-support_typical-usage.adoc
@@ -88,7 +88,7 @@ public class ToDoItemIntegTest ... {
}
----
<1> the idiom we follow is to use nested static classes to identify the class responsibility being tested
-<2> the http://github.com/isisaddons/isis-app-todoapp[todoapp] uses link:http://assertj.org[AssertJ].
+<2> the http://github.com/isisaddons/isis-app-todoapp[todoapp] uses link:http://joel-costigliola.github.io/assertj[AssertJ].
What about when a todo item is already completed? The `disableCompleted()` method in the class says that it shouldn't be allowed (the action would be greyed out in the UI with an appropriate tooltip). The following test verifies this:
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_wicket-viewer_customisation_brand-logo.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_wicket-viewer_customisation_brand-logo.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_wicket-viewer_customisation_brand-logo.adoc
index 85f8c86..9572f74 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_wicket-viewer_customisation_brand-logo.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_wicket-viewer_customisation_brand-logo.adoc
@@ -56,7 +56,7 @@ protected Module newIsisWicketModule() {
If the logo is hosted locally, add to the relevant directory (eg `src/main/webapp/images`). It is also valid for the
URL to be absolute.
-You may also wish to tweak the `css/application.css`. For example, a logo with height 40px works well with the following:
+You may also wish to tweak the xref:_ug_runtime_application-specific_application-css[`application.css`]. For example, a logo with height 40px works well with the following:
[source,css]
----
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_wicket-viewer_customisation_tweaking-css-classes.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_wicket-viewer_customisation_tweaking-css-classes.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_wicket-viewer_customisation_tweaking-css-classes.adoc
index 337ea45..af20aa5 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_wicket-viewer_customisation_tweaking-css-classes.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_wicket-viewer_customisation_tweaking-css-classes.adoc
@@ -15,7 +15,7 @@ The HTML generated by the Wicket viewer include plenty of CSS classes so that yo
}
----
-These customizations should generally be added to `src/main/webapp/css/application.css`; this file is included by default in every webpage served up by the Wicket viewer.
+These customizations should generally be added to xref:_ug_runtime_application-specific_application-css[`application.css]`; this file is included by default in every webpage served up by the Wicket viewer.
@@ -46,7 +46,7 @@ For example, the `ToDoItem` object of the Isis addons example https://github.com
</div>
----
-The `src/main/webapp/css/application.css` file is the place to add application-specific styles. By way of an example, if (for some reason) we wanted to completely hide the notes value, we could do so using:
+The xref:_ug_runtime_application-specific_application-css[`application.css`] file is the place to add application-specific styles. By way of an example, if (for some reason) we wanted to completely hide the notes value, we could do so using:
[source,css]
----
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_wicket-viewer_isis-addons.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_wicket-viewer_isis-addons.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_wicket-viewer_isis-addons.adoc
index 52050f7..2e499d7 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_wicket-viewer_isis-addons.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_wicket-viewer_isis-addons.adoc
@@ -5,7 +5,7 @@
:_imagesdir: images/
-The http://isisaddons.org[Isis Addons] website provides a number of extensions to the Wicket viewer (leveraging the APIs described in <<Extending the Wicket viewer>> section, later. While you are free to fork and adapt any of them to your needs, they are also intended for use "out-of-the-box".
+The (non-ASF) link:http://www.isisaddons.org[Isis Addons] website provides a number of extensions to the Wicket viewer (leveraging the APIs described in <<Extending the Wicket viewer>> section, later. While you are free to fork and adapt any of them to your needs, they are also intended for use "out-of-the-box".
[WARNING]
====
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_wicket-viewer_layout_static-object-layout.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_wicket-viewer_layout_static-object-layout.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_wicket-viewer_layout_static-object-layout.adoc
index a6b8e51..b33ac94 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_wicket-viewer_layout_static-object-layout.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_wicket-viewer_layout_static-object-layout.adoc
@@ -100,7 +100,7 @@ public class ToDoItem {
Four values are given in the `columnSpans` attribute. The first three are the relative widths of the three columns of property groups. The fourth, meanwhile, indicates the width of a final column that holds all the collections of the object.
-The values of these spans are taken as proportions of 12 virtual columns across the page (this taken from the http://twitter.github.io/bootstrap/[Bootstrap] library).
+The values of these spans are taken as proportions of 12 virtual columns across the page (this taken from the link:http://getbootstrap.com/2.3.2/[Bootstrap] library).
For example:
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/images/reference-annotations/ActionLayout/bookmarking.png
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/images/reference-annotations/ActionLayout/bookmarking.png b/adocs/documentation/src/main/asciidoc/user-guide/images/reference-annotations/ActionLayout/bookmarking.png
new file mode 100644
index 0000000..0100b63
Binary files /dev/null and b/adocs/documentation/src/main/asciidoc/user-guide/images/reference-annotations/ActionLayout/bookmarking.png differ
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/images/reference/configuration-properties/datanucleus-objectstore/party-agreementrole-agreement.png
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/images/reference/configuration-properties/datanucleus-objectstore/party-agreementrole-agreement.png b/adocs/documentation/src/main/asciidoc/user-guide/images/reference/configuration-properties/datanucleus-objectstore/party-agreementrole-agreement.png
deleted file mode 100644
index 67744c9..0000000
Binary files a/adocs/documentation/src/main/asciidoc/user-guide/images/reference/configuration-properties/datanucleus-objectstore/party-agreementrole-agreement.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/images/runtime/configuring-datanucleus/disabling-persistence-by-reachability/party-agreementrole-agreement.png
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/images/runtime/configuring-datanucleus/disabling-persistence-by-reachability/party-agreementrole-agreement.png b/adocs/documentation/src/main/asciidoc/user-guide/images/runtime/configuring-datanucleus/disabling-persistence-by-reachability/party-agreementrole-agreement.png
new file mode 100644
index 0000000..67744c9
Binary files /dev/null and b/adocs/documentation/src/main/asciidoc/user-guide/images/runtime/configuring-datanucleus/disabling-persistence-by-reachability/party-agreementrole-agreement.png differ
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/ug.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/ug.adoc b/adocs/documentation/src/main/asciidoc/user-guide/ug.adoc
index 358d7a8..f5bc6a6 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/ug.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/ug.adoc
@@ -6,13 +6,13 @@
:numbered:
-include::_ug_core-concepts.adoc[leveloffset=+1]
-include::_ug_isis-in-pictures.adoc[leveloffset=+1]
-include::_ug_getting-started.adoc[leveloffset=+1]
-include::_ug_tutorials.adoc[leveloffset=+1]
+//include::_ug_core-concepts.adoc[leveloffset=+1]
+//include::_ug_isis-in-pictures.adoc[leveloffset=+1]
+//include::_ug_getting-started.adoc[leveloffset=+1]
+//include::_ug_tutorials.adoc[leveloffset=+1]
-include::_ug_how-tos.adoc[leveloffset=+1]
-include::_ug_more-advanced.adoc[leveloffset=+1]
+//include::_ug_how-tos.adoc[leveloffset=+1]
+//include::_ug_more-advanced.adoc[leveloffset=+1]
include::_ug_reference-annotations.adoc[leveloffset=+1]
include::_ug_reference-methods.adoc[leveloffset=+1]
@@ -20,17 +20,17 @@ include::_ug_reference-services-api.adoc[leveloffset=+1]
include::_ug_reference-services-spi.adoc[leveloffset=+1]
include::_ug_reference-classes.adoc[leveloffset=+1]
-include::_ug_wicket-viewer.adoc[leveloffset=+1]
-include::_ug_restfulobjects-viewer.adoc[leveloffset=+1]
-include::_ug_security.adoc[leveloffset=+1]
+//include::_ug_wicket-viewer.adoc[leveloffset=+1]
+//include::_ug_restfulobjects-viewer.adoc[leveloffset=+1]
+//include::_ug_security.adoc[leveloffset=+1]
include::_ug_runtime.adoc[leveloffset=+1]
-include::_ug_isis-maven-plugin.adoc[leveloffset=+1]
-include::_ug_deployment.adoc[leveloffset=+1]
-include::_ug_testing.adoc[leveloffset=+1]
-include::_ug_headless-access.adoc[leveloffset=+1]
-include::_ug_isis-addons-modules.adoc[leveloffset=+1]
-include::_ug_extending.adoc[leveloffset=+1]
-include::_ug_troubleshooting.adoc[leveloffset=+1]
+//include::_ug_isis-maven-plugin.adoc[leveloffset=+1]
+//include::_ug_deployment.adoc[leveloffset=+1]
+//include::_ug_testing.adoc[leveloffset=+1]
+//include::_ug_headless-access.adoc[leveloffset=+1]
+//include::_ug_isis-addons-modules.adoc[leveloffset=+1]
+//include::_ug_extending.adoc[leveloffset=+1]
+//include::_ug_troubleshooting.adoc[leveloffset=+1]
-include::_ug_appendices.adoc[leveloffset=+1]
+//include::_ug_appendices.adoc[leveloffset=+1]
[2/4] isis git commit: ISIS-1133: working on the annotations.
Posted by da...@apache.org.
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-DomainServiceLayout.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-DomainServiceLayout.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-DomainServiceLayout.adoc
index 4025456..ab631e7 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-DomainServiceLayout.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-DomainServiceLayout.adoc
@@ -11,8 +11,8 @@ within a single annotation.
The table below summarizes the annotation's attributes.
-.`@Action` attributes
-[cols="2,2,4", options="header"]
+.`@DomainServiceLayout` attributes
+[cols="2,2,4a", options="header"]
|===
| Attribute
@@ -40,7 +40,10 @@ The table below summarizes the annotation's attributes.
-It is not (currently) possible to specify the UI hints through any other means (specifically: is _not_ supported through a `.layout.json` file).
+[NOTE]
+====
+Note that there is (currently) no support for specifying UI hints for domain services through the dynamic xref:_ug_wicket-viewer_layout_dynamic-object-layout[`.layout.json`] file (only for properties, collections and actions are supported).
+====
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-DomainServiceLayout_named.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-DomainServiceLayout_named.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-DomainServiceLayout_named.adoc
index 91d3cc6..14f4591 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-DomainServiceLayout_named.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-DomainServiceLayout_named.adoc
@@ -12,6 +12,17 @@ IMPORTANT: WIP ... this section
By default the name of an object is derived, reflectively from the class name.
+
+[TIP]
+====
+Following the link:http://en.wikipedia.org/wiki/Don%27t_repeat_yourself[don't repeat yourself] principle, we recommend that you only use this attribute when the desired name cannot be used in Java source code. Examples of that include a name that would be a reserved Java keyword (eg "package"), or a name that has punctuation, eg apostrophes.
+====
+
+[NOTE]
+====
+This attribute can also be specified for xref:_ug_reference-annotations_manpage-ActionLayout_named[actions], xref:_ug_reference-annotations_manpage-CollectionLayout_named[collections], xref:_ug_reference-annotations_manpage-PropertyLayout_named[properties], xref:_ug_reference-annotations_manpage-ParameterLayout_named[action parameters], xref:_ug_reference-annotations_manpage-DomainObjectLayout_named[domain objects] and xref:_ug_reference-annotations_manpage-ViewModelLayout_named[view models].
+====
+
To specify a different name for an object, use the `@Named` annotation in front of the class declaration.
The `@Named` annotation is used when you want to specify the way something is named on the user interface i.e. when you do not want to use the name generated automatically by the system. It can be applied to objects, members (properties, collections, and actions) and to parameters within an action method.
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Parameter.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Parameter.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Parameter.adoc
index a1d9a29..6fe9040 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Parameter.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Parameter.adoc
@@ -9,8 +9,8 @@ The `@Parameter` annotation applies to action parameters collecting together all
The table below summarizes the annotation's attributes.
-.`@Action` attributes
-[cols="2,2,4", options="header"]
+.`@Paramter` attributes
+[cols="2,2,4a", options="header"]
|===
| Attribute
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ParameterLayout.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ParameterLayout.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ParameterLayout.adoc
index 953251f..5276c61 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ParameterLayout.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ParameterLayout.adoc
@@ -10,8 +10,8 @@ The `@ParameterLayout` annotation applies to action parameters, collecting toget
The table below summarizes the annotation's attributes.
-.`@Action` attributes
-[cols="2,2,4", options="header"]
+.`@ParameterLayout` attributes
+[cols="2,2,4a", options="header"]
|===
| Attribute
@@ -21,7 +21,7 @@ The table below summarizes the annotation's attributes.
|xref:_ug_reference-annotations_manpage-ParameterLayout_cssClass[`cssClass()`]
|
-|the css class that a parameter should have, to allow more targetted styling in `application.css`
+|the css class that a parameter should have, to allow more targetted styling in xref:_ug_runtime_application-specific_application-css[`application.css`]
|xref:_ug_reference-annotations_manpage-ParameterLayout_describedAs[`describedAs()`]
@@ -98,9 +98,13 @@ public class ToDoItem {
}
----
-Unlike xref:_ug_reference-annotations_manpage_PropertyLayout[`@PropertyLayout`], it (currently) isn't possible to specify layout hints for action parameters using the `.layout.json` file.
+[NOTE]
+====
+Note that there is (currently) no support for specifying UI hints for domain services through the dynamic xref:_ug_wicket-viewer_layout_dynamic-object-layout[`.layout.json`] file (only for properties, collections and actions are supported).
+====
+
[TIP]
.Specifying a default setting
====
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ParameterLayout_cssClass.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ParameterLayout_cssClass.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ParameterLayout_cssClass.adoc
index b8fa21b..cca0a12 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ParameterLayout_cssClass.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ParameterLayout_cssClass.adoc
@@ -14,6 +14,11 @@ The `CssClass` annotation applies to object and also to any object member
(property, collection or action). It is used by the Wicket viewer as a UI hint
to render specified CSS classes around the representation of the element.
+[NOTE]
+====
+This attribute can also be applied to xref:_ug_reference-annotations_manpage-DomainObjectLayout_cssClass[domain objects], xref:_ug_reference-annotations_manpage-ViewModelLayout_cssClass[view models], xref:_ug_reference-annotations_manpage-ActionLayout_cssClass[actions] xref:_ug_reference-annotations_manpage-PropertyLayout_cssClass[properties], xref:_ug_reference-annotations_manpage-CollectionLayout_cssClass[collections] and xref:_ug_reference-annotations_manpage-ParameterLayout_cssClass[action parameters].
+====
+
Application-specific CSS can then be used to target and adjust the UI representation
of that particular element.
@@ -40,7 +45,7 @@ public class ToDoItem {
[NOTE]
====
-The similar xref:_ug_reference-annotations_manpage_ParameterLayout_cssClassFa[`@ParameterLayout#cssClassFa()`] annotation attribute is also used as a hint to apply CSS, but in particular to allow http://fortawesome.github.io/Font-Awesome/icons/[Font Awesome icons] to be rendered on action butotns or as the icon for classes.
+The similar xref:_ug_reference-annotations_manpage-ParameterLayout_cssClassFa[`@ParameterLayout#cssClassFa()`] annotation attribute is also used as a hint to apply CSS, but in particular to allow http://fortawesome.github.io/Font-Awesome/icons/[Font Awesome icons] to be rendered on action butotns or as the icon for classes.
====
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ParameterLayout_describedAs.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ParameterLayout_describedAs.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ParameterLayout_describedAs.adoc
index c9695a6..4636835 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ParameterLayout_describedAs.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ParameterLayout_describedAs.adoc
@@ -10,6 +10,11 @@ IMPORTANT: WIP ... this section
The `@DescribedAs` annotation is used to provide a short description of something that features on the user interface. How this description is used will depend upon the viewing mechanism - but it may be thought of as being like a 'tool tip'.
+[NOTE]
+====
+The `describedAs()` attribute can also be specified for xref:_ug_reference-annotations_manpage-CollectionLayout_describedAs[collections], xref:_ug_reference-annotations_manpage-PropertyLayout_describedAs[properties], xref:_ug_reference-annotations_manpage-ActionLayout_describedAs[actions], xref:_ug_reference-annotations_manpage-DomainObjectLayout_describedAs[domain objects] and xref:_ug_reference-annotations_manpage-ViewModelLayout_describedAs[view models].
+====
+
Descriptions may be provided for objects, members (properties,
collections and actions), and for individual parameters within an action
method. `@DescribedAs` therefore works in a very similar manner to
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ParameterLayout_named.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ParameterLayout_named.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ParameterLayout_named.adoc
index 7b2ac5c..354e544 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ParameterLayout_named.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ParameterLayout_named.adoc
@@ -16,6 +16,17 @@ objects, members (properties, collections, and actions) and to
parameters within an action method.
+[TIP]
+====
+Following the link:http://en.wikipedia.org/wiki/Don%27t_repeat_yourself[don't repeat yourself] principle, we recommend that you only use this attribute when the desired name cannot be used in Java source code. Examples of that include a name that would be a reserved Java keyword (eg "package"), or a name that has punctuation, eg apostrophes.
+====
+
+[NOTE]
+====
+This attribute can also be specified for xref:_ug_reference-annotations_manpage-ActionLayout_named[actions], xref:_ug_reference-annotations_manpage-CollectionLayout_named[collections], xref:_ug_reference-annotations_manpage-PropertyLayout_named[properties], xref:_ug_reference-annotations_manpage-DomainObjectLayout_named[domain objects], xref:_ug_reference-annotations_manpage-ViewModelLayout_named[view models] and xref:_ug_reference-annotations_manpage-DomainServiceLayout_named[domain services].
+====
+
+
The most common usage of `@Named` is be to specify names for the
parameters of an action. This is because the parameter name declared in
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Property.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Property.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Property.adoc
index 9bbc0e7..b1bd4c0 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Property.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Property.adoc
@@ -13,8 +13,8 @@ It is also possible to apply the annotation to actions of domain services that a
-.`@Action` attributes
-[cols="2,2,4", options="header"]
+.`@Property` attributes
+[cols="2,2,4a", options="header"]
|===
| Attribute
@@ -23,8 +23,9 @@ It is also possible to apply the annotation to actions of domain services that a
|xref:_ug_reference-annotations_manpage-Property_domainEvent[`domainEvent()`]
-|
-|
+|subtype of `PropertyDomainEvent` +
+(`PropertyDomainEvent.Default`)
+|the event type to be posted to the xref:_ug_reference-services-api_manpage-EventBusService[`EventBusService`] to broadcast the property's business rule checking (hide, disable, validate) and its modification (before and after).
|xref_ug_reference-annotations_manpage-Property_editing[`editing()`]
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-PropertyLayout.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-PropertyLayout.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-PropertyLayout.adoc
index 8f8cb4c..b0d44c2 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-PropertyLayout.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-PropertyLayout.adoc
@@ -10,8 +10,8 @@ The `@PropertyLayout` annotation applies to properties collecting together all U
The table below summarizes the annotation's attributes.
-.`@Action` attributes
-[cols="2,2,4", options="header"]
+.`@PropertyLayout` attributes
+[cols="2,2,4a", options="header"]
|===
| Attribute
@@ -21,7 +21,7 @@ The table below summarizes the annotation's attributes.
|xref:_ug_reference-annotations_manpage-PropertyLayout_cssClass[`cssClass()`]
|
-|the css class that a property should have, to allow more targetted styling in `application.css`
+|the css class that a property should have, to allow more targetted styling in xref:_ug_runtime_application-specific_application-css[`application.css`]
|xref:_ug_reference-annotations_manpage-PropertyLayout_describedAs[`describedAs()`]
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-PropertyLayout_cssClass.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-PropertyLayout_cssClass.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-PropertyLayout_cssClass.adoc
index d76a9ed..908db08 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-PropertyLayout_cssClass.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-PropertyLayout_cssClass.adoc
@@ -12,6 +12,11 @@ IMPORTANT: WIP ... this section
The `CssClass` annotation applies to object and also to any object member (property, collection or action). It is used by the Wicket viewer as a UI hint to render specified CSS classes around the representation of the element.
+[NOTE]
+====
+This attribute can also be applied to xref:_ug_reference-annotations_manpage-DomainObjectLayout_cssClass[domain objects], xref:_ug_reference-annotations_manpage-ViewModelLayout_cssClass[view models], xref:_ug_reference-annotations_manpage-ActionLayout_cssClass[actions] xref:_ug_reference-annotations_manpage-CollectionLayout_cssClass[collections] and xref:_ug_reference-annotations_manpage-ParameterLayout_cssClass[action parameters].
+====
+
Application-specific CSS can then be used to target and adjust the UI representation of that particular element.
For example:
@@ -29,9 +34,8 @@ public class ToDoItem {
-== Alternatives (`.layout.json`)
-
-As an alternative to using the `@CssClass` annotation, the `.layout.json` xref:_ug_wicket-viewer_layout_dynamic-object-layout[dynamic layout file] can be specified, eg:
+As an alternative to using the annotation, the dynamic xref:_ug_wicket-viewer_layout_dynamic-object-layout[`.layout.json`]
+can be used instead, eg:
[source,javascript]
----
@@ -57,7 +61,7 @@ Note that this (currently) only supports class members, not classes
[NOTE]
====
-The similar xref:_ug_reference-annotations_manpage_PropertyLayout_cssClassFa[`@PropertyLayout#cssClassFa()`] attribute is also used as a hint to apply CSS, but in particular to allow http://fortawesome.github.io/Font-Awesome/icons/[Font Awesome icons] to be rendered on action butotns or as the icon for classes.
+The similar xref:_ug_reference-annotations_manpage-PropertyLayout_cssClassFa[`@PropertyLayout#cssClassFa()`] attribute is also used as a hint to apply CSS, but in particular to allow http://fortawesome.github.io/Font-Awesome/icons/[Font Awesome icons] to be rendered on action butotns or as the icon for classes.
====
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-PropertyLayout_describedAs.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-PropertyLayout_describedAs.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-PropertyLayout_describedAs.adoc
index dc2646c..f0c6310 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-PropertyLayout_describedAs.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-PropertyLayout_describedAs.adoc
@@ -11,6 +11,11 @@ IMPORTANT: WIP ... this section
The `@DescribedAs` annotation is used to provide a short description of something that features on the user interface. How this description is used will depend upon the viewing mechanism - but it may be thought of as being like a 'tool tip'.
+[NOTE]
+====
+The `describedAs()` attribute can also be specified for xref:_ug_reference-annotations_manpage-CollectionLayout_describedAs[collections], xref:_ug_reference-annotations_manpage-ActionLayout_describedAs[actions], xref:_ug_reference-annotations_manpage-ParameterLayout_describedAs[parameters], xref:_ug_reference-annotations_manpage-DomainObjectLayout_describedAs[domain objects] and xref:_ug_reference-annotations_manpage-ViewModelLayout_describedAs[view models].
+====
+
Descriptions may be provided for objects, members (properties, collections and actions), and for individual parameters within an action method. `@DescribedAs` therefore works in a very similar manner to `@Named`.
For example:
@@ -25,3 +30,9 @@ public class Customer {
----
+As an alternative to using the annotation, the dynamic xref:_ug_wicket-viewer_layout_dynamic-object-layout[`.layout.json`]
+can be used instead, eg:
+
+[source,javascript]
+----
+----
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-PropertyLayout_hidden.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-PropertyLayout_hidden.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-PropertyLayout_hidden.adoc
index 39de117..964b811 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-PropertyLayout_hidden.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-PropertyLayout_hidden.adoc
@@ -116,3 +116,11 @@ persisted objects.
By default the annotated property or action is always hidden (ie
defaults to `Where.ANYWHERE`, `When.ALWAYS`).
+
+
+As an alternative to using the annotation, the dynamic xref:_ug_wicket-viewer_layout_dynamic-object-layout[`.layout.json`]
+can be used instead, eg:
+
+[source,javascript]
+----
+----
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-PropertyLayout_labelPosition.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-PropertyLayout_labelPosition.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-PropertyLayout_labelPosition.adoc
index 6436c44..6dbc574 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-PropertyLayout_labelPosition.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-PropertyLayout_labelPosition.adoc
@@ -7,3 +7,11 @@
IMPORTANT: WIP ... this section
+
+
+As an alternative to using the annotation, the dynamic xref:_ug_wicket-viewer_layout_dynamic-object-layout[`.layout.json`]
+can be used instead, eg:
+
+[source,javascript]
+----
+----
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-PropertyLayout_multiLine.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-PropertyLayout_multiLine.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-PropertyLayout_multiLine.adoc
index 3d67edf..a111f1f 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-PropertyLayout_multiLine.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-PropertyLayout_multiLine.adoc
@@ -84,3 +84,9 @@ Here the body will (likely be) displayed in a text area of 20 rows, with
+As an alternative to using the annotation, the dynamic xref:_ug_wicket-viewer_layout_dynamic-object-layout[`.layout.json`]
+can be used instead, eg:
+
+[source,javascript]
+----
+----
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-PropertyLayout_named.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-PropertyLayout_named.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-PropertyLayout_named.adoc
index 573e01d..df92536 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-PropertyLayout_named.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-PropertyLayout_named.adoc
@@ -12,9 +12,14 @@ IMPORTANT: WIP ... this section
The `@Named` annotation is used when you want to specify the way something is named on the user interface i.e. when you do not want to use the name generated automatically by the system. It can be applied to objects, members (properties, collections, and actions) and to parameters within an action method.
-[WARNING]
+[TIP]
====
-Generally speaking it is better to rename the property, collection or action. The only common case where `@Named` is common is to rename parameters for built-in value types. Even here though a custom value type can be defined using `@Value` so that the value type is used as the parameter name. `@Named` may also be used if the name needs punctuation or other symbols in the name presented to the user.
+Following the link:http://en.wikipedia.org/wiki/Don%27t_repeat_yourself[don't repeat yourself] principle, we recommend that you only use this attribute when the desired name cannot be used in Java source code. Examples of that include a name that would be a reserved Java keyword (eg "package"), or a name that has punctuation, eg apostrophes.
+====
+
+[NOTE]
+====
+This attribute can also be specified for xref:_ug_reference-annotations_manpage-ActionLayout_named[actions], xref:_ug_reference-annotations_manpage-CollectionLayout_named[collections], xref:_ug_reference-annotations_manpage-ParameterLayout_named[action parameters], xref:_ug_reference-annotations_manpage-DomainObjectLayout_named[domain objects], xref:_ug_reference-annotations_manpage-ViewModelLayout_named[view models] and xref:_ug_reference-annotations_manpage-DomainServiceLayout_named[domain services].
====
@@ -47,3 +52,12 @@ IMPORTANT: WIP ... this section
== `namedEscaped()`
IMPORTANT: WIP ... this section
+
+
+
+As an alternative to using the annotation, the dynamic xref:_ug_wicket-viewer_layout_dynamic-object-layout[`.layout.json`]
+can be used instead, eg:
+
+[source,javascript]
+----
+----
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-PropertyLayout_renderedAsDayBefore.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-PropertyLayout_renderedAsDayBefore.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-PropertyLayout_renderedAsDayBefore.adoc
index b1e42e9..596e550 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-PropertyLayout_renderedAsDayBefore.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-PropertyLayout_renderedAsDayBefore.adoc
@@ -28,3 +28,10 @@ Here, the interval of the [1-may-2013,1-jun-2013) would be rendered as the dates
What is stored in the domain object, itself, however, the value stored is 1-jun-2013.
+
+As an alternative to using the annotation, the dynamic xref:_ug_wicket-viewer_layout_dynamic-object-layout[`.layout.json`]
+can be used instead, eg:
+
+[source,javascript]
+----
+----
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Property_domainEvent.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Property_domainEvent.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Property_domainEvent.adoc
index 9ee7c39..b41b67f 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Property_domainEvent.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Property_domainEvent.adoc
@@ -5,53 +5,64 @@
:_imagesdir: images/
+Whenever a domain object (or list of domain objects) is to be rendered, the framework fires off multiple domain events for every property, collection and action of the domain object. In the cases of the domain object's properties, the events that are fired are:
+* hide phase: to check that the property is visible (has not been hidden)
+* disable phase: to check that the property is usable (has not been disabled)
+* validate phase: to check that the property's arguments are valid (to modify/clear its value)
+* pre-execute phase: before the modification of the property
+* post-execute: after the modification of the property
-IMPORTANT: WIP ... this section
+Subscribers subscribe through the xref:_ug_reference-services-api_manpage-EventBusService[`EventBusService`] using either link:https://github.com/google/guava[Guava] or link:http://www.axonframework.org/[Axon Framework] annotations and can influence each of these phases.
-
-The `@PropertyInteraction` annotation applies to domain entity properties, allowing
-subscribers to optionally veto, validate or otherwise perform tasks before
-or after the property has been modified/cleared.
-
-Subscribers subscribe through the xref:_ug_reference-services-api_manpage-EventBusService[`EventBusService`] using either link:https://github.com/google/guava[Guava] or link:http://www.axonframework.org/[Axon Framework] annotations.
-
-By default the event raised is `PropertyInteractionEvent.Default`. For example:
+By default the event raised is `PropertyDomainEvent.Default`. For example:
[source,java]
----
public class ToDoItem {
- ...
- @PropertyInteraction
+ @Property()
public LocalDate getDueBy() { ... }
+ ...
}
----
-Optionally a subclass can be declared:
+The purpose of the `domainEvent()` attribute is to allows a custom subclass to be emitted instead.
+
+For example:
[source,java]
----
public class ToDoItem {
-
public static class DueByChangedEvent extends PropertyInteractionEvent<ToDoItem, LocalDate> {
private static final long serialVersionUID = 1L;
- public DueByChangedEvent(ToDoItem source, Identifier identifier, LocalDate oldValue, LocalDate newValue) {
+ public DueByChangedEvent(
+ ToDoItem source,
+ Identifier identifier,
+ LocalDate oldValue,
+ LocalDate newValue) { // <1>
super(source, identifier, oldValue, newValue);
}
}
-
- @PropertyInteraction(ToDoItem.DueByChangedEvent)
+ @Property(domainEvent=ToDoItem.DueByChangedEvent)
public LocalDate getDueBy() { ... }
-
+ ...
}
----
+<1> if the property is being cleared then the new value will be `null`.
+The benefit is that subscribers can be more targetted as to the events that they subscribe to.
+
+[NOTE]
+====
+As you might expect, it is also possible to influence the domain event type raised for xref:_ug_reference-annotations_manpage-Action_domainEvent[actions] and xref:_ug_reference-annotations_manpage-Property_domainEvent[properties].
+====
== Subscribers
-Subscribers (which must be domain services) subscribe using the Guava API.
+Subscribers (which must be domain services) subscribe using either the link:https://github.com/google/guava[Guava] API or (if the xref:_ug_reference-services-api_manpage-EventBusService[`EventBusService`] has been appropriately configured) using the link:http://www.axonframework.org/[Axon Framework] API. The examples below use the Guava API.
+
Subscribers can be either coarse-grained (if they subscribe to the top-level event type):
[source,java]
@@ -69,7 +80,7 @@ public class SomeSubscriber {
}
----
-or can be fine-grained by subscribing to specific event subtypes:
+or can be fine-grained (by subscribing to specific event subtypes):
[source,java]
----
@@ -100,23 +111,17 @@ The subscriber can distinguish these by calling `ev.getPhase()`. Thus the genera
----
@Programmatic
@com.google.common.eventbus.Subscribe
-public void on(PropertyInteractionEvent ev) {
-
+public void on(PropertyDomainEvent ev) {
switch(ev.getPhase()) {
case HIDE:
- ...
break;
case DISABLE:
- ...
break;
case VALIDATE:
- ...
break;
case EXECUTING:
- ...
break;
case EXECUTED:
- ...
break;
}
}
@@ -124,40 +129,25 @@ public void on(PropertyInteractionEvent ev) {
Vetoing is performed by calling the appropriate method on the event:
-*
-
-To hide:
-
-ev.hide()
-
-*
-
-To disable:
+* To hide: +
++
+`ev.hide()` or `ev.veto("")`
-ev.disable("…");
+* To disable: +
++
+`ev.disable("...")` or `ev.veto("...")`
-*
+* To invalidate: +
-To invalidate:
+`ev.invalidate("...")` or `ev.veto("...")`
-ev.invalidate("…");
+It is also possible to abort the transaction during the executing or executed phases by throwing an exception. If the exception is a subtype of `RecoverableException` then the exception will be rendered as a user-friendly warning (eg Growl/toast) rather than an error.
-It is also possible to abort the transaction during the executing or executed
-phases by throwing an exception. If the exception is a subtype of `RecoverableException`
-then the exception will be rendered as a user-friendly warning (eg Growl/toast)
-rather than an error.
-
-== Raising events programmatically.
+== Raising events programmatically
Normally events are only raised for interactions through the UI. However, events can be raised programmatically by
wrapping the target object using the xref:_ug_reference-services-api_manpage-WrapperFactory[`WrapperFactory`] service.
-
-[NOTE]
-====
-Domain events can also be raised for xref:_ug_reference-annotations_manpage_Action_domainEvent[actions] and xref:_ug_reference-annotations_manpage_Collection_domainEvent[collections].
-====
-
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Property_editing.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Property_editing.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Property_editing.adoc
index 2c94972..73421a8 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Property_editing.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Property_editing.adoc
@@ -5,119 +5,40 @@
:_imagesdir: images/
-IMPORTANT: WIP ... this section
+The `editing()` attribute can be used to prevent a property from being modified or cleared, ie to make it read-only. The related `editingDisabledReason()` attribute specifies the a hard-coded reason why the property cannot be modified directly.
[NOTE]
====
-Fully supported by: Wicket viewer; other viewers do not yet support the `where` attribute.
+This attribute can also be specified for xref:_ug_reference-annotations_manpage-Collection_editing[collections], and can also be specified for the xref:_ug_reference-annotations_manpage-DomainObject_editing[domain object].
====
-The `@Disabled` annotation means that the member cannot be used in any instance of the class. When applied to the property it means that the user may not modify the value of that property (though it may still be modified programmatically). When applied to an action method, it means that the user cannot invoke that method.
+Whether a property is enabled or disabled depends upon three factors:
-For example:
+* whether the domain object has been configured as immutable through the xref:_ug_reference-annotations_manpage-DomainObject_editing[`@DomainObject#editing()`] attribute
-[source,java]
-----
-public class Customer {
- @Disabled
- public void assessCreditWorthiness() { ... }
+* else (that is, if the domain object's editability is specified as being `AS_CONFIGURED`), then the value of the `isis.objects.editing` configuration property. If set to `false`, then the object's properties (and collections) are _not_ editable
- @Disabled
- public int getInitialCreditRating(){ ... }
- public void setInitialCreditRating(int initialCreditRating) { ... }
-}
-----
+* else, then the value of the `@Property(editing=...)` attribute itself.
-Note that if an action is marked as `@Disabled`, it will be shown on the
-user interface but cannot ever be invoked. The only possible reason we
-can think to do this is during prototyping, to indicate an action that
-is still to be developed. If a method is intended for programmatic use,
-but not intended ever to be invoked directly by a user, then it should
-be marked as `@Hidden` instead.
-This annotation can also take two parameter indicating where (in the UI)
-it is to be disabled, and when (in the object's lifecycle) it is to be
-disabled. For example:
+Thus, to make a property read-only even if the object would otherwise be editable, use:
[source,java]
----
public class Customer {
- (when=When.UNTIL_PERSISTED)
- public void assessCreditWorthiness() { ... }
-}
-----
-
-would disable the action until the object has been saved. And:
-
-[source,java]
-----
-public class Customer {
- (where=Where.PARENTED_TABLES)
- public void getFirstName() { ... }
+ @Property(
+ editing=Editing.DISABLED,
+ editingDisabledReason="The credit rating is derived from multiple factors"
+ )
+ public int getInitialCreditRating(){ ... }
+ public void setInitialCreditRating(int initialCreditRating) { ... }
}
----
-would disable the property in parented tables but not in regular object
-forms (though note: this would only be used by viewers that provide
-in-table editing capability).
-
-The acceptable values for the `where` parameter are:
-
-* `Where.ANYWHERE` +
-+
-The member should be disabled everywhere.
-
-* `Where.OBJECT_FORMS` +
-+
-The member should be disabled when displayed within an object form.
-For most viewers, this applies to property and collection members,
-not actions.
-
-* `Where.PARENTED_TABLES` +
-+
-The member should be disabled when displayed as a column of a table
-within a parent object's collection. For most (all?) viewers, this
-will have meaning only if applied to a property member.
-
-* `Where.STANDALONE_TABLES` +
-+
-The member should be disabled when displayed as a column of a table
-showing a standalone list of objects, for example as returned by a
-repository query. For most (all?) viewers, this will have meaning
-only if applied to a property member.
-
-* `Where.ALL_TABLES` +
-+
-The member should be disabled when displayed as a column of a table,
-either an object's * collection or a standalone list. This combines
-`PARENTED_TABLES` and `STANDALONE_TABLES`
-
-* `Where.NOWHERE` +
-+
-Has no meaning for the `@Disabled` annotation (though is used by the
-`@Hidden` annotation which also uses the `Where` enum<!--, see ?-->).
-
-The acceptable values for the `when` parameter are:
-
-* `When.ALWAYS` +
-+
-The member should be disabled at all times.
-
-* `When.NEVER` +
-+
-The member should never be disabled (unless disabled through some
-other mechanism, for example an imperative disableXxx() supporting
-method)..
+[NOTE]
+====
+To reiterate, it is _not_ possible to enable editing for a property if editing has been disabled at the object-level.
+====
-* `When.ONCE_PERSISTED` +
-+
-The member should be enabled for transient objects, but disabled for
-persisted objects.
-* `When.UNTIL_PERSISTED` +
-+
-The member should be disabled for transient objects, but enabled for
-persisted objects.
-By default the annotated property or action is always disabled (ie
-defaults to `Where.ANYWHERE`, `When.ALWAYS`).
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Property_hidden.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Property_hidden.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Property_hidden.adoc
index dbe779e..ddaee43 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Property_hidden.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Property_hidden.adoc
@@ -6,125 +6,61 @@
+Properties can be hidden at the domain-level, indicating that they are not visible to the end-user.
-IMPORTANT: WIP ... this section
-
-The `@Hidden` annotation indicates that the member (property, collection or action) to which it is applied should never be visible to the user. It can also be applied to service types (it has no effect if applied to entities or values).
+[TIP]
+====
+It is also possible to use xref:_ug_reference-annotations_manpage-CollectionLayout_hidden[`@CollectionLayout#hidden()`] or xref:_ug_wicket-viewer_layout_dynamic-object-layout[dynamic layouts] such that the collection can be hidden at the view layer. Both options are provided with a view that in the future the view-layer semantics may be under the control of (expert) users, whereas domain-layer semantics should never be overridden or modified by the user.
+====
For example:
[source,java]
----
public class Customer {
- @Hidden
+ @Property(hidden=Where.EVERYWHERE)
public int getInternalId() { ... }
-
- @Hidden
+ @Property(hidden=Where.ALL_TABLES)
public void updateStatus() { ... }
...
}
----
-Or, applied to a service:
-
-[source,java]
-----
-@Hidden
-public class EmailService {
- public void sendEmail(...) { ... }
- ...
-}
-----
-
-This annotation can also take a parameters indicating where and when it
-is to be hidden. For example:
-
-[source,java]
-----
-public class Customer {
- @Hidden(when=When.ONCE_PERSISTED)
- public int getInternalId() { ... }
- ...
-}
-----
-
-would show the `Id` until the object has been saved, and then would hide
-it. And:
-
-[source,java]
-----
-public class Customer {
- @Hidden(where=Where.ALL_TABLES)
- public int getDateOfBirth() { ... }
- ...
-}
-----
-
-would suppress the `dateOfBirth` property of a Customer from all tables.
-
The acceptable values for the `where` parameter are:
+* `Where.EVERYWHERE` +
++
+The collection should be hidden everywhere.
+
* `Where.ANYWHERE` +
+
-The member should be hidden everywhere.
+Synonym for everywhere.
* `Where.OBJECT_FORMS` +
+
-The member should be hidden when displayed within an object form.
-For most viewers, this applies to property and collection members,
-not actions.
+The property should be hidden when displayed within an object form.
* `Where.PARENTED_TABLES` +
+
-The member should be hidden when displayed as a column of a table
-within a parent object's collection. For most (all?) viewers, this
-will have meaning only if applied to a property member.
+The property should be hidden when displayed as a column of a table within a parent object's collection.
* `Where.STANDALONE_TABLES` +
+
-The member should be hidden when displayed as a column of a table
-showing a standalone list of objects, for example as returned by a
-repository query. For most (all?) viewers, this will have meaning
-only if applied to a property member.
+The property should be hidden when displayed as a column of a table showing a standalone list of objects, for example as returned by a repository query.
* `Where.ALL_TABLES` +
+
-The member should be /hidden when displayed as a column of a table,
-either an object's * collection or a standalone list. This combines
-`PARENTED_TABLES` and `STANDALONE_TABLES`.
+The property should be hidden when displayed as a column of a table, either an object's * collection or a standalone list. This combines `PARENTED_TABLES` and `STANDALONE_TABLES`.
* `Where.NOWHERE` +
+
-Acts as an override if a member would normally be hidden as a result
-of some other convention. For example, if a property is annotated
-with `@Title` <!--(see ?)-->, then normally this should be hidden from all
-tables. Additionally annotating with `@Hidden(where=Where.NOWHERE)`
-overrides this.
-
-The acceptable values for the `when` parameter are:
-
-* `When.ALWAYS` +
-+
-The member should be hidden at all times.
-
-* `When.NEVER` +
-+
-The member should never be hidden (unless disabled through some
-other mechanism, for example an imperative disableXxx() supporting
-method)..
-
-* `When.ONCE_PERSISTED` +
-+
-The member should be visible for transient objects, but hidden for
-persisted objects.
-
-* `When.UNTIL_PERSISTED` +
-+
-The member should be hidden for transient objects, but visible for
-persisted objects.
-
-By default the annotated property or action is always hidden (ie
-defaults to `Where.ANYWHERE`, `When.ALWAYS`).
+Acts as an override if a member would normally be hidden as a result of some other convention. +
+For example, if a property is annotated with xref:_ug_reference-annotations_manpage-Title[`@Title`], then normally this should be hidden from all
+tables. Annotating with `@Property(where=Where.NOWHERE)` overrides this.
+[NOTE]
+====
+The xref:_ug_restfulobjects-viewer[RestfulObjects viewer] has only partial support for these `Where` enums.
+====
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ViewModel.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ViewModel.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ViewModel.adoc
index aef952f..9b1bb06 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ViewModel.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ViewModel.adoc
@@ -38,7 +38,7 @@ Note that there is a `DomainObjectContainer#newViewModelInstance(.)`; this is fo
====
-The view model's memento will be derived from the value of the view model object's properties. Any xref:_ug_reference-annotations_manpage_Property_notPersisted[`@Property#notPersisted()`] properties will be excluded from the memento, as will any http://isis.apache.org/reference/recognized-annotations/Programmatic.html[@Programmatic] properties. Properties that are merely http://isis.apache.org/reference/recognized-annotations/Hidden-deprecated.html[@Hidden] are included in the memento.
+The view model's memento will be derived from the value of the view model object's properties. Any xref:_ug_reference-annotations_manpage-Property_notPersisted[`@Property#notPersisted()`] properties will be excluded from the memento, as will any http://isis.apache.org/reference/recognized-annotations/Programmatic.html[@Programmatic] properties. Properties that are merely http://isis.apache.org/reference/recognized-annotations/Hidden-deprecated.html[@Hidden] are included in the memento.
Only properties supported by the configured xref:_ug_reference-services-api_manpage-MementoService[`MementoService`] can be used. The default implementation supports all the value types and persisted entities.
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ViewModelLayout.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ViewModelLayout.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ViewModelLayout.adoc
index 273f0d9..a7cbd9a 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ViewModelLayout.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ViewModelLayout.adoc
@@ -5,14 +5,14 @@
:_imagesdir: images/
-The `@ViewModelLayout` annotation is identical to the xref:_ug_reference-annotations_manpage_DomainObjectLayout[`@DomainObjectLayout`], but is provided
+The `@ViewModelLayout` annotation is identical to the xref:_ug_reference-annotations_manpage-DomainObjectLayout[`@DomainObjectLayout`], but is provided
for symmetry with domain objects that have been annotated using xref:_ug_reference-annotations_manpage-ViewModel[`@ViewModel`] (rather than xref:_ug_reference-annotations_manpage-DomainObject_nature[`@DomainObject(nature=VIEW_MODEL)`]).
The table below summarizes the annotation's attributes.
-.`@Action` attributes
-[cols="2,2,4", options="header"]
+.`@ViewModel` attributes
+[cols="2,2,4a", options="header"]
|===
| Attribute
@@ -68,6 +68,12 @@ public class MyViewModel { ... }
----
+[NOTE]
+====
+Note that there is (currently) no support for specifying UI hints for view models through the dynamic xref:_ug_wicket-viewer_layout_dynamic-object-layout[`.layout.json`] file (only for properties, collections and actions are supported).
+====
+
+
include::_ug_reference-annotations_manpage-ViewModelLayout_cssClass.adoc[leveloffset=+1]
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ViewModelLayout_cssClass.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ViewModelLayout_cssClass.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ViewModelLayout_cssClass.adoc
index 39165b1..b32d79d 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ViewModelLayout_cssClass.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ViewModelLayout_cssClass.adoc
@@ -10,6 +10,11 @@ IMPORTANT: WIP ... this section
The `CssClass` annotation applies to object and also to any object member (property, collection or action). It is used by the Wicket viewer as a UI hint to render specified CSS classes around the representation of the element.
+[NOTE]
+====
+This attribute can also be applied to xref:_ug_reference-annotations_manpage-DomainObjectLayout_cssClass[domain objects], xref:_ug_reference-annotations_manpage-ActionLayout_cssClass[actions] xref:_ug_reference-annotations_manpage-PropertyLayout_cssClass[properties], xref:_ug_reference-annotations_manpage-CollectionLayout_cssClass[collections] and xref:_ug_reference-annotations_manpage-ParameterLayout_cssClass[action parameters].
+====
+
Application-specific CSS can then be used to target and adjust the UI representation of that particular element.
For example:
@@ -52,6 +57,6 @@ Note that this (currently) only supports class members, not classes
[NOTE]
====
-The similar xref:_ug_reference-annotations_manpage_ViewModelLayout_cssClassFa[`@ViewModelLayout#cssClassFa()`] annotation attribute is also used as a hint to apply CSS, but in particular to allow http://fortawesome.github.io/Font-Awesome/icons/[Font Awesome icons] to be rendered on action butotns or as the icon for classes.
+The similar xref:_ug_reference-annotations_manpage-ViewModelLayout_cssClassFa[`@ViewModelLayout#cssClassFa()`] annotation attribute is also used as a hint to apply CSS, but in particular to allow http://fortawesome.github.io/Font-Awesome/icons/[Font Awesome icons] to be rendered on action butotns or as the icon for classes.
====
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ViewModelLayout_cssClassFa.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ViewModelLayout_cssClassFa.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ViewModelLayout_cssClassFa.adoc
index 45570d1..1c0adc2 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ViewModelLayout_cssClassFa.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ViewModelLayout_cssClassFa.adoc
@@ -1,5 +1,5 @@
[[_ug_reference-annotations_manpage-ViewModelLayout_cssClassFa]]
-= Font awesome icons
+= `cssClassFa()`
:Notice: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at. http://www.apache.org/licenses/LICENSE-2.0 . Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
:_basedir: ../
:_imagesdir: images/
@@ -13,6 +13,11 @@ IMPORTANT: WIP ... this section
IMPORTANT: WIP ... this section
+[NOTE]
+====
+These attribute can also be applied to xref:_ug_reference-annotations_manpage-DomainObjectLayout_cssClass[domain objects] to specify the object's icon, and to xref:_ug_reference-annotations_manpage-ActionLayout_cssClass[actions] to specify an icon for the action's representation as a button or menu item.
+====
+
The `CssClassFa` annotation applies to objects and also to object actions,
and is used by the Wicket viewer as a UI hint.
@@ -87,7 +92,7 @@ Note that this (currently) only supports class members, not classes.
[NOTE]
====
-The similar xref:_ug_reference-annotations_manpage_ViewModelLayout_cssClass[`@ViewModelLayout#cssClass()`] annotation attribute is also used as a hint to apply CSS, but for wrapping the representation of an object or object member so that it can be styled in an application-specific way.
+The similar xref:_ug_reference-annotations_manpage-ViewModelLayout_cssClass[`@ViewModelLayout#cssClass()`] annotation attribute is also used as a hint to apply CSS, but for wrapping the representation of an object or object member so that it can be styled in an application-specific way.
====
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ViewModelLayout_describedAs.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ViewModelLayout_describedAs.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ViewModelLayout_describedAs.adoc
index 21443cf..3e81284 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ViewModelLayout_describedAs.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ViewModelLayout_describedAs.adoc
@@ -11,6 +11,11 @@ IMPORTANT: WIP ... this section
The `@DescribedAs` annotation is used to provide a short description of something that features on the user interface. How this description is used will depend upon the viewing mechanism - but it may be thought of as being like a 'tool tip'.
+[NOTE]
+====
+The `describedAs()` attribute can also be specified for xref:_ug_reference-annotations_manpage-CollectionLayout_describedAs[collections], xref:_ug_reference-annotations_manpage-PropertyLayout_describedAs[properties], xref:_ug_reference-annotations_manpage-ActionLayout_describedAs[actions], xref:_ug_reference-annotations_manpage-ParameterLayout_describedAs[parameters] and xref:_ug_reference-annotations_manpage-DomainObjectLayout_describedAs[domain objects].
+====
+
Descriptions may be provided for objects, members (properties, collections and actions), and for individual parameters within an action method. `@DescribedAs` therefore works in a very similar manner to `@Named` <!--(see ?)-->.
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ViewModelLayout_named.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ViewModelLayout_named.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ViewModelLayout_named.adoc
index 96ab8d5..ac09455 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ViewModelLayout_named.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ViewModelLayout_named.adoc
@@ -11,14 +11,14 @@ IMPORTANT: WIP ... this section
The `@Named` annotation is used when you want to specify the way something is named on the user interface i.e. when you do not want to use the name generated automatically by the system. It can be applied to objects, members (properties, collections, and actions) and to parameters within an action method.
-[WARNING]
+[TIP]
====
-Generally speaking it is better to rename the property, collection or
-action. The only common case where `@Named` is common is to rename
-parameters for built-in value types. Even here though a custom value
-type can be defined using `@Value` so that the value type is used as the
-parameter name. `@Named` may also be used if the name needs punctuation
-or other symbols in the name presented to the user.
+Following the link:http://en.wikipedia.org/wiki/Don%27t_repeat_yourself[don't repeat yourself] principle, we recommend that you only use this attribute when the desired name cannot be used in Java source code. Examples of that include a name that would be a reserved Java keyword (eg "package"), or a name that has punctuation, eg apostrophes.
+====
+
+[NOTE]
+====
+This attribute can also be specified for xref:_ug_reference-annotations_manpage-ActionLayout_named[actions], xref:_ug_reference-annotations_manpage-CollectionLayout_named[collections], xref:_ug_reference-annotations_manpage-PropertyLayout_named[properties], xref:_ug_reference-annotations_manpage-ParameterLayout_named[action parameters], xref:_ug_reference-annotations_manpage-DomainObjectLayout_named[domain objects] and xref:_ug_reference-annotations_manpage-DomainServiceLayout_named[domain services].
====
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-methods_reserved_aaa.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-methods_reserved_aaa.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-methods_reserved_aaa.adoc
index de1aba8..b6ee8a6 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-methods_reserved_aaa.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-methods_reserved_aaa.adoc
@@ -17,7 +17,7 @@ The table below lists the reserved methods that are recognized as part of Apache
|Description
|xref:_ug_reference-methods_reserved_manpage-cssClass[`cssClass()`]
-|Provides a CSS class for this object, which is added as a style in the containing when rendering the object within a table, or to a containing when rendering the object on a page. In conjunction with css/application.css, can therefore provide custom styling of an object instance wherever it is rendered.
+|Provides a CSS class for this object, which is added as a style in the containing when rendering the object within a table, or to a containing when rendering the object on a page. In conjunction with xref:_ug_runtime_application-specific_application-css[`application.css`], can therefore provide custom styling of an object instance wherever it is rendered.
See also xref:_ug_reference-methods_reserved_manpage-title[`title()`] and xref:_ug_reference-methods_reserved_manpage-iconName[`iconName()`].
|xref:_ug_reference-methods_reserved_manpage-disable[`disable(...)`]
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-services-api_aaa.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-services-api_aaa.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-services-api_aaa.adoc
index 7673428..4c8c9da 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-services-api_aaa.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-services-api_aaa.adoc
@@ -11,7 +11,7 @@ IMPORTANT: TODO
== Applib Services
-The table below summarizes all the APIs defined by Apache Isis. It also lists their corresponding implementation, either a default implementation provided by Isis itself, or provided by one of the in http://isisaddons.org[Isis Addons] (non-ASF)modules.
+The table below summarizes all the APIs defined by Apache Isis. It also lists their corresponding implementation, either a default implementation provided by Isis itself, or provided by one of the in (non-ASF) link:http://www.isisaddons.org[Isis Addons] modules.
.Domain Services
[cols="2,4a,3a,1", options="header"]
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-services-api_manpage-BulkInteractionContext.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-services-api_manpage-BulkInteractionContext.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-services-api_manpage-BulkInteractionContext.adoc
index d6c46c0..f23df19 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-services-api_manpage-BulkInteractionContext.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-services-api_manpage-BulkInteractionContext.adoc
@@ -9,7 +9,7 @@ IMPORTANT: TODO
Title: Bulk Interaction
-The `Bulk.InteractionContext` domain service is a link:../../more-advanced-topics/how-to-09-020-How-to-write-a-typical-domain-service.html[request-scoped] service intended to support the implementation of xref:_ug_reference-annotations_manpage_Action_invokeOn[bulk] actions. That is, when a bulk action is invoked over a collection of objects, each object instance "knows where it is" in the collection. In essence, the `Bulk.InteractionContext` service acts a little like an iterator.
+The `Bulk.InteractionContext` domain service is a link:../../more-advanced-topics/how-to-09-020-How-to-write-a-typical-domain-service.html[request-scoped] service intended to support the implementation of xref:_ug_reference-annotations_manpage-Action_invokeOn[bulk] actions. That is, when a bulk action is invoked over a collection of objects, each object instance "knows where it is" in the collection. In essence, the `Bulk.InteractionContext` service acts a little like an iterator.
=== API
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-services-api_manpage-CommandContext.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-services-api_manpage-CommandContext.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-services-api_manpage-CommandContext.adoc
index c24c0bf..a8d17be 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-services-api_manpage-CommandContext.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-services-api_manpage-CommandContext.adoc
@@ -20,7 +20,7 @@ Persistent `Command`s support several use cases:
* if xref:_ug_reference-services-spi_manpage-AuditingService[`AuditingService`] is configured, they provide better audit informatio, since the `Command` (the 'cause' of an action) can be correlated to the audit records (the "effect" of the action) through the unique `transactionId` GUID
* if xref:_ug_reference-services-spi_manpage-PublishingService[`PublishingService`] is configured, they provide better traceability as the `Command` is also correlated with any published events, again through the unique `transactionId` GUID
-Assuming that the `CommandService` supports persistent `Command`s, the associated xref:_ug_reference-annotations_manpage_Action_command[`@Action#command()`] annotation also allows action invocations to be performed in the background. In this case the act of invoking the action on an object instead returns the `Command` to the user.
+Assuming that the `CommandService` supports persistent `Command`s, the associated xref:_ug_reference-annotations_manpage-Action_command[`@Action#command()`] annotation also allows action invocations to be performed in the background. In this case the act of invoking the action on an object instead returns the `Command` to the user.
@@ -123,7 +123,7 @@ The xref:_ug_reference-services-api_manpage-CommandService[`CommandService`] int
=== Explicitly treating an action as a command
-The typical way to indicate that an action should be treated as a command is to annotate it with the xref:_ug_reference-annotations_manpage_Action_command[`@Action#command()`] annotation, for example:
+The typical way to indicate that an action should be treated as a command is to annotate it with the xref:_ug_reference-annotations_manpage-Action_command[`@Action#command()`] annotation, for example:
[source,java]
----
@@ -163,7 +163,7 @@ To treat every action as a command, add the following to `isis.properties`:
isis.services.command.actions=all
----
-For some applications it may be required to record (as commands) only those actions that update objects; in other words queries and searches can be ignored. Put another way, only actions annotated (with xref:_ug_reference-annotations_manpage_Action_semantics[`@Action#semantics()`]) as IDEMPOTENT or NON_IDEMPOTENT should be treated as commands. In this case, use:
+For some applications it may be required to record (as commands) only those actions that update objects; in other words queries and searches can be ignored. Put another way, only actions annotated (with xref:_ug_reference-annotations_manpage-Action_semantics[`@Action#semantics()`]) as IDEMPOTENT or NON_IDEMPOTENT should be treated as commands. In this case, use:
[source,ini]
----
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-services-api_manpage-EventBusService.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-services-api_manpage-EventBusService.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-services-api_manpage-EventBusService.adoc
index b99d297..b7ebfba 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-services-api_manpage-EventBusService.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-services-api_manpage-EventBusService.adoc
@@ -225,4 +225,4 @@ Isis provides the `org.apache.isis.objectstore.jdo.datanucleus.service.eventbus.
The `EventBusService` is intended for fine-grained publish/subscribe for object-to-object interactions within an Isis domain object model. The event propogation is strictly in-memory, and there are no restrictions on the object acting as the event (it need not be serializable, for example).
-The xref:_ug_reference-services-spi_manpage-PublishingService[`PublishingService`] meanwhile is intended for coarse-grained publish/subscribe for system-to-system interactions, from Isis to some other system. Here the only events published are those that action invocations (for actions annotated with xref:_ug_reference-annotations_manpage_Action_publishing[`@Action#publishing()`]) and of changed objects (for objects annotated with xref:_ug_reference-annotations_manpage_DomainObject_publishing[`@DomainObject#publishing()`]).
\ No newline at end of file
+The xref:_ug_reference-services-spi_manpage-PublishingService[`PublishingService`] meanwhile is intended for coarse-grained publish/subscribe for system-to-system interactions, from Isis to some other system. Here the only events published are those that action invocations (for actions annotated with xref:_ug_reference-annotations_manpage-Action_publishing[`@Action#publishing()`]) and of changed objects (for objects annotated with xref:_ug_reference-annotations_manpage-DomainObject_publishing[`@DomainObject#publishing()`]).
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-services-api_manpage-QueryResultsCache.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-services-api_manpage-QueryResultsCache.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-services-api_manpage-QueryResultsCache.adoc
index db7557c..5b03fd4 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-services-api_manpage-QueryResultsCache.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-services-api_manpage-QueryResultsCache.adoc
@@ -116,4 +116,4 @@ The `QueryResultsCache` class is automatically registered (it is annotated with
=== Related Services
-The xref:_ug_reference-services-api_manpage-Scratchpad[`Scratchpad`] service is also intended for actions that are called many times, allowing arbitrary information to be shared between them. Those methods could be called from some outer loop in domain code, or by the framework itself if the action invoked has the xref:_ug_reference-annotations_manpage_Action_invokeOn[`@Action#invokeOn()`] annotation attribute set to `OBJECT_AND_COLLECTION` or `COLLECTION_ONLY`.
\ No newline at end of file
+The xref:_ug_reference-services-api_manpage-Scratchpad[`Scratchpad`] service is also intended for actions that are called many times, allowing arbitrary information to be shared between them. Those methods could be called from some outer loop in domain code, or by the framework itself if the action invoked has the xref:_ug_reference-annotations_manpage-Action_invokeOn[`@Action#invokeOn()`] annotation attribute set to `OBJECT_AND_COLLECTION` or `COLLECTION_ONLY`.
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-services-api_manpage-ScratchPad.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-services-api_manpage-ScratchPad.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-services-api_manpage-ScratchPad.adoc
index 52dd448..f844869 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-services-api_manpage-ScratchPad.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-services-api_manpage-ScratchPad.adoc
@@ -38,7 +38,7 @@ In fact, this is a concrete class:
== Usage
-The most common use-case is for xref:_ug_reference-annotations_manpage_Action_invokeOn[bulk] actions that link:../../more-advanced-topics/how-to-01-065-How-to-add-an-action-to-be-called-on-every-object-in-a-list.html[act upon multiple objects in a list]. The (same) `Scratchpad` service is injected into each of these objects, and they can use pass information.
+The most common use-case is for xref:_ug_reference-annotations_manpage-Action_invokeOn[bulk] actions that link:../../more-advanced-topics/how-to-01-065-How-to-add-an-action-to-be-called-on-every-object-in-a-list.html[act upon multiple objects in a list]. The (same) `Scratchpad` service is injected into each of these objects, and they can use pass information.
For example, the Isis addons example https://github.com/isisaddons/isis-app-todoapp/[todoapp] (not ASF) demonstrates how the `Scratchpad` service can be used to calculate the total cost of the selected `ToDoItem`s:
@@ -115,6 +115,6 @@ The `Scratchpad` class is automatically registered (it is annotated with `@Domai
== Related Services
-The xref:_ug_reference-services-api_manpage-ActionInteractionContext[`ActionInteractionContext`] service allows xref:_ug_reference-annotations_manpage_Action_invokeOn[bulk actions] to co-ordinate with each other.
+The xref:_ug_reference-services-api_manpage-ActionInteractionContext[`ActionInteractionContext`] service allows xref:_ug_reference-annotations_manpage-Action_invokeOn[bulk actions] to co-ordinate with each other.
The xref:_ug_reference-services-api_manpage-QueryResultsCache[`QueryResultsCache`] is useful for caching the results of expensive method calls.
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-services-spi_manpage-AuditingService.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-services-spi_manpage-AuditingService.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-services-spi_manpage-AuditingService.adoc
index fb09e0f..b575512 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-services-spi_manpage-AuditingService.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-services-spi_manpage-AuditingService.adoc
@@ -41,7 +41,7 @@ If you just want to debug (writing to stderr), you can instead configure `org.ap
=== Explicitly marking an object as audited
-The typical way to indicate that an object should be audited is to annotate it with the xref:_ug_reference-annotations_manpage_DomainObject_auditing[`@DomainObject#auditing()`] annotation, for example:
+The typical way to indicate that an object should be audited is to annotate it with the xref:_ug_reference-annotations_manpage-DomainObject_auditing[`@DomainObject#auditing()`] annotation, for example:
[source,java]
----
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-services-spi_manpage-CommandService.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-services-spi_manpage-CommandService.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-services-spi_manpage-CommandService.adoc
index e84d757..91e27c0 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-services-spi_manpage-CommandService.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-services-spi_manpage-CommandService.adoc
@@ -22,7 +22,7 @@ Persistent `Command`s support several use cases:
* they act as a parent to any background commands that might be invoked through the xref:_ug_reference-services-api_manpage-BackgroundService[`BackgroundService`]
* if xref:_ug_reference-services-spi_manpage-AuditingService[auditing] is configured, they provide better audit informatio, since the `Command` (the 'cause' of an action) can be correlated to the audit records (the "effect" of the action) through the unique `transactionId` GUID
* if xref:_ug_reference-services-spi_manpage-PublishingService[publishing] is configured, they provide better traceability as the `Command` is also correlated with any published events, again through the unique `transactionId` GUID
-* the associated xref:_ug_reference-annotations_manpage_Action_command[`@Action#command()`] annotation attribute also allows action invocations to be performed in the background. In this case the act of invoking the action on an object instead returns the `Command` to the user.
+* the associated xref:_ug_reference-annotations_manpage-Action_command[`@Action#command()`] annotation attribute also allows action invocations to be performed in the background. In this case the act of invoking the action on an object instead returns the `Command` to the user.
[[_ug_reference-services-spi_manpage-CommandService_screencast]]
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-services-spi_manpage-PublishingService.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-services-spi_manpage-PublishingService.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-services-spi_manpage-PublishingService.adoc
index 4018a40..815eeb2 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-services-spi_manpage-PublishingService.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-services-spi_manpage-PublishingService.adoc
@@ -244,7 +244,7 @@ It also provides an implementation of the `EventSerializer` that (using API expo
== Related Services
-The `PublishingService` is intended for coarse-grained publish/subscribe for system-to-system interactions, from Isis to some other system. Here the only events published are those that action invocations (for actions annotated with xref:_ug_reference-annotations_manpage_Action_publishing[`@Action#publishing()`]) and of changed objects (for objects annotated with xref:_ug_reference-annotations_manpage_DomainObject_publishing[`@DomainObject#publishing()`].
+The `PublishingService` is intended for coarse-grained publish/subscribe for system-to-system interactions, from Isis to some other system. Here the only events published are those that action invocations (for actions annotated with xref:_ug_reference-annotations_manpage-Action_publishing[`@Action#publishing()`]) and of changed objects (for objects annotated with xref:_ug_reference-annotations_manpage-DomainObject_publishing[`@DomainObject#publishing()`].
The xref:_ug_reference-services-api_manpage-EventBusService[`EventBusService`] meanwhile is intended for fine-grained publish/subscribe for object-to-object interactions within an Isis domain object model. The event propogation is strictly in-memory, and there are no restrictions on the object acting as the event (it need not be serializable, for example).
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_runtime.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_runtime.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_runtime.adoc
index 2a2abc7..06ee9f2 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_runtime.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_runtime.adoc
@@ -15,12 +15,10 @@ Also, note that by default the configuration values are part of the built WAR fi
====
include::_ug_runtime_configuration-files.adoc[leveloffset=+1]
-
include::_ug_runtime_configuring-core.adoc[leveloffset=+1]
-
include::_ug_runtime_web-xml.adoc[leveloffset=+1]
-
include::_ug_runtime_configuring-datanucleus.adoc[leveloffset=+1]
+include::_ug_runtime_application-specific.adoc[leveloffset=+1]
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_runtime_application-specific.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_runtime_application-specific.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_runtime_application-specific.adoc
new file mode 100644
index 0000000..d20c07f2
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_runtime_application-specific.adoc
@@ -0,0 +1,25 @@
+[[_ug_runtime_application-specific]]
+= `application.css`
+:Notice: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at. http://www.apache.org/licenses/LICENSE-2.0 . Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
+:_basedir: ../
+:_imagesdir: images/
+
+IMPORTANT: TODO
+
+
+
+[[_ug_runtime_application-specific_application-css]]
+== `application.css`
+
+IMPORTANT: TODO
+
+in `WEB-INF/css/application.css`
+
+
+[[_ug_runtime_application-specific_application-js]]
+== `application.js`
+
+IMPORTANT: TODO
+
+
+in `WEB-INF/scripts/application.js`
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_runtime_configuring-datanucleus_disabling-persistence-by-reachability.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_runtime_configuring-datanucleus_disabling-persistence-by-reachability.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_runtime_configuring-datanucleus_disabling-persistence-by-reachability.adoc
index d63213b..20f53cd 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_runtime_configuring-datanucleus_disabling-persistence-by-reachability.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_runtime_configuring-datanucleus_disabling-persistence-by-reachability.adoc
@@ -31,7 +31,7 @@ If you do disable this feature, then you will (of course) need to ensure that yo
Consider the entities:
-image::{_imagesdir}reference/configuration-properties/datanucleus-objectstore/party-agreementrole-agreement.png[width="750px"]
+image::{_imagesdir}runtime/configuring-datanucleus/disabling-persistence-by-reachability/party-agreementrole-agreement.png[width="750px"]
[TIP]
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_security.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_security.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_security.adoc
index 42f5135..38f2caa 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_security.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_security.adoc
@@ -19,7 +19,7 @@ Shiro ships with a simple text-based realm -- the `IniRealm` -- which reads user
Shiro also ships with an implementation of an LDAP-based realm; LDAP is often used to manage user/passwords and corresponding user groups. Isis in turn extends this with its `IsisLdapRealm`, which provides more flexibility for both group/role and role/permissions management.
-In addition, the http://isisaddons.org[Isis Addons] (non-ASF) provides the http://github.com/isisaddons/isis-module-security[Isis addons' security] module, which also provides an implementation of the Shiro `Realm` API. However, the security module also represents users, roles and permissions as domain objects, allowing them to be administered through Isis itself. Moreover, the security module can optionally delegate password management to a subsidiary (delegate) realm (usually LDAP as discussed above).
+In addition, the (non-ASF) link:http://www.isisaddons.org[Isis Addons] provides the http://github.com/isisaddons/isis-module-security[Isis addons' security] module, which also provides an implementation of the Shiro `Realm` API. However, the security module also represents users, roles and permissions as domain objects, allowing them to be administered through Isis itself. Moreover, the security module can optionally delegate password management to a subsidiary (delegate) realm (usually LDAP as discussed above).
In addition to Isis' Shiro-based implementation of its authentication and authorization APIs, Isis also provides a "bypass" implementation, useful for quick-n-dirty prototyping when you want to in effect disable (bypass) security completely.
@@ -28,7 +28,7 @@ In addition to Isis' Shiro-based implementation of its authentication and author
====
A further aspect of security is auditing: recording what data was modified by which user. Apache Isis does define two service APIs -- xref:_ug_reference-services-spi_manpage-CommandService[`CommandService`] and xref:_ug_reference-services-spi_manpage-AuditingService[`AuditingService`] -- that provide hooks to track which actions (commands) are invoked, and what data was modified as a result (auditing).
-Isis does not itself provide any in-built implementations of these APIs, but there are implementations within http://isisaddons.org[Isis Addons] (non-ASF), namely the http://github.com/isisaddons/isis-module-command[Isis addons' command] module and the http://github.com/isisaddons/isis-module-audit[Isis addons' auditing] module.
+Isis does not itself provide any in-built implementations of these APIs, but there are implementations within (non-ASF) link:http://www.isisaddons.org[Isis Addons], namely the http://github.com/isisaddons/isis-module-command[Isis addons' command] module and the http://github.com/isisaddons/isis-module-audit[Isis addons' auditing] module.
====
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_security_shiro-jdbc-realm.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_security_shiro-jdbc-realm.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_security_shiro-jdbc-realm.adoc
index 57f3460..846666a 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_security_shiro-jdbc-realm.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_security_shiro-jdbc-realm.adoc
@@ -110,6 +110,6 @@ Using the above configuration you will also need to setup a `DataSource`. The d
[WARNING]
====
-The name of the `DataSource` can also vary by servlet container; see for example link:http://stackoverflow.com/a/23784702/56880[this StackOverflow answer].
+The name of the `DataSource` can also vary by servlet container; see for example link:http://stackoverflow.com/questions/17441019/how-to-configure-jdbcrealm-to-obtain-its-datasource-from-jndi/23784702#23784702[this StackOverflow answer].
====
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_testing_aaa.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_testing_aaa.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_testing_aaa.adoc
index a4af017..4a74208 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_testing_aaa.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_testing_aaa.adoc
@@ -50,7 +50,7 @@ It's up to you whether you use BDD specs for your apps; it will depend on your d
When we talk about integration tests/specs here, we mean tests that exercise the domain object logic, through to the actual database. But we also want the tests to exercise the app from the users's perspective, which means including the user interface.
-For most other frameworks that would require having to test the application in a very heavy weight/fragile fashion using a tool such as link:http://seleniumhq.org[Selenium], driving a web browser to navigate . In this regard though, Isis has a significant trick up its sleeve. Because Isis implements the naked objects pattern, it means that the UI is generated automatically from the UI. This therefore allows for other implementations of the UI.
+For most other frameworks that would require having to test the application in a very heavy weight/fragile fashion using a tool such as link:http://docs.seleniumhq.org/[Selenium], driving a web browser to navigate . In this regard though, Isis has a significant trick up its sleeve. Because Isis implements the naked objects pattern, it means that the UI is generated automatically from the UI. This therefore allows for other implementations of the UI.
The xref:_ug_reference-services-api_manpage-WrapperFactory[`WrapperFactory`] domain service allows a test to wrap domain objects and thus to interact with said objects "as if" through the UI:
[3/4] isis git commit: ISIS-1133: working on the annotations.
Posted by da...@apache.org.
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ActionLayout_hidden.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ActionLayout_hidden.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ActionLayout_hidden.adoc
index adc2797..5b94368 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ActionLayout_hidden.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ActionLayout_hidden.adoc
@@ -5,124 +5,53 @@
:_imagesdir: images/
-IMPORTANT: WIP ... this section
+The `hidden()` attribute indicates where (in the UI) the action should be hidden from the user.
-
-The `@Hidden` annotation indicates that the member (property, collection or action) to which it is applied should never be visible to the user. It can also be applied to service types (it has no effect if applied to entities or values).
+[TIP]
+====
+It is also possible to use xref:_ug_reference-annotations_manpage-ActionLayout_hidden[`@Action#hidden()`] to hide an action at the domain layer. Both options are provided with a view that in the future the view-layer semantics may be under the control of (expert) users, whereas domain-layer semantics should never be overridden or modified by the user.
+====
For example:
[source,java]
----
public class Customer {
- @Hidden
- public int getInternalId() { ... }
-
- @Hidden
+ @ActionLayout(hidden=Where.EVERYWHERE)
public void updateStatus() { ... }
...
}
----
-Or, applied to a service:
-
-[source,java]
-----
-@Hidden
-public class EmailService {
- public void sendEmail(...) { ... }
- ...
-}
-----
-
-This annotation can also take a parameters indicating where and when it
-is to be hidden. For example:
-
-[source,java]
-----
-public class Customer {
- @Hidden(when=When.ONCE_PERSISTED)
- public int getInternalId() { ... }
- ...
-}
-----
-
-would show the `Id` until the object has been saved, and then would hide
-it. And:
-
-[source,java]
-----
-public class Customer {
- @Hidden(where=Where.ALL_TABLES)
- public int getDateOfBirth() { ... }
- ...
-}
-----
-
-would suppress the `dateOfBirth` property of a Customer from all tables.
-
The acceptable values for the `where` parameter are:
-* `Where.ANYWHERE` +
-+
-The member should be hidden everywhere.
-
-* `Where.OBJECT_FORMS` +
-+
-The member should be hidden when displayed within an object form.
-For most viewers, this applies to property and collection members,
-not actions.
-
-* `Where.PARENTED_TABLES` +
+* `Where.EVERYWHERE` +
+
-The member should be hidden when displayed as a column of a table
-within a parent object's collection. For most (all?) viewers, this
-will have meaning only if applied to a property member.
+The collection should be hidden everywhere.
-* `Where.STANDALONE_TABLES` +
+* `Where.ANYWHERE` +
+
-The member should be hidden when displayed as a column of a table
-showing a standalone list of objects, for example as returned by a
-repository query. For most (all?) viewers, this will have meaning
-only if applied to a property member.
+Synonym for everywhere.
-* `Where.ALL_TABLES` +
-+
-The member should be /hidden when displayed as a column of a table,
-either an object's * collection or a standalone list. This combines
-`PARENTED_TABLES` and `STANDALONE_TABLES`.
-* `Where.NOWHERE` +
-+
-Acts as an override if a member would normally be hidden as a result
-of some other convention. For example, if a property is annotated
-with `@Title` <!--(see ?)-->, then normally this should be hidden from all
-tables. Additionally annotating with `@Hidden(where=Where.NOWHERE)`
-overrides this.
+The other values of the `Where` enum have no meaning for a collection.
-The acceptable values for the `when` parameter are:
-* `When.ALWAYS` +
-+
-The member should be hidden at all times.
+As an alternative to using the annotation, the dynamic xref:_ug_wicket-viewer_layout_dynamic-object-layout[`.layout.json`]
+can be used instead, eg:
-* `When.NEVER` +
-+
-The member should never be hidden (unless disabled through some
-other mechanism, for example an imperative disableXxx() supporting
-method)..
+[source,javascript]
+----
+"updateStatus": {
+ "actionLayout": { "hidden": "EVERYWHERE" }
+}
+----
-* `When.ONCE_PERSISTED` +
-+
-The member should be visible for transient objects, but hidden for
-persisted objects.
-* `When.UNTIL_PERSISTED` +
-+
-The member should be hidden for transient objects, but visible for
-persisted objects.
+[NOTE]
+====
+For actions of domain services the visibility is dependent upon its xref:_ug_reference-annotations_manpage-DomainService_nature[`@DomainService#nature()`] and also on whether it is contributed (as per xref:_ug_reference-annotations_manpage-ActionLayout_contributedAs[`@ActionLayout#contributedAs()`]).
+====
-By default the annotated property or action is always hidden (ie
-defaults to `Where.ANYWHERE`, `When.ALWAYS`).
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ActionLayout_named.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ActionLayout_named.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ActionLayout_named.adoc
index cc36c58..618b54b 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ActionLayout_named.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ActionLayout_named.adoc
@@ -5,38 +5,49 @@
:_imagesdir: images/
+The `named()` attribute explicitly specifies the action's name, overriding the name that would normally be inferred from the Java source code.
-IMPORTANT: WIP ... this section
-
-The `@Named` annotation is used when you want to specify the way
-something is named on the user interface i.e. when you do not want to
-use the name generated automatically by the system. It can be applied to
-objects, members (properties, collections, and actions) and to
-parameters within an action method.
-
-
-[WARNING]
+[NOTE]
====
-Generally speaking it is better to rename the property, collection or action. The only common case where `@Named` is common is to rename parameters for built-in value types. Even here though a custom value type can be defined using `@Value` so that the value type is used as the parameter name. `@Named` may also be used if the name needs punctuation or other symbols in the name presented to the user.
+This attribute can also be specified for xref:_ug_reference-annotations_manpage-CollectionLayout_named[collections], xref:_ug_reference-annotations_manpage-PropertyLayout_named[properties], xref:_ug_reference-annotations_manpage-ParameterLayout_named[action parameters], xref:_ug_reference-annotations_manpage-DomainObjectLayout_named[domain objects], xref:_ug_reference-annotations_manpage-ViewModelLayout_named[view models] and xref:_ug_reference-annotations_manpage-DomainServiceLayout_named[domain services].
====
By default, the name of the action as presented to the user is derived, reflectively, from the name of the member defined in the program code. To specify a different name use the `@ActionLayout(named=...)` annotation immediately before the member declaration.
+
+
For example:
[source,java]
----
public class Customer {
+ @ActionLayout(named="Get credit rating")
+ public CreditRating obtainCreditRating() { ... }
+}
+----
- public String getFirstName() { ... }
- public String getSurname() { ... }
+As an alternative to using the annotation, the dynamic xref:_ug_wicket-viewer_layout_dynamic-object-layout[`.layout.json`]
+can be used instead, eg:
- @ActionLayout(named="Get credit rating")
- public CreditRating obtainCreditRating() { ... }
+[source,javascript]
+----
+"obtainCreditRating": {
+ "actionLayout": { "named": "Get credit rating" }
}
----
-Note that the framework provides a separate and more powerful mechanism for internationalisation.
+[TIP]
+====
+Following the link:http://en.wikipedia.org/wiki/Don%27t_repeat_yourself[don't repeat yourself] principle, we recommend that you only use this attribute when the desired name cannot be used in Java source code. Examples of that include a name that would be a reserved Java keyword (eg "package"), or a name that has punctuation, eg apostrophes.
+====
+
+
+[TIP]
+====
+The framework also provides a separate, powerful mechanism for xref:_ug_more-advanced_i18n[internationalization].
+====
+
+
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Action_command.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Action_command.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Action_command.adoc
index beafbc8..ee189a1 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Action_command.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Action_command.adoc
@@ -1,13 +1,13 @@
[[_ug_reference-annotations_manpage-Action_command]]
-= Command
+= `command()`
:Notice: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at. http://www.apache.org/licenses/LICENSE-2.0 . Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
:_basedir: ../
:_imagesdir: images/
-Using `@Action(command=...)` allows an action invocation to be made into a concrete object such that it can be inspected and persisted, for various purposes. These include enhanced profiling/auditing, as well as being able to defer the execution of the action and have it be invoked in the background.
+The `@Action(command=...)` attribute (and the related `@Action(commandPersistence=...)` and `@Action(commandExecuteIn=...)` attributes) allows an action invocation to be made into a concrete object such that it can be inspected and persisted. The primary use case for this is enhanced profiling/auditing, and it also supports the deferring the execution of the action such that it can be invoked in the background.
-The annotation works (and influences the behaviour of) these domain services:
+The annotation works with (and is influenced by the behaviour of) a number of domain services:
* xref:_ug_reference-services-api_manpage-CommandContext[`CommandContext`]
* xref:_ug_reference-services-spi_manpage-CommandService[`CommandService`]
@@ -15,34 +15,40 @@ The annotation works (and influences the behaviour of) these domain services:
* xref:_ug_reference-services-spi_manpage-BackgroundCommandService[`BackgroundCommandService`]
-By default, actions are invoked in directly in the thread of the invocation.
-
Each action invocation is reified by the xref:_ug_reference-services-api_manpage-CommandContext[`CommandContext`] service into a `Command` object, capturing details of the target object, the action, the parameter arguments, the user, a timestamp and so on.
-If an appropriate `CommandService` is configured (for example using (non-ASF) http://github.com/isisaddons/isis-module-command[Isis addons' command] module), then the `Command` itself is persisted. If there is an implementation of `BackgroundCommandService` (as the http://github.com/isisaddons/isis-module-command[Isis addons' command] module does provide), then this means in turn that the `BackgroundService` can be used by the domain object code to programmatically create background ``Command``s.
+If an appropriate `CommandService` is configured (for example using (non-ASF) http://github.com/isisaddons/isis-module-command[Isis addons' command] module), then the `Command` itself is persisted.
+
+By default, actions are invoked in directly in the thread of the invocation. If there is an implementation of `BackgroundCommandService` (as the http://github.com/isisaddons/isis-module-command[Isis addons' command] module does provide), then this means in turn that the `BackgroundService` can be used by the domain object code to programmatically create background ``Command``s.
[NOTE]
====
If background ``Command``s are used, then an external scheduler, using xref:_ug_headless-access_BackgroundCommandExecution[headless access], must also be configured.
====
-[NOTE]
-====
-These attributes of `@Action` replace the deprecated `@Command` annotation.
-====
== `command()`
-The `command()` attribute determines whether the action invocation should be reified into a `Command` object (by the `CommandContext` service). The default is `AS_CONFIGURED`, meaning that the configuration property `isis.services.command.actions` is used to determine the whether the action is reified:
+The `command()` attribute determines whether the action invocation should be reified into a `Command` object (by the xref:_ug_reference-services-api_manpage-CommandContext[`CommandContext`] service).
-* `all` - all actions are reified
-* `ignoreSafe` (or `ignoreQueryOnly`) - actions with safe (read-only) semantics are ignored, but actions which may modify data are not ignored
-* `none` - no actions are reified.
+The default is `AS_CONFIGURED`, meaning that the configuration property `isis.services.command.actions` is used to determine the whether the action is reified:
-If there is no setting then all actions are reified into ``Command``s.
+* `all` +
++
+all actions are reified
+
+* `ignoreSafe` (or `ignoreQueryOnly`)+
++
+actions with safe (read-only) semantics are ignored, but actions which may modify data are not ignored
+
+* `none` +
++
+no actions are reified.
+
+If there is no configuration property in `isis.properties` then all actions are reified into ``Command``s.
[NOTE]
====
@@ -83,7 +89,7 @@ public class Order {
}
----
-will suppress the persistence of the `Command` object _unless_ a child background `Command` has been created in the body of the action by way of the `BackgroundService`.
+will suppress the persistence of the `Command` object _unless_ a child background `Command` has been created in the body of the action by way of the xref:_ug_reference-services-api_manpage-BackgroundService[`BackgroundService`].
On the other hand:
@@ -108,7 +114,7 @@ will prevent the parent `Command` object from being persisted, _even if_ a child
For persisted commands, the `commandExecuteIn()` attribute determines whether the `Command` should be executed in the foreground (the default) or executed in the background.
-Background execution means that the command is not executed immediately, but is available for a configured xref:_ug_reference-services-spi_manpage-BackgroundCommandService[`BackgroundCommandService`] to execute, eg by way of an in-memory scheduler such as Quartz.
+Background execution means that the command is not executed immediately, but is available for a configured xref:_ug_reference-services-spi_manpage-BackgroundCommandService[`BackgroundCommandService`] to execute, eg by way of an in-memory scheduler such as Quartz. See xref:_ug_headless-access_BackgroundCommandExecution[here] for further information on this topic.
For example:
@@ -128,5 +134,3 @@ returned object from this action is the persisted `Command` itself.
-
-
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Action_domainEvent.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Action_domainEvent.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Action_domainEvent.adoc
index b33da5a..f6ea76a 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Action_domainEvent.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Action_domainEvent.adoc
@@ -5,8 +5,7 @@
:_imagesdir: images/
-
-Every interaction with a domain object action causes multiple events to be fired, in the following phases:
+Whenever a domain object (or list of domain objects) is to be rendered, the framework fires off multiple domain events for every property, collection and action of the domain object. In the cases of the domain object's actions, the events that are fired are:
* hide phase: to check that the action is visible (has not been hidden)
* disable phase: to check that the action is usable (has not been disabled)
@@ -14,7 +13,6 @@ Every interaction with a domain object action causes multiple events to be fired
* pre-execute phase: before the invocation of the action
* post-execute: after the invocation of the action
-
Subscribers subscribe through the xref:_ug_reference-services-api_manpage-EventBusService[`EventBusService`] using either link:https://github.com/google/guava[Guava] or link:http://www.axonframework.org/[Axon Framework] annotations and can influence each of these phases.
By default the event raised is `ActionDomainEvent.Default`. For example:
@@ -22,19 +20,13 @@ By default the event raised is `ActionDomainEvent.Default`. For example:
[source,java]
----
public class ToDoItem {
- ...
@Action()
public ToDoItem completed() { ... }
+ ...
}
----
-
-This attribute allows a custom subclass to be declared.
-
-[NOTE]
-====
-This attribute replaces the deprecated `@ActionInteraction` annotation.
-====
+The purpose of the `domainEvent()` attribute is to allows a custom subclass to be emitted instead.
For example:
@@ -58,11 +50,16 @@ public class ToDoItem {
The benefit is that subscribers can be more targetted as to the events that they subscribe to.
+[NOTE]
+====
+As you might expect, it is also possible to influence the domain event type raised for xref:_ug_reference-annotations_manpage-Collection_domainEvent[collection] and xref:_ug_reference-annotations_manpage-Property_domainEvent[properties].
+====
+
== Subscribers
-Subscribers (which must be domain services) subscribe using either the Guava API or (if the xref:_ug_reference-services-api_manpage-EventBusService[`EventBusService`] has been appropriately configured) using the AxonFramework API.
+Subscribers (which must be domain services) subscribe using either the link:https://github.com/google/guava[Guava] API or (if the xref:_ug_reference-services-api_manpage-EventBusService[`EventBusService`] has been appropriately configured) using the link:http://www.axonframework.org/[Axon Framework] API. The examples below use the Guava API.
Subscribers can be either coarse-grained (if they subscribe to the top-level event type):
@@ -78,7 +75,7 @@ public class SomeSubscriber {
}
----
-or can be fine-grained by subscribing to specific event subtypes:
+or can be fine-grained (by subscribing to specific event subtypes):
[source,java]
----
@@ -92,7 +89,7 @@ public class SomeSubscriber {
}
----
-[NOTE]
+[TIP]
====
If the AxonFramework is being used, replace `@com.google.common.eventbus.Subscribe` for `@org.axonframework.eventhandling.annotation.EventHandler`.
====
@@ -112,22 +109,17 @@ The subscriber can distinguish these by calling `ev.getEventPhase()`. Thus the g
----
@Programmatic
@com.google.common.eventbus.Subscribe
-public void on(ActionInteractionEvent ev) {
+public void on(ActionDomainEvent ev) {
switch(ev.getPhase()) {
case HIDE:
- ...
break;
case DISABLE:
- ...
break;
case VALIDATE:
- ...
break;
case EXECUTING:
- ...
break;
case EXECUTED:
- ...
break;
}
}
@@ -147,17 +139,14 @@ Vetoing is performed by calling the appropriate method on the event:
`ev.invalidate("...")` or `ev.veto("...")`
-It is also possible to abort the transaction during the executing or executed
-phases by throwing an exception. If the exception is a subtype of `RecoverableException`
-then the exception will be rendered as a user-friendly warning (eg Growl/toast)
-rather than an error.
+It is also possible to abort the transaction during the executing or executed phases by throwing an exception. If the exception is a subtype of `RecoverableException` then the exception will be rendered as a user-friendly warning (eg Growl/toast) rather than an error.
-== Raising events programmatically.
+== Raising events programmatically
-Normally events are only raised for interactions through the UI. However, events can be raised programmatically by
+Normally events are only raised for interactions through the UI. However, events can be raised programmatically either by calling the xref:_ug_reference-services-api_manpage-EventBusService[`EventBusService`] API directly, or by emulating the UI by
wrapping the target object using the xref:_ug_reference-services-api_manpage-WrapperFactory[`WrapperFactory`] domain service.
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Action_hidden.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Action_hidden.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Action_hidden.adoc
index 918726e..1adb9c5 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Action_hidden.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Action_hidden.adoc
@@ -9,29 +9,40 @@
Actions can be hidden at the domain-level, indicating that they are not visible to the end-user.
+[TIP]
+====
+It is also possible to use xref:_ug_reference-annotations_manpage-ActionLayout_hidden[`@ActionLayout#hidden()`] or xref:_ug_wicket-viewer_layout_dynamic-object-layout[dynamic layouts] such that the action can be hidden at the view layer. Both options are provided with a view that in the future the view-layer semantics may be under the control of (expert) users, whereas domain-layer semantics should never be overridden or modified by the user.
+====
+
For example:
[source,java]
----
public class Customer {
- @Action(hidden=EVERYWHERE)
+ @Action(hidden=Where.EVERYWHERE)
public void updateStatus() { ... }
...
}
----
-The only value that currently makes sense is `EVERYWHERE` (or its synonym `ANYWHERE`).
+The acceptable values for the `where` parameter are:
+* `Where.EVERYWHERE` +
++
+The collection should be hidden everywhere.
+
+* `Where.ANYWHERE` +
++
+Synonym for everywhere.
+
+
+The other values of the `Where` enum have no meaning for a collection.
-[TIP]
-====
-It is also possible to use `@ActionLayout` or xref:_ug_wicket-viewer_layout_dynamic-object-layout[dynamic layouts] such that the action can be hidden at the view layer. Both options are provided with a view that in the future the view-layer semantics may be under the control of (expert) users, whereas domain-layer semantics should never be overridden or modified by the user.
-====
[NOTE]
====
-For actions of domain services the visibility is dependent upon its xref:_ug_reference-annotations_manpage-DomainService_nature[`@DomainService#nature()`] and also on whether it is contributed (as per `ActionLayout#contributed()`).
+For actions of domain services the visibility is dependent upon its xref:_ug_reference-annotations_manpage-DomainService_nature[`@DomainService#nature()`] and also on whether it is contributed (as per xref:_ug_reference-annotations_manpage-ActionLayout_contributedAs[`@ActionLayout#contributedAs()`]).
====
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Action_invokeOn.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Action_invokeOn.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Action_invokeOn.adoc
index fbfa116..48411e7 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Action_invokeOn.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Action_invokeOn.adoc
@@ -6,24 +6,18 @@
-
-The `invokeOn` attribute indicates whether the an action can be invoked on a single object (the default) and/or on many objects in a collection.
-
-[NOTE]
-====
-This attribute replaces the deprecated `@Bulk` annotation.
-====
+The `invokeOn()` attribute indicates whether the an action can be invoked on a single object (the default) and/or on many objects in a collection.
For example:
[source,java]
----
public class ToDoItem {
- ...
@Action(invokeOn=InvokeOn.OBJECT_AND_COLLECTION)
public void markAsCompleted() {
setCompleted(true);
}
+ ...
}
----
@@ -36,30 +30,35 @@ Actions to be invoked on collection (currently) have a number of constraints. I
The example given above is probably ok, because `setCompleted()` is most likely idempotent. However, if the action also called some other method, then we should add a guard.
-For example, rather than:
+For example, for this non-idempotent action:
[source,java]
----
- @Action(invokeOn=InvokeOn.OBJECT_AND_COLLECTION)
- public void markAsCompleted() {
- setCompleted(true);
- todoTotalizer.incrementNumberCompleted();
- }
+@Action(invokeOn=InvokeOn.OBJECT_AND_COLLECTION)
+public void markAsCompleted() {
+ setCompleted(true);
+ todoTotalizer.incrementNumberCompleted();
+}
----
-the action should instead be written:
+we should instead write it as:
[source,java]
----
- @Action(invokeOn=InvokeOn.OBJECT_AND_COLLECTION)
- public void markAsCompleted() {
- if(isCompleted()) {
- return;
- }
- setCompleted(true);
- todoTotalizer.incrementNumberCompleted();
+@Action(invokeOn=InvokeOn.OBJECT_AND_COLLECTION)
+public void markAsCompleted() {
+ if(isCompleted()) {
+ return;
}
+ setCompleted(true);
+ todoTotalizer.incrementNumberCompleted();
+}
----
+[NOTE]
+====
+This attribute has no meaning if annotated on an action of a domain service.
+====
+
+
-Note also that this attribute has no meaning if annotated on an action of a domain service.
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Action_publishing.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Action_publishing.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Action_publishing.adoc
index 5b1698c..b3aed34 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Action_publishing.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Action_publishing.adoc
@@ -1,5 +1,5 @@
[[_ug_reference-annotations_manpage-Action_publishing]]
-= Publishing
+= `publishing()`
:Notice: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at. http://www.apache.org/licenses/LICENSE-2.0 . Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
:_basedir: ../
:_imagesdir: images/
@@ -7,12 +7,7 @@
-Publishing (to the registered implementation of a xref:_ug_reference-services-spi_manpage-PublishingService[`PublishingService`]) is managed by the `publishing()` and `publishingPayloadFactory()` attributes.
-
-[NOTE]
-====
-The following attributes replace the deprecated `@PublishedAction` annotation.
-====
+The `publishing()` attribute (and related `publishingPayloadFactory()` attribute) determine whether and how an action is published via the registered implementation of a xref:_ug_reference-services-spi_manpage-PublishingService[`PublishingService`]). A common use case is to notify external "downstream" systems of changes in the state of the Isis application.
@@ -22,11 +17,19 @@ This attribute indicates whether the action invocation should be published to th
The default is `AS_CONFIGURED`, meaning that the configuration property `isis.services.publish.actions` is used to determine the whether the action is published:
-* `all` - all actions are published
-* `ignoreSafe` (or `ignoreQueryOnly`) - actions with safe (read-only) semantics are ignored, but actions which may modify data are not ignored
-* `none` - no actions are published
+* `all` +
++
+all actions are published
+
+* `ignoreSafe` (or `ignoreQueryOnly`) +
++
+actions with safe (read-only) semantics are ignored, but actions which may modify data are not ignored
+
+* `none` +
++
+no actions are published
-If there is no setting in `isis.properties` then publishing is automatically enabled.
+If there is no configuration property in `isis.properties` then publishing is automatically enabled.
This default can be overridden on an action-by-action basis; if `publishing()` is set to `ENABLED` then the action is published irrespective of the configured value; if set to `DISABLED` then the action is NOT published irrespective of the configured value.
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Action_restrictTo.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Action_restrictTo.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Action_restrictTo.adoc
index 0c96800..7099974 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Action_restrictTo.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Action_restrictTo.adoc
@@ -5,14 +5,9 @@
:_imagesdir: images/
-The `restrictTo` attribute specifies whether the action is restricted to prototyping, or is generally available.
-[NOTE]
-====
-This attribute replaces the deprecated `@Exploration` and `@Prototype` annotations.
-====
-By default there are no restrictions, with the action being available in all environments.
+By default actions are available irrespective of the xref:_ug_runtime_configuration-files_deployment-types[deployment mode]. The `restrictTo()` attribute specifies whether the action should instead be restricted to only available in prototyping mode.
For example:
@@ -21,13 +16,14 @@ For example:
public class Customer {
public Order placeNewOrder() { ... }
public List<Order> listRecentOrders() { ... }
+
@Action(restrictTo=RestrictTo.PROTOTYPING)
public List<Order> listAllOrders() { ... }
...
}
----
-In this case listing all orders probably doesn't make sense for production (there could be thousands or millions), but would be fine in a test or demo system where there are only a handful.
+In this case the listing of all orders (in the `listAllOrders()` action) probably doesn't make sense for production; there could be thousands or millions. However, it would be useful to disaply how for a test or demo system where there are only a handful of orders.
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Action_semantics.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Action_semantics.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Action_semantics.adoc
index d9a9d7f..15b3d2d 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Action_semantics.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Action_semantics.adoc
@@ -6,11 +6,13 @@
-The `semantics()` annotation describes whether the invocation is safe (as no side-effects), is idempotent (may have side-effects but always has the same post-conditions), or is neither safe nor idempotent. If the annotation is missing then the framework assumes non-idempotent.
+The `semantics()` attribute describes whether the invocation is safe (as no side-effects), is idempotent (may have side-effects but always has the same post-conditions), or is neither safe nor idempotent. If the annotation is missing then the framework assumes non-idempotent.
-[NOTE]
+[TIP]
====
-This attribute replaces the deprecated `@QueryOnly` and `Idempotent` annotations and also the `@ActionSemantics` annotation.
+The attribute was originally introduced for the xref:_ug_restfulobjects-viewer[RestfulObjects viewer] in order that action invocations could be made available using either HTTP GET, PUT or POST (respectively).
+
+Since then its use has been extended into the core runtime. For example, it is now aso used for the in-built concurrency checking; the invocation of a safe action does not perform a concurrency check, whereas non-safe actions do perform a concurrency check.
====
For example:
@@ -30,9 +32,5 @@ public class Customer {
}
----
-[TIP]
-====
-The annotation was introduced for the Restful Objects viewer in order that action invocations could be made available using either HTTP GET, PUT or POST (respectively). It is now also used in core runtime's in-built concurrency checking; the invocation of a safe action does not perform a concurrency check, whereas non-safe actions do perform a concurrency check.
-====
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Action_typeOf.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Action_typeOf.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Action_typeOf.adoc
index 11ec860..bbf4258 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Action_typeOf.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Action_typeOf.adoc
@@ -6,12 +6,7 @@
-Specifies the type-of the elements returned by the action (returning a collection), when for whatever reason the type cannot be inferred from the generic type, or to provide a hint about the actual run-time (as opposed to compile-time) type.
-
-[NOTE]
-====
-This attribute replaces the deprecated `@TypeOf` annotation.
-====
+The `typeOf()` attribute specifies the expected type of an element returned by the action (returning a collection), when for whatever reason the type cannot be inferred from the generic type, or to provide a hint about the actual run-time (as opposed to compile-time) type.
For example:
@@ -20,9 +15,12 @@ For example:
public void AccountService {
@Action(typeOf=Customer.class)
public List errantAccounts() {
- return CustomerRepo.allNewCustomers();
+ return customers.allNewCustomers();
}
...
+
+ @Inject
+ CustomerRepository customers;
}
----
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Collection.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Collection.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Collection.adoc
index 60add47..7e0b064 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Collection.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Collection.adoc
@@ -9,8 +9,8 @@ The `@Collection` annotation applies to collections collecting together all doma
The table below summarizes the annotation's attributes.
-.`@Action` attributes
-[cols="2,2,4", options="header"]
+.`@Collection` attributes
+[cols="2,2,4a", options="header"]
|===
| Attribute
@@ -19,13 +19,20 @@ The table below summarizes the annotation's attributes.
|xref:_ug_reference-annotations_manpage-Collection_domainEvent[`domainEvent()`]
-|
-|
+|subtype of `CollectionDomainEvent` +
+(`CollectionDomainEvent.Default`)
+|the event type to be posted to the xref:_ug_reference-services-api_manpage-EventBusService[`EventBusService`] to broadcast the collection's business rule checking (hide, disable, validate) and its modification (before and after).
|xref:_ug_reference-annotations_manpage-Collection_editing[`editing()`]
-|
-|
+|`ENABLED`,`DISABLED`,`AS_CONFIGURED` +
+(`AS_CONFIGURED`)
+|whether a collection can be added to or removed from within the UI
+
+
+|`editingDisabledReason()`
+|String value
+|if `editing()` is `DISABLED`, provides a reason as to why.
|xref:_ug_reference-annotations_manpage-Collection_hidden[`hidden()`]
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-CollectionLayout.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-CollectionLayout.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-CollectionLayout.adoc
index d2302e9..2d19314 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-CollectionLayout.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-CollectionLayout.adoc
@@ -10,8 +10,8 @@ annotation. It is also possible to apply the annotation to actions of domain se
The table below summarizes the annotation's attributes.
-.`@Action` attributes
-[cols="2,2,4", options="header"]
+.`@CollectionLayout` attributes
+[cols="2,2,4a", options="header"]
|===
| Attribute
@@ -21,7 +21,7 @@ The table below summarizes the annotation's attributes.
|xref:_ug_reference-annotations_manpage-CollectionLayout_cssClass[`cssClass()`]
|
-|the css class that a collection should have, to allow more targetted styling in `application.css`
+|the css class that a collection should have, to allow more targetted styling in xref:_ug_runtime_application-specific_application-css[`application.css`]
|xref:_ug_reference-annotations_manpage-CollectionLayout_describedAs[`describedAs()`]
@@ -39,7 +39,7 @@ The table below summarizes the annotation's attributes.
|the name of this collection (overriding the name derived from its name in code)
-|namedEscaped(]
+|namedEscaped()
|`true`,`false` (`true`)
|whether to HTML escape the name of this property.
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-CollectionLayout_cssClass.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-CollectionLayout_cssClass.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-CollectionLayout_cssClass.adoc
index 49a9475..9c69f6a 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-CollectionLayout_cssClass.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-CollectionLayout_cssClass.adoc
@@ -13,6 +13,12 @@ The `CssClass` annotation applies to object and also to any object member
(property, collection or action). It is used by the Wicket viewer as a UI hint
to render specified CSS classes around the representation of the element.
+[NOTE]
+====
+This attribute can also be applied to xref:_ug_reference-annotations_manpage-DomainObjectLayout_cssClass[domain objects], xref:_ug_reference-annotations_manpage-ViewModelLayout_cssClass[view models], xref:_ug_reference-annotations_manpage-ActionLayout_cssClass[actions] xref:_ug_reference-annotations_manpage-PropertyLayout_cssClass[properties] and xref:_ug_reference-annotations_manpage-ParameterLayout_cssClass[action parameters].
+====
+
+
Application-specific CSS can then be used to target and adjust the UI representation
of that particular element.
@@ -38,11 +44,8 @@ public class ToDoItem {
-== Alternatives (`.layout.json`)
-
-As an alternative to using the `@CssClass` annotation, the `.layout.json`
-xref:_ug_wicket-viewer_layout_dynamic-object-layout[dynamic layout file]
-can be specified, eg:
+As an alternative to using the annotation, the dynamic xref:_ug_wicket-viewer_layout_dynamic-object-layout[`.layout.json`]
+can be used instead, eg:
[source,javascript]
----
@@ -68,7 +71,7 @@ Note that this (currently) only supports class members, not classes
[NOTE]
====
-The similar xref:_ug_reference-annotations_manpage_CollectionLayout_cssClassFa[`@CollectionLayout#cssClassFa()`] annotation attribute is also used as a hint to apply CSS, but in particular to allow http://fortawesome.github.io/Font-Awesome/icons/[Font Awesome icons] to be rendered on action butotns or as the icon for classes.
+The similar xref:_ug_reference-annotations_manpage-CollectionLayout_cssClassFa[`@CollectionLayout#cssClassFa()`] annotation attribute is also used as a hint to apply CSS, but in particular to allow http://fortawesome.github.io/Font-Awesome/icons/[Font Awesome icons] to be rendered on action butotns or as the icon for classes.
====
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-CollectionLayout_describedAs.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-CollectionLayout_describedAs.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-CollectionLayout_describedAs.adoc
index a8faf07..9d20e0a 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-CollectionLayout_describedAs.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-CollectionLayout_describedAs.adoc
@@ -12,6 +12,12 @@ something that features on the user interface. How this description is
used will depend upon the viewing mechanism - but it may be thought of
as being like a 'tool tip'.
+[NOTE]
+====
+The `describedAs()` attribute can also be specified for xref:_ug_reference-annotations_manpage-PropertyLayout_describedAs[properties], xref:_ug_reference-annotations_manpage-ActionLayout_describedAs[actions], xref:_ug_reference-annotations_manpage-ParameterLayout_describedAs[parameters], xref:_ug_reference-annotations_manpage-DomainObjectLayout_describedAs[domain objects] and xref:_ug_reference-annotations_manpage-ViewModelLayout_describedAs[view models].
+====
+
+
Descriptions may be provided for objects, members (properties,
collections and actions), and for individual parameters within an action
method. `@DescribedAs` therefore works in a very similar manner to
@@ -29,3 +35,10 @@ public class Customer {
public String getFirstName() { ... }
}
----
+
+As an alternative to using the annotation, the dynamic xref:_ug_wicket-viewer_layout_dynamic-object-layout[`.layout.json`]
+can be used instead, eg:
+
+[source,javascript]
+----
+----
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-CollectionLayout_hidden.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-CollectionLayout_hidden.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-CollectionLayout_hidden.adoc
index 4d74bea..a7ef332 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-CollectionLayout_hidden.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-CollectionLayout_hidden.adoc
@@ -130,3 +130,10 @@ By default the annotated property or action is always hidden (ie
defaults to `Where.ANYWHERE`, `When.ALWAYS`).
+
+As an alternative to using the annotation, the dynamic xref:_ug_wicket-viewer_layout_dynamic-object-layout[`.layout.json`]
+can be used instead, eg:
+
+[source,javascript]
+----
+----
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-CollectionLayout_named.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-CollectionLayout_named.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-CollectionLayout_named.adoc
index a6c6843..47544af 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-CollectionLayout_named.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-CollectionLayout_named.adoc
@@ -1,5 +1,5 @@
[[_ug_reference-annotations_manpage-CollectionLayout_named]]
-= Named
+= `named()`
:Notice: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at. http://www.apache.org/licenses/LICENSE-2.0 . Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
:_basedir: ../
:_imagesdir: images/
@@ -10,9 +10,13 @@ By default, the name of a class member (a property, collection or action) presen
[TIP]
====
-Generally speaking it is better to rename the property, collection or action. The only common case where `@Named` is common is to rename parameters for built-in value types. Even here though a custom value type can be defined using `@Value` so that the value type is used as the parameter name. `@Named` may also be used if the name needs punctuation or other symbols in the name presented to the user.
+Following the link:http://en.wikipedia.org/wiki/Don%27t_repeat_yourself[don't repeat yourself] principle, we recommend that you only use this attribute when the desired name cannot be used in Java source code. Examples of that include a name that would be a reserved Java keyword (eg "package"), or a name that has punctuation, eg apostrophes.
====
+[NOTE]
+====
+This attribute can also be specified for xref:_ug_reference-annotations_manpage-ActionLayout_named[actions], xref:_ug_reference-annotations_manpage-PropertyLayout_named[properties], xref:_ug_reference-annotations_manpage-ParameterLayout_named[action parameters], xref:_ug_reference-annotations_manpage-DomainObjectLayout_named[domain objects], xref:_ug_reference-annotations_manpage-ViewModelLayout_named[view models] and xref:_ug_reference-annotations_manpage-DomainServiceLayout_named[domain services].
+====
== named()
@@ -56,3 +60,9 @@ IMPORTANT: WIP ... this section
+As an alternative to using the annotation, the dynamic xref:_ug_wicket-viewer_layout_dynamic-object-layout[`.layout.json`]
+can be used instead, eg:
+
+[source,javascript]
+----
+----
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-CollectionLayout_paged.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-CollectionLayout_paged.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-CollectionLayout_paged.adoc
index 9e64b8f..937a7c5 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-CollectionLayout_paged.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-CollectionLayout_paged.adoc
@@ -47,5 +47,12 @@ of 20 for standalone collections.
+As an alternative to using the annotation, the dynamic xref:_ug_wicket-viewer_layout_dynamic-object-layout[`.layout.json`]
+can be used instead, eg:
+
+[source,javascript]
+----
+----
+
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-CollectionLayout_render.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-CollectionLayout_render.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-CollectionLayout_render.adoc
index 3118d52..5f173ff 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-CollectionLayout_render.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-CollectionLayout_render.adoc
@@ -47,3 +47,10 @@ Indeed, some object stores may choose use their own specific annotations
+As an alternative to using the annotation, the dynamic xref:_ug_wicket-viewer_layout_dynamic-object-layout[`.layout.json`]
+can be used instead, eg:
+
+[source,javascript]
+----
+----
+
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-CollectionLayout_sortedBy.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-CollectionLayout_sortedBy.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-CollectionLayout_sortedBy.adoc
index 669bbed..b785556 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-CollectionLayout_sortedBy.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-CollectionLayout_sortedBy.adoc
@@ -51,3 +51,10 @@ Without this annotation, the order would have been inverted (because the natural
+
+As an alternative to using the annotation, the dynamic xref:_ug_wicket-viewer_layout_dynamic-object-layout[`.layout.json`]
+can be used instead, eg:
+
+[source,javascript]
+----
+----
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Collection_domainEvent.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Collection_domainEvent.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Collection_domainEvent.adoc
index bf39512..dd85549 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Collection_domainEvent.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Collection_domainEvent.adoc
@@ -5,121 +5,126 @@
:_imagesdir: images/
-IMPORTANT: WIP ... this section
+Whenever a domain object (or list of domain objects) is to be rendered, the framework fires off multiple domain events for every property, collection and action of the domain object. In the cases of the domain object's collections, the events that are fired are:
-[WARNING]
-====
-The Wicket viewer does NOT support collection modification; instead write a pair of actions to add to/remove from the collection.
+* hide phase: to check that the collection is visible (has not been hidden)
+* disable phase: to check that the collection is usable (has not been disabled)
+* validate phase: to check that the collection's arguments are valid (to add or remove an element)
+* pre-execute phase: before the modification of the collection
+* post-execute: after the modification of the collection
-However, it _is_ possible to fire collection interaction events using the wrapper factory; see below for more details.
-====
+Subscribers subscribe through the xref:_ug_reference-services-api_manpage-EventBusService[`EventBusService`] using either link:https://github.com/google/guava[Guava] or link:http://www.axonframework.org/[Axon Framework] annotations and can influence each of these phases.
-The `@CollectionInteraction` annotation applies to domain entity collections, allowing subscribers to optionally veto, validate or otherwise perform tasks before or after the collection has been added to/removed from.
-
-Subscribers subscribe through the xref:_ug_reference-services-api_manpage-EventBusService[`EventBusService`] using Guava annotations.
+[WARNING]
+====
+The xref:_ug_wicket-viewer[Wicket viewer] does NOT currently support the modification of collections; they are rendered read-only. However, domain events are still relevant to determine if such collections should be hidden.
+====
-By default the event raised is `CollectionInteractionEvent.Default`. For example:
+By default the event raised is `CollectionDomainEvent.Default`. For example:
[source,java]
----
public class ToDoItem {
- ...
- @CollectionInteraction
+ @Collection()
public SortedSet<ToDoItem> getDependencies() { ... }
+ ...
}
----
-Optionally a subclass can be declared:
+The purpose of the `domainEvent()` attribute is to allows a custom subclass to be emitted instead.
+
+For example:
[source,java]
----
public class ToDoItem {
-
public static class DependenciesChangedEvent extends CollectionInteractionEvent<ToDoItem, ToDoItem> {
private static final long serialVersionUID = 1L;
- public DependenciesChangedEvent(ToDoItem source, Identifier identifier, Of of, ToDoItem value) {
+ public DependenciesChangedEvent(
+ ToDoItem source,
+ Identifier identifier,
+ Of of, // <1>
+ ToDoItem value) {
super(source, identifier, of, value);
}
}
-
}
----
+<1> indicates if the collection is being accessed, added to or removed from.
-The `of` field indicates if the collection is being accessed, added to or removed from.
+The benefit is that subscribers can be more targetted as to the events that they subscribe to.
+[NOTE]
+====
+As you might expect, it is also possible to influence the domain event type raised for xref:_ug_reference-annotations_manpage-Action_domainEvent[actions] and xref:_ug_reference-annotations_manpage-Property_domainEvent[properties].
+====
== Subscribers
-Subscribers (which must be domain services) subscribe using the Guava API.
+Subscribers (which must be domain services) subscribe using either the link:https://github.com/google/guava[Guava] API or (if the xref:_ug_reference-services-api_manpage-EventBusService[`EventBusService`] has been appropriately configured) using the link:http://www.axonframework.org/[Axon Framework] API. The examples below use the Guava API.
+
Subscribers can be either coarse-grained (if they subscribe to the top-level event type):
[source,java]
----
@DomainService
public class SomeSubscriber {
-
@Programmatic
@com.google.common.eventbus.Subscribe
public void on(CollectionInteractionEvent ev) {
-
...
}
-
}
----
-or can be fine-grained by subscribing to specific event subtypes:
+or can be fine-grained (by subscribing to specific event subtypes):
[source,java]
----
@DomainService
public class SomeSubscriber {
-
@Programmatic
@com.google.common.eventbus.Subscribe
public void on(ToDoItem.DependenciesChangedEvent ev) {
-
...
}
-
}
----
+[TIP]
+====
+If the AxonFramework is being used, replace `@com.google.common.eventbus.Subscribe` for `@org.axonframework.eventhandling.annotation.EventHandler`.
+====
+
The subscriber's method is called (up to) 5 times:
* whether to veto visibility (hide)
* whether to veto usability (disable)
-* whether to veto execution (validate)
-* steps to perform prior to the property being modified
-* steps to perform after the property has been modified.
+* whether to veto execution (validate) the element being added to/removed from the collection
+* steps to perform prior to the collection being added to/removed from
+* steps to perform after the collection has been added to/removed from.
The subscriber can distinguish these by calling `ev.getPhase()`. Thus the general form is:
[source,java]
----
- @Programmatic
- @com.google.common.eventbus.Subscribe
- public void on(CollectionInteractionEvent ev) {
-
+@Programmatic
+@com.google.common.eventbus.Subscribe
+public void on(CollectionDomainEvent ev) {
switch(ev.getPhase()) {
case HIDE:
- ...
break;
case DISABLE:
- ...
break;
case VALIDATE:
- ...
break;
case EXECUTING:
- ...
break;
case EXECUTED:
- ...
break;
}
}
@@ -127,42 +132,28 @@ The subscriber can distinguish these by calling `ev.getPhase()`. Thus the genera
Vetoing is performed by calling the appropriate method on the event:
-*
+* To hide: +
++
+`ev.hide()` or `ev.veto("")`
-To hide:
+* To disable: +
++
+`ev.disable("...")` or `ev.veto("...")`
-ev.hide()
+* To invalidate: +
-*
+`ev.invalidate("...")` or `ev.veto("...")`
-To disable:
+It is also possible to abort the transaction during the executing or executed phases by throwing an exception. If the exception is a subtype of `RecoverableException` then the exception will be rendered as a user-friendly warning (eg Growl/toast) rather than an error.
-ev.disable("…");
-*
-To invalidate:
-ev.invalidate("…");
+== Raising events programmatically
-It is also possible to abort the transaction during the executing or executed
-phases by throwing an exception. If the exception is a subtype of `RecoverableException`
-then the exception will be rendered as a user-friendly warning (eg Growl/toast)
-rather than an error.
+Normally events are only raised for interactions through the UI. However, events can be raised programmatically either by calling the xref:_ug_reference-services-api_manpage-EventBusService[`EventBusService`] API directly, or by emulating the UI by
+wrapping the target object using the xref:_ug_reference-services-api_manpage-WrapperFactory[`WrapperFactory`] domain service.
-== Raising events programmatically.
-
-Normally events are only raised for interactions through the UI. However, events can be raised programmatically by
-wrapping the target object using the xref:_ug_reference-services-api_manpage-WrapperFactory[`WrapperFactory`] service.
-
-
-[NOTE]
-====
-domain events can also be raised for actions and properties.
-====
-
-
-
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Collection_editing.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Collection_editing.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Collection_editing.adoc
index 9d7ef3b..7d1a4c8 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Collection_editing.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Collection_editing.adoc
@@ -6,125 +6,45 @@
-IMPORTANT: WIP ... this section
+
+
+
+The `editing()` annotation indicates whether a collection can be added to or removed from within the UI. The related `editingDisabledReason()` attribute specifies the a hard-coded reason why the collection cannot be modified directly.
[NOTE]
====
-Fully supported by: Wicket viewer; other viewers do not yet support the `where` attribute.
+This attribute can also be specified for xref:_ug_reference-annotations_manpage-Property_editing[properties], and can also be specified for the xref:_ug_reference-annotations_manpage-DomainObject_editing[domain object]
====
-The `@Disabled` annotation means that the member cannot be used in any instance of the class. When applied to the property it means that the user may not modify the value of that property (though it may still be modified programmatically). When applied to an action method, it means that the user cannot invoke that method.
+[WARNING]
+====
+The xref:_ug_wicket-viewer[Wicket viewer] does NOT currently support the modification of collections; they are rendered read-only.
+====
-For example:
+Whether a collection is enabled or disabled depends upon three factors:
-[source,java]
-----
-public class Customer {
- @Disabled
- public void assessCreditWorthiness() { ... }
+* whether the domain object has been configured as immutable through the xref:_ug_reference-annotations_manpage-DomainObject_editing[`@DomainObject#editing()`] attribute
- @Disabled
- public int getInitialCreditRating(){ ... }
- public void setInitialCreditRating(int initialCreditRating) { ... }
-}
-----
+* else (that is, if the domain object's editability is specified as being `AS_CONFIGURED`), then the value of the `isis.objects.editing` configuration property. If set to `false`, then the object's collections (and properties) are _not_ editable
-Note that if an action is marked as `@Disabled`, it will be shown on the
-user interface but cannot ever be invoked. The only possible reason we
-can think to do this is during prototyping, to indicate an action that
-is still to be developed. If a method is intended for programmatic use,
-but not intended ever to be invoked directly by a user, then it should
-be marked as `@Hidden` instead.
+* else, then the value of the `@Collection(editing=...)` attribute itself.
-This annotation can also take two parameter indicating where (in the UI)
-it is to be disabled, and when (in the object's lifecycle) it is to be
-disabled. For example:
-[source,java]
-----
-public class Customer {
- (when=When.UNTIL_PERSISTED)
- public void assessCreditWorthiness() { ... }
-}
-----
+Thus, to make a collection read-only even if the object would otherwise be editable, use:
-would disable the action until the object has been saved. And:
[source,java]
----
-public class Customer {
- (where=Where.PARENTED_TABLES)
- public void getFirstName() { ... }
+public class ToDoItem {
+ @Collection(
+ editing=Editing.DISABLED,
+ editingDisabledReason="Use the add and remove actions to modify"
+ )
+ public SortedSet<ToDoItem> getDependencies() { ... }
}
----
-would disable the property in parented tables but not in regular object
-forms (though note: this would only be used by viewers that provide
-in-table editing capability).
-
-The acceptable values for the `where` parameter are:
-
-* `Where.ANYWHERE` +
-+
-The member should be disabled everywhere.
-
-* `Where.OBJECT_FORMS` +
-+
-The member should be disabled when displayed within an object form.
-For most viewers, this applies to property and collection members,
-not actions.
-
-* `Where.PARENTED_TABLES` +
-+
-The member should be disabled when displayed as a column of a table
-within a parent object's collection. For most (all?) viewers, this
-will have meaning only if applied to a property member.
-
-* `Where.STANDALONE_TABLES` +
-+
-The member should be disabled when displayed as a column of a table
-showing a standalone list of objects, for example as returned by a
-repository query. For most (all?) viewers, this will have meaning
-only if applied to a property member.
-
-* `Where.ALL_TABLES` +
-+
-The member should be disabled when displayed as a column of a table,
-either an object's * collection or a standalone list. This combines
-`PARENTED_TABLES` and `STANDALONE_TABLES`
-
-* `Where.NOWHERE` +
-+
-Has no meaning for the `@Disabled` annotation (though is used by the
-`@Hidden` annotation which also uses the `Where` enum<!--, see ?-->).
-
-The acceptable values for the `when` parameter are:
-
-* `When.ALWAYS` +
-+
-The member should be disabled at all times.
-
-* `When.NEVER` +
-+
-The member should never be disabled (unless disabled through some
-other mechanism, for example an imperative disableXxx() supporting
-method)..
-
-* `When.ONCE_PERSISTED` +
-+
-The member should be enabled for transient objects, but disabled for
-persisted objects.
-
-* `When.UNTIL_PERSISTED` +
-+
-The member should be disabled for transient objects, but enabled for
-persisted objects.
-
-By default the annotated property or action is always disabled (ie
-defaults to `Where.ANYWHERE`, `When.ALWAYS`).
-
-
-
-
-
-
+[NOTE]
+====
+To reiterate, it is _not_ possible to enable editing for a collection if editing has been disabled at the object-level.
+====
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Collection_hidden.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Collection_hidden.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Collection_hidden.adoc
index b907e9f..d457bcc 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Collection_hidden.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Collection_hidden.adoc
@@ -5,125 +5,46 @@
:_imagesdir: images/
+Collections can be hidden at the domain-level, indicating that they are not visible to the end-user.
-
-IMPORTANT: WIP ... this section
-
-The `@Hidden` annotation indicates that the member (property, collection or action) to which it is applied should never be visible to the user. It can also be applied to service types (it has no effect if applied to entities or values).
+[TIP]
+====
+It is also possible to use xref:_ug_reference-annotations_manpage-CollectionLayout_hidden[`@CollectionLayout#hidden()`] or xref:_ug_wicket-viewer_layout_dynamic-object-layout[dynamic layouts] such that the collection can be hidden at the view layer. Both options are provided with a view that in the future the view-layer semantics may be under the control of (expert) users, whereas domain-layer semantics should never be overridden or modified by the user.
+====
For example:
[source,java]
----
public class Customer {
- @Hidden
- public int getInternalId() { ... }
-
- @Hidden
- public void updateStatus() { ... }
- ...
-}
-----
-
-Or, applied to a service:
-
-[source,java]
-----
-@Hidden
-public class EmailService {
- public void sendEmail(...) { ... }
- ...
-}
-----
-
-This annotation can also take a parameters indicating where and when it
-is to be hidden. For example:
-
-[source,java]
-----
-public class Customer {
- @Hidden(when=When.ONCE_PERSISTED)
- public int getInternalId() { ... }
- ...
+ @Collection(where=Where.EVERYWHERE)
+ public SortedSet<Address> getAddresses() { ... }
}
----
-would show the `Id` until the object has been saved, and then would hide
-it. And:
-
-[source,java]
-----
-public class Customer {
- @Hidden(where=Where.ALL_TABLES)
- public int getDateOfBirth() { ... }
- ...
-}
-----
-
-would suppress the `dateOfBirth` property of a Customer from all tables.
The acceptable values for the `where` parameter are:
-* `Where.ANYWHERE` +
-+
-The member should be hidden everywhere.
-
-* `Where.OBJECT_FORMS` +
+* `Where.EVERYWHERE` +
+
-The member should be hidden when displayed within an object form.
-For most viewers, this applies to property and collection members,
-not actions.
+The collection should be hidden everywhere.
-* `Where.PARENTED_TABLES` +
-+
-The member should be hidden when displayed as a column of a table
-within a parent object's collection. For most (all?) viewers, this
-will have meaning only if applied to a property member.
-
-* `Where.STANDALONE_TABLES` +
-+
-The member should be hidden when displayed as a column of a table
-showing a standalone list of objects, for example as returned by a
-repository query. For most (all?) viewers, this will have meaning
-only if applied to a property member.
-
-* `Where.ALL_TABLES` +
-+
-The member should be /hidden when displayed as a column of a table,
-either an object's * collection or a standalone list. This combines
-`PARENTED_TABLES` and `STANDALONE_TABLES`.
-
-* `Where.NOWHERE` +
+* `Where.ANYWHERE` +
+
-Acts as an override if a member would normally be hidden as a result
-of some other convention. For example, if a property is annotated
-with `@Title` <!--(see ?)-->, then normally this should be hidden from all
-tables. Additionally annotating with `@Hidden(where=Where.NOWHERE)`
-overrides this.
-
-The acceptable values for the `when` parameter are:
+Synonym for everywhere.
-* `When.ALWAYS` +
+* `Where.OBJECT_FORMS` +
+
-The member should be hidden at all times.
+The collection should be hidden when displayed within an object form.
-* `When.NEVER` +
-+
-The member should never be hidden (unless disabled through some
-other mechanism, for example an imperative disableXxx() supporting
-method)..
+The other values of the `Where` enum have no meaning for a collection.
-* `When.ONCE_PERSISTED` +
-+
-The member should be visible for transient objects, but hidden for
-persisted objects.
-* `When.UNTIL_PERSISTED` +
-+
-The member should be hidden for transient objects, but visible for
-persisted objects.
-By default the annotated property or action is always hidden (ie
-defaults to `Where.ANYWHERE`, `When.ALWAYS`).
+[NOTE]
+====
+The xref:_ug_wicket-viewer[Wicket viewer] suppresses collections when displaying lists of objects.
+The xref:_ug_restfulobjects-viewer[RestfulObjects viewer] by default suppress collections when rendering a domain object.
+====
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-DomainObject.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-DomainObject.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-DomainObject.adoc
index 2c9c26e..1166174 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-DomainObject.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-DomainObject.adoc
@@ -10,8 +10,8 @@ The `@DomainObject` annotation applies to domain objects, collecting together al
The table below summarizes the annotation's attributes.
-.`@Action` attributes
-[cols="2,2,4", options="header"]
+.`@DomainObject` attributes
+[cols="2,2,4a", options="header"]
|===
| Attribute
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-DomainObjectLayout.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-DomainObjectLayout.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-DomainObjectLayout.adoc
index eace09e..77363fc 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-DomainObjectLayout.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-DomainObjectLayout.adoc
@@ -11,8 +11,8 @@ annotation.
The table below summarizes the annotation's attributes.
-.`@Action` attributes
-[cols="2,2,4", options="header"]
+.`@DomainObjectLayout` attributes
+[cols="2,2,4a", options="header"]
|===
| Attribute
@@ -27,7 +27,7 @@ The table below summarizes the annotation's attributes.
|xref:_ug_reference-annotations_manpage-DomainObjectLayout_cssclass[`cssClass()`]
|
-|the css class that a domain class (type) should have, to allow more targetted styling in `application.css`
+|the css class that a domain class (type) should have, to allow more targetted styling in xref:_ug_runtime_application-specific_application-css[`application.css`]
|xref:_ug_reference-annotations_manpage-DomainObjectLayout_cssClassFa[`cssClassFa()`]
@@ -79,7 +79,15 @@ public class ToDoItem {
----
For view models that have been annotated with `@ViewModel` (rather than `@DomainObject(nature=VIEW_MODEL)` the
-equivalent xref:_ug_reference-annotations_manpage_VewModelLayout[`@VewModelLayout`] can be used.
+equivalent xref:_ug_reference-annotations_manpage-ViewModelLayout[`@ViewModelLayout`] can be used.
+
+
+
+[NOTE]
+====
+Note that there is (currently) no support for specifying UI hints for domain objects through the dynamic xref:_ug_wicket-viewer_layout_dynamic-object-layout[`.layout.json`] file (only for properties, collections and actions are supported).
+====
+
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-DomainObjectLayout_cssClass.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-DomainObjectLayout_cssClass.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-DomainObjectLayout_cssClass.adoc
index 95a833b..2177a82 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-DomainObjectLayout_cssClass.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-DomainObjectLayout_cssClass.adoc
@@ -13,6 +13,12 @@ The `CssClass` annotation applies to object and also to any object member
(property, collection or action). It is used by the Wicket viewer as a UI hint
to render specified CSS classes around the representation of the element.
+[NOTE]
+====
+This attribute can also be applied to xref:_ug_reference-annotations_manpage-DomainObjectLayout_cssClass[domain objects], xref:_ug_reference-annotations_manpage-ViewModelLayout_cssClass[view models], xref:_ug_reference-annotations_manpage-ActionLayout_cssClass[actions] xref:_ug_reference-annotations_manpage-PropertyLayout_cssClass[properties], xref:_ug_reference-annotations_manpage-CollectionLayout_cssClass[collections] and xref:_ug_reference-annotations_manpage-ParameterLayout_cssClass[action parameters].
+====
+
+
Application-specific CSS can then be used to target and adjust the UI representation
of that particular element.
@@ -40,38 +46,14 @@ public class ToDoItem {
-== Alternatives (`.layout.json`)
-
-As an alternative to using the `@CssClass` annotation, the `.layout.json` xref:_ug_wicket-viewer_layout_dynamic-object-layout[dynamic layout file]
-can be specified, eg:
-
-[source,javascript]
-----
-{
- "span": 6,
- "memberGroups": {
- "Priority": {
- "members": {
- ...
- "dueBy": {
- "cssClass": { "value": "x-key" }
- }
- ....
- }
- },
- ...
- }
-}
-----
-
-Note that this (currently) only supports class members, not classes
[NOTE]
====
-The similar xref:_ug_reference-annotations_manpage_DomainObjectLayout_cssClassFa[`@DomainObjectLayout#cssClassFa()`] annotation attribute is also used as a hint
+The similar xref:_ug_reference-annotations_manpage-DomainObjectLayout_cssClassFa[`@DomainObjectLayout#cssClassFa()`] annotation attribute is also used as a hint
to apply CSS, but in particular to allow http://fortawesome.github.io/Font-Awesome/icons/[Font Awesome icons]
to be rendered on action butotns or as the icon for classes.
====
+
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-DomainObjectLayout_cssClassFa.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-DomainObjectLayout_cssClassFa.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-DomainObjectLayout_cssClassFa.adoc
index d43f06e..7a19bfa 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-DomainObjectLayout_cssClassFa.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-DomainObjectLayout_cssClassFa.adoc
@@ -1,5 +1,5 @@
[[_ug_reference-annotations_manpage-DomainObjectLayout_cssClassFa]]
-= Font-awesome icons
+= `cssClassFa()`
:Notice: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at. http://www.apache.org/licenses/LICENSE-2.0 . Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
:_basedir: ../
:_imagesdir: images/
@@ -18,6 +18,14 @@ IMPORTANT: WIP ... this section
The `CssClassFa` annotation applies to objects and also to object actions,
and is used by the Wicket viewer as a UI hint.
+
+[NOTE]
+====
+These attributes can also be applied to xref:_ug_reference-annotations_manpage-ViewModelLayout_cssClassFa[view models] to specify the object's icon, and to xref:_ug_reference-annotations_manpage-ActionLayout_cssClass[actions] to specify an icon for the action's representation as a button or menu item.
+====
+
+
+
For object actions, the viewer will render the specified
http://fortawesome.github.io/Font-Awesome/icons/[Font Awesome icon]
on the action's button (or menu item).
@@ -51,44 +59,12 @@ public class ToDoItem {
There can be multiple "fa-" classes, eg to mirror or rotate the icon. There
is no need to include the "fa" class; it will be automatically appended.
-=== Alternatives (`.layout.json`)
-
-As an alternative to using the `@CssClass` annotation, the `.layout.json`
-xref:_ug_wicket-viewer_layout_dynamic-object-layout[dynamic layout file]
-can be specified, eg:
-
-[source,javascript]
-----
-{
- "span": 6,
- "memberGroups": {
- "Priority": {
- "members": {
- ...
- "relativePriority": {
- "actions": {
- "previous": {
- "cssClassFa": { "value": "fa-step-backward" }
- },
- "next": {
- "cssClassFa": { "value": "fa-step-forward" }
- }
- }
- },
- ....
- }
- },
- ...
- }
-}
-----
-Note that this (currently) only supports class members, not classes.
[TIP]
====
-The similar xref:_ug_reference-annotations_manpage_DomainObjectLayout_cssClass[`@DomainObjectLayout#cssClass()`] annotation attribute is also used as a hint
+The similar xref:_ug_reference-annotations_manpage-DomainObjectLayout_cssClass[`@DomainObjectLayout#cssClass()`] annotation attribute is also used as a hint
to apply CSS, but for wrapping the representation of an object or object
member so that it can be styled in an application-specific way.
====
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-DomainObjectLayout_describedAs.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-DomainObjectLayout_describedAs.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-DomainObjectLayout_describedAs.adoc
index d1f8adb..68ac902 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-DomainObjectLayout_describedAs.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-DomainObjectLayout_describedAs.adoc
@@ -10,6 +10,11 @@ IMPORTANT: WIP ... this section
The `@DescribedAs` annotation is used to provide a short description of something that features on the user interface. How this description is used will depend upon the viewing mechanism - but it may be thought of as being like a 'tool tip'.
+[NOTE]
+====
+The `describedAs()` attribute can also be specified for xref:_ug_reference-annotations_manpage-CollectionLayout_describedAs[collections], xref:_ug_reference-annotations_manpage-PropertyLayout_describedAs[properties], xref:_ug_reference-annotations_manpage-ActionLayout_describedAs[actions], xref:_ug_reference-annotations_manpage-ParameterLayout_describedAs[parameters] and xref:_ug_reference-annotations_manpage-ViewModelLayout_describedAs[view models].
+====
+
Descriptions may be provided for objects, members (properties, collections and actions), and for individual parameters within an action method. `@DescribedAs` therefore works in a very similar manner to `@Named`.
For example:
@@ -25,5 +30,3 @@ public class ProspectiveSale {
-
-
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-DomainObjectLayout_named.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-DomainObjectLayout_named.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-DomainObjectLayout_named.adoc
index f1a1866..def00f1 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-DomainObjectLayout_named.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-DomainObjectLayout_named.adoc
@@ -13,11 +13,15 @@ By default the name of an object is derived, reflectively from the class
name. To specify a different name for an object, use the `@Named`
annotation in front of the class declaration.
-The `@Named` annotation is used when you want to specify the way
-something is named on the user interface i.e. when you do not want to
-use the name generated automatically by the system. It can be applied to
-objects, members (properties, collections, and actions) and to
-parameters within an action method.
+[TIP]
+====
+Following the link:http://en.wikipedia.org/wiki/Don%27t_repeat_yourself[don't repeat yourself] principle, we recommend that you only use this attribute when the desired name cannot be used in Java source code. Examples of that include a name that would be a reserved Java keyword (eg "package"), or a name that has punctuation, eg apostrophes.
+====
+
+[NOTE]
+====
+This attribute can also be specified for xref:_ug_reference-annotations_manpage-ActionLayout_named[actions], xref:_ug_reference-annotations_manpage-CollectionLayout_named[collections], xref:_ug_reference-annotations_manpage-PropertyLayout_named[properties], xref:_ug_reference-annotations_manpage-ParameterLayout_named[action parameters], xref:_ug_reference-annotations_manpage-ViewModelLayout_named[view models] and xref:_ug_reference-annotations_manpage-DomainServiceLayout_named[domain services].
+====
[WARNING]
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-DomainObjectLayout_paged.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-DomainObjectLayout_paged.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-DomainObjectLayout_paged.adoc
index 6ee520a..5cce571 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-DomainObjectLayout_paged.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-DomainObjectLayout_paged.adoc
@@ -45,4 +45,3 @@ of 20 for standalone collections.
-
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-DomainService.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-DomainService.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-DomainService.adoc
index 5b2a667..aa89292 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-DomainService.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-DomainService.adoc
@@ -13,8 +13,8 @@ discovered automatically on the CLASSPATH.
The table below summarizes the annotation's attributes.
-.`@Action` attributes
-[cols="2,2,4", options="header"]
+.`@DomainService` attributes
+[cols="2,2,4a", options="header"]
|===
| Attribute
[4/4] isis git commit: ISIS-1133: working on the annotations.
Posted by da...@apache.org.
ISIS-1133: working on the annotations.
Project: http://git-wip-us.apache.org/repos/asf/isis/repo
Commit: http://git-wip-us.apache.org/repos/asf/isis/commit/4a9da14d
Tree: http://git-wip-us.apache.org/repos/asf/isis/tree/4a9da14d
Diff: http://git-wip-us.apache.org/repos/asf/isis/diff/4a9da14d
Branch: refs/heads/ISIS-1133
Commit: 4a9da14d9ac6b2af48bf0186058ccdeed02c7267
Parents: d85483a
Author: Dan Haywood <da...@haywood-associates.co.uk>
Authored: Mon Jun 1 16:57:16 2015 +0100
Committer: Dan Haywood <da...@haywood-associates.co.uk>
Committed: Mon Jun 1 16:57:16 2015 +0100
----------------------------------------------------------------------
adocs/documentation/monitor.rb | 34 +++--
.../_ug_appendices_release-notes.adoc | 4 +-
...re-concepts_framework-provided-services.adoc | 2 +-
..._core-concepts_other-deployment-options.adoc | 2 +-
...cepts_philosophy_hexagonal-architecture.adoc | 2 +-
...ncepts_philosophy_naked-objects-pattern.adoc | 2 +-
...ts_principles_apache-isis-vs_metawidget.adoc | 2 +-
...ache-isis-vs_mvc-server-side-frameworks.adoc | 4 +-
.../asciidoc/user-guide/_ug_deployment_gae.adoc | 2 +-
...ug_getting-started_datanucleus-enhancer.adoc | 2 +-
...dless-access_BackgroundCommandExecution.adoc | 2 +-
.../user-guide/_ug_how-tos_domain-services.adoc | 2 +-
.../user-guide/_ug_isis-addons-modules.adoc | 2 +-
..._ug_isis-addons-modules_devutils-module.adoc | 2 +-
.../user-guide/_ug_isis-in-pictures.adoc | 56 ++++----
..._ug_more-advanced_decoupling_db-schemas.adoc | 2 +-
.../user-guide/_ug_more-advanced_i18n.adoc | 2 +-
...ug_reference-annotations_aaa_deprecated.adoc | 4 +-
...ug_reference-annotations_manpage-Action.adoc | 15 ++-
...erence-annotations_manpage-ActionLayout.adoc | 49 ++++---
...ations_manpage-ActionLayout_bookmarking.adoc | 63 ++++-----
...ions_manpage-ActionLayout_contributedAs.adoc | 49 +++----
...notations_manpage-ActionLayout_cssClass.adoc | 58 +++------
...tations_manpage-ActionLayout_cssClassFa.adoc | 80 ++++--------
...ations_manpage-ActionLayout_describedAs.adoc | 22 +++-
...annotations_manpage-ActionLayout_hidden.adoc | 117 ++++-------------
...-annotations_manpage-ActionLayout_named.adoc | 43 ++++---
...ence-annotations_manpage-Action_command.adoc | 42 +++---
...-annotations_manpage-Action_domainEvent.adoc | 41 +++---
...rence-annotations_manpage-Action_hidden.adoc | 25 +++-
...nce-annotations_manpage-Action_invokeOn.adoc | 45 ++++---
...e-annotations_manpage-Action_publishing.adoc | 25 ++--
...e-annotations_manpage-Action_restrictTo.adoc | 10 +-
...ce-annotations_manpage-Action_semantics.adoc | 12 +-
...rence-annotations_manpage-Action_typeOf.adoc | 12 +-
...eference-annotations_manpage-Collection.adoc | 19 ++-
...ce-annotations_manpage-CollectionLayout.adoc | 8 +-
...tions_manpage-CollectionLayout_cssClass.adoc | 15 ++-
...ns_manpage-CollectionLayout_describedAs.adoc | 13 ++
...tations_manpage-CollectionLayout_hidden.adoc | 7 +
...otations_manpage-CollectionLayout_named.adoc | 14 +-
...otations_manpage-CollectionLayout_paged.adoc | 7 +
...tations_manpage-CollectionLayout_render.adoc | 7 +
...tions_manpage-CollectionLayout_sortedBy.adoc | 7 +
...otations_manpage-Collection_domainEvent.adoc | 117 ++++++++---------
...-annotations_manpage-Collection_editing.adoc | 128 ++++---------------
...e-annotations_manpage-Collection_hidden.adoc | 117 +++--------------
...erence-annotations_manpage-DomainObject.adoc | 4 +-
...-annotations_manpage-DomainObjectLayout.adoc | 16 ++-
...ons_manpage-DomainObjectLayout_cssClass.adoc | 34 ++---
...s_manpage-DomainObjectLayout_cssClassFa.adoc | 44 ++-----
..._manpage-DomainObjectLayout_describedAs.adoc | 7 +-
...ations_manpage-DomainObjectLayout_named.adoc | 14 +-
...ations_manpage-DomainObjectLayout_paged.adoc | 1 -
...rence-annotations_manpage-DomainService.adoc | 4 +-
...annotations_manpage-DomainServiceLayout.adoc | 9 +-
...tions_manpage-DomainServiceLayout_named.adoc | 11 ++
...reference-annotations_manpage-Parameter.adoc | 4 +-
...nce-annotations_manpage-ParameterLayout.adoc | 12 +-
...ations_manpage-ParameterLayout_cssClass.adoc | 7 +-
...ons_manpage-ParameterLayout_describedAs.adoc | 5 +
...notations_manpage-ParameterLayout_named.adoc | 11 ++
..._reference-annotations_manpage-Property.adoc | 9 +-
...ence-annotations_manpage-PropertyLayout.adoc | 6 +-
...tations_manpage-PropertyLayout_cssClass.adoc | 12 +-
...ions_manpage-PropertyLayout_describedAs.adoc | 11 ++
...notations_manpage-PropertyLayout_hidden.adoc | 8 ++
...ns_manpage-PropertyLayout_labelPosition.adoc | 8 ++
...ations_manpage-PropertyLayout_multiLine.adoc | 6 +
...nnotations_manpage-PropertyLayout_named.adoc | 18 ++-
...page-PropertyLayout_renderedAsDayBefore.adoc | 7 +
...nnotations_manpage-Property_domainEvent.adoc | 92 ++++++-------
...ce-annotations_manpage-Property_editing.adoc | 113 +++-------------
...nce-annotations_manpage-Property_hidden.adoc | 110 ++++------------
...reference-annotations_manpage-ViewModel.adoc | 2 +-
...nce-annotations_manpage-ViewModelLayout.adoc | 12 +-
...ations_manpage-ViewModelLayout_cssClass.adoc | 7 +-
...ions_manpage-ViewModelLayout_cssClassFa.adoc | 9 +-
...ons_manpage-ViewModelLayout_describedAs.adoc | 5 +
...notations_manpage-ViewModelLayout_named.adoc | 14 +-
.../_ug_reference-methods_reserved_aaa.adoc | 2 +-
.../_ug_reference-services-api_aaa.adoc | 2 +-
...ices-api_manpage-BulkInteractionContext.adoc | 2 +-
...nce-services-api_manpage-CommandContext.adoc | 6 +-
...ce-services-api_manpage-EventBusService.adoc | 2 +-
...-services-api_manpage-QueryResultsCache.adoc | 2 +-
...ference-services-api_manpage-ScratchPad.adoc | 4 +-
...ce-services-spi_manpage-AuditingService.adoc | 2 +-
...nce-services-spi_manpage-CommandService.adoc | 2 +-
...-services-spi_manpage-PublishingService.adoc | 2 +-
.../main/asciidoc/user-guide/_ug_runtime.adoc | 4 +-
.../_ug_runtime_application-specific.adoc | 25 ++++
...s_disabling-persistence-by-reachability.adoc | 2 +-
.../main/asciidoc/user-guide/_ug_security.adoc | 4 +-
.../_ug_security_shiro-jdbc-realm.adoc | 2 +-
.../asciidoc/user-guide/_ug_testing_aaa.adoc | 2 +-
...esting_integ-test-support_typical-usage.adoc | 2 +-
..._wicket-viewer_customisation_brand-logo.adoc | 2 +-
...ewer_customisation_tweaking-css-classes.adoc | 4 +-
.../_ug_wicket-viewer_isis-addons.adoc | 2 +-
...cket-viewer_layout_static-object-layout.adoc | 2 +-
.../ActionLayout/bookmarking.png | Bin 0 -> 93128 bytes
.../party-agreementrole-agreement.png | Bin 10310 -> 0 bytes
.../party-agreementrole-agreement.png | Bin 0 -> 10310 bytes
.../src/main/asciidoc/user-guide/ug.adoc | 34 ++---
105 files changed, 900 insertions(+), 1138 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/monitor.rb
----------------------------------------------------------------------
diff --git a/adocs/documentation/monitor.rb b/adocs/documentation/monitor.rb
index 1f00861..8d7ef8b 100644
--- a/adocs/documentation/monitor.rb
+++ b/adocs/documentation/monitor.rb
@@ -44,9 +44,8 @@ targetBaseDir = File.absolute_path 'target/site'
srcBasePath = Pathname.new srcBaseDir
targetBasePath = Pathname.new targetBaseDir
-i=0
-def process(file,srcBasePath,targetBasePath,templateDir,i,priming)
+def process(file,srcBasePath,targetBasePath,templateDir,i,lastTimeGenerated,priming)
workingDir = Dir.pwd
@@ -80,16 +79,24 @@ def process(file,srcBasePath,targetBasePath,templateDir,i,priming)
unless regenerate == "" then
- cmd = "asciidoctor #{regenerate} --require asciidoctor-diagram --backend html --eruby erb --template-dir '#{templateDir}' --destination-dir='#{targetRelDir}' -a imagesdir='' -a toc=right -a icons=font -a source-highlighter=coderay"
+ # don't regenerate more often than every 5 seconds
+ currentTime = Time.now
+ if not priming and
+ currentTime.to_i < lastTimeGenerated.to_i + 5 then
+ puts "skipping regeneration (5 seconds not yet elapsed)"
+ else
- unless priming then
- puts ""
- puts "#{i}: #{cmd}"
- end
+ cmd = "asciidoctor #{regenerate} --require asciidoctor-diagram --backend html --eruby erb --template-dir '#{templateDir}' --destination-dir='#{targetRelDir}' -a imagesdir='' -a toc=right -a icons=font -a source-highlighter=coderay"
- system cmd
+ unless priming then
+ puts ""
+ puts "#{i}: #{cmd}"
+ end
+ system cmd
+ lastTimeGenerated=Time.now
+ end
end
else
@@ -111,11 +118,14 @@ def process(file,srcBasePath,targetBasePath,templateDir,i,priming)
Dir.chdir workingDir
- return i+1
+ return i+1, lastTimeGenerated
end
+i=0
+lastTimeGenerated = Time.now - 10
+
#
# process all files
#
@@ -131,7 +141,7 @@ if processAll then
files.each { |file|
absFile = File.absolute_path file
- i = process absFile, srcBasePath, targetBasePath, templateDir, i, true
+ i,lastTimeGenerated = process absFile, srcBasePath, targetBasePath, templateDir, i, lastTimeGenerated, true
}
end
@@ -155,12 +165,12 @@ directories = Dir.glob("src/main/asciidoc/**/*/")
fileListener = Listen.to(directories) do |modified, added, removed|
unless modified.length==0
modified.each { |file|
- i = process file, srcBasePath, targetBasePath, templateDir, i, false
+ i,lastTimeGenerated = process file, srcBasePath, targetBasePath, templateDir, i, lastTimeGenerated, false
}
end
unless added.length==0
added.each { |file|
- i = process file, srcBasePath, targetBasePath, templateDir, i, false
+ i,lastTimeGenerated = process file, srcBasePath, targetBasePath, templateDir, i, lastTimeGenerated, false
}
end
unless removed.length==0
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_appendices_release-notes.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_appendices_release-notes.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_appendices_release-notes.adoc
index 92bdae9..0b122c3 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_appendices_release-notes.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_appendices_release-notes.adoc
@@ -12,7 +12,7 @@
| 24-feb-2015
| * link:https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12311171&version=12328845[core-1.8.0]
* link:https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12311171&version=12328847[archetype-1.8.0]
-| Wicket viewer moved into core; todoapp archetype moved to http://isisaddons.org[Isis Addons] (non-ASF).
+| Wicket viewer moved into core; todoapp archetype moved to link:http://www.isisaddons.org[Isis Addons] (non-ASF).
| 1.7.0
| 18-oct-2014
@@ -28,7 +28,7 @@
* link:https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12311171&version=12325318[viewer-wicket-1.6.0]
* link:https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12311171&version=12326462[archetype-simpleapp-1.6.0]
* link:https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12311171&version=12326461[archetype-todoapp-1.6.0]
-| Restful Objects viewer, JDO/Datanucleus Objectstore and Shiro Security all moved into core. Quickstart-wrj archetype renamed to todoapp; simple-wrj archetype renamed to simpleapp. Some functionality copied/refactored as http://isisaddons.org[Isis Addons] (non-ASF).
+| Restful Objects viewer, JDO/Datanucleus Objectstore and Shiro Security all moved into core. Quickstart-wrj archetype renamed to todoapp; simple-wrj archetype renamed to simpleapp. Some functionality copied/refactored as link:http://www.isisaddons.org[Isis Addons] (non-ASF).
| 1.5.0
| 08-jun-2014
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_core-concepts_framework-provided-services.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_core-concepts_framework-provided-services.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_core-concepts_framework-provided-services.adoc
index 566ac21..425c905 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_core-concepts_framework-provided-services.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_core-concepts_framework-provided-services.adoc
@@ -25,7 +25,7 @@ It is possible to replacing automatically-registered domain services.
Unless indicated as SPI, each of the following has an implementation in Isis core.
-A full list of services (including those with implementations in http://isisaddons.org[Isis Addons] (non-ASF)) can be found in the xref:_ug_domain-services-spi[Domain Services (SPI)] chapter.
+A full list of services (including those with implementations in link:http://www.isisaddons.org[Isis Addons] (non-ASF)) can be found in the xref:_ug_domain-services-spi[Domain Services (SPI)] chapter.
### `DomainObjectContainer`
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_core-concepts_other-deployment-options.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_core-concepts_other-deployment-options.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_core-concepts_other-deployment-options.adoc
index bdd2b4b..53d9620 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_core-concepts_other-deployment-options.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_core-concepts_other-deployment-options.adoc
@@ -20,7 +20,7 @@ Apache Wicket, and therefore Apache Isis in this configuration, is a stateful ar
The UI UI generated by the Wicket viewer is well suited to many line-of-business apps, but it's also worth knowing that (with a little knowledge of the Wicket APIs) it relatively straightforward to extend. As described in xref:_ug_isis-addons-modules[Isis addons] chapter, the viewer already has integrations with https://github.com/isisaddons/isis-wicket-gmap3[google maps], https://github.com/isisaddons/isis-wicket-fullcalendar2[a full calendar] and an https://github.com/isisaddons/isis-wicket-excel[export to Excel] component. We are also aware of integrations with SVG images (for floor maps of shopping center) and of custom widgets displaying a catalogue (text and images) of medical diseases.
-Deploying on Isis means that the framework also manages object persistence. For many line-of-business applications this will mean using a relational database. It is also possible (courtesy of its integratinon with link:http://www.datanucleus.org[DataNucleus]) to deploy an Isis app to a NoSQL store such as Neo4J or MongoDB; and it is also possible to deploy to cloud platforms such as https://developers.google.com/appengine/[Google App Engine (GAE)].
+Deploying on Isis means that the framework also manages object persistence. For many line-of-business applications this will mean using a relational database. It is also possible (courtesy of its integratinon with link:http://www.datanucleus.org[DataNucleus]) to deploy an Isis app to a NoSQL store such as Neo4J or MongoDB; and it is also possible to deploy to cloud platforms such as link:https://cloud.google.com/appengine/docs[Google App Engine (GAE)].
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_core-concepts_philosophy_hexagonal-architecture.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_core-concepts_philosophy_hexagonal-architecture.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_core-concepts_philosophy_hexagonal-architecture.adoc
index 1cac2bd..7e33166 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_core-concepts_philosophy_hexagonal-architecture.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_core-concepts_philosophy_hexagonal-architecture.adoc
@@ -12,7 +12,7 @@ A few years ago Alistair Cockburn reworked the traditional layered architecture
[TIP]
====
-The hexagonal architecture is also known as the link:http://c2.com/cgi/wiki?PortsAndAdaptersArchitecture:[Ports and Adapters] architecture or (less frequently) as the link:http://jeffreypalermo.com/blog/the-onion-architecture-part-1/[Onion] architecture.
+The hexagonal architecture is also known as the link:http://c2.com/cgi/wiki?PortsAndAdaptersArchitecture[Ports and Adapters] architecture or (less frequently) as the link:http://jeffreypalermo.com/blog/the-onion-architecture-part-1/[Onion] architecture.
====
.The hexagonal architecture emphasizes multiple implementations of the different layers.
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_core-concepts_philosophy_naked-objects-pattern.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_core-concepts_philosophy_naked-objects-pattern.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_core-concepts_philosophy_naked-objects-pattern.adoc
index 646ab6a..e870754 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_core-concepts_philosophy_naked-objects-pattern.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_core-concepts_philosophy_naked-objects-pattern.adoc
@@ -35,7 +35,7 @@ One of the external examiners for Richard's PhD was link:http://en.wikipedia.org
Reenskaug then goes on to say that "this simple and powerful idea failed because ... users were used to seeing [objects] from different perspectives. The visible and tangible object would get very complex if it should be able to show itself and be manipulated in many different ways."
-In Apache Isis the responsibility of rendering an object is not the object itself, it is the framework. Rather, the object inspects the object and uses that to decide how to render the object. This is also extensible. In the http://isisaddons.org[Isis Addons] (non-ASF) the http://github.com/isisaddons/isis-wicket-gmap3[Isis addons' gmap3] wicket extension renders any object with latitude/longitude on a map, while http://github.com/isisaddons/isis-wicket-fullcalendar2[Isis addons' fullcalendar2 wicket extension] renders any object with date(s) on a calendar.
+In Apache Isis the responsibility of rendering an object is not the object itself, it is the framework. Rather, the object inspects the object and uses that to decide how to render the object. This is also extensible. In the link:http://www.isisaddons.org[Isis Addons] (non-ASF) the http://github.com/isisaddons/isis-wicket-gmap3[Isis addons' gmap3] wicket extension renders any object with latitude/longitude on a map, while http://github.com/isisaddons/isis-wicket-fullcalendar2[Isis addons' fullcalendar2 wicket extension] renders any object with date(s) on a calendar.
====
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_core-concepts_principles_apache-isis-vs_metawidget.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_core-concepts_principles_apache-isis-vs_metawidget.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_core-concepts_principles_apache-isis-vs_metawidget.adoc
index 931479a..11e851f 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_core-concepts_principles_apache-isis-vs_metawidget.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_core-concepts_principles_apache-isis-vs_metawidget.adoc
@@ -9,7 +9,7 @@ MetaWidget (mentioned xref:_ug_core-concepts_philosophy_naked-objects-pattern_ob
However, there is a difference in philosophy in that MW is not a full-stack framework and does not (in their words) try to "own the UI". Rather they support a huge variety of UI technologies and allow the domain object to be rendered in any of them.
-In contrast, Apache Isis is full-stack and does generate a complete UI; we then allow you to customize or extend this UI (as per the various http://isisaddons.org[Isis Addons] (non-ASF), and we also provide a full REST API through the xref:_ug_restfulobjects-viewer[Restful Objects viewer]
+In contrast, Apache Isis is full-stack and does generate a complete UI; we then allow you to customize or extend this UI (as per the various link:http://www.isisaddons.org[Isis Addons] (non-ASF), and we also provide a full REST API through the xref:_ug_restfulobjects-viewer[Restful Objects viewer]
Also, it's worth noting that MetaWidget does have an elegant pipeline architecture, with APIs to allow even its metamodel to be replaced. It would be feasible and probably quite straightforward to use Isis' own metamodel as an implementation of the MetaWidget API. This would allow MetaWidget to be able to render an Isis domain application.
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_core-concepts_principles_apache-isis-vs_mvc-server-side-frameworks.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_core-concepts_principles_apache-isis-vs_mvc-server-side-frameworks.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_core-concepts_principles_apache-isis-vs_mvc-server-side-frameworks.adoc
index dd12a31..e527e6d 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_core-concepts_principles_apache-isis-vs_mvc-server-side-frameworks.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_core-concepts_principles_apache-isis-vs_mvc-server-side-frameworks.adoc
@@ -6,13 +6,13 @@
-Some of most commonly used frameworks today are link:http://www.springframework.org/[Spring MVC], link:http://rubyonrails.org/[Ruby on Rails] and link:http://www.grails.org[Grails], all of which implement one flavour or another of the server-side MVC pattern. The MVC 1.0 specification (scheduled for JavaEE 8) is also similar.
+Some of most commonly used frameworks today are link:http://www.spring.io/[Spring MVC], link:http://rubyonrails.org/[Ruby on Rails] and link:http://www.grails.org[Grails], all of which implement one flavour or another of the server-side MVC pattern. The MVC 1.0 specification (scheduled for JavaEE 8) is also similar.
These frameworks all use the classic *model-view-controller* ( _MVC_) pattern for web applications, with scaffolding, code-generation, and/or metaprogramming tools for the controllers and views, as well as convention over configuration to define how these components interact. The views provided out of the box by these frameworks tend to be simple _CRUD_-style interfaces. More sophisticated behavior is accomplished by customizing the generated controllers.
The most obvious difference when developing an Apache Isis application is its deliberate lack of an explicit controller layer; non- _CRUD_ behavior is automatically made available in its generic object-oriented _UI_s. More sophisticated UIs can be built either by xref:_ug_extending_wicket-viewer[extending Isis' Wicket viewer] or by writing a bespoke UI leveraging the REST (hypermedia) API automatically exposed by xref:_ug_restfulobjects-viewer[Isis' Restful Objects viewer]. Other frameworks can also be used to implement REST APIs, of course, but generally they require a significant amount of development to get anywhere near the level of sophistication provided automatically by Isis' REST API.
-Although these frameworks all provide their own ecosystems of extensions, Isis' equivalent http://isisaddons.org[Isis Addons] (non-ASF) tend to work at a higher-level of abstraction. For example, each of these frameworks will integrate with various security mechanism, but the http://github.com/isisaddons/isis-module-security[Isis addons' security module] provides a full subdomain of users, roles, features and permissions that can be plugged into any Isis application. Similarly, the http://github.com/isisaddons/isis-module-command[Isis addons' command] and http://github.com/isisaddons/isis-module-audit[Isis addons' audit] modules in combination provide a support for auditing and traceability that can also be used for out of the box profiling. Again, these addons can be plugged into any Isis app.
+Although these frameworks all provide their own ecosystems of extensions, Isis' equivalent link:http://www.isisaddons.org[Isis Addons] (non-ASF) tend to work at a higher-level of abstraction. For example, each of these frameworks will integrate with various security mechanism, but the http://github.com/isisaddons/isis-module-security[Isis addons' security module] provides a full subdomain of users, roles, features and permissions that can be plugged into any Isis application. Similarly, the http://github.com/isisaddons/isis-module-command[Isis addons' command] and http://github.com/isisaddons/isis-module-audit[Isis addons' audit] modules in combination provide a support for auditing and traceability that can also be used for out of the box profiling. Again, these addons can be plugged into any Isis app.
In terms of testing support, each of these other frameworks provide mechanisms to allow the webapp to be tested from within a JUnit test harness. Isis' support is similar. Where Isis differs though is that it enables end-to-end testing without the need for slow and fragile Selenium tests. Instead, Isis provides a "xref:_ug_testing_integ-test-support_wrapper-factory[WrapperFactory]" domain service that allows the generic UI provided to in essence be simulated. On a more pragmatic level, the http://github.com/isisaddons/isis-module-fakedata[Isis addons' fakedata] module does "what it says on the tin", allowing both unit- and integration-tests to focus on the salient data and fake out the rest.
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_deployment_gae.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_deployment_gae.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_deployment_gae.adoc
index 66cee87..53cd4da 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_deployment_gae.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_deployment_gae.adoc
@@ -29,7 +29,7 @@ Note: if you store a relationship with a String key it means that the parent obj
Currently Isis' `Blob` and `Clob` types and the JODA types (`LocalDate` et al) are _not_ supported in GAE.
-Instead, GAE defines a https://developers.google.com/appengine/docs/java/datastore/entities#Properties_and_Value_Types[fixed set of value types], including `BlobKey`. Members of the Isis community have this working, though I haven't seen the code.
+Instead, GAE defines a link:https://cloud.google.com/appengine/docs/java/datastore/entities#Properties_and_Value_Types[fixed set of value types], including `BlobKey`. Members of the Isis community have this working, though I haven't seen the code.
The above notwithstanding, Andy Jefferson at DataNucleus tells us:
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_getting-started_datanucleus-enhancer.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_getting-started_datanucleus-enhancer.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_getting-started_datanucleus-enhancer.adoc
index bf33ad6..fc7d02a 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_getting-started_datanucleus-enhancer.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_getting-started_datanucleus-enhancer.adoc
@@ -6,7 +6,7 @@
-link:http://www.datanucleus.org/[DataNucleus] is the reference implementation of the JDO (Java data objects) spec, and Isis integrates with DataNucleus as its persistence layer. Datanucleus is a very powerful library, allowing domain entities to be mapped not only to relational database tables, but also to NoSQL stores such as link:http://neo4j.com/[Neo4J], link:https://www.mongodb.org/[MongoDB] and link:http://cassandra.apache.org/[Apache Cassandra].
+link:http://www.datanucleus.org/[DataNucleus] is the reference implementation of the JDO (Java data objects) spec, and Isis integrates with DataNucleus as its persistence layer. Datanucleus is a very powerful library, allowing domain entities to be mapped not only to relational database tables, but also to NoSQL stores such as link:http://neo4j.com/[Neo4J], link:http://www.mongodb.org/[MongoDB] and link:http://cassandra.apache.org/[Apache Cassandra].
With such power comes a little bit of complexity to the development environment: all domain entities must be enhanced through the DataNucleus enhancer.
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_headless-access_BackgroundCommandExecution.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_headless-access_BackgroundCommandExecution.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_headless-access_BackgroundCommandExecution.adoc
index 76e598a..756b530 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_headless-access_BackgroundCommandExecution.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_headless-access_BackgroundCommandExecution.adoc
@@ -47,7 +47,7 @@ image::{_imagesdir}headless-access/BackgroundCommandExecution.png[width="400px"]
The `BackgroundCommandExecutionFromBackgroundCommandServiceJdo` is a concrete subclass of <<BackgroundCommandExecution>>, the intended use being for the class to be instantiated regularly (eg every 10 seconds) by a scheduler such as http://quartz-scheduler.org[Quartz]) to poll for ``Command``s to be executed, and then execute them.
-This implementation queries for ``Command``s persisted by the http://isisaddons.org/isis-module-command[Isis addons Command Module]'s implementations of <<CommandService>> and <<BackgroundCommandService>> using the `BackgroundCommandServiceJdoRepository`.
+This implementation queries for ``Command``s persisted by the link:http://www.isisaddons.org/isis-module-command[Isis addons Command Module]'s implementations of <<CommandService>> and <<BackgroundCommandService>> using the `BackgroundCommandServiceJdoRepository`.
The diagram below shows the inheritance hierarchy for this class:
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_how-tos_domain-services.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_how-tos_domain-services.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_how-tos_domain-services.adoc
index 2aefa14..5b4325a 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_how-tos_domain-services.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_how-tos_domain-services.adoc
@@ -13,7 +13,7 @@ IMPORTANT: TODO
IMPORTANT: TODO
-It's worth extending the <<_hexagonal_architecture, Hexagonal Architecture> to show where domain services -- and in particular the domain services provided by http://isisaddons.org[Isis Addons] (non-ASF) -- fit in:
+It's worth extending the <<_hexagonal_architecture, Hexagonal Architecture> to show where domain services -- and in particular the domain services provided by link:http://www.isisaddons.org[Isis Addons] (non-ASF) -- fit in:
.The hexagonal architecture with Isis addons
image::{_imagesdir}how-tos/domain-services/hexagonal-architecture-addons.png[width="700px"]
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_isis-addons-modules.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_isis-addons-modules.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_isis-addons-modules.adoc
index ea9658c..a516f28 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_isis-addons-modules.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_isis-addons-modules.adoc
@@ -6,7 +6,7 @@
-The http://isisaddons.org[Isis Addons] website provides a number of reusable modules and other extensions for Apache Isis. This chapter focuses just on the modules, all of which have a name of the form `isis-module-xxx`.
+The link:http://www.isisaddons.org[Isis Addons] website provides a number of reusable modules and other extensions for Apache Isis. This chapter focuses just on the modules, all of which have a name of the form `isis-module-xxx`.
[WARNING]
====
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_isis-addons-modules_devutils-module.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_isis-addons-modules_devutils-module.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_isis-addons-modules_devutils-module.adoc
index 593789a..7ff5f34 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_isis-addons-modules_devutils-module.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_isis-addons-modules_devutils-module.adoc
@@ -11,7 +11,7 @@ In 1.6.0 this implementation was released as part of _org.apache.isis.core:isis-
====
-The `DeveloperUtilitiesService` service provides a number of development-time utilities, mostly related to accessing/interacting with the Isis metamodel. These are visible in the UI, either as menu actions or as contributed actions. All actions are annotated with xref:_ug_reference-annotations_manpage_Action_restrictTo[`@Action#restrictTo()`] to restrict to prototype mode (suppressed from production mode).
+The `DeveloperUtilitiesService` service provides a number of development-time utilities, mostly related to accessing/interacting with the Isis metamodel. These are visible in the UI, either as menu actions or as contributed actions. All actions are annotated with xref:_ug_reference-annotations_manpage-Action_restrictTo[`@Action#restrictTo()`] to restrict to prototype mode (suppressed from production mode).
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_isis-in-pictures.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_isis-in-pictures.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_isis-in-pictures.adoc
index 9cf648d..18d5ac5 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_isis-in-pictures.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_isis-in-pictures.adoc
@@ -26,7 +26,7 @@ Let's start with the basics...
Apache Isis integrates with http://shiro.apache.org[Apache Shiro]. The core framework supports file-based realms, while the Isis Addons http://github.com/isisaddons/isis-module-security[security module] (non ASF) provides a well-features subdomain of users, roles and permissions against features derived from the Isis metamodel. The example todoapp integrates with the security module.
-image::https://raw.github.com/apache/isis/master/images/010-login.png[width="600px",link="https://raw.github.com/apache/isis/master/images/010-login.png"]
+image::https://raw.githubusercontent.com/apache/isis/master/images/010-login.png[width="600px",link="https://raw.githubusercontent.com/apache/isis/master/images/010-login.png"]
@@ -35,7 +35,7 @@ image::https://raw.github.com/apache/isis/master/images/010-login.png[width="600
Apache Isis has lots of features to help you prototype and then fully test your application. One such are fixture scripts, which allow pre-canned data to be installed in the running application. This is great to act as the starting point for identifying new stories; later on when the feature is being implemented, the same fixture script can be re-used within that feature's integration tests. (More on tests later).
-image::https://raw.github.com/apache/isis/master/images/020-install-fixtures.png[width="600px",link="https://raw.github.com/apache/isis/master/images/020-install-fixtures.png"]
+image::https://raw.githubusercontent.com/apache/isis/master/images/020-install-fixtures.png[width="600px",link="https://raw.githubusercontent.com/apache/isis/master/images/020-install-fixtures.png"]
@@ -43,7 +43,7 @@ image::https://raw.github.com/apache/isis/master/images/020-install-fixtures.png
Most of the time the end-user interacts with representations of persistent domain entities, but Isis also supports view models which can aggregate data from multiple sources. The todoapp example uses a "dashboard" view model to list todo items not yet done vs those completed.
-image::https://raw.github.com/apache/isis/master/images/030-dashboard-view-model.png[width="600px",link="https://raw.github.com/apache/isis/master/images/030-dashboard-view-model.png"]
+image::https://raw.githubusercontent.com/apache/isis/master/images/030-dashboard-view-model.png[width="600px",link="https://raw.githubusercontent.com/apache/isis/master/images/030-dashboard-view-model.png"]
In general we recommend to initially focus only on domain entities; this will help drive out a good domain model. Later on view models can be introduced in support of specific use cases.
@@ -55,7 +55,7 @@ In general we recommend to initially focus only on domain entities; this will he
The screenshot below is of the todoapp's `ToDoItem` domain entity. Like all web pages, this UI is generated at runtime, directly from the domain object itself. There are no controllers or HTML to write.
-image::https://raw.github.com/apache/isis/master/images/040-domain-entity.png[width="600px",link="https://raw.github.com/apache/isis/master/images/040-domain-entity.png"]
+image::https://raw.githubusercontent.com/apache/isis/master/images/040-domain-entity.png[width="600px",link="https://raw.githubusercontent.com/apache/isis/master/images/040-domain-entity.png"]
In addition to the domain entity, Apache Isis allows layout metadata hints to be provided, for example to specify the grouping of properties, the positioning of those groups into columns, the association of actions (the buttons) with properties or collections, the icons on the buttons, and so on. This metadata can be specified either as annotations or in JSON form; the benefit of the latter is that it can be updated (and the UI redrawn) without restarting the app.
@@ -68,7 +68,7 @@ Any production-ready app will require this metadata but (like the view models di
By default properties on domain entities are editable, meaning they can be changed directly. In the todoapp example, the `ToDoItem`'s description is one such editable property:
-image::https://raw.github.com/apache/isis/master/images/050-edit-property.png[width="600px",link="https://raw.github.com/apache/isis/master/images/050-edit-property.png"]
+image::https://raw.githubusercontent.com/apache/isis/master/images/050-edit-property.png[width="600px",link="https://raw.githubusercontent.com/apache/isis/master/images/050-edit-property.png"]
Note that some of the properties are read-only even in edit mode; individual properties can be made non-editable. It is also possible to make all properties disabled and thus enforce changes only through actions (below).
@@ -80,7 +80,7 @@ Note that some of the properties are read-only even in edit mode; individual pro
The other way to modify an entity is to an invoke an action. In the screenshot below the `ToDoItem`'s category and subcategory can be updated together using an action:
-image::https://raw.github.com/apache/isis/master/images/060-invoke-action.png[width="600px",link="https://raw.github.com/apache/isis/master/images/060-invoke-action.png"]
+image::https://raw.githubusercontent.com/apache/isis/master/images/060-invoke-action.png[width="600px",link="https://raw.githubusercontent.com/apache/isis/master/images/060-invoke-action.png"]
There are no limitations on what an action can do; it might just update a single object, it could update multiple objects. Or, it might not update any objects at all, but could instead perform some other activity, such as sending out email or printing a document.
@@ -96,12 +96,12 @@ As an alternative to placing actions (business logic) on a domain object, it can
In the screenshot below the highlighted "export as xml" action, the "relative priority" property (and "previous" and "next" actions) and also the "similar to" collection are all contributed:
-image::https://raw.github.com/apache/isis/master/images/065-contributions.png[width="600px",link="https://raw.github.com/apache/isis/master/images/065-contributions.png"]
+image::https://raw.githubusercontent.com/apache/isis/master/images/065-contributions.png[width="600px",link="https://raw.githubusercontent.com/apache/isis/master/images/065-contributions.png"]
Contributions are defined by the signature of the actions on the contributing service. The code snippet below shows how this works for the "export as xml" action:
-image::https://raw.github.com/apache/isis/master/images/067-contributed-action.png[width="600px",link="https://raw.github.com/apache/isis/master/images/067-contributed-action.png"]
+image::https://raw.githubusercontent.com/apache/isis/master/images/067-contributed-action.png[width="600px",link="https://raw.githubusercontent.com/apache/isis/master/images/067-contributed-action.png"]
@@ -111,20 +111,20 @@ image::https://raw.github.com/apache/isis/master/images/067-contributed-action.p
The Apache Isis viewer is implemented using http://wicket.apache.org[Apache Wicket], and has been architected to be extensible. For example, when a collection of objects is rendered, this is just one several views, as shown in the selector drop-down:
-image::https://raw.github.com/apache/isis/master/images/070-pluggable-views.png[width="600px",link="https://raw.github.com/apache/isis/master/images/070-pluggable-views.png"]
+image::https://raw.githubusercontent.com/apache/isis/master/images/070-pluggable-views.png[width="600px",link="https://raw.githubusercontent.com/apache/isis/master/images/070-pluggable-views.png"]
The Isis Addons' https://github.com/isisaddons/isis-wicket-gmap3[gmap3 component] (non ASF) will render any domain entity (such as `ToDoItem`) that implements its `Locatable` interface:
-image::https://raw.github.com/apache/isis/master/images/080-gmap3-view.png[width="600px",link="https://raw.github.com/apache/isis/master/images/080-gmap3-view.png"]
+image::https://raw.githubusercontent.com/apache/isis/master/images/080-gmap3-view.png[width="600px",link="https://raw.githubusercontent.com/apache/isis/master/images/080-gmap3-view.png"]
Similarly the Isis Addons' https://github.com/isisaddons/isis-wicket-fullcalendar2[fullcalendar2 component] (non ASF) will render any domain entity (such as `ToDoItem`) that implements its `Calendarable` interface:
-image::https://raw.github.com/apache/isis/master/images/090-fullcalendar2-view.png[width="600px",link="https://raw.github.com/apache/isis/master/images/090-fullcalendar2-view.png"]
+image::https://raw.githubusercontent.com/apache/isis/master/images/090-fullcalendar2-view.png[width="600px",link="https://raw.githubusercontent.com/apache/isis/master/images/090-fullcalendar2-view.png"]
@@ -132,14 +132,14 @@ image::https://raw.github.com/apache/isis/master/images/090-fullcalendar2-view.p
Yet another "view" (though this one is rather simpler is that provided by the Isis Addons https://github.com/isisaddons/isis-wicket-excel[excel component] (non ASF). This provides a download button to the table as a spreadsheet:
-image::https://raw.github.com/apache/isis/master/images/100-excel-view-and-docx.png[width="600px",link="https://raw.github.com/apache/isis/master/images/100-excel-view-and-docx.png"]
+image::https://raw.githubusercontent.com/apache/isis/master/images/100-excel-view-and-docx.png[width="600px",link="https://raw.githubusercontent.com/apache/isis/master/images/100-excel-view-and-docx.png"]
The screenshot above also shows an "export to Word" action. This is _not_ a view but instead is a (contributed) action that uses the Isis Addons https://github.com/isisaddons/isis-module-docx[docx module] (non ASF) to perform a "mail-merge":
-image::https://raw.github.com/apache/isis/master/images/110-docx.png[width="600px",link="https://raw.github.com/apache/isis/master/images/110-docx.png"]
+image::https://raw.githubusercontent.com/apache/isis/master/images/110-docx.png[width="600px",link="https://raw.githubusercontent.com/apache/isis/master/images/110-docx.png"]
@@ -151,28 +151,28 @@ As well as providing extensions to the UI, the Isis Addons provides a rich set o
Under the activity menu are four sets of services which provide support for https://github.com/isisaddons/isis-module-sessionlogger[user session logging/auditing] (non ASF), https://github.com/isisaddons/isis-module-command[command profiling] (non ASF), https://github.com/isisaddons/isis-module-audit[(object change) auditing] (shown, non-ASF) and (inter-system) https://github.com/isisaddons/isis-module-publishing[event publishing] (non ASF):
-image::https://raw.github.com/apache/isis/master/images/120-auditing.png[width="600px",link="https://raw.github.com/apache/isis/master/images/120-auditing.png"]
+image::https://raw.githubusercontent.com/apache/isis/master/images/120-auditing.png[width="600px",link="https://raw.githubusercontent.com/apache/isis/master/images/120-auditing.png"]
In the security menu is access to the rich set of functionality provided by the Isis addons https://github.com/isisaddons/isis-module-security[security module] (non ASF):
-image::https://raw.github.com/apache/isis/master/images/130-security.png[width="600px",link="https://raw.github.com/apache/isis/master/images/130-security.png"]
+image::https://raw.githubusercontent.com/apache/isis/master/images/130-security.png[width="600px",link="https://raw.githubusercontent.com/apache/isis/master/images/130-security.png"]
In the prototyping menu is the ability to download a GNU gettext `.po` file for translation. This file can then be translated into multiple languages so that your app can support different locales. Note that this feature is part of Apache Isis core (it is not in Isis Addons):
-image::https://raw.github.com/apache/isis/master/images/140-i18n.png[width="600px",link="https://raw.github.com/apache/isis/master/images/140-i18n.png"]
+image::https://raw.githubusercontent.com/apache/isis/master/images/140-i18n.png[width="600px",link="https://raw.githubusercontent.com/apache/isis/master/images/140-i18n.png"]
The Isis addons also provides a module for managing application and user https://github.com/isisaddons/isis-module-settings[settings] (non ASF). Most apps (the todoapp example included) won't expose these services directly, but will usually wrap them in their own app-specific settings service that trivially delegates to the settings module's services:
-image::https://raw.github.com/apache/isis/master/images/150-appsettings.png[width="600px",link="https://raw.github.com/apache/isis/master/images/150-appsettings.png"]
+image::https://raw.githubusercontent.com/apache/isis/master/images/150-appsettings.png[width="600px",link="https://raw.githubusercontent.com/apache/isis/master/images/150-appsettings.png"]
@@ -181,7 +181,7 @@ image::https://raw.github.com/apache/isis/master/images/150-appsettings.png[widt
Of the various Isis addons, the https://github.com/isisaddons/isis-module-security[security module] has the most features. One significant feature is the ability to associate users and objects with a "tenancy". The todoapp uses this feature so that different users' list of todo items are kept separate from one another. A user with administrator is able to switch their own "tenancy" to the tenancy of some other user, in order to access the objects in that tenancy:
-image::https://raw.github.com/apache/isis/master/images/160-switch-tenancy.png[width="600px",link="https://raw.github.com/apache/isis/master/images/160-switch-tenancy.png"]
+image::https://raw.githubusercontent.com/apache/isis/master/images/160-switch-tenancy.png[width="600px",link="https://raw.githubusercontent.com/apache/isis/master/images/160-switch-tenancy.png"]
@@ -192,13 +192,13 @@ For more details, see the https://github.com/isisaddons/isis-module-security[sec
Most of the https://github.com/isisaddons/isis-module-security[security module]'s services are on the security module, which would normally be provided only to administrators. Kept separate is the "me" action:
-image::https://raw.github.com/apache/isis/master/images/170-me.png[width="600px",link="https://raw.github.com/apache/isis/master/images/170-me.png"]
+image::https://raw.githubusercontent.com/apache/isis/master/images/170-me.png[width="600px",link="https://raw.githubusercontent.com/apache/isis/master/images/170-me.png"]
Assuming they have been granted permissions, this allows a user to access an entity representing their own user account:
-image::https://raw.github.com/apache/isis/master/images/180-app-user-entity.png[width="600px",link="https://raw.github.com/apache/isis/master/images/180-app-user-entity.png"]
+image::https://raw.githubusercontent.com/apache/isis/master/images/180-app-user-entity.png[width="600px",link="https://raw.githubusercontent.com/apache/isis/master/images/180-app-user-entity.png"]
@@ -209,7 +209,7 @@ If not all of these properties are required, then they can be hidden either usin
Apache Isis' Wicket viewer uses http://getbootstrap.com[Twitter Bootstrap], which means that it can be themed. If more than one theme has been configured for the app, then the viewer allows the end-user to switch their theme:
-image::https://raw.github.com/apache/isis/master/images/190-switch-theme.png[width="600px",link="https://raw.github.com/apache/isis/master/images/190-switch-theme.png"]
+image::https://raw.githubusercontent.com/apache/isis/master/images/190-switch-theme.png[width="600px",link="https://raw.githubusercontent.com/apache/isis/master/images/190-switch-theme.png"]
@@ -218,7 +218,7 @@ image::https://raw.github.com/apache/isis/master/images/190-switch-theme.png[wid
In addition to Isis' Wicket viewer, it also provides a fully fledged REST API, as an implementation of the http://restfulobjects.org[Restful Objects] specification. The screenshot below shows accessing this REST API using a Chrome plugin:
-image::https://raw.github.com/apache/isis/master/images/200-rest-api.png[width="600px",link="https://raw.github.com/apache/isis/master/images/200-rest-api.png"]
+image::https://raw.githubusercontent.com/apache/isis/master/images/200-rest-api.png[width="600px",link="https://raw.githubusercontent.com/apache/isis/master/images/200-rest-api.png"]
@@ -232,19 +232,19 @@ Like the Wicket viewer, the REST API is generated automatically from the domain
Earlier on we noted that Apache Isis allows fixtures to be installed through the UI. These same fixture scripts can be reused within integration tests. For example, the code snippet below shows how the `FixtureScripts` service injected into an integration test can then be used to set up data:
-image::https://raw.github.com/apache/isis/master/images/210-fixture-scripts.png[width="500px",link="https://raw.github.com/apache/isis/master/images/210-fixture-scripts.png"]
+image::https://raw.githubusercontent.com/apache/isis/master/images/210-fixture-scripts.png[width="500px",link="https://raw.githubusercontent.com/apache/isis/master/images/210-fixture-scripts.png"]
The tests themselves are run in junit. While these are integration tests (so talking to a real database), they are no more complex than a regular unit test:
-image::https://raw.github.com/apache/isis/master/images/220-testing-happy-case.png[width="400px",link="https://raw.github.com/apache/isis/master/images/220-testing-happy-case.png"]
+image::https://raw.githubusercontent.com/apache/isis/master/images/220-testing-happy-case.png[width="400px",link="https://raw.githubusercontent.com/apache/isis/master/images/220-testing-happy-case.png"]
To simulate the business rules enforced by Apache Isis, the domain object can be "wrapped" in a proxy. For example, if using the Wicket viewer then Apache Isis will enforce the rule (implemented in the `ToDoItem` class itself) that a completed item cannot have the "completed" action invoked upon it. The wrapper simulates this by throwing an appropriate exception:
-image::https://raw.github.com/apache/isis/master/images/230-testing-wrapper-factory.png[width="550px",link="https://raw.github.com/apache/isis/master/images/230-testing-wrapper-factory.png"]
+image::https://raw.githubusercontent.com/apache/isis/master/images/230-testing-wrapper-factory.png[width="550px",link="https://raw.githubusercontent.com/apache/isis/master/images/230-testing-wrapper-factory.png"]
@@ -257,7 +257,7 @@ Contributions, discussed earlier, are an important tool in ensuring that the pac
Another important tool to ensure your codebase remains maintainable is Isis' internal event bus. It is probably best explained by example; the code below says that the "complete" action should emit a `ToDoItem.Completed` event:
-image::https://raw.github.com/apache/isis/master/images/240-domain-events.png[width="400px",link="https://raw.github.com/apache/isis/master/images/240-domain-events.png"]
+image::https://raw.githubusercontent.com/apache/isis/master/images/240-domain-events.png[width="400px",link="https://raw.githubusercontent.com/apache/isis/master/images/240-domain-events.png"]
@@ -265,14 +265,14 @@ image::https://raw.github.com/apache/isis/master/images/240-domain-events.png[wi
Domain service (application-scoped, stateless) can then subscribe to this event:
-image::https://raw.github.com/apache/isis/master/images/250-domain-event-subscriber.png[width="450px",link="https://raw.github.com/apache/isis/master/images/250-domain-event-subscriber.png"]
+image::https://raw.githubusercontent.com/apache/isis/master/images/250-domain-event-subscriber.png[width="450px",link="https://raw.githubusercontent.com/apache/isis/master/images/250-domain-event-subscriber.png"]
And this test verifies that completing an action causes the subscriber to be called:
-image::https://raw.github.com/apache/isis/master/images/260-domain-event-test.png[width="850px",link="https://raw.github.com/apache/isis/master/images/260-domain-event-test.png"]
+image::https://raw.githubusercontent.com/apache/isis/master/images/260-domain-event-test.png[width="850px",link="https://raw.githubusercontent.com/apache/isis/master/images/260-domain-event-test.png"]
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_more-advanced_decoupling_db-schemas.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_more-advanced_decoupling_db-schemas.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_more-advanced_decoupling_db-schemas.adoc
index d368179..60ec4d0 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_more-advanced_decoupling_db-schemas.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_more-advanced_decoupling_db-schemas.adoc
@@ -5,7 +5,7 @@
:_imagesdir: images/
In the same way that Java packages act as a namespace for domain objects, it's good practice to map domain entities to
-their own (database) schemas. As of 1.9.0-SNAPSHOT, all the http://isisaddons.org[Isis Addons] (non-ASF) modules do this, for example:
+their own (database) schemas. As of 1.9.0-SNAPSHOT, all the link:http://www.isisaddons.org[Isis Addons] (non-ASF) modules do this, for example:
[source,java]
----
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_more-advanced_i18n.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_more-advanced_i18n.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_more-advanced_i18n.adoc
index 98077e2..cf3fff7 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_more-advanced_i18n.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_more-advanced_i18n.adoc
@@ -18,7 +18,7 @@ Isis does not translate the values of your domain objects, though. So, if you h
Most Java frameworks tackle i18n by using Java's own `ResourceBundle` API. However, there are some serious drawbacks in this approach, such as:
* if a string appears more than once (eg "name" or "description") then it must be translated everywhere it appears in every resource bundle file
-* there is no support for plural forms (see this link:http://stackoverflow.com/a/14327683/56880[SO answer])
+* there is no support for plural forms (see this link:http://stackoverflow.com/questions/14326653/java-internationalization-i18n-with-proper-plurals/14327683#14327683[SO answer])
* there is no tooling support for translators
Apache Isis therefore takes a different approach, drawing inspiration from GNU's https://www.gnu.org/software/gettext/manual/index.html[gettext] API and specifically its `.pot` and `.po` files. These are intended to be used as follows:
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_aaa_deprecated.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_aaa_deprecated.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_aaa_deprecated.adoc
index 9016b16..3291d7e 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_aaa_deprecated.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_aaa_deprecated.adoc
@@ -5,9 +5,9 @@
:_imagesdir: images/
-As Apache Isis has evolved and grown, we found ourselves adding more and more annotations; but most of these related to either an object type (entity, view model, service) or an object member (property, collection, action). It became harder and harder for end programmers to discover these new features.
+As Apache Isis has evolved and grown, we found ourselves adding more and more annotations; but most of these related to either an object type (entity, view model, service) or an object member (property, collection, action). Over time it became harder and harder for end programmers to discover these new features.
-Accordingly, we decided to unify the semantics into the main (core) annotations listed xref:_ug_reference-annotations_aaa_main[above].
+Accordingly, (in v1.8.0) we decided to unify the semantics into the main (core) annotations listed xref:_ug_reference-annotations_aaa_main[above].
The annotations listed in the table below are still supported by Apache Isis, but will be retired in Isis v2.0.
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Action.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Action.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Action.adoc
index f6a2586..b3b36ff 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Action.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-Action.adoc
@@ -10,7 +10,7 @@ The `@Action` annotation groups together all domain-specific metadata for an inv
The table below summarizes the annotation's attributes.
.`@Action` attributes
-[cols="2,2,4", options="header"]
+[cols="2,2,4a", options="header"]
|===
| Attribute
@@ -21,19 +21,20 @@ The table below summarizes the annotation's attributes.
|xref:_ug_reference-annotations_manpage-Action_command[`command()`]
|`AS_CONFIGURED`, `ENABLED`, `DISABLED` +
(`AS_CONFIGURED`)
-|whether the action invocation should be reified into a `o.a.i.applib.services.command.Command` object.
+|whether the action invocation should be reified into a `o.a.i.applib.` +
+`services.command.Command` object.
|`commandExecuteIn()`
|`FOREGROUND`,`BACKGROUND` +
(`FOREGROUND`)
-|whether to execute the command immediately, or to persist it (assuming that an appropriate implementation of `CommandService` has been configured) such that a background scheduler can execute the command asynchronously
+|whether to execute the command immediately, or to persist it (assuming that an appropriate implementation of xref:_ug_reference-services-spi_manpage-CommandService[`CommandService`] has been configured) such that a background scheduler can execute the command asynchronously
|`commandPersistence()`
|`PERSISTED`,`NOT_PERSISTED`,`IF_HINTED` +
(`PERSISTED`)
-|whether the reified `Command` (as provided by the `CommandContext` domain service) should actually be persisted (assuming an appropriate implementation of `CommandService` has been configured).
+|whether the reified `Command` (as provided by the `CommandContext` domain service) should actually be persisted (assuming an appropriate implementation of xref:_ug_reference-services-spi_manpage-CommandService[`CommandService`] has been configured).
|xref:_ug_reference-annotations_manpage-Action_domainEvent[`domainEvent()`]
@@ -43,8 +44,8 @@ The table below summarizes the annotation's attributes.
|xref:_ug_reference-annotations_manpage-Action_hidden[`hidden()`]
-|`true`,`false` +
-(`false`)
+|`EVERYWHERE`,`NOWHERE` +
+(`NOWHERE`)
|indicates where (in the UI) the action should be hidden from the user.
@@ -53,6 +54,8 @@ The table below summarizes the annotation's attributes.
(`OBJECT_ONLY`)
|whether an action can be invoked on a single object and/or on many objects in a collection.
+Currently this is only supported for no-arg actions.
+
|xref:_ug_reference-annotations_manpage-Action_publishing[`publishing()`]
|`AS_CONFIGURED`, `ENABLED`, `DISABLED` +
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ActionLayout.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ActionLayout.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ActionLayout.adoc
index cf9b9d1..24dcaa6 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ActionLayout.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ActionLayout.adoc
@@ -9,8 +9,8 @@ The `@ActionLayout` annotation applies to actions, collecting together all UI hi
The table below summarizes the annotation's attributes.
-.`@Action` attributes
-[cols="2,2,4", options="header"]
+.`@ActionLayout` attributes
+[cols="2,2,4a", options="header"]
|===
| Attribute
@@ -19,38 +19,55 @@ The table below summarizes the annotation's attributes.
|xref:_ug_reference-annotations_manpage-ActionLayout_bookmarking[`bookmarking()`]
-|
-|
+|`AS_ROOT`, `NEVER` +
+(`NEVER`)
+|indicates if an action (with safe xref:_ug_reference-annotations_manpage-Action_semantics[action semantics]) is automatically bookmarked.
|xref:_ug_reference-annotations_manpage-ActionLayout_contributedAs[`contributedAs()`]
-|
-|
+|`AS_BOTH`, `AS_ACTION`, `AS_ASSOCIATION`, `AS_NEITHER` +
+(`AS_BOTH`)
+|for a domain service action that can be contributed, whether to contribute as an action or as an association (ie a property or collection). +
+
+For a domain service action to be contributed, the domain services must have a xref:_ug_reference-annotations_manpage-DomainService_nature[nature] nature of either `VIEW` or `VIEW_CONTRIBUTIONS_ONLY`, and the action must have xref:_ug_reference-annotations_manpage-Action_semantics[safe action semantics], and takes a single argument, namely the contributee domain object.
|xref:_ug_reference-annotations_manpage-ActionLayout_cssClass[`cssClass()`]
-|
-|
+|Any string valid as a CSS class
+|an additional CSS class around the HTML that represents for the action, to allow additional styling. +
+
+Supported by the xref:_ug_wicket-viewer[Wicket viewer] but currently ignored by the xref:_ug_restfulobjects-viewer[RestfulObjects viewer].
|xref:_ug_reference-annotations_manpage-ActionLayout_cssClassFa[`cssClassFa()`]
-|
-|
+|Any valid link:http://fortawesome.github.io/Font-Awesome/[Font awesome] icon name
+|specify a font awesome icon for the action's menu link or icon. +
+
+Supported by the xref:_ug_wicket-viewer[Wicket viewer] but currently ignored by the xref:_ug_restfulobjects-viewer[RestfulObjects viewer].
+
+
+|`cssClassFaPosition()`
+|`LEFT`, `RIGHT` +
+(`LEFT`)
+|Positioning of the icon on the button/menu item.
|xref:_ug_reference-annotations_manpage-ActionLayout_describedAs[`describedAs()`]
-|
-|
+|String.
+|provides a short description of the action, eg for rendering as a 'tool tip'.
|xref:_ug_reference-annotations_manpage-ActionLayout_hidden[`hidden()`]
-|
-|
+|`EVERYWHERE`,`NOWHERE` +
+(`NOWHERE`)
+|indicates where (in the UI) the action should be hidden from the user.
|xref:_ug_reference-annotations_manpage-ActionLayout_named[`named()`]
-|
-|
+|String.
+|to override the name inferred from the action's name in code. +
+
+A typical use case is if the desired name is a reserved Java keyword, such as `default` or `package`.
|===
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ActionLayout_bookmarking.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ActionLayout_bookmarking.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ActionLayout_bookmarking.adoc
index b12167a..97f1f52 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ActionLayout_bookmarking.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ActionLayout_bookmarking.adoc
@@ -6,73 +6,54 @@
+The `bookmarking()` attribute indicates if an action (with safe xref:_ug_reference-annotations_manpage-Action_semantics[action semantics]) is automatically bookmarked.
-IMPORTANT: WIP ... this section
+(In the Wicket viewer), a link to a bookmarked object is shown in the bookmarks panel:
-The `@Bookmarkable` annotation indicates that an entity or an action (with safe xref:_ug_reference-annotations_manpage_Action_semantics[action semantics]) is automatically bookmarked.
+image::{_imagesdir}reference-annotations/ActionLayout/bookmarking.png[width="720px",link="{_imagesdir}reference-annotations/ActionLayout/bookmarking.png"]
-(In the Wicket viewer), a link to a bookmarked object is shown in the bookmarks panel that slides out from the left:
-
-<img src="images/Bookmarkable.png" width="640px"/>
+[NOTE]
+====
+It is also possible to mark domain entities as xref:_ug_reference-annotations_manpage-DomainObjectLayout_bookmarking[bookmarkable]; the screenshot shows this.
-For example:
+Note also that this screenshot relates to a earlier version of the UI (specfically, pre 1.8.0).
+====
-[source,java]
-----
-@Bookmarkable
-public class ToDoItem ... {
- ...
-}
-----
-indicates that the `ToDoItem` class is bookmarkable, while:
+For example:
[source,java]
----
-@Named("ToDos")
public class ToDoItems {
-
- @Bookmarkable
- @ActionSemantics(Of.SAFE)
+ @Action(semantics=SemanticsOf.SAFE)
+ @ActionLayout(bookmarking=BookmarkPolicy.AS_ROOT)
@MemberOrder(sequence = "1")
public List<ToDoItem> notYetComplete() {
...
}
-
}
----
-indicates that the "not yet complete" action is bookmarkable.
-
-It is also possible to nest bookmarkable entities. For example, this screenshot is taken from http://github.com/estatio/estatio[Estatio]:
+indicates that the `notYetComplete()` action is bookmarkable.
-<img src="images/Bookmarkable-nested.png" width="640px"/>
-For example, the `Property` entity "[OXF] Oxford Super Mall" is a root bookmark (the default), but the `Unit` child entity "[OXF-001] Unit 1" only appears as a bookmark if its parent `Property` has already been visited. This is accomplished with the following annotations:
-
-[source,java]
-----
-@Bookmarkable
-public class Property { ... }
-----
-
-and
-
-[source,java]
-----
-@Bookmarkable(BookmarkPolicy.AS_CHILD)
-public abstract class Unit { ... }
-----
-
-The nesting can be done to any level; the Estatio screenshot also shows a bookmark nesting 3 deep: `Lease` -> `LeaseItem` -> `LeaseTerm`.
[NOTE]
====
-Replaces deprecated `@Bookmarkable` annotation.
+The enum value `AS_CHILD` has no meaning for actions; it relates only to bookmarked xref:_ug_reference-annotations_manpage-DomainObject_bookmarking[domain object]s.
====
+As an alternative to using the annotation, the dynamic xref:_ug_wicket-viewer_layout_dynamic-object-layout[`.layout.json`]
+can be used instead, eg:
+
+[source,javascript]
+----
+"notYetComplete": {
+ "actionLayout": { "bookmarking": "AS_ROOT" }
+}
+----
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ActionLayout_contributedAs.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ActionLayout_contributedAs.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ActionLayout_contributedAs.adoc
index f1c943d..6b5531f 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ActionLayout_contributedAs.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ActionLayout_contributedAs.adoc
@@ -6,48 +6,49 @@
-IMPORTANT: WIP ... this section
+For a domain service action that _can_ be contributed, the `contributedAs()` attribute determines how it is contributed: as an action or as an association (ie a property or collection).
-The `@NotContributed` annotation applies only to action methods, and
-specifically to the actions of services. If present, it indicates that
-the action should not be contributed to any of its domain object
-arguments.
+The distinction between property or collection is automatic: if the action returns a `java.util.Collection` (or subtype) then the action is contributed as a collection; otherwise it is contributed as a property.
+
+For a domain service action to be contributed, the domain services must have a xref:_ug_reference-annotations_manpage-DomainService_nature[nature] nature of either `VIEW` or `VIEW_CONTRIBUTIONS_ONLY`, and the action must have xref:_ug_reference-annotations_manpage-Action_semantics[safe action semantics], and takes a single argument, namely the contributee domain object.
For example:
[source,java]
----
-public class OrderServices {
- @NotContributed
- public void cancel(Order order);
+@DomainService(nature=NatureOfService.VIEW_CONTRIBUTIONS_ONLY)
+public class CustomerContributions {
+ @Action(semantics=SemanticsOf.SAFE)
+ @ActionLayout(contributedAs=Contributed.AS_ASSOCIATION)
+ public List<Order> mostRecentOrders(Customer customer) { ... }
...
}
----
-If the action should neither be contributed nor appear in the service's
-service menu, then you could instead simply mark it as `@Hidden`.
-
-
-
-
+[TIP]
+====
+The `@ActionLayout` is not required if the action does not have safe semantics, or if the action takes more than one argument; in these cases the action can only be contributed _as_ an action.
+====
-== Contributing of one-arg actions
-Actions that accept a single argument will, by default, also be contributed as an association:
+It's also possible to use the attribute to suppress the action completely:
-* if the action returns a single object (value or entity) then the action will be contributed as a property
-* if the action returns a list then the action will be contributed as a collection
+[source,java]
+----
+@DomainService(nature=NatureOfService.VIEW)
+public class OrderContributions {
+ @ActionLayout(contributedAs=Contributed.AS_NEITHER)
+ public void cancel(Order order);
+ ...
+}
+----
-This behaviour can be influenced by specifying the "As." attribute:
+In such cases, though, it would probably make more sense to annotate the action as either xref:_ug_reference-annotations_manpage-Action_hidden[hidden] or indeed xref:_ug_reference-annotations_manpage-Programmatic[`@Programmatic`].
-* use `@NotContributed(As.ACTION)` to contribute the action as an association
-* use `@NotContributed(As.ASSOCIATION)` to contribute the action as an action
-* use `@NotContributed` to not contribute the action at all.
[NOTE]
====
-Replaces the deprecated `@NotContributed` annotation.
+Unlike other `@ActionLayout` attributes, this attribute _cannot_ be specified dynamically in the `.layout.json` xref:_ug_wicket-viewer_layout_dynamic-object-layout[dynamic layout file] because it relates to the contributor domain service, not the contributee domain object.
====
-
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ActionLayout_cssClass.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ActionLayout_cssClass.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ActionLayout_cssClass.adoc
index d192fbb..7023e1b 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ActionLayout_cssClass.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ActionLayout_cssClass.adoc
@@ -6,69 +6,45 @@
-IMPORTANT: WIP ... this section
+The `cssClass()` attribute can be used to render additional CSS classes in the HTML that represents the action. Application-specific CSS can then be used to target and adjust the UI representation of that particular element.
+[NOTE]
+====
+This attribute can also be applied to xref:_ug_reference-annotations_manpage-DomainObjectLayout_cssClass[domain objects], xref:_ug_reference-annotations_manpage-ViewModelLayout_cssClass[view models], xref:_ug_reference-annotations_manpage-PropertyLayout_cssClass[properties], xref:_ug_reference-annotations_manpage-CollectionLayout_cssClass[collections] and xref:_ug_reference-annotations_manpage-ParameterLayout_cssClass[action parameters].
+====
-The `CssClass` annotation applies to object and also to any object member (property, collection or action). It is used by the Wicket viewer as a UI hint to render specified CSS classes around the representation of the element.
-
-Application-specific CSS can then be used to target and adjust the UI representation of that particular element.
For example:
[source,java]
----
-@CssClass("x-main")
-public class ToDoItem { ... }
-----
-
-or
-
-[source,java]
-----
public class ToDoItem {
-
- @CssClass("x-key")
- public LocalDate getDueBy() { ... }
-
+ @ActionLayout(cssClass="x-key")
+ public ToDoItem postpone(LocalDate until) { ... }
+ ...
}
----
+[NOTE]
+====
+The similar xref:_ug_reference-annotations_manpage-ActionLayout_cssClassFa[`@ActionLayout#cssClassFa()`] annotation attribute is also used as a hint
+to apply CSS, specifically to add http://fortawesome.github.io/Font-Awesome/icons/[Font Awesome icons] on action menu items or buttons.
+====
-== Alternatives (`.layout.json`)
-
-As an alternative to using the `@CssClass` annotation, the `.layout.json` xref:_ug_wicket-viewer_layout_dynamic-object-layout[dynamic layout file]
-can be specified, eg:
+As an alternative to using the annotation, the dynamic xref:_ug_wicket-viewer_layout_dynamic-object-layout[`.layout.json`]
+can be used instead, eg:
[source,javascript]
----
-{
- "span": 6,
- "memberGroups": {
- "Priority": {
- "members": {
- ...
- "dueBy": {
- "cssClass": { "value": "x-key" }
- }
- ....
- }
- },
- ...
- }
+"postpone": {
+ "actionLayout": { "cssClass": "x-key" }
}
----
-Note that this (currently) only supports class members, not classes
-[NOTE]
-====
-The similar xref:_ug_reference-annotations_manpage_ActionLayout_cssClassFa[`@ActionLayout#cssClassFa()`] annotation attribute is also used as a hint
-to apply CSS, but in particular to allow http://fortawesome.github.io/Font-Awesome/icons/[Font Awesome icons]
-to be rendered on action butotns or as the icon for classes.
-====
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ActionLayout_cssClassFa.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ActionLayout_cssClassFa.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ActionLayout_cssClassFa.adoc
index b959106..a11b2e5 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ActionLayout_cssClassFa.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ActionLayout_cssClassFa.adoc
@@ -5,40 +5,28 @@
:_imagesdir: images/
-IMPORTANT: WIP ... this section
+The `cssClassFa()` attribute is used to specify the name of a link:http://fortawesome.github.io/Font-Awesome/icons/[Font Awesome icon] name, to be rendered on the action's representation as a button or menu item. The related `cssClassFaPosition()` attribute specifies the positioning of the icon, to the left or the right of the text.
-
-
-The `CssClassFa` annotation applies to objects and also to object actions,
-and is used by the Wicket viewer as a UI hint.
-
-For object actions, the viewer will render the specified
-http://fortawesome.github.io/Font-Awesome/icons/[Font Awesome icon]
-on the action's button (or menu item).
-
-For objects, it will be used as an icon. Note that this is only used if
-the object does not have a `getIconName()` method.
+[NOTE]
+====
+These attributes can also be applied to xref:_ug_reference-annotations_manpage-DomainObjectLayout_cssClass[domain objects] and to xref:_ug_reference-annotations_manpage-ViewModelLayout_cssClassFa[view models] to specify the object's icon.
+====
For example:
[source,java]
----
-@CssClassFa("fa-check-circle")
-public class ToDoItem { ... }
-----
-
-or
-
-[source,java]
-----
public class ToDoItem {
-
- @CssClass("fa-step-backward")
+ @ActionLayout(
+ cssClassFa="fa-step-backward"
+ )
public ToDoItem previous() { ... }
- @CssClass("fa-step-forward")
+ @ActionLayout(
+ cssClassFa="fa-step-forward",
+ cssClassFaPosition=ActionLayout.CssClassFaPosition.RIGHT
+ )
public ToDoItem next() { ... }
-
}
----
@@ -46,47 +34,29 @@ There can be multiple "fa-" classes, eg to mirror or rotate the icon. There
is no need to include the "fa" class; it will be automatically appended.
-
-
-== Alternatives (`.layout.json`)
-
-As an alternative to using the `@CssClass` annotation, the `.layout.json` xref:_ug_wicket-viewer_layout_dynamic-object-layout[dynamic layout file]
-can be specified, eg:
+As an alternative to using the annotation, the dynamic xref:_ug_wicket-viewer_layout_dynamic-object-layout[`.layout.json`]
+can be used instead, eg:
[source,javascript]
----
-{
- "span": 6,
- "memberGroups": {
- "Priority": {
- "members": {
- ...
- "relativePriority": {
- "actions": {
- "previous": {
- "cssClassFa": { "value": "fa-step-backward" }
- },
- "next": {
- "cssClassFa": { "value": "fa-step-forward" }
- }
- }
- },
- ....
- }
- },
- ...
+"previous": {
+ "actionLayout": {
+ "cssClassFa": "fa-step-backward",
+ "cssClassFaPosition": "LEFT"
+ }
+},
+"next": {
+ "actionLayout": {
+ "cssClassFa": "fa-step-forward",
+ "cssClassFaPosition": "RIGHT"
}
}
----
-Note that this (currently) only supports class members, not classes.
[NOTE]
====
-The similar xref:_ug_reference-annotations_manpage_ActionLayout_cssClass[`@ActionLayout#cssClass()`] annotation attribute is also used as a hint to apply CSS, but for wrapping the representation of an object or object member so that it can be styled in an application-specific way.
+The similar xref:_ug_reference-annotations_manpage-ActionLayout_cssClass[`@ActionLayout#cssClass()`] annotation attribute is also used as a hint to apply CSS, but for wrapping the representation of an object or object member so that it can be styled in an application-specific way.
====
-
-
-
http://git-wip-us.apache.org/repos/asf/isis/blob/4a9da14d/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ActionLayout_describedAs.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ActionLayout_describedAs.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ActionLayout_describedAs.adoc
index a25aea1..55d0353 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ActionLayout_describedAs.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_ug_reference-annotations_manpage-ActionLayout_describedAs.adoc
@@ -6,19 +6,20 @@
-IMPORTANT: WIP ... this section
+The `describedAs()` attribute is used to provide a short description of something that features on the user interface. For example, in the xref:_ug_wicket-viewer[Wicket viewer] it is displayed as a 'tool tip'.
+[NOTE]
+====
+The `describedAs()` attribute can also be specified for xref:_ug_reference-annotations_manpage-CollectionLayout_describedAs[collections], xref:_ug_reference-annotations_manpage-PropertyLayout_describedAs[properties], xref:_ug_reference-annotations_manpage-ParameterLayout_describedAs[parameters], xref:_ug_reference-annotations_manpage-DomainObjectLayout_describedAs[domain objects] and xref:_ug_reference-annotations_manpage-ViewModelLayout_describedAs[view models].
+====
-The `@DescribedAs` annotation is used to provide a short description of something that features on the user interface. How this description is used will depend upon the viewing mechanism - but it may be thought of as being like a 'tool tip'.
-
-Descriptions may be provided for objects, members (properties, collections and actions), and for individual parameters within an action method. `@DescribedAs` therefore works in a very similar manner to `@Named` <!--(see ?)-->.
For example:
[source,java]
----
public class Customer {
- @DescribedAs("Place a repeat order of the last (most recently placed) order")
+ @ActionLayout(describedAs="Place a repeat order of the last (most recently placed) order")
public Order placeRepeatOrder(...) { ... }
}
----
@@ -26,3 +27,14 @@ public class Customer {
+As an alternative to using the annotation, the dynamic xref:_ug_wicket-viewer_layout_dynamic-object-layout[`.layout.json`]
+can be used instead, eg:
+
+[source,javascript]
+----
+"postpone": {
+ "actionLayout": { "describedAs": "Place a repeat order of the last (most recently placed) order" }
+}
+----
+
+