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/05/15 15:36:47 UTC

[1/9] isis git commit: ISIS-1133: security and runtime.

Repository: isis
Updated Branches:
  refs/heads/master 18011b9e4 -> 65d34db7d


http://git-wip-us.apache.org/repos/asf/isis/blob/b538e164/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime_configuring-datanucleus.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime_configuring-datanucleus.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime_configuring-datanucleus.adoc
new file mode 100644
index 0000000..1e10db1
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime_configuring-datanucleus.adoc
@@ -0,0 +1,21 @@
+= Configuring DataNucleus
+: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/
+
+Apache Isis programmatically configures DataNucleus; any Isis properties with the prefix `isis.persistor.datanucleus.impl` are passed through directly to the JDO/DataNucleus objectstore (with the prefix stripped off, of course).
+
+DataNucleus will for itself also and read the `META-INF/persistence.xml`; at a minimum this defines the name of the "persistence unit".  n theory it could also hold mappings, though in Isis we tend to use annotations instead.
+
+Furthermore, DataNucleus will search for various other XML mapping files, eg `mappings.jdo`.  A full list can be found http://www.datanucleus.org/products/datanucleus/jdo/metadata.html[here].  The metadata in these XML can be used to override the annotations of annotated entities; see <<_overriding_jdo_annotations, Overriding JDO Annotatons>> for further discussion.
+
+
+include::_user-guide_runtime_configuring-datanucleus_properties.adoc[leveloffset=+1]
+
+include::_user-guide_runtime_configuring-datanucleus_persistence-xml.adoc[leveloffset=+1]
+
+include::_user-guide_runtime_configuring-datanucleus_eagerly-registering-entities.adoc[leveloffset=+1]
+
+include::_user-guide_runtime_configuring-datanucleus_disabling-persistence-by-reachability.adoc[leveloffset=+1]
+
+include::_user-guide_runtime_configuring-datanucleus_using-jndi-data-source.adoc[leveloffset=+1]

http://git-wip-us.apache.org/repos/asf/isis/blob/b538e164/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime_configuring-datanucleus_disabling-persistence-by-reachability.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime_configuring-datanucleus_disabling-persistence-by-reachability.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime_configuring-datanucleus_disabling-persistence-by-reachability.adoc
new file mode 100644
index 0000000..5c0b109
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime_configuring-datanucleus_disabling-persistence-by-reachability.adoc
@@ -0,0 +1,93 @@
+= Disabling Persistence by Reachability
+: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/
+
+By default, JDO/DataNucleus supports the concept of http://www.datanucleus.org/products/datanucleus/jdo/orm/cascading.html[persistence-by-reachability]. That is, if
+a non-persistent entity is associated with an already-persistent entity, then DataNucleus will detect this and will automatically persist the associated object. Put another way: there is no need to call Isis' `DomainObjectContainer#persist(.)` or `DomainObjectContainer#persistIfNotAlready(.)` methods.
+
+However, convenient though this feature is, you may find that it causes performance issues.
+
+[WARNING]
+====
+DataNucleus' persistence-by-reachability may cause performance issues.  We strongly recommend that you disable it.
+====
+
+One scenario in particular where this performance issues can arise is if your entities implement the `java.lang.Comparable` interface, and you have used Isis' link:../../../reference/Utility.html[ObjectContracts] utility. The issue here is that `ObjectContracts` implementation can cause DataNucleus to recursively rehydrate a larger number of associated entities. (More detail below).
+
+We therefore recommend that you disable persistence-by-reachability by adding the following to `persistor_datanucleus.properties`:
+
+[source,ini]
+----
+isis.persistor.datanucleus.impl.datanucleus.persistenceByReachabilityAtCommit=false
+----
+
+This change has been made to the <<_simpleapp_archetype, SimpleApp Archetype>>
+
+If you do disable this feature, then you will (of course) need to ensure that you explicitly persist all entities using the `DomainObjectContainer#persist(.)` or `DomainObjectContainer#persistIfNotAlready(.)` methods.
+
+== Explanation of the issue in more detail
+
+Consider the entities:
+
+image::{_imagesdir}reference/configuration-properties/datanucleus-objectstore/party-agreementrole-agreement.png[width="750px"]
+
+
+[TIP]
+====
+[source]
+.DSL (http://yuml.me/edit/b8681268[yuml.me/b8681268])
+----
+[Party|reference]<--->*[AgreementRole|startDate]
+[AgreementRole]*<-->[Agreement|reference]
+----
+====
+
+
+In the course of a transaction, the `Agreement` entity is loaded into memory (not necessarily modified), and then new ``AgreementRole``s are associated to it.
+
+All these entities implement `Comparable` using `ObjectContracts`, and the implementation of ``AgreementRole``'s (simplified) is:
+
+[source,java]
+----
+public class AgreementRole {
+    ...
+    public int compareTo(AgreementRole other) {
+        return ObjectContracts.compareTo(this, other, "agreement","startDate","party");
+    }
+}
+----
+
+while ``Agreement``'s is implemented as:
+
+[source,java]
+----
+public class Agreement {
+    ...
+    public int compareTo(Agreement other) {
+        return ObjectContracts.compareTo(this, other, "reference");
+    }
+}
+----
+
+and ``Party``'s is similarly implemented as:
+
+[source,java]
+----
+public class Party {
+    ...
+    public int compareTo(Party other) {
+        return ObjectContracts.compareTo(this, other, "reference");
+    }
+}
+----
+
+DataNucleus's persistence-by-reachability algorithm adds the `AgreementRole` instances into a `SortedSet`, which causes `AgreementRole#compareTo()` to fire:
+
+* the evaluation of the "agreement" property delegates back to the `Agreement`, whose own `Agreement#compareTo()` uses the scalar `reference` property. As the `Agreement` is already in-memory, this does not trigger any further database queries
+
+* the evaluation of the "startDate" property is just a scalar property of the `AgreementRole`, so will already in-memory
+
+* the evaluation of the "party" property delegates back to the `Party`, whose own `Party#compareTo()` requires the uses the scalar `reference` property. However, since the `Party` is not yet in-memory, using the `reference` property triggers a database query to "rehydrate" the `Party` instance.
+
+In other words, in figuring out whether `AgreementRole` requires the persistence-by-reachability algorithm to run, it causes the adjacent associated entity `Party` to also be retrieved.
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/isis/blob/b538e164/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime_configuring-datanucleus_eagerly-registering-entities.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime_configuring-datanucleus_eagerly-registering-entities.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime_configuring-datanucleus_eagerly-registering-entities.adoc
new file mode 100644
index 0000000..3748ac3
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime_configuring-datanucleus_eagerly-registering-entities.adoc
@@ -0,0 +1,43 @@
+= Eagerly Registering Entity Types
+: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/
+
+[WARNING]
+====
+From 1.6.0+ this feature may be (partly?) broken; see https://issues.apache.org/jira/browse/ISIS-847[ISIS-847].
+====
+
+Both Apache Isis and DataNucleus have their own metamodels of the domain entities. Isis builds its metamodel by walking the graph of types from the services registered using `@DomainService` or explicitly registered in `isis.properties`. The JDO objectstore then takes these types and registers them with DataNucleus.
+
+In some cases, though, not every entity type is discoverable from the API of the service actions. This is especially the case if you have lots of subtypes (where the action method specifies only the supertype). In such cases the Isis and JDO metamodels is built lazily, when an instance of that (sub)type is first encountered.
+
+Isis is quite happy for the metamodel to be lazily created, and - to be fair - DataNucleus also works well in most cases. In some cases, though, we have found that the JDBC driver (eg HSQLDB) will deadlock if DataNucleus tries to submit some DDL (for a lazily discovered type) intermingled with DML (for updating).
+
+In any case, it's probably not good practice to have DataNucleus work this way. The `RegisterEntities` service can therefore be registered in order to do the eager registration. It searches for all `@PersistenceCapable` entities under specified package(s), and registers them all.
+
+
+== Specify the Package Prefix(es)
+
+In the `persistor_datanucleus.properties`, specify the package prefix(es) of your application, to provide a hint for finding the `@PersistenceCapable` classes.
+
+The value of this property can be a comma-separated list (if there is more than one package or Maven module that holds persistable entities).
+
+
+== Integration Testing
+
+The `IsisConfigurationForJdoIntegTests`, recommended for use in <<_integration_testing, Integration Testing>> provides the `#addRegisterEntitiesPackagePrefix()` method to set up this configuration property:
+
+[source,java]
+.Integration test bootstrapping
+----
+private static class SimpleAppSystemBuilder extends IsisSystemForTest.Builder {
+    ...
+    private static IsisConfiguration testConfiguration() {
+        final IsisConfigurationForJdoIntegTests testConfiguration = new IsisConfigurationForJdoIntegTests();
+        testConfiguration.addRegisterEntitiesPackagePrefix("domainapp.dom.modules"); // <1>
+        return testConfiguration;
+    }
+}
+----
+<1> specify the package prefix(es) for integration testing.

http://git-wip-us.apache.org/repos/asf/isis/blob/b538e164/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime_configuring-datanucleus_persistence-xml.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime_configuring-datanucleus_persistence-xml.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime_configuring-datanucleus_persistence-xml.adoc
new file mode 100644
index 0000000..7933b17
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime_configuring-datanucleus_persistence-xml.adoc
@@ -0,0 +1,9 @@
+= `persistence.xml`
+: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
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/b538e164/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime_configuring-datanucleus_properties.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime_configuring-datanucleus_properties.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime_configuring-datanucleus_properties.adoc
new file mode 100644
index 0000000..a76fa6a
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime_configuring-datanucleus_properties.adoc
@@ -0,0 +1,57 @@
+= Configuration Properties
+: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: WIP...
+
+These configuration properties are typically stored in `WEB-INF/persistor_datanucleus.properties`.  However, you can place all configuration properties into `WEB-INF/isis.properties` if you wish (the configuration properties from all config files are merged together).
+
+== Configuration Properties for Apache Isis itself
+
+
+.JDO/DataNucleus Objectstore Configuration Properties
+[cols="2a,1,3a", options="header"]
+|===
+|Property
+|Value +
+(_default value_)
+|Description
+
+|`isis.persistor.datanucleus.` +
+`RegisterEntities.packagePrefix`
+| fully qualified package names (CSV)
+| of class names; specifies the entities early rather than allow DataNucleus to find the entities lazily.  Strongly recommended (subtle issues can sometimes arise if lazy discovery is used).
+Further <<_registering_entity_types, discussion below>>.
+
+|`isis.persistor.datanucleus.` +
+`PublishingService.serializedForm`
+| zipped
+|
+
+|===
+
+
+
+== Configuration Properties passed through directly to DataNucleus.
+
+.JDO/DataNucleus Objectstore Configuration Properties
+[cols="2a,1,3a", options="header"]
+|===
+|Property
+|Value +
+(_default value_)
+|Description
+
+|`isis.persistor.datanucleus.impl.*`
+|
+| Passed through directly to Datanucleus (with `isis.persistor.datanucleus.impl` prefix stripped)
+
+|`isis.persistor.datanucleus.impl.` +
+`datanucleus.persistenceByReachabilityAtCommit`
+|`false`
+|We recommend this setting is disabled.  +
+Further <<_disabling_persistence_by_reachability, discussion below>>.
+
+|===
+

http://git-wip-us.apache.org/repos/asf/isis/blob/b538e164/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime_configuring-datanucleus_using-jndi-data-source.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime_configuring-datanucleus_using-jndi-data-source.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime_configuring-datanucleus_using-jndi-data-source.adoc
new file mode 100644
index 0000000..9888750
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime_configuring-datanucleus_using-jndi-data-source.adoc
@@ -0,0 +1,72 @@
+= Using JNDI DataSource
+: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/
+
+Isis' JDO objectstore can be configured either to connect to the database using its own connection pool, or by using a container-managed datasource.
+
+
+
+== Application managed connections
+
+Using a connection pool managed directly by the application (that is, by Isis' JDO objectstore and ultimately by DataNucleus) requires a single set of configuration properties to be specified.
+
+In the `WEB-INF\persistor_datanucleus.properties` file, specify the connection driver, url, username and password.
+
+For example:
+
+[source,ini]
+----
+isis.persistor.datanucleus.impl.javax.jdo.option.ConnectionDriverName=net.sf.log4jdbc.DriverSpy
+isis.persistor.datanucleus.impl.javax.jdo.option.ConnectionURL=jdbc:log4jdbc:hsqldb:mem:test
+isis.persistor.datanucleus.impl.javax.jdo.option.ConnectionUserName=sa
+isis.persistor.datanucleus.impl.javax.jdo.option.ConnectionPassword=
+----
+
+Those configuration properties that start with the prefix `isis.persistor.datanucleus.impl.` are passed through directly to DataNucleus (with the prefix removed).
+
+
+
+== Container managed (JNDI) datasource
+
+Using a datasource managed by the servlet container requires three separate bits of configuration.
+
+Firstly, specify the name of the datasource in the `WEB-INF\persistor_datanucleus.properties` file. For example:
+
+If connection pool settings are also present in this file, they will simply be ignored. Any other configuration properties that start with the prefix `isis.persistor.datanucleus.impl.` are passed through directly to DataNucleus (with the prefix removed).
+
+Secondly, in the `WEB-INF/web.xml`, declare the resource reference:
+
+[source,xml]
+----
+<resource-ref>
+    <description>db</description>
+    <res-ref-name>jdbc/simpleapp</res-ref-name>
+    <res-type>javax.sql.DataSource</res-type>
+    <res-auth>Container</res-auth>
+</resource-ref>
+----
+
+Finally, declare the datasource as required by the servlet container. For example, if using Tomcat 7, the datasource can be specified by adding the following to `$TOMCAT_HOME/conf/context.xml`:
+
+[source,xml]
+----
+<Resource name="jdbc/simpleapp"
+  auth="Container"
+  type="javax.sql.DataSource"
+  maxActive="100"
+  maxIdle="30"
+  maxWait="10000"
+  username="sa"
+  password="p4ssword"
+  driverClassName="com.microsoft.sqlserver.jdbc.SQLServerDriver"
+  url="jdbc:sqlserver://127.0.0.1:1433;instance=.;databaseName=simpleapp"/>
+----
+
+You will also need to make sure that the JDBC driver is on the servlet container's classpath. For Tomcat, this means copying the driver to `$TOMCAT_HOME/lib`.
+
+[NOTE]
+====
+According to Tomcat's documentation, it is supposedly possible to copy the `conf/context.xml` to the name of the webapp, eg `conf/mywebapp.xml`, and scope the connection to that webapp only.  I was unable to get this working, however.
+====
+

http://git-wip-us.apache.org/repos/asf/isis/blob/b538e164/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime_web-xml.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime_web-xml.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime_web-xml.adoc
new file mode 100644
index 0000000..8be8f26
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime_web-xml.adoc
@@ -0,0 +1,19 @@
+= `web.xml`
+: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
+
+
+== Init Params
+
+`<isis.viewers>`
+
+== Filters
+
+
+== Servlets
+
+
+== Running Restful Objects Viewer only
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/isis/blob/b538e164/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_security.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_security.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_security.adoc
new file mode 100644
index 0000000..f0ae948
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_security.adoc
@@ -0,0 +1,61 @@
+= Security
+: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/
+
+
+Apache Isis has built-in support for authentication and authorization:
+
+* By "authentication" we mean logging into the application using some credentials, typically a username and password.  Authentication also means looking up the set of roles to which a user belongs.
+
+* By "authorization" we mean permissions: granting roles to have access to features of the app.
+
+Isis provides an API for both authentication and authorization, and provides an implementation that integrates with link:http://shiro.apache.org[Apache Shiro].  Shiro in turn uses the concept of a _realm_ as a source for both authentication and optionally authorization.
+
+Shiro ships with a simple text-based realm -- the `IniRealm` -- which reads users (and password), user roles and role permissions from the `WEB-INF/shiro.ini` file.  The <<_simpleapp_archetype, SimpleApp archetype>> is configured to use this realm.
+
+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 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.
+
+[NOTE]
+.What about auditing?
+====
+A further aspect of security is auditing: recording what data was modified by which user.   Apache Isis does define two service APIs -- <<_command_service, `CommandService`>> and <<_auditing_service, `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-auditing}[Isis addons' auditing] module.
+====
+
+[IMPORTANT]
+====
+TODO:
+
+* discuss Wicket vs Restful sign-on challenges
+** the pluggable authenticationStrategy
+* discuss Wicket user-registration
+
+====
+
+
+
+include::_user-guide_security_configuring-isis-to-use-shiro.adoc[leveloffset=+1]
+
+include::_user-guide_security_shiro-ini-realm.adoc[leveloffset=+1]
+
+include::_user-guide_security_shiro-isis-ldap-realm.adoc[leveloffset=+1]
+
+include::_user-guide_security_shiro-isisaddons-security-module-realm.adoc[leveloffset=+1]
+
+include::_user-guide_security_shiro-jdbc-realm.adoc[leveloffset=+1]
+
+include::_user-guide_security_shiro-isis-enhanced-wildcard-permission.adoc[leveloffset=+1]
+
+include::_user-guide_security_configuring-isis-to-use-bypass.adoc[leveloffset=+1]
+
+include::_user-guide_security_api-for-applications.adoc[leveloffset=+1]
+
+
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/b538e164/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_security_api-for-applications.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_security_api-for-applications.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_security_api-for-applications.adoc
new file mode 100644
index 0000000..5655fe2
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_security_api-for-applications.adoc
@@ -0,0 +1,61 @@
+= API for Applications
+: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/
+
+
+
+Generally speaking your domain objects (or more generally your application) should be agnostic of the user/roles that are interacting with them; applying security permissions is the responsibility of the framework.
+
+Still, on very rare occasion you may have a need, in which case you can either use Isis' `DomainObjectContainer` API or you can reach further down the stack and use the JEE Servlet API.
+
+
+== Using Isis` `DomainObjectContainer`
+
+The <<_domain_object_container, `DomainObjectContainer`>> service exposes the following API:
+
+[source,java]
+----
+final UserMemento user = container.getUser();
+final List<RoleMemento> roles = user.getRoles();
+for (RoleMemento role : roles) {
+    String roleName = role.getName();
+    ...
+}
+----
+
+Each role's `name` property encodes both the realm that provided the role, and the role identity itself.
+
+For example, in the simpleapp, if logging in as `dick` with the following entries for `realm1`:
+
+[source,ini]
+----
+dick = pass, user_role, analysis_role, self-install_role
+----
+
+then this corresponds to the roles "realm1:user_role", "realm1:self-install_role" and "realm1:analysis_role".
+
+If using the Wicket viewer, then note there will also be another role which is used internally (namely "org.apache.isis.viewer.wicket.roles.USER").
+
+
+
+== Accessing user/roles from the Servlet API
+
+On occasion you may find it necessary to reach below Isis and to the underlying servlet API.  For example, the http://github.com/isisaddons/isis-module-togglz}[Isis addons' togglz] module (non-ASF) has a requirement to do this in order to expose its embedded togglz web console.  (
+
+[TIP]
+====
+If you do need to access the servlet API and are running within the context of Wicket viewer, the http://github.com/isisaddons/isis-module-servletapi}[Isis addons' servletapi] module can provide access to the `HttpServletRequest`, `HttpServletResponse` and `ServletContext`.
+====
+
+In this situation, you can still obtain some information about the user and its roles:
+
+[source,java]
+----
+Principal principal = httpServletRequest.getPrincipal();
+String username = principal.getName();
+
+boolean analyst = httpServletRequest.isUserInRole("analysis_role");
+----
+
+However, it isn't possible to obtain any role permissions for the user.

http://git-wip-us.apache.org/repos/asf/isis/blob/b538e164/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_security_configuring-isis-to-use-bypass.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_security_configuring-isis-to-use-bypass.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_security_configuring-isis-to-use-bypass.adoc
new file mode 100644
index 0000000..800fe85
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_security_configuring-isis-to-use-bypass.adoc
@@ -0,0 +1,13 @@
+= Bypass Security
+: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
+
+The bypass security component consists of an implementation of both the `AuthenticationManager` and `AuthorizationManager` APIs, and are intended for prototyping use only.
+
+The authentication manager allows access with any credentials (in a sense, "bypassing" authentication), while the authorization manager provides access to all class members (in a sense, "bypassing" authorization).
+
+image::{_imagesdir}security/security-apis-impl/configure-isis-to-use-bypass.png[width="600px"]

http://git-wip-us.apache.org/repos/asf/isis/blob/b538e164/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_security_configuring-isis-to-use-shiro.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_security_configuring-isis-to-use-shiro.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_security_configuring-isis-to-use-shiro.adoc
new file mode 100644
index 0000000..1515608
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_security_configuring-isis-to-use-shiro.adoc
@@ -0,0 +1,75 @@
+= Configuring Isis to use Shiro
+: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/
+
+
+Apache Isis' security mechanism is configurable, specifying an `Authenticator` and an `Authorizor` (non-public) APIs.  The Shiro security mechanism is an integration wih Apache Shiro that implements both interfaces.
+
+[TIP]
+====
+The <<_simpleapp_archetype, SimpleApp archetype>> is pre-configured to use Apache Shiro, so much of what follows is set up already.
+====
+
+== Specifying Shiro as the security mechanism
+
+To tell Apache Isis to use Shiro, update the `WEB-INF/isis.properties` file:
+
+[source,ini]
+----
+isis.authentication=shiro
+isis.authorization=shiro
+----
+
+This installs the appropriate implementation (the `ShiroAuthenticatorOrAuthorizor` class) that use Shiro's APIs to perform authentication and authorization:
+
+image::{_imagesdir}security/security-apis-impl/configure-isis-to-use-shiro.png[width="600px"]
+
+The figure above doesn't tell the whole story; we haven't yet seen how Shiro itself is configured to use realms.  The `ShiroAuthenticatorOrAuthorizor` is in essence the glue between the Isis runtime and Shiro.
+
+== Bootstrapping Shiro
+
+The Shiro environment (in essence, thread-locals holding the security credentials) needs to be bootstrapped using the following settings in the `WEB-INF/web.xml` file:
+
+[source,xml]
+----
+<listener>
+    <listener-class>org.apache.shiro.web.env.EnvironmentLoaderListener</listener-class>
+</listener>
+<filter>
+    <filter-name>ShiroFilter</filter-name>
+    <filter-class>org.apache.shiro.web.servlet.ShiroFilter</filter-class>
+</filter>
+<filter-mapping>
+    <filter-name>ShiroFilter</filter-name>
+    <url-pattern>/*</url-pattern>
+</filter-mapping>
+----
+
+Based on this Shiro will then read `WEB-INF/shiro.ini` file to configure its Realm definitions for authentication and authorization.
+
+
+
+== `WEB-INF/shiro.ini`
+
+The `shiro.ini` file is used to specify the realm(s) that Shiro will delegate to:
+
+[source,ini]
+----
+securityManager.realms = $realmName
+----
+
+Shiro's ini file supports a "poor-man's" dependency injection (link:https://shiro.apache.org/configuration.html[their words]), and so `$realmName` in the above example is a reference to a realm defined elsewhere in `shiro.ini`.  The subsequent sections describe the specifics for thevarious realm implementations available to you.
+
+
+It's also possible to configure Shiro to support multiple realms.
+
+[source,ini]
+----
+securityManager.realms = $realm1,$realm2
+----
+
+You can learn more about Shiro realms in the link:http://shiro.apache.org/realm.html[Shiro documentation].
+
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/b538e164/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_security_shiro-caching.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_security_shiro-caching.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_security_shiro-caching.adoc
new file mode 100644
index 0000000..deb94b9
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_security_shiro-caching.adoc
@@ -0,0 +1,40 @@
+= Caching and other Shiro Features
+: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/
+
+
+We don't want to repeat the entire link:http://shiro.apache.org/documentation.html[Shiro documentation set] here, but we should flag a number of otherof other features that are worth checking out.
+
+
+
+
+== Caching
+
+To ensure that security operations does not impede performance, Shiro supports caching.  For example, this sets up a simple memory-based cache manager:
+
+[source,ini]
+----
+memoryCacheManager = org.apache.shiro.cache.MemoryConstrainedCacheManager
+securityManager.cacheManager = $memoryCacheManager
+----
+
+Other implementations can be plugged in; see the Shiro link:http://shiro.apache.org/caching.html[documentation] for further details.
+
+
+
+
+== Further Reading
+
+
+* Shiro's documentation page can be found link:http://shiro.apache.org/documentation.html[here].
+
+* community-contributed articles can be found link:http://shiro.apache.org/articles.html[here]. +
++
+These include for instance link:http://meri-stuff.blogspot.co.uk/2011/04/apache-shiro-part-2-realms-database-and.html[this interesting article] describing how to perform certificate-based authentication (ie login using Google or Facebook credentials).
+
+
+
+
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/b538e164/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_security_shiro-ini-realm.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_security_shiro-ini-realm.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_security_shiro-ini-realm.adoc
new file mode 100644
index 0000000..a1bad63
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_security_shiro-ini-realm.adoc
@@ -0,0 +1,132 @@
+= Shiro Ini Realm
+: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/
+
+
+Probably the simplest realm to use is Shiro's built-in `IniRealm`, which reads from the (same) `WEB-INF/shiro.ini` file.
+
+This is suitable for prototyping, but isn't intended for production use, if only because user/password credentials are stored in plain text.  Nevertheless, it's a good starting point.  The app generated by the <<_simpleapp_archetype, SimpleApp archetype>> is configured to use this realm.
+
+The diagram below shows the Isis and components involved:
+
+image::{_imagesdir}security/security-apis-impl/configure-shiro-to-use-ini-realm.png[width="600px"]
+
+The realm is responsible for validating the user credentials, and then creates a Shiro link:http://shiro.apache.org/static/latest/apidocs/org/apache/shiro/subject/Subject.html[`Subject`] which represents the user (for the current request).  Isis `Authenticator` component then interacts with the `Subject` in order to check permissions.
+
+
+
+
+== Shiro Configuration
+
+To use the built-in `IniRealm`, we add the following to `WEB-INF/shiro.ini`:
+
+[source,ini]
+----
+securityManager.realms = $iniRealm
+----
+
+(Unlike other realms) there is no need to "define" `$iniRealm`; it is automatically available to us.
+
+Specifying `$iniRealm` means that the usernames/passwords, roles and permissions are read from the `shiro.ini` file itself.  Specifically:
+
+* the users/passwords and their roles from the `[users]` sections;
+* the roles are mapped to permissions in the `[roles]` section.
+
+The format of these is described below.
+
+=== `[users]` section
+
+This section lists users, passwords and their roles.
+
+For example:
+
+[source,ini]
+----
+sven = pass, admin_role
+dick = pass, user_role, analysis_role, self-install_role
+bob  = pass, user_role, self-install_role
+----
+The first value is the password (eg "pass", the remaining values are the role(s).
+
+
+=== `[roles]` section
+
+This section lists roles and their corresponding permissions.
+
+For example:
+
+[source,ini]
+----
+user_role = *:ToDoItems:*:*,\
+            *:ToDoItem:*:*,\
+            *:ToDoAppDashboard:*:*
+analysis_role = *:ToDoItemAnalysis:*:*,\
+            *:ToDoItemsByCategoryViewModel:*:*,\
+            *:ToDoItemsByDateRangeViewModel:*:*
+self-install_role = *:ToDoItemsFixturesService:install:*
+admin_role = *
+----
+
+The value is a comma-separated list of permissions for the role.  The format is:
+
+[source,ini]
+----
+packageName:className:memberName:r,w
+----
+
+where:
+
+* `memberName` is the property, collection or action name.
+* `r` indicates that the member is visible
+* `w` indicates that the member is usable (editable or invokable)
+
+and where each of the parts of the permission string can be wildcarded using `*`.
+
+Because these are wildcards, a '*' can be used at any level. Additionally, missing levels assume wildcards.
+
+Thus:
+
+[source]
+----
+com.mycompany.myapp:Customer:firstName:r,w   # view or edit customer's firstName
+com.mycompany.myapp:Customer:lastName:r      # view customer's lastName only
+com.mycompany.myapp:Customer:placeOrder:*    # view and invoke placeOrder action
+com.mycompany.myapp:Customer:placeOrder      # ditto
+com.mycompany.myapp:Customer:*:r             # view all customer class members
+com.mycompany.myapp:*:*:r                    # view-only access for all classes in myapp package
+com.mycompany.myapp:*:*:*                    # view/edit for all classes in myapp package
+com.mycompany.myapp:*:*                      # ditto
+com.mycompany.myapp:*                        # ditto
+com.mycompany.myapp                          # ditto
+*                                            # view/edit access to everything
+----
+
+[TIP]
+====
+The format of the permissions string is configurable in Shiro, and Isis uses this to provide an extended wildcard format, described <<_enhanced_wildcard_permission, here>>.
+====
+
+
+
+
+== Externalized IniRealm
+
+There's no requirement for all users/roles to be defined in the `shiro.ini` file.  Instead, a realm can be defined that loads its users/roles from some other resource.
+
+For example:
+
+[source,ini]
+----
+$realm1=org.apache.shiro.realm.text.IniRealm # <1>
+realm1.resourcePath=classpath:webapp/realm1.ini # <2>
+----
+<1> happens to (coincidentally) be the link:http://shiro.apache.org/static/latest/apidocs/org/apache/shiro/realm/text/IniRealm.html[same implementation] as Shiro's built-in $iniRealm
+<2> in this case load the users/roles from the `src/main/resources/webapp/realm1.ini` file.
+
+Note that a URL could be provided as the `resourcePath`, so a centralized config file could be used.  Even so, the
+
+[NOTE]
+====
+If configured this way then the `[users]` and `[roles]` sections of `shiro.ini` become unused. Instead, the corresponding sections from for `realm1.ini` are used instead.
+====

http://git-wip-us.apache.org/repos/asf/isis/blob/b538e164/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_security_shiro-isis-enhanced-wildcard-permission.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_security_shiro-isis-enhanced-wildcard-permission.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_security_shiro-isis-enhanced-wildcard-permission.adoc
new file mode 100644
index 0000000..d94372d
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_security_shiro-isis-enhanced-wildcard-permission.adoc
@@ -0,0 +1,62 @@
+= Enhanced Wildcard Permission
+: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/
+
+
+If using the text-based <<_shiro_ini_realm, `IniRealm`>> or <<_isis_ldap_realm, Isis' LDAP realm>>, then note that Shiro also allows the string representation of the permissions to be mapped (resolved) to alternative `Permission` instances.  Isis provides its own `IsisPermission` which introduces the concept of a "veto".
+
+A vetoing permission is one that prevents access to a feature, rather than grants it.  This is useful in some situations where most users have access to most features, and only a small number of features are particularly sensitive.  The configuration can therefore be set up to grant fairly broad-brush permissions and then veto permission for the sensitive features for those users that do not have access.
+
+The string representation of the `IsisPermission` uses the following format:
+
+[source,ini]
+----
+([!]?)([^/]+)[/](.+)
+----
+
+where:
+
+* the optional `!` prefix indicates this permission is a vetoing permission
+* the optional `xxx/` prefix is a permission group that scopes any vetoing permissions
+* the remainder of the string is the permission (possibly wildcarded, with :rw as optional suffix)
+
+
+For example:
+
+[source,ini]
+----
+user_role   = !reg/org.estatio.api,\
+              !reg/org.estatio.webapp.services.admin,\
+              reg/* ; \
+api_role    = org.estatio.api ;\
+admin_role = adm/*
+----
+
+sets up:
+
+* the `user_role` with access to all permissions except those in `org.estatio.api` and `org.estatio.webapp.services.admin`
+* the `api_role` with access to all permissions in `org.estatio.api`
+* the `admin_role` with access to everything.
+
+The permission group concept is required to scope the applicability of any veto permission. This is probably best explained by an example.  Suppose that a user has both `admin_role` and `user_role`; we would want the `admin_role` to trump the vetos of the `user_role`, in other words to give the user access to everything.
+
+
+Because of the permission groups, the two "+++!reg/...+""" vetos in user_role only veto out selected permissions granted by the "+++reg/*+++" permissions, but they do not veto the permissions granted by a different scope, namely "+++adm/*+++".
+
+The net effect is therefore what we would want: that a user with both `admin_role` and `user_role` would have access to everything, irrespective of those two veto permissions of the `user_role`.
+
+
+
+== Shiro Configuration
+
+The Isis permission resolver is specified in `WEB-INF/shiro.ini` file:
+
+[source,ini]
+----
+permissionResolver = org.apache.isis.security.shiro.authorization.IsisPermissionResolver
+myRealm.permissionResolver = $permissionResolver  # <1>
+----
+<1> `myRealm` is the handle to the configured realm, eg `$iniRealm` or `$isisLdapRealm` etc.
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/b538e164/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_security_shiro-isis-ldap-realm.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_security_shiro-isis-ldap-realm.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_security_shiro-isis-ldap-realm.adoc
new file mode 100644
index 0000000..59c0192
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_security_shiro-isis-ldap-realm.adoc
@@ -0,0 +1,145 @@
+= Isis Ldap Realm
+: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/
+
+
+Isis ships with an implementation of http://shiro.apache.org[Apache Shiro]'s `Realm` class that allows user authentication and authorization to be performed against an LDAP server.
+
+image::{_imagesdir}security/security-apis-impl/configure-shiro-to-use-isis-ldap-realm.png[width="600px"]
+
+The LDAP database stores the user/passwords and user groups, while the `shiro.ini` file is used to map the LDAP groups to roles, and to map the roles to permissions.
+
+== Shiro Configuration
+
+To use LDAP involves telling Shiro how to instantiate the realm.  This bootstrapping info lives in the `WEB-INF/shiro.ini`:
+
+[source,ini]
+----
+contextFactory = org.apache.isis.security.shiro.IsisLdapContextFactory
+contextFactory.url = ldap://localhost:10389
+contextFactory.systemUsername = uid=admin,ou=system        # <1>
+contextFactory.systemPassword = secret
+contextFactory.authenticationMechanism = CRAM-MD5          # <2>
+contextFactory.systemAuthenticationMechanism = simple
+
+ldapRealm = org.apache.isis.security.shiro.IsisLdapRealm   # <3>
+ldapRealm.contextFactory = $contextFactory
+
+ldapRealm.searchBase = ou=groups,o=mojo                    # <4>
+ldapRealm.groupObjectClass = groupOfUniqueNames            # <5>
+ldapRealm.uniqueMemberAttribute = uniqueMember             # <6>
+ldapRealm.uniqueMemberAttributeValueTemplate = uid={0}
+
+# optional mapping from physical groups to logical application roles
+ldapRealm.rolesByGroup = \                                 # <7>
+    LDN_USERS: user_role,\
+    NYK_USERS: user_role,\
+    HKG_USERS: user_role,\
+    GLOBAL_ADMIN: admin_role,\
+    DEMOS: self-install_role
+
+ldapRealm.permissionsByRole=\                              # <8>
+   user_role = *:ToDoItemsJdo:*:*,\
+               *:ToDoItem:*:*; \
+   self-install_role = *:ToDoItemsFixturesService:install:* ; \
+   admin_role = *
+
+securityManager.realms = $ldapRealm
+----
+<1> user accounts are searched using a dedicated service account
+<2> SASL (CRAM-MD5) authentication is used for this authentication
+<3> Isis' implementation of the LDAP realm.
+<4> groups are searched under `ou=groups,o=mojo` (where `mojo` is the company name)
+<5> each group has an LDAP objectClass of `groupOfUniqueNames`
+<6> each group has a vector attribute of `uniqueMember`
+<7> groups looked up from LDAP can optionally be mapped to logical roles; otherwise groups are used as role names directly
+<8> roles are mapped in turn to permissions
+
+The value of `uniqueMember` is in the form `uid=xxx`, with `xxx` being the uid of the user
+* users searched under `ou=system`
+* users have, at minimum, a `uid` attribute and a password
+* the users credentials are used to verify their user/password
+
+The above configuration has been tested against http://directory.apache.org/apacheds/[ApacheDS], v1.5.7. This can be administered using http://directory.apache.org/studio/[Apache Directory Studio], v1.5.3.
+
+
+[TIP]
+.Shiro Realm Mappings
+====
+When configuring role based permission mapping, there can only be one of these entries per realm:
+
+[source,ini]
+----
+realm.groupToRolesMappings = ...
+----
+
+and
+
+[source,ini]
+----
+realm.roleToPermissionsMappings = ...
+----
+
+This forces you to put everything on one line for each of the above.  This is, unfortunately, a Shiro "feature".  And if you repeat the entries above then it's "last one wins".)
+
+To make the configuration maintainable, use "\" to separate the mappings onto separate lines in the file.  Use this technique for both group to roles mapping and role to permission mapping. If you use the '&#39; after the "," that separates the key:value pairs it is more readable.
+====
+
+
+
+
+
+
+== Using a shared role/perms path
+
+As an alternative to injecting the `permissionsByRole` property, the role/permission mapping can alternatively be specified by injecting a resource path:
+
+[source,ini]
+----
+ldapRealm.resourcePath=classpath:webapp/myroles.ini
+----
+
+where `myroles.ini` is in `src/main/resources/webapp`, and takes the form:
+
+[source,ini]
+----
+ [roles]
+ user_role = *:ToDoItemsJdo:*:*,\
+             *:ToDoItem:*:*
+ self-install_role = *:ToDoItemsFixturesService:install:*
+ admin_role = *
+----
+
+This separation of the role/mapping can be useful if Shiro is configured to support multiple realms (eg an LdapRealm based one and also an TextRealm)
+
+
+
+
+== Active DS LDAP Mini-tutorial
+
+The screenshots below show how to setup LDAP accounts in ApacheDS using the Apache Directory Studio.
+
+The setup here was initially based on http://krams915.blogspot.co.uk/2011/01/ldap-apache-directory-studio-basic.html[this tutorial], however we have moved the user accounts so that they are defined in a separate LDAP node.
+
+To start, create a partition in order to hold the mojo node (holding the groups):
+
+image::{_imagesdir}/configuration/configuring-shiro/ldap/activeds-ldap-mojo-partition.png[ActiveDS LDAP Users]
+
+Create the `ou=groups,o=mojo` hierarchy:
+
+image::{_imagesdir}/configuration/configuring-shiro/ldap/activeds-ldap-mojo-root-dse.png[ActiveDS LDAP Users]
+
+Configure SASL authentication. This means that the checking of user/password is done implicitly by virtue of Isis connecting to LDAP using these credentials:
+
+image::{_imagesdir}/configuration/configuring-shiro/ldap/activeds-ldap-sasl-authentication.png[ActiveDS LDAP Users]
+
+In order for SASL to work, it seems to be necessary to put users under `o=system`. (This is why the setup is slightly different than the tutorial mentioned above):
+
+image::{_imagesdir}/configuration/configuring-shiro/ldap/activeds-ldap-users.png[ActiveDS LDAP Users]
+
+Configure the users into the groups:
+
+image::{_imagesdir}/configuration/configuring-shiro/ldap/activeds-ldap-groups.png[ActiveDS LDAP Users]
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/b538e164/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_security_shiro-isisaddons-security-module-realm.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_security_shiro-isisaddons-security-module-realm.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_security_shiro-isisaddons-security-module-realm.adoc
new file mode 100644
index 0000000..20c3738
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_security_shiro-isisaddons-security-module-realm.adoc
@@ -0,0 +1,35 @@
+= Security Module Realm
+: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/
+
+
+
+The Isis Addons' https://github.com/isisaddons/isis-module-security[security module] (not ASF) provides a complete
+security subdomain for users, roles, permissions; all are persisted as domain entities.
+
+What that means, of course, that they can also be administered through your Isis application.  Moreover, the set of permissions (to features) is derived completely from your application's metamodel; in essence the permissions are "type-safe".  
+
+
+In order to play along, the module includes a Shiro realm, which fits in as follows:
+
+The general configuration is as follows:
+
+image::{_imagesdir}security/security-apis-impl/configure-shiro-to-use-isisaddons-security-module-realm.png[width="600px"]
+
+where the `IsisModuleSecurityRealm` realm is the implementation provided by the module.
+
+In the configuration above user passwords are stored in the database.  The module uses link:http://www.mindrot.org/projects/jBCrypt/[jBCrypt] so that passwords are only stored in a (one-way) encrypted form in the database.
+
+
+
+The security module also supports a slightly more sophisticated configuration.  Most organizations use LDAP for user credentials, and maintaining two separate user accounts would be less than ideal.  The `IsisModuleSecurityRealm` can therefore be configured with a subsidiary "delegate" realm that is responsible for performing the primary authentication of the user; if that passes then a user is created (as a domain entity) automatically.
+In most cases this delegate realm will be the LDAP realm, and so the architecture becomes:
+
+image::{_imagesdir}security/security-apis-impl/configure-shiro-to-use-isisaddons-security-module-realm-with-delegate-realm.png[width="600px"]
+
+
+The security module has many more features than are described here, all of which are described in the module's link:https://github.com/isisaddons/isis-module-security[README].  The README also explains in detail how to configure an existing app to use this module.
+
+You can also look at the Isisaddons https://github.com/isisaddons/isis-app-todoapp[todoapp example] (not ASF), which is preconfigured to use the security module.
+

http://git-wip-us.apache.org/repos/asf/isis/blob/b538e164/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_security_shiro-jdbc-realm.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_security_shiro-jdbc-realm.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_security_shiro-jdbc-realm.adoc
new file mode 100644
index 0000000..31191bd
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_security_shiro-jdbc-realm.adoc
@@ -0,0 +1,113 @@
+= Shiro JDBC Realm
+: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/
+
+
+
+There is nothing to stop you from using some other `Realm` implementation (or indeed writing one yourself).  For example, you could use Shiro's own JDBC realm that loads user/password details from a database.
+
+If you go down this route, then the architecture is as follows:
+
+image::{_imagesdir}security/security-apis-impl/configure-shiro-to-use-custom-jdbc-realm.png[width="600px"]
+
+[WARNING]
+====
+If you are happy to use a database then we strongly recommend you use the http://github.com/isisaddons/isis-module-security}[Isis addons' security] module instead of a vanilla JDBC; it is far more sophisticated and moreover gives you the ability to administer the system from within your Isis application.
+====
+
+
+
+== Shiro Configuration
+
+There's quite a lot of configuration required (in `WEB-INF/shiro.ini`) to set up a JDBC realm, so we'll break it out into sections.
+
+First, we need to set up the connection to JDBC:
+
+[source,ini]
+----
+jdbcRealm=org.apache.shiro.realm.jdbc.JdbcRealm        # <1>
+
+jof = org.apache.shiro.jndi.JndiObjectFactory          # <2>
+jof.resourceName = jdbc/postgres                       # <3>
+jof.requiredType = javax.sql.DataSource
+jof.resourceRef = true
+
+jdbcRealm.dataSource = $jof                            # <4>
+----
+<1> instantiate the JDBC realm
+<2> instantiate factory object to lookup DataSource from servlet container
+<3> name of the datasource (as configured in `web.xml`)
+<4> instruct JDBC realm to obtain datasource from the JNDI
+
+
+We next need to tell the realm how to query the database.  Shiro supports any schema; what matters is the input search argument and the output results.
+
+[source,ini]
+----
+
+jdbcRealm.authenticationQuery =         \              # <5>
+        select password                 \
+          from users                    \
+         where username = ?
+
+jdbcRealm.userRolesQuery =              \              # <6>
+        select r.label                  \
+          from users_roles ur           \
+    inner join roles r                  \
+            on ur.role_id = r.id        \
+         where user_id = (              \
+            select id                   \
+             from users                 \
+            where username = ?);        \
+
+jdbcRealm.permissionsQuery=             \               # <7>
+        select p.permission             \
+          from roles_permissions rp     \
+    inner join permissions p            \
+            on rp.permission_id = p.id  \
+         where rp.role_id = (           \
+            select id                   \
+             from roles                 \
+            where label = ?);
+
+jdbcRealm.permissionsLookupEnabled=true                 # <8>
+----
+<5> query to find password for user
+<6> query to find roles for user
+<7> query to find permissions for role
+<8> enable permissions lookup
+
+[WARNING]
+====
+The `permissionsLookupEnabled` is very important, otherwise Shiro just returns an empty list of permissions and your users will have no access to any features(!).
+====
+
+We also should ensure that the passwords are not stored as plain-text:
+
+[source,ini]
+----
+dps = org.apache.shiro.authc.credential.DefaultPasswordService   # <9>
+pm = org.apache.shiro.authc.credential.PasswordMatcher           # <10>
+pm.passwordService = $dps
+jdbcRealm.credentialsMatcher = $pm                               # <11>
+----
+<9> mechanism to encrypts password
+<10> service to match passwords
+<11> instruct JDBC realm to use password matching service when authenticating
+
+
+And finally we need to tell Shiro to use the realm, in the usual fashion:
+
+[source,ini]
+----
+securityManager.realms = $jdbcRealm                     # <12>
+----
+
+Using the above configuration you will also need to setup a `DataSource`.  The details vary by servlet container, for example this is link:https://tomcat.apache.org/tomcat-8.0-doc/jndi-datasource-examples-howto.html[how to do the setup on Tomcat 8.0].
+
+[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].
+====
+

http://git-wip-us.apache.org/repos/asf/isis/blob/b538e164/adocs/documentation/src/main/asciidoc/user-guide/images/security/security-apis-impl/configure-isis-to-use-bypass.PNG
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/images/security/security-apis-impl/configure-isis-to-use-bypass.PNG b/adocs/documentation/src/main/asciidoc/user-guide/images/security/security-apis-impl/configure-isis-to-use-bypass.PNG
new file mode 100644
index 0000000..387594b
Binary files /dev/null and b/adocs/documentation/src/main/asciidoc/user-guide/images/security/security-apis-impl/configure-isis-to-use-bypass.PNG differ

http://git-wip-us.apache.org/repos/asf/isis/blob/b538e164/adocs/documentation/src/main/asciidoc/user-guide/images/security/security-apis-impl/configure-isis-to-use-shiro.png
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/images/security/security-apis-impl/configure-isis-to-use-shiro.png b/adocs/documentation/src/main/asciidoc/user-guide/images/security/security-apis-impl/configure-isis-to-use-shiro.png
new file mode 100644
index 0000000..891d373
Binary files /dev/null and b/adocs/documentation/src/main/asciidoc/user-guide/images/security/security-apis-impl/configure-isis-to-use-shiro.png differ

http://git-wip-us.apache.org/repos/asf/isis/blob/b538e164/adocs/documentation/src/main/asciidoc/user-guide/images/security/security-apis-impl/configure-shiro-to-use-ini-realm.PNG
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/images/security/security-apis-impl/configure-shiro-to-use-ini-realm.PNG b/adocs/documentation/src/main/asciidoc/user-guide/images/security/security-apis-impl/configure-shiro-to-use-ini-realm.PNG
new file mode 100644
index 0000000..5576701
Binary files /dev/null and b/adocs/documentation/src/main/asciidoc/user-guide/images/security/security-apis-impl/configure-shiro-to-use-ini-realm.PNG differ

http://git-wip-us.apache.org/repos/asf/isis/blob/b538e164/adocs/documentation/src/main/asciidoc/user-guide/images/security/security-apis-impl/configure-shiro-to-use-isis-ldap-realm.PNG
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/images/security/security-apis-impl/configure-shiro-to-use-isis-ldap-realm.PNG b/adocs/documentation/src/main/asciidoc/user-guide/images/security/security-apis-impl/configure-shiro-to-use-isis-ldap-realm.PNG
new file mode 100644
index 0000000..2a52910
Binary files /dev/null and b/adocs/documentation/src/main/asciidoc/user-guide/images/security/security-apis-impl/configure-shiro-to-use-isis-ldap-realm.PNG differ

http://git-wip-us.apache.org/repos/asf/isis/blob/b538e164/adocs/documentation/src/main/asciidoc/user-guide/images/security/security-apis-impl/configure-shiro-to-use-isisaddons-security-module-realm-with-delegate-realm.PNG
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/images/security/security-apis-impl/configure-shiro-to-use-isisaddons-security-module-realm-with-delegate-realm.PNG b/adocs/documentation/src/main/asciidoc/user-guide/images/security/security-apis-impl/configure-shiro-to-use-isisaddons-security-module-realm-with-delegate-realm.PNG
new file mode 100644
index 0000000..14af8c0
Binary files /dev/null and b/adocs/documentation/src/main/asciidoc/user-guide/images/security/security-apis-impl/configure-shiro-to-use-isisaddons-security-module-realm-with-delegate-realm.PNG differ

http://git-wip-us.apache.org/repos/asf/isis/blob/b538e164/adocs/documentation/src/main/asciidoc/user-guide/images/security/security-apis-impl/configure-shiro-to-use-isisaddons-security-module-realm.PNG
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/images/security/security-apis-impl/configure-shiro-to-use-isisaddons-security-module-realm.PNG b/adocs/documentation/src/main/asciidoc/user-guide/images/security/security-apis-impl/configure-shiro-to-use-isisaddons-security-module-realm.PNG
new file mode 100644
index 0000000..59780f4
Binary files /dev/null and b/adocs/documentation/src/main/asciidoc/user-guide/images/security/security-apis-impl/configure-shiro-to-use-isisaddons-security-module-realm.PNG differ

http://git-wip-us.apache.org/repos/asf/isis/blob/b538e164/adocs/documentation/src/main/asciidoc/user-guide/images/security/security-apis-impl/configure-shiro-to-use-shiro-jdbc-realm.png
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/images/security/security-apis-impl/configure-shiro-to-use-shiro-jdbc-realm.png b/adocs/documentation/src/main/asciidoc/user-guide/images/security/security-apis-impl/configure-shiro-to-use-shiro-jdbc-realm.png
new file mode 100644
index 0000000..d64751a
Binary files /dev/null and b/adocs/documentation/src/main/asciidoc/user-guide/images/security/security-apis-impl/configure-shiro-to-use-shiro-jdbc-realm.png differ

http://git-wip-us.apache.org/repos/asf/isis/blob/b538e164/adocs/documentation/src/main/asciidoc/user-guide/images/security/security-apis-impl/security-apis-impl.pptx
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/images/security/security-apis-impl/security-apis-impl.pptx b/adocs/documentation/src/main/asciidoc/user-guide/images/security/security-apis-impl/security-apis-impl.pptx
new file mode 100644
index 0000000..a86b62e
Binary files /dev/null and b/adocs/documentation/src/main/asciidoc/user-guide/images/security/security-apis-impl/security-apis-impl.pptx differ

http://git-wip-us.apache.org/repos/asf/isis/blob/b538e164/adocs/documentation/src/main/asciidoc/user-guide/user-guide.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/user-guide.adoc b/adocs/documentation/src/main/asciidoc/user-guide/user-guide.adoc
index 6170518..efda3e4 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/user-guide.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/user-guide.adoc
@@ -18,7 +18,9 @@ include::_user-guide_wicket-viewer.adoc[leveloffset=+1]
 
 include::_user-guide_restfulobjects-viewer.adoc[leveloffset=+1]
 
-include::_user-guide_runtime-configuration.adoc[leveloffset=+1]
+include::_user-guide_security.adoc[leveloffset=+1]
+
+include::_user-guide_runtime.adoc[leveloffset=+1]
 
 include::_user-guide_deployment.adoc[leveloffset=+1]
 
@@ -33,4 +35,3 @@ include::_user-guide_extending.adoc[leveloffset=+1]
 include::_user-guide_troubleshooting.adoc[leveloffset=+1]
 
 include::_user-guide_appendices.adoc[leveloffset=+1]
-

http://git-wip-us.apache.org/repos/asf/isis/blob/b538e164/adocs/pom.xml
----------------------------------------------------------------------
diff --git a/adocs/pom.xml b/adocs/pom.xml
index bf29d3a..c2b242d 100644
--- a/adocs/pom.xml
+++ b/adocs/pom.xml
@@ -44,6 +44,8 @@
 
     <properties>
         <asciidoctor.version>1.5.2</asciidoctor.version>
+        <jruby.version>1.7.17</jruby.version>
+
         <version.isis.latest.stable>1.8.0</version.isis.latest.stable>
         <version.isis.latest.snapshot>1.9.0-SNAPSHOT</version.isis.latest.snapshot>
         <svn.scmPubCheckoutDirectory>${project.build.directory}/co-site</svn.scmPubCheckoutDirectory>
@@ -60,6 +62,20 @@
         <module>documentation</module>
     </modules>
 
+    <repositories>
+        <repository>
+            <id>rubygems-proxy-releases</id>
+            <name>RubyGems.org Proxy (Releases)</name>
+            <url>http://rubygems-proxy.torquebox.org/releases</url>
+            <releases>
+                <enabled>true</enabled>
+            </releases>
+            <snapshots>
+                <enabled>false</enabled>
+            </snapshots>
+        </repository>
+    </repositories>
+
     <build>
         <pluginManagement>
             <plugins>
@@ -73,6 +89,25 @@
                     </configuration>
                 </plugin>
 
+                <plugin>
+                    <groupId>de.saumya.mojo</groupId>
+                    <artifactId>gem-maven-plugin</artifactId>
+                    <version>1.0.5</version>
+                    <configuration>
+                        <!-- align JRuby version with AsciidoctorJ to avoid redundant downloading -->
+                        <jrubyVersion>1.7.9</jrubyVersion>
+                        <gemHome>${project.build.directory}/gems</gemHome>
+                        <gemPath>${project.build.directory}/gems</gemPath>
+                    </configuration>
+                    <executions>
+                        <execution>
+                            <goals>
+                                <goal>initialize</goal>
+                            </goals>
+                        </execution>
+                    </executions>
+                </plugin>
+
                 <!-- Configure ASCIIDOC plugin -->
                 <plugin>
                     <groupId>org.asciidoctor</groupId>
@@ -81,6 +116,13 @@
                     <configuration>
                         <sourceDirectory>src/main/asciidoc</sourceDirectory>
                         <outputDirectory>${project.reporting.outputDirectory}</outputDirectory>
+
+                        <!-- The gem-maven-plugin appends the scope (e.g., provided) to the gemPath defined in the plugin configuration -->
+                        <gemPath>${project.build.directory}/gems-provided</gemPath>
+                        <requires>
+                            <require>asciidoctor-diagram</require>
+                        </requires>
+
                         <sourceHighlighter>coderay</sourceHighlighter>
                         <backend>html5</backend>
                         <templateDir>../template</templateDir>
@@ -139,6 +181,22 @@
         </plugins>
     </build>
 
+    <dependencies>
+        <dependency>
+            <groupId>rubygems</groupId>
+            <artifactId>asciidoctor-diagram</artifactId>
+            <version>1.2.1</version>
+            <type>gem</type>
+            <scope>provided</scope>
+            <exclusions>
+                <exclusion>
+                    <groupId>rubygems</groupId>
+                    <artifactId>asciidoctor</artifactId>
+                </exclusion>
+            </exclusions>
+        </dependency>
+    </dependencies>
+
     <profiles>
         <profile>
             <id>preview</id>

http://git-wip-us.apache.org/repos/asf/isis/blob/b538e164/adocs/template/document.html.erb
----------------------------------------------------------------------
diff --git a/adocs/template/document.html.erb b/adocs/template/document.html.erb
index fb0b880..a1a634f 100644
--- a/adocs/template/document.html.erb
+++ b/adocs/template/document.html.erb
@@ -197,6 +197,11 @@
             color: #D5810A;
         }
 
+        .admonitionblock .title {
+            font-size: larger;
+            font-style: italic;
+        }
+
         .imageblock img {
             margin-bottom: 10px;
         }


[6/9] isis git commit: ISIS-1133: summary tables for reference sections

Posted by da...@apache.org.
http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_content-negotiation-service.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_content-negotiation-service.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_content-negotiation-service.adoc
deleted file mode 100644
index bc7b1fc..0000000
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_content-negotiation-service.adoc
+++ /dev/null
@@ -1,8 +0,0 @@
-= Content Negotiation Service
-: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
-
-

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_deep-link-service.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_deep-link-service.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_deep-link-service.adoc
deleted file mode 100644
index c3387ec..0000000
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_deep-link-service.adoc
+++ /dev/null
@@ -1,8 +0,0 @@
-= Deep Link Service
-: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
-
-

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_domain-object-container.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_domain-object-container.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_domain-object-container.adoc
deleted file mode 100644
index 14e1f5e..0000000
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_domain-object-container.adoc
+++ /dev/null
@@ -1,8 +0,0 @@
-= Domain Object Container
-: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
-
-

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_email-notification-service.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_email-notification-service.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_email-notification-service.adoc
deleted file mode 100644
index 5ab9af9..0000000
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_email-notification-service.adoc
+++ /dev/null
@@ -1,8 +0,0 @@
-= Email Notification Service
-: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
-
-

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_email-service.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_email-service.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_email-service.adoc
deleted file mode 100644
index 6cee5ca..0000000
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_email-service.adoc
+++ /dev/null
@@ -1,8 +0,0 @@
-= Email Service
-: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
-
-

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_event-bus-service.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_event-bus-service.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_event-bus-service.adoc
deleted file mode 100644
index f1e41fc..0000000
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_event-bus-service.adoc
+++ /dev/null
@@ -1,15 +0,0 @@
-= Event Bus Service
-: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
-
-## Implementation
-
-IMPORTANT: TODO
-
-## Registration
-
-The `EventBusServiceJdo` class provides the default implementation and (as of 1.6.0+) is automatically registered using `@DomainService`.  No further configuration is necessary.
-

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_exception-recognizer.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_exception-recognizer.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_exception-recognizer.adoc
deleted file mode 100644
index 047b2aa..0000000
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_exception-recognizer.adoc
+++ /dev/null
@@ -1,8 +0,0 @@
-= Exception Recognizer
-: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
-
-

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_isis-jdo-support.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_isis-jdo-support.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_isis-jdo-support.adoc
deleted file mode 100644
index 4624841..0000000
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_isis-jdo-support.adoc
+++ /dev/null
@@ -1,129 +0,0 @@
-= Isis JDO Support
-: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/
-
-
-The `IsisJdoSupport` service provides a number of general purpose methods for working with the JDO/DataNucleus objectstore.
-
-
-== API
-
-The API provided by `IsisJdoSupport` is:
-
-[source,java]
-----
-public interface IsisJdoSupport {
-    List<Map<String, Object>> executeSql(String sql);
-    Integer executeUpdate(String sql);
-    void deleteAll(Class<?>... pcClasses);
-    <T> T refresh(T domainObject);
-    void ensureLoaded(Collection<?> collectionOfDomainObjects);
-    PersistenceManager getJdoPersistenceManager();
-}
-----
-
-Each of these methods are discussed in more details below.
-
-
-== Executing arbitrary SQL
-
-The `executeSql(...)` method allows arbitrary queries to be submitted:
-
-[source,java]
-----
-List<Map<String, Object>> results = isisJdoSupport.executeSql("select * from custMgmt.customers");
-----
-
-The result set is automatically converted into a list of maps, where the map key is the column name.
-
-
-In a similar manner, the `executeUpdate(...)` allows arbitrary updates to be performed.
-
-[source,java]
-----
-int count = isisJdoSupport.executeUpdate("select count(*) from custMgmt.customers);
-----
-
-The returned value is the number of rows updated.
-
-
-
-== Fixture support
-
-The `deleteAll(...)` method is provided pretty much exclusively for tearing down fixture data:
-
-[source,java]
-----
-deleteAll(Order.class);
-deleteAll(CustomerAddress.class);
-deleteAll(Customer.class);
-----
-
-[NOTE]
-====
-It can occasionally be the case that Isis' internal adapter for the domain object is
-still in memory.  JDO/DataNucleus seems to bump up the version of the object prior to its deletion,
-which under normal circumstances would cause Isis to throw a concurrency exception.  Therefore
-to prevent this from happening (ie to <i>force</i> the deletion of all instances), concurrency checking
-is temporarily disabled while this method is performed.
-====
-
-
-
-== Reloading entities
-
-A http://www.datanucleus.org/products/datanucleus/jdo/orm/relationships.html[known limitation] of DataNucleus' implementation of JDO is that persisting a child entity (in a 1:n bidirectional relationship) does not cause the parent's collection to be updated.
-
-The `refresh(T domainObject)` method can be used to reload the parent object (or indeed any object).
-
-For example:
-
-[source,java]
-----
-public Order newOrder(final Customer customer) {
-    Order order = newTransientInstance(Order.class);
-    order.setCustomer(customer);
-    persist(customer);
-    getContainer().flush(); // <1>
-    isisJdoSupport.refresh(customer); // <2>
-    return order;
-}
-----
-<1> flush to database
-<2> reload parent from database
-
-
-[NOTE]
-====
-The particular example that led to this method being added was a 1:m bidirectional relationship,
-analogous to `Customer <-> * Order`.  Persisting the child `Order` object did not cause
-the parent ``Customer``'s collection of orders to be updated.  In fact, JDO does not make any
-such guarantee to do so.  Options are therefore either to maintain the collection in code, or to
-refresh the parent.
-
-====
-
-
-
-
-== Using JDO `PersistenceManager` directly
-
-Apache Isis provides a simplified API on top of only supports JDO, and so does not support all of JDO's features.  For example, Isis (currently) only supports named queries.  If you require more flexibility than this, eg for dynamically constructed queries, then the service provides access to the underlying JDO `PersistenceManager` API:
-
-[source,java]
-----
-public List<Order> findOrders(...) {
-    javax.jdo.PersistenceManager pm = isisJdoSupport.getPersistenceManager();
-
-    // knock yourself out...
-
-    return someListOfOrders;
-}
-----
-
-
-
-== Registering the Service
-
-The `IsisJdoSupportImpl` class provides the default implementation and (as of 1.6.0+) is automatically registered using `@DomainService`.  No further configuration is necessary.

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_locale-provider.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_locale-provider.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_locale-provider.adoc
deleted file mode 100644
index 1e1b33a..0000000
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_locale-provider.adoc
+++ /dev/null
@@ -1,8 +0,0 @@
-= Locale Provider
-: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
-
-

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_memento-service.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_memento-service.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_memento-service.adoc
deleted file mode 100644
index 9b1f0c9..0000000
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_memento-service.adoc
+++ /dev/null
@@ -1,8 +0,0 @@
-= Memento Service
-: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
-
-

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_metamodel-service.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_metamodel-service.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_metamodel-service.adoc
deleted file mode 100644
index 4582520..0000000
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_metamodel-service.adoc
+++ /dev/null
@@ -1,8 +0,0 @@
-= Metamodel Service
-: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
-
-

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_publishing-service.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_publishing-service.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_publishing-service.adoc
deleted file mode 100644
index 5a42926..0000000
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_publishing-service.adoc
+++ /dev/null
@@ -1,11 +0,0 @@
-= Publishing Service
-: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
-
-
-== Isis Addons Implementation
-
-For 1.7.0+, see the http://github.com/isisaddons/isis-module-publishing[Isis addons' Publishing module] (non-ASF).

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_query-results-cache.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_query-results-cache.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_query-results-cache.adoc
deleted file mode 100644
index c67bcd6..0000000
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_query-results-cache.adoc
+++ /dev/null
@@ -1,8 +0,0 @@
-= Query Results Cache
-: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
-
-

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_scratch-pad.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_scratch-pad.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_scratch-pad.adoc
deleted file mode 100644
index 7eac34c..0000000
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_scratch-pad.adoc
+++ /dev/null
@@ -1,8 +0,0 @@
-= Scratch Pad
-: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
-
-

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_settings-service.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_settings-service.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_settings-service.adoc
deleted file mode 100644
index eaebcf0..0000000
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_settings-service.adoc
+++ /dev/null
@@ -1,48 +0,0 @@
-= Settings Service
-: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/
-
-[NOTE]
-====
-This service (both its API and implementation) are entirely independent of Apache Isis, being part of the http://github.com/isisaddons/isis-module-settings}[Isis addons' Settings module] (non-ASF).  The service is documented here for your convenience.
-====
-
-== Application Settings
-
-=== API
-
-IMPORTANT: TODO
-
-=== Implementation
-
-In the case of `ApplicationSettingsService`, the service is implemented by `ApplicationSettingsServiceJdo`, with the `ApplicationSetting` interface implemented by a `ApplicationSettingsJdo` entity.
-
-The service also provides the ability to create list all existing settings, create new settings (of whichever datatype), update settings, and to delete settings.
-
-These actions can be hidden using security if need be.
-
-== User Settings
-
-=== API
-
-IMPORTANT: TODO
-
-=== Implementation
-
-In the case of `UserSettingsService`, the service is implemented by `UserSettingsServiceJdo`, with the `UserSetting` interface implemented by a `UserSettingsJdo` entity.
-
-As for application settings, the user settings service also provides the ability to create list all existing settings, create new settings (of whichever datatype), update settings, and to delete settings.
-
-These actions can be hidden using security if need be.
-
-
-== Registration and Configuration
-
-The `ApplicationSettingsServiceJdo` class and `UserSettingsServiceJdo` are annotated with `@DomainService` and so are automatically registered with the framework, with actions appearing on the secondary menu bar.
-
-IMPORTANT: TODO - screenshot of settings menu
-
-All actions from the services emit domain events.  If you wish to hide/disable these default actions in your application, we recommend using up a subscriber on the actions' domain events to veto their visibility/usability.
-
-

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_translation-service.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_translation-service.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_translation-service.adoc
deleted file mode 100644
index dc365c6..0000000
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_translation-service.adoc
+++ /dev/null
@@ -1,8 +0,0 @@
-= Translation Service
-: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
-
-

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_translations-resolver.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_translations-resolver.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_translations-resolver.adoc
deleted file mode 100644
index c9ca4bd..0000000
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_translations-resolver.adoc
+++ /dev/null
@@ -1,8 +0,0 @@
-= Translations Resolver
-: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
-
-

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_user-profile-service.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_user-profile-service.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_user-profile-service.adoc
deleted file mode 100644
index 595da26..0000000
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_user-profile-service.adoc
+++ /dev/null
@@ -1,8 +0,0 @@
-= User Profile Service
-: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
-
-

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_user-registration-service.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_user-registration-service.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_user-registration-service.adoc
deleted file mode 100644
index 6c40ff1..0000000
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_user-registration-service.adoc
+++ /dev/null
@@ -1,8 +0,0 @@
-= User Registration Service
-: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
-
-

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_wrapper-factory.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_wrapper-factory.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_wrapper-factory.adoc
deleted file mode 100644
index ce960f1..0000000
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_wrapper-factory.adoc
+++ /dev/null
@@ -1,8 +0,0 @@
-= Wrapper Factory
-: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
-
-

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_xml-snapshot-service.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_xml-snapshot-service.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_xml-snapshot-service.adoc
deleted file mode 100644
index 9fa1c2c..0000000
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_xml-snapshot-service.adoc
+++ /dev/null
@@ -1,8 +0,0 @@
-= XML Snapshot Service
-: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
-
-

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods.adoc
new file mode 100644
index 0000000..f16ba7c
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods.adoc
@@ -0,0 +1,29 @@
+= Recognized Methods
+: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/
+
+
+
+include::_user-guide_reference_methods_aaa.adoc[]
+
+include::_user-guide_reference_methods_manpage_addTo.adoc[leveloffset=+1]
+include::_user-guide_reference_methods_manpage_autoComplete.adoc[leveloffset=+1]
+include::_user-guide_reference_methods_manpage_choices.adoc[leveloffset=+1]
+include::_user-guide_reference_methods_manpage_clear.adoc[leveloffset=+1]
+include::_user-guide_reference_methods_manpage_default.adoc[leveloffset=+1]
+include::_user-guide_reference_methods_manpage_disable.adoc[leveloffset=+1]
+include::_user-guide_reference_methods_manpage_get.adoc[leveloffset=+1]
+include::_user-guide_reference_methods_manpage_hide.adoc[leveloffset=+1]
+include::_user-guide_reference_methods_manpage_modify.adoc[leveloffset=+1]
+include::_user-guide_reference_methods_manpage_removeFrom.adoc[leveloffset=+1]
+include::_user-guide_reference_methods_manpage_set.adoc[leveloffset=+1]
+include::_user-guide_reference_methods_manpage_validate.adoc[leveloffset=+1]
+include::_user-guide_reference_methods_manpage_validateAddTo.adoc[leveloffset=+1]
+include::_user-guide_reference_methods_manpage_validateRemoveFrom.adoc[leveloffset=+1]
+
+
+include::_user-guide_reference_methods_manpage_cssClass.adoc[leveloffset=+1]
+include::_user-guide_reference_methods_manpage_iconName.adoc[leveloffset=+1]
+include::_user-guide_reference_methods_manpage_getId.adoc[leveloffset=+1]
+include::_user-guide_reference_methods_manpage_title.adoc[leveloffset=+1]

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_aaa.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_aaa.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_aaa.adoc
new file mode 100644
index 0000000..0c245b9
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_aaa.adoc
@@ -0,0 +1,378 @@
+//= Overview
+: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/
+
+
+== Recognized Prefixes
+
+The table below lists the method prefixes that are recognized as part of Apache Isis' default programming model.
+
+.Recognized Method Prefixes
+[cols="2,1,1,1,1,1,4a", options="header"]
+|===
+
+|Prefix
+|Object
+|Property
+|Collection
+|Action
+|Action +
+Param
+|Description
+
+|<<__code_addto_code, `addTo...()`>>
+|
+|
+|Y
+|
+|
+|add object to a collection (nb: not currently supported by Wicket viewer) +
+See also <<__code_removefrom_code, `removeFrom...()`>>`
+
+|<<__code_autocomplete_code, `autoComplete...()`>>
+|
+|Y
+|
+|
+|Y
+|Return a list of matching elements for a property or an action parameter. +
+Alternatively, can specify for a class using <<__code_domainobject_code, `@DomainObject#autoComplete`>> +
++
+See also choices
+
+|<<__code_choices_code, `choices...()`>>
+|
+|Y
+|
+|
+|Y
+|Provide list of choices for a property or action parameter
+See also <<__code_autocomplete_code, `autoComplete...()`>>.
+
+|<<__code_clear_code, `clear...()`>>
+|
+|Y
+|
+|
+|
+|Clear a property (set it to null). Allows business logic to be placed apart from the setter.
+See also <<__code_modify_code, `modify...()`>>
+
+
+|<<__code_default_code, `default...()`>>
+|
+|Y
+|
+|
+|Y
+|Default value for a property or an action parameter.
+
+|<<__code_disable_code, `disable...()`>>
+|Y
+|Y
+|Y
+|Y
+|
+|Disables (makes read-only) a property, a collection or an action.
+
+|<<__code_get_code, `get...()`>>
+|
+|Y
+|Y
+|
+|
+|Access the value of a property or collection. +
+See also <<__code_set_code, `set...()`>>.
+
+|<<__code_hide_code, `hide...()`>>
+|
+|Y
+|Y
+|Y
+|
+|Hides a property, a collection or an action.
+
+|<<__code_modify_code, `modify...()`>>
+|
+|Y
+|
+|
+|
+|Modify a property (set it to a non-null) value. Allows business logic to be placed apart from the setter. +
+See also <<__code_clear_code, `clear...()`>>`.
+
+|<<__code_removeFrom_code, `removeFrom...()`>>
+|
+|
+|Y
+|
+|
+|remove object from a collection (nb: not currently supported by Wicket viewer) +
+See also <<__code_addto_code, `addTo...()`>>`
+
+|<<__code_set_code, `set...()`>>
+|
+|Y
+|Y
+|
+|
+|Sets the value of a property or a collection.
+
+|<<__code_validate_code, `validate...()`>>
+|Y
+|
+|
+|Y
+|Y
+|Check that a proposed value of a property or an action parameter is valid. +
+See also <<__code_validateaddto_code, validateAddTo...()`>> and <<__code_validateremovefrom_code, `validateRemoveFrom...()`>> for collections.
+
+|<<__code_validateaddto_code, `validate +
+AddTo...()`>>
+|
+|Y
+|
+|
+|
+|Check that a proposed object to add to a collection is valid. +
+See also <<__code_validateremovefrom_code, `validateRemoveFrom...()`>>, and <<__code_validate_code, `validate...()`>> for properties and collections.
+
+|<<__code_validateremovefrom_code, `validate +
+RemoveFrom...()`>>
+|
+|Y
+|
+|
+|
+|Check that a proposed object to add to a collection is valid.
+See also <<__code_validateaddto_code, `validateAddTo...()`>>, and <<__code_validate_code, `validate...()`>> for properties and collections.
+
+|===
+
+
+
+== Reserved Methods
+
+
+The table below lists the reserved methods that are recognized as part of Apache Isis' default programming model.
+
+.Reserved Methods
+[cols="2,1,1,1,1,1,4a", options="header"]
+|===
+
+|Method
+|Object
+|Property
+|Collection
+|Action
+|Action +
+Param
+|Description
+
+|<<__code_cssClass_code, `cssClass()`>>
+|Y
+|
+|
+|
+|
+|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.
+See also <<__code_title_code, `title()`>> and <<__code_iconName_code, `iconName()`>>.
+
+|<<__code_iconName_code, `iconName()`>>
+|Y
+|
+|
+|
+|
+|Provides the name of the image to render, usually alongside the title, to represent the object. If not provided, then the class name is used to locate an image.
+See also <<__code_title_code, `title()`>> and <<__code_cssClass_code, `cssClass()`>>
+
+|<<__code_getId_code, `getId()`>>
+|Y
+|
+|
+|
+|
+|Provides an optional unique identifier of a service. +
+If not provided, the services fully-qualified class name is used.
+
+|<<__code_title_code, `title()`>>
+|Y
+|
+|
+|
+|
+|Provides a title for the object. +
+Alternatively, use the <<__code_title_code, <<__code_@Title`>> annotation. It is also possible to use `toString_code, `@Title`>> annotation. It is also possible to use `toString()`>>. +
+See also `iconName()` and <<__code_cssClass_code, `cssClass()`>>
+
+|<<__code_toString_code, `toString()`>>
+|Y
+|
+|
+|
+|
+|Used as the fallback title for an object if there is no <<__code_title_code, `title()`>> method or properties annotated with the <<__code_title_code, `@Title`>> annotation.
+
+
+|===
+
+
+
+
+== Lifecycle callback methods
+
+The lifecycle callback methods notify a domain entity about its interaction within the persistence lifecycle.  For example, the entity is notified immediately prior to being persisted, or when it is about to be updated.
+
+[WARNING]
+====
+We believe there may some scenarios (not yet fully catalogued) where the lifecycle method is not called.  As such we recommend that you don't rely on these methods and/or fully test they are called as required in your apps
+
+As an alternative, consider using Isis' event bus and domain events.
+====
+
+The lifecycle methods are:
+
+.Lifecycle methods (partial support)
+[cols="2,1,1,1,1,1,4a", options="header"]
+|===
+
+|Prefix
+|Object
+|Property
+|Collection
+|Action
+|Action +
+Param
+|Description
+
+|<<__code_created_code, `created()`>>
+|Y
+|
+|
+|
+|
+|Lifecycle callback for when the object has just been created using <<__code_newTransientInstance_code, `newTransientInstance()`>>
+
+|<<__code_loaded_code, `loaded()`>>
+|Y
+|
+|
+|
+|
+|Lifecycle callback for when the (persistent) object has just been loaded from the object store.
+
+|<<__code_persisted_code, `persisted()`>>
+|Y
+|
+|
+|
+|
+|Lifecycle callback for when the (persistent) object has just been persisted from the object store.
+
+|<<__code_persisting_code, `persisting()`>>
+|Y
+|
+|
+|
+|
+|Lifecycle callback for when the (persistent) object is just about to be persisted from the object store
+
+
+|<<__code_removed_code, `removed()`>>
+|Y
+|
+|
+|
+|
+|Lifecycle callback for when the (persistent) object has just been persisted from the object store
+
+|<<__code_removing_code, `removing()`>>
+|Y
+|
+|
+|
+|
+|Lifecycle callback for when the (persistent) object is just about to be deleted from the object store
+
+|<<__code_updated_code, `updated()`>>
+|Y
+|
+|
+|
+|
+|Lifecycle callback for when the (persistent) object has just been updated in the object store
+
+|<<__code_updating_code, `updating()`>>
+|Y
+|
+|
+|
+|
+|Lifecycle callback for when the (persistent) object is just about to be updated in the object store
+
+|===
+
+
+
+Some lifecycle methods have been deprecated:
+
+.Deprecated lifecycle methods
+[cols="2,1,1,1,1,1,4a", options="header"]
+|===
+Prefix
+|Object
+|Property
+|Collection
+|Action
+|Action Param
+|See also
+
+|<<__code_deleted_code, `deleted()`>>
+|Y
+|
+|
+|
+|
+|Replaced by <<__code_removed_code, `removed()`>>
+
+|<<__code_deleting_code, `deleting()`>>
+|Y
+|
+|
+|
+|
+|Replaced by removing()`
+
+|`loading`
+|Y
+|
+|
+|
+|
+|Lifecycle callback for when the (persistent) object is just about to be loaded from the object store. +
+[WARNING]
+====
+This method is never called.
+====
+
+|<<__code_saved_code, `saved()`>>
+|Y
+|
+|
+|
+|
+|Replaced by persisted()`
+
+|<<__code_saving_code, `saving()`>>
+|Y
+|
+|
+|
+|
+|Replaced by <<__code_persisting_code, `persisting()`>>
+
+|===
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_addTo.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_addTo.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_addTo.adoc
new file mode 100644
index 0000000..73a8ebb
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_addTo.adoc
@@ -0,0 +1,8 @@
+= `addTo...()`
+: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
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_autoComplete.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_autoComplete.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_autoComplete.adoc
new file mode 100644
index 0000000..1b4cfd1
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_autoComplete.adoc
@@ -0,0 +1,8 @@
+= `autoComplete...()`
+: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
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_choices.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_choices.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_choices.adoc
new file mode 100644
index 0000000..4406b14
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_choices.adoc
@@ -0,0 +1,8 @@
+= `choices...()`
+: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
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_clear.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_clear.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_clear.adoc
new file mode 100644
index 0000000..a84aafc
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_clear.adoc
@@ -0,0 +1,8 @@
+= `clear...()`
+: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
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_cssClass.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_cssClass.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_cssClass.adoc
new file mode 100644
index 0000000..1dc6a67
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_cssClass.adoc
@@ -0,0 +1,8 @@
+= `cssClass()`
+: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
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_default.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_default.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_default.adoc
new file mode 100644
index 0000000..92f1658
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_default.adoc
@@ -0,0 +1,8 @@
+= `default...()`
+: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
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_disable.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_disable.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_disable.adoc
new file mode 100644
index 0000000..b511df5
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_disable.adoc
@@ -0,0 +1,8 @@
+= `disable...()`
+: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
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_get.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_get.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_get.adoc
new file mode 100644
index 0000000..a2f9f87
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_get.adoc
@@ -0,0 +1,8 @@
+= `get...()`
+: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
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_getId.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_getId.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_getId.adoc
new file mode 100644
index 0000000..75586c0
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_getId.adoc
@@ -0,0 +1,8 @@
+= `getId()`
+: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
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_hide.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_hide.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_hide.adoc
new file mode 100644
index 0000000..8918811
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_hide.adoc
@@ -0,0 +1,8 @@
+= `hide...()`
+: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
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_iconName.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_iconName.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_iconName.adoc
new file mode 100644
index 0000000..521649e
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_iconName.adoc
@@ -0,0 +1,8 @@
+= `iconName()`
+: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
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_modify.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_modify.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_modify.adoc
new file mode 100644
index 0000000..acd087d
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_modify.adoc
@@ -0,0 +1,8 @@
+= `modify...()`
+: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
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_removeFrom.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_removeFrom.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_removeFrom.adoc
new file mode 100644
index 0000000..14411ba
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_removeFrom.adoc
@@ -0,0 +1,8 @@
+= `removeFrom...()`
+: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
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_set.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_set.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_set.adoc
new file mode 100644
index 0000000..add8f0e
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_set.adoc
@@ -0,0 +1,8 @@
+= `set...()`
+: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
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_title.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_title.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_title.adoc
new file mode 100644
index 0000000..1533a74
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_title.adoc
@@ -0,0 +1,8 @@
+= `title()`
+: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
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_validate.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_validate.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_validate.adoc
new file mode 100644
index 0000000..3135322
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_validate.adoc
@@ -0,0 +1,8 @@
+= `validate...()`
+: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
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_validateAddTo.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_validateAddTo.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_validateAddTo.adoc
new file mode 100644
index 0000000..fa98e27
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_validateAddTo.adoc
@@ -0,0 +1,8 @@
+= `validateAddTo...()`
+: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
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_validateRemoveFrom.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_validateRemoveFrom.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_validateRemoveFrom.adoc
new file mode 100644
index 0000000..0cb8353
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_validateRemoveFrom.adoc
@@ -0,0 +1,8 @@
+= `validateRemoveFrom...()`
+: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
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_recognized-methods.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_recognized-methods.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_recognized-methods.adoc
deleted file mode 100644
index ceb6a5b..0000000
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_recognized-methods.adoc
+++ /dev/null
@@ -1,8 +0,0 @@
-= Recognized Methods
-: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
-
-

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services.adoc
new file mode 100644
index 0000000..8dfe616
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services.adoc
@@ -0,0 +1,43 @@
+= Domain Services
+: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
+
+include::_user-guide_reference_services_aaa.adoc[]
+
+include::_user-guide_reference_services_action-invocation-context.adoc[leveloffset=+1]
+include::_user-guide_reference_services_auditing-service.adoc[leveloffset=+1]
+include::_user-guide_reference_services_background-command-service.adoc[leveloffset=+1]
+include::_user-guide_reference_services_background-service.adoc[leveloffset=+1]
+include::_user-guide_reference_services_bookmark-service.adoc[leveloffset=+1]
+include::_user-guide_reference_services_clock-service.adoc[leveloffset=+1]
+include::_user-guide_reference_services_command-context.adoc[leveloffset=+1]
+include::_user-guide_reference_services_command-service.adoc[leveloffset=+1]
+include::_user-guide_reference_services_content-mapping-service.adoc[leveloffset=+1]
+include::_user-guide_reference_services_content-negotiation-service.adoc[leveloffset=+1]
+include::_user-guide_reference_services_deep-link-service.adoc[leveloffset=+1]
+include::_user-guide_reference_services_domain-object-container.adoc[leveloffset=+1]
+include::_user-guide_reference_services_email-notification-service.adoc[leveloffset=+1]
+include::_user-guide_reference_services_email-service.adoc[leveloffset=+1]
+include::_user-guide_reference_services_event-bus-service.adoc[leveloffset=+1]
+include::_user-guide_reference_services_exception-recognizer.adoc[leveloffset=+1]
+include::_user-guide_reference_services_isis-jdo-support.adoc[leveloffset=+1]
+include::_user-guide_reference_services_locale-provider.adoc[leveloffset=+1]
+include::_user-guide_reference_services_memento-service.adoc[leveloffset=+1]
+include::_user-guide_reference_services_metamodel-service.adoc[leveloffset=+1]
+include::_user-guide_reference_services_publishing-service.adoc[leveloffset=+1]
+include::_user-guide_reference_services_query-results-cache.adoc[leveloffset=+1]
+include::_user-guide_reference_services_scratch-pad.adoc[leveloffset=+1]
+include::_user-guide_reference_services_settings-service.adoc[leveloffset=+1]
+include::_user-guide_reference_services_translation-service.adoc[leveloffset=+1]
+include::_user-guide_reference_services_translations-resolver.adoc[leveloffset=+1]
+include::_user-guide_reference_services_user-profile-service.adoc[leveloffset=+1]
+include::_user-guide_reference_services_user-registration-service.adoc[leveloffset=+1]
+include::_user-guide_reference_services_wrapper-factory.adoc[leveloffset=+1]
+include::_user-guide_reference_services_xml-snapshot-service.adoc[leveloffset=+1]
+
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_aaa.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_aaa.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_aaa.adoc
new file mode 100644
index 0000000..579e3ce
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_aaa.adoc
@@ -0,0 +1,223 @@
+// = Overview
+: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/
+
+
+
+.Domain Services
+[cols="2,4a,1,1", options="header"]
+|===
+
+|API
+|Impl'n +
+Maven Module
+|Impl'n +
+Class
+|Notes
+
+|`o.a.i.applib.services.audit` +
+`AuditingService3`
+|g:`o.ia.m.audit` +
+a:`isis-module-audit`
+|`AuditingService`
+|related services: `AuditingServiceContributions`, `AuditingServiceRepository`
+
+|`o.a.i.applib.services.background` +
+`BackgroundCommandService`
+|g:`o.ia.m.command` +
+a:`isis-module-command`
+|`BackgroundCommandServiceJdo`
+|related services: `BackgroundCommandServiceJdoContributions`, `BackgroundCommandServiceJdoRepository`
+
+|`o.a.i.applib.services.background` +
+`BackgroundService`
+|g:`o.a.i.core` +
+a:`isis-core-runtime`
+|`BackgroundServiceDefault`
+|Depends on: `BackgroundCommandService`
+
+|`o.a.i.applib.services.bookmark` +
+`BookmarkService`
+|g:`o.a.i.core` +
+a:`isis-core-metamodel`
+|`BookmarkServiceDefault`
+|related services: `BookmarkHolderActionContributions`, `BookmarkHolderAssociationContributions`
+
+|`o.a.i.applib.services.classdiscovery` +
+|`ClassDiscoveryService`
+|g:`o.a.i.core` +
+a:`isis-core-applib`
+|`ClassDiscoveryService` +
+`UsingReflections`
+|requires `org.reflections:reflections` as Maven dependency
+
+|`o.a.i.applib.services.clock` +
+`ClockService`
+|g:`o.a.i.core` +
+a:`isis-core-applib`
+|`ClockService`
+|API is also a concrete class.
+
+|`o.a.i.applib.services.command` +
+`CommandContext`
+|g:`o.a.i.core` +
+a:`isis-core-applib`
+|`CommandContext`
+|API is also a concrete class. +
+Depends on: `CommandService` for persistent `Command`, else in-memory impl. used
+
+|`o.a.i.applib.services.command.spi` +
+`CommandService`
+|g:`o.ia.m.command` +
+a:`isis-module-command`
+|`CommandServiceJdo`
+|related services: `CommandServiceJdoContributions`, `CommandServiceJdoRepository`
+
+|`o.a.i.applib` +
+`DomainObjectContainer`
+|g:`o.a.i.core` +
+a:`isis-core-metamodel`
+|`DomainObjectContainerDefault`
+|
+
+|`o.a.i.applib.services.userreg` +
+`EmailNotificationService`
+|g:`o.a.i.core` +
+a:`isis-core-runtime`
+|`EmailNotificationServiceDefault`
+|depends on: `EmailService`
+
+|`o.a.i.applib.services.email` +
+`EmailService`
+|g:`o.a.i.core` +
+a:`isis-core-runtime`
+|`EmailServiceDefault`
+|
+
+|`o.a.i.applib.services.eventbus` +
+`EventBusService`
+|g:`o.a.i.core` +
+a:`isis-core-objectstore-jdo-datanucleus`
+|`EventBusServiceJdo`
+|
+
+|`o.a.i.applib.services.exceprecog` +
+`ExceptionRecognizer`
+|g:`o.a.i.core` +
+a:`isis-core-applib`
+|`ExceptionRecognizerComposite` +
+`ForJdoObjectStore`
+|Extensible using composite pattern if required
+
+o.a.i.applib.fixturescripts
+FixtureScripts
+|g:`o.a.i.core`
+a:`isis-core-applib`
+|(abstract class)
+|depends on: `ClassDiscoveryService`
+
+|`o.a.i.applib.services.jdosupport` +
+`IsisJdoSupport`
+|g:`o.a.i.core` +
+a:`isis-core-objectstore-jdo-datanucleus`
+|`IsisJdoSupportImpl`
+|
+
+|`o.a.i.applib.services.memento` +
+`MementoService`
+|g:`o.a.i.core` +
+a:`isis-core-runtime`
+|`MementoServiceDefault`
+|
+
+|`o.a.i.applib.services.publish` +
+`EventSerializer`
+|g:`o.ia.m.publishing` +
+a:`isis-module-publishing`
+|`RestfulObjectsSpecEventSerializer`
+|
+
+|`o.a.i.applib.services.publish` +
+`PublishingService`
+|g:`o.ia.m.publishing` +
+a:`isis-module-publishing`
+|`PublishingService`
+|related services: `PublishingServiceContributions`, `PublishingServiceRepository`.  +
+depends on: `EventSerializer`
+
+|`o.a.i.applib.services.queryresultscache` +
+`QueryResultsCache`
+|g:`o.a.i.core` +
+a:`isis-core-applib`
+|`QueryResultsCache`
+|API is also a concrete class
+
+|`o.a.i.applib.services.scratchpad` +
+`Scratchpad`
+|g:`o.a.i.core` +
+a:`isis-core-applib`
+|`Scratchpad`
+|API is also a concrete class
+
+|`o.a.i.applib.services.userreg` +
+`UserRegistrationService`
+|g:`o.ia.m.security` +
+a:`isis-module-security`
+|`SecurityModuleAppUserRegistrationService`
+|
+
+|`o.a.i.applib.services.wrapper` +
+`WrapperFactory`
+|g:`o.a.i.core` +
+a:`isis-core-wrapper`
+|`WrapperFactoryDefault`
+|
+
+|`o.a.i.applib.services.xmlsnapshot` +
+`XmlSnapshotService`
+|g:`o.a.i.core` +
+a:`isis-core-runtime`
+|`XmlSnapshotServiceDefault`
+|
+
+|===
+
+Key:
+* `o.a.i` is an abbreviation for `org.apache.isis`
+* `o.ia.m` is an abbreviation for `org.isisaddons.module`
+
+
+All domain services are automatically registered (annotated with <<__code_domainservice_code, `@DomainService`>> except:
+
+`FixtureScripts`::
+Subclass and either annotate with `@DomainService` or register in `isis.properties`
+`ExceptionRecognizer`::
+Register in isis.properties
+
+
+.Deprecated Domain Services
+[cols="2,4a,1,1", options="header"]
+|===
+
+|API
+|Impl'n +
+Maven Module
+|Impl'n +
+Class
+|Notes
+
+|`o.a.i.applib.annotation`
+`Bulk.InteractionContext`
+|g:`o.a.i.core`
+a:`isis-core-applib`
+|`Bulk.InteractionContext`
+|Replaced by `ActionInvocationContext`
+
+
+
+|===
+
+Key:
+* `o.a.i` is an abbreviation for `org.apache.isis`
+* `o.ia.m` is an abbreviation for `org.isisaddons.module`

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_action-invocation-context.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_action-invocation-context.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_action-invocation-context.adoc
new file mode 100644
index 0000000..989d131
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_action-invocation-context.adoc
@@ -0,0 +1,8 @@
+= `ActionInvocationContext`
+: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
+
+


[2/9] isis git commit: ISIS-1133: security and runtime.

Posted by da...@apache.org.
ISIS-1133: security and runtime.


Project: http://git-wip-us.apache.org/repos/asf/isis/repo
Commit: http://git-wip-us.apache.org/repos/asf/isis/commit/b538e164
Tree: http://git-wip-us.apache.org/repos/asf/isis/tree/b538e164
Diff: http://git-wip-us.apache.org/repos/asf/isis/diff/b538e164

Branch: refs/heads/master
Commit: b538e1645bbffe43accd2465be431e433d632d3e
Parents: 18011b9
Author: Dan Haywood <da...@haywood-associates.co.uk>
Authored: Thu May 14 09:42:25 2015 +0100
Committer: Dan Haywood <da...@haywood-associates.co.uk>
Committed: Thu May 14 09:42:25 2015 +0100

----------------------------------------------------------------------
 adocs/documentation/Gemfile                     |   3 +
 adocs/documentation/Gemfile.lock                |   5 +
 adocs/documentation/monitor.rb                  |   2 +-
 .../documentation/src/main/asciidoc/index.adoc  |   2 +
 ...amodel-finetuning-the-programming-model.adoc |  81 ----
 .../_user-guide_appendices_migration-notes.adoc |  19 +
 .../_user-guide_more-advanced_i18n.adoc         | 238 +++++++++++
 .../_user-guide_runtime-configuration.adoc      |  32 --
 ..._runtime-configuration_configuring-core.adoc |  90 ----
 ...e-configuration_configuring-datanucleus.adoc |  21 -
 ...s_disabling-persistence-by-reachability.adoc |  93 ----
 ...atanucleus_eagerly-registering-entities.adoc |  43 --
 ...configuring-datanucleus_persistence-xml.adoc |   9 -
 ...tion_configuring-datanucleus_properties.adoc |  57 ---
 ...ring-datanucleus_using-jndi-data-source.adoc |  72 ----
 ...runtime-configuration_configuring-shiro.adoc | 419 -------------------
 ..._user-guide_runtime-configuration_files.adoc |  87 ----
 ...ser-guide_runtime-configuration_web-xml.adoc |  19 -
 .../user-guide/_user-guide_runtime.adoc         |  27 ++
 ..._user-guide_runtime_configuration-files.adoc |  87 ++++
 .../_user-guide_runtime_configuring-core.adoc   |  88 ++++
 ...r-guide_runtime_configuring-datanucleus.adoc |  21 +
 ...s_disabling-persistence-by-reachability.adoc |  93 ++++
 ...atanucleus_eagerly-registering-entities.adoc |  43 ++
 ...configuring-datanucleus_persistence-xml.adoc |   9 +
 ...time_configuring-datanucleus_properties.adoc |  57 +++
 ...ring-datanucleus_using-jndi-data-source.adoc |  72 ++++
 .../user-guide/_user-guide_runtime_web-xml.adoc |  19 +
 .../user-guide/_user-guide_security.adoc        |  61 +++
 ...ser-guide_security_api-for-applications.adoc |  61 +++
 ...security_configuring-isis-to-use-bypass.adoc |  13 +
 ..._security_configuring-isis-to-use-shiro.adoc |  75 ++++
 .../_user-guide_security_shiro-caching.adoc     |  40 ++
 .../_user-guide_security_shiro-ini-realm.adoc   | 132 ++++++
 ...shiro-isis-enhanced-wildcard-permission.adoc |  62 +++
 ...er-guide_security_shiro-isis-ldap-realm.adoc | 145 +++++++
 ..._shiro-isisaddons-security-module-realm.adoc |  35 ++
 .../_user-guide_security_shiro-jdbc-realm.adoc  | 113 +++++
 .../configure-isis-to-use-bypass.PNG            | Bin 0 -> 12091 bytes
 .../configure-isis-to-use-shiro.png             | Bin 0 -> 11356 bytes
 .../configure-shiro-to-use-ini-realm.PNG        | Bin 0 -> 29914 bytes
 .../configure-shiro-to-use-isis-ldap-realm.PNG  | Bin 0 -> 32310 bytes
 ...ecurity-module-realm-with-delegate-realm.PNG | Bin 0 -> 45089 bytes
 ...-to-use-isisaddons-security-module-realm.PNG | Bin 0 -> 38713 bytes
 .../configure-shiro-to-use-shiro-jdbc-realm.png | Bin 0 -> 33149 bytes
 .../security-apis-impl/security-apis-impl.pptx  | Bin 0 -> 56892 bytes
 .../main/asciidoc/user-guide/user-guide.adoc    |   5 +-
 adocs/pom.xml                                   |  58 +++
 adocs/template/document.html.erb                |   5 +
 49 files changed, 1587 insertions(+), 1026 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/isis/blob/b538e164/adocs/documentation/Gemfile
----------------------------------------------------------------------
diff --git a/adocs/documentation/Gemfile b/adocs/documentation/Gemfile
index 7723995..5ea2ea7 100644
--- a/adocs/documentation/Gemfile
+++ b/adocs/documentation/Gemfile
@@ -9,6 +9,9 @@ gem 'wdm', '>= 0.1.0' if Gem.win_platform?
 gem 'listen', '~> 2.7' # this prevents upgrading to 3.x
 gem 'asciidoctor'
 
+#gem 'asciidoctor-diagram', '~> 1.2.0.pre
+gem 'asciidoctor-diagram', '~> 1.2.1'
+
 gem 'tilt'
 gem 'thread_safe'
 gem 'coderay'

http://git-wip-us.apache.org/repos/asf/isis/blob/b538e164/adocs/documentation/Gemfile.lock
----------------------------------------------------------------------
diff --git a/adocs/documentation/Gemfile.lock b/adocs/documentation/Gemfile.lock
index 7af60f8..6a495d9 100644
--- a/adocs/documentation/Gemfile.lock
+++ b/adocs/documentation/Gemfile.lock
@@ -3,6 +3,9 @@ GEM
   specs:
     addressable (2.3.8)
     asciidoctor (1.5.2)
+    asciidoctor-diagram (1.2.1)
+      asciidoctor (~> 1.5.0)
+      rjb (~> 1.4.8)
     celluloid (0.16.0)
       timers (~> 4.0.0)
     coderay (1.1.0)
@@ -17,6 +20,7 @@ GEM
     rb-fsevent (0.9.4)
     rb-inotify (0.9.5)
       ffi (>= 0.5.0)
+    rjb (1.4.9)
     slop (4.1.0)
     thread_safe (0.3.5)
     tilt (2.0.1)
@@ -30,6 +34,7 @@ PLATFORMS
 
 DEPENDENCIES
   asciidoctor
+  asciidoctor-diagram (~> 1.2.1)
   coderay
   launchy (~> 2.4.3)
   listen (~> 2.7)

http://git-wip-us.apache.org/repos/asf/isis/blob/b538e164/adocs/documentation/monitor.rb
----------------------------------------------------------------------
diff --git a/adocs/documentation/monitor.rb b/adocs/documentation/monitor.rb
index 2fe1639..1f00861 100644
--- a/adocs/documentation/monitor.rb
+++ b/adocs/documentation/monitor.rb
@@ -80,7 +80,7 @@ def process(file,srcBasePath,targetBasePath,templateDir,i,priming)
 
         unless regenerate == "" then
 
-            cmd = "asciidoctor #{regenerate} --backend html --eruby erb --template-dir '#{templateDir}' --destination-dir='#{targetRelDir}' -a imagesdir='' -a toc=right -a icons=font -a source-highlighter=coderay"
+            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"
 
             unless priming then
                 puts ""

http://git-wip-us.apache.org/repos/asf/isis/blob/b538e164/adocs/documentation/src/main/asciidoc/index.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/index.adoc b/adocs/documentation/src/main/asciidoc/index.adoc
index aba4aa8..3b324d1 100644
--- a/adocs/documentation/src/main/asciidoc/index.adoc
+++ b/adocs/documentation/src/main/asciidoc/index.adoc
@@ -23,3 +23,5 @@ Finding your way around:
 * User Guide
 ** link:user-guide/user-guide.html[User Guide]
 
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/b538e164/adocs/documentation/src/main/asciidoc/user-guide/_/metamodel-finetuning-the-programming-model.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_/metamodel-finetuning-the-programming-model.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_/metamodel-finetuning-the-programming-model.adoc
deleted file mode 100644
index b40fe1c..0000000
--- a/adocs/documentation/src/main/asciidoc/user-guide/_/metamodel-finetuning-the-programming-model.adoc
+++ /dev/null
@@ -1,81 +0,0 @@
-Title: Fine-tuning the Programming Model
-
-== Core MetaModel
-
-The core metamodel defines APIs and implementations for building the Isis metamodel: a description of the set of entities, domain services and values that make up the domain model.
-
-The description of each domain class consists of a number of elements:
-
-* https://github.com/apache/isis/blob/master/core/metamodel/src/main/java/org/apache/isis/core/metamodel/spec/ObjectSpecification.java[ObjectSpecification]
-
-Analogous to `java.lang.Class`; holds information about the class itself and holds collections of each of the three types of class' members (below);
-
-* https://github.com/apache/isis/blob/master/core/metamodel/src/main/java/org/apache/isis/core/metamodel/spec/feature/OneToOneAssociation.java[OneToOneAssociation]
-
-Represents a class member that is a single-valued property of the class. The property's type is either a reference to another entity, or is a value type.
-
-* https://github.com/apache/isis/blob/master/core/metamodel/src/main/java/org/apache/isis/core/metamodel/spec/feature/OneToManyAssociation.java[OneToManyAssociation]
-
-Represents a class member that is a collection of references to other entities. Note that Isis does not currently support collections of values.
-
-* https://github.com/apache/isis/blob/master/core/metamodel/src/main/java/org/apache/isis/core/metamodel/spec/feature/ObjectAction.java[ObjectAction]
-
-Represents a class member that is an operation that can be performed on the action. Returns either a single value, a collection of entities, or is `void`.
-
-The metamodel is built up through the https://github.com/apache/isis/blob/master/core/metamodel/src/main/java/org/apache/isis/core/metamodel/progmodel/ProgrammingModel.java[ProgrammingModel], which defines an API for registering a set of https://github.com/apache/isis/blob/master/core/metamodel/src/main/java/org/apache/isis/core/metamodel/facets/FacetFactory.java[FacetFactory]s. Two special `FacetFactory` implementations - https://github.com/apache/isis/blob/master/core/metamodel/src/main/java/org/apache/isis/core/metamodel/facets/properties/accessor/PropertyAccessorFacetViaAccessorFactory.java[PropertyAccessorFacetFactory] and https://github.com/apache/isis/blob/master/core/metamodel/src/main/java/org/apache/isis/core/metamodel/facets/collections/accessor/CollectionAccessorFacetViaAccessorFactory.java[CollectionAccessorFacetFactory] - are used to identify the class members. Pretty much all the other `FacetFactory`s are responsible for installing https://github.com/apache/isis/blob/
 master/core/metamodel/src/main/java/org/apache/isis/core/metamodel/facetapi/Facet.java[Facet]s onto the metamodel elements. There are many many such `Facet`s, and are used to do such things get values from properties or collections, modify properties or collections, invoke action, hide or disable class members, provide UI hints for class members, and so on. In short, the `FacetFactory`s registered defines the Isis programming conventions.
-
-== Modifying the Programming Model
-
-The default implementation of `ProgrammingModel` is https://github.com/apache/isis/blob/master/core/metamodel/src/main/java/org/apache/isis/progmodels/dflt/ProgrammingModelFacetsJava5.java[ProgrammingModelFacetsJava5], which registers a large number of `FacetFactory`s. 
-
-By editing `isis.properties` you can modify the programming conventions either by (a) using the default programming model, but tweaking it to include new `FacetFactory`s or exclude existing, or (b) by specifying a completely different programming model implementation.
-
-Let's see how this is done.
-
-=== Fine-tuning the existing programming model
-
-Suppose that you wanted to completely remove support for the (already deprecated) `@ActionOrder` annotation. This would be done using:
-
-[source]
-----
-isis.reflector.facets.exclude=org.apache.isis.core.metamodel.facets.object.actionorder.annotation.ActionOrderFacetAnnotationFactory
-----
-
-Or, suppose you wanted to use the example https://github.com/apache/isis/blob/master/mothballed/misc/metamodel/namefile/src/main/java/org/apache/isis/example/metamodel/namefile/facets/NameFileFacetFactory.java["namefile"] `FacetFactory` as part of your programming conventions, use:
-
-[source]
-----
-isis.reflector.facets.include=org.apache.isis.example.metamodel.namefile.facets.NameFileFacetFactory
-----
-
-To include/exclude more than one `FacetFactory`, specify as a comma-separated list. And if you want to dig into this in more detail, the code that implements this logic is https://github.com/apache/isis/blob/master/core/metamodel/src/main/java/org/apache/isis/progmodels/dflt/JavaReflectorInstallerNoDecorators.java[JavaReflectorInstallerNoDecorators].
-
-=== Example
-
-This http://isis.markmail.org/thread/472c3mrvcgnripst[thread] from the users mailing list (in Apr 2014) shows a typical customization (to enable per-instance security).
-
-== Specifying a different LayoutMetadataReader
-
-While all facets can be specified using annotations, the facets that provide hints for the user interface can also be specified from a corresponding `.layout.json` file, described in more detail link:../components/viewers/wicket/dynamic-layouts.html[here]. It is the role of a `LayoutMetadataReader` to read/parse such a file and create the appropriate facets.
-
-In the case of the `.layout.json` file, the implementation used in `LayoutMetadataReaderFromJson`. This is also the default implementation. However, an alternative implementation can be specified using:
-
-[source]
-----
-isis.reflector.layoutMetadataReaders=org.apache.isis.core.metamodel.layoutmetadata.json.LayoutMetadataReaderFromJson
-----
-
-As of 1.8.0 there is only one implementation provided, but we anticipate other implementations in future releases.
-
-== Specifying a new programming model
-
-To specify a completely new programming model, you'll first need an implementation of `ProgrammingModel`. One option is to subclass from `ProgammingModelFacetsJava5`; in your subclass you could remove any `FacetFactory`s that you wanted to exclude, as well as registering your own implementations.
-
-To tell Isis to use your new programming model, use (something like):
-
-[source]
-----
-isis.reflector.facets=com.mycompany.myapp.isis.IsisProgrammingModel
-----
-
-Again, the code that implements this logic is https://github.com/apache/isis/blob/master/core/metamodel/src/main/java/org/apache/isis/progmodels/dflt/JavaReflectorInstallerNoDecorators.java[JavaReflectorInstallerNoDecorators].
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/isis/blob/b538e164/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_appendices_migration-notes.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_appendices_migration-notes.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_appendices_migration-notes.adoc
index ae537a0..10aa1d2 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_appendices_migration-notes.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_appendices_migration-notes.adoc
@@ -301,3 +301,22 @@ We also recommend that you add the `maven-enforcer-plugin` (if not used already)
     </executions>
 </plugin>
 ----
+
+
+== Migrating from v1.7.0 to 1.8.0
+
+Existing projects written against v1.7.0 should run against v1.8.0 without any changes.  In particular (unlike 1.6.0 and
+ 1.7.0) there should be no need to update `pom.xml` files of existing projects.  If you *do* encounter any difficulties
+then let us know via the [users mailing list](../../support.html), so we can support you and document issues here.
+
+That said, many of the existing annotations have been deprecated in 1.8.0, replaced with a simplified and rationalized
+ set of annotations; see [here](../../reference/recognized-annotations/about.html).  To help you migrate your application
+ over to the new annotations, there is a new configuration property that can be set in `isis.properties`:
+
+    isis.reflector.validator.allowDeprecated=false
+
+If this flag is present and set to false, then metamodel validation errors will be thrown on startup if any deprecated
+annotations are encountered.  These can be viewed either in the console or by browsing to the app (an error page will
+be displayed).
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/b538e164/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_more-advanced_i18n.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_more-advanced_i18n.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_more-advanced_i18n.adoc
index 4e5aef1..02327d7 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_more-advanced_i18n.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_more-advanced_i18n.adoc
@@ -362,3 +362,241 @@ This allows a translator to edit the appropriate `translations-xx-XX.po` file an
 
 
 
+
+== Migrating from v1.6.0 to 1.7.0
+
+In v1.7.0 we've continued the work started in link:migrating-to-1.6.0.html[1.6.0] in modularizing the framework. The most important change to note is that all Isis core modules (with the Maven `groupId` of `org.apache.isis.module` have now MOVED to [http://www.isisaddons.org](Isis Addons).
+
+In addition, we've retired some obsolete (and unused) functionality, specifically the `ProfileStore` component.
+
+To move up amounts to changing POM files and, where required, updating package names for any referenced modules.
+
+=== Reorganized 'modules'
+
+The following modules are no longer released as part of Isis core and have moved to Isis Addons (or in one case, back into Isis core).
+
+Minor changes are required to `pom.xml` files and (in some cases) to `isis.properties` config file.
+
+In one or two exceptional cases it may be necessary to fix up import statements if there are reference to changed package/class names in code (most likely any dependency on the `devutils` module or `settings` module).
+
+==== Audit module
+
+In `pom.xml`, replace:
+
+[source,xml]
+----
+<dependency>
+    <groupId>org.apache.isis.module</groupId>
+    <artifactId>isis-module-audit-jdo</artifactId>
+</dependency>
+----
+
+with:
+
+[source,xml]
+----
+<dependency>
+    <groupId>org.isisaddons.module.audit</groupId>
+    <artifactId>isis-module-audit-dom</artifactId>
+</dependency>
+----
+
+If necessary, also update any services registered in `isis.properties` (package/class names may have changed slightly).
+
+==== Command module
+
+In `pom.xml`, replace:
+
+[source,xml]
+----
+<dependency>
+    <groupId>org.apache.isis.module</groupId>
+    <artifactId>isis-module-command-jdo</artifactId>
+</dependency>
+----
+
+with:
+
+[source,xml]
+----
+<dependency>
+    <groupId>org.isisaddons.module.command</groupId>
+    <artifactId>isis-module-command-dom</artifactId>
+</dependency>
+----
+
+If necessary, also update any services registered in `isis.properties` (package/class names may have changed slightly).
+
+==== DevUtils module
+
+In `pom.xml`, replace:
+
+[source,xml]
+----
+<dependency>
+    <groupId>org.apache.isis.module</groupId>
+    <artifactId>isis-module-devutils-applib</artifactId>
+</dependency>
+----
+
+with:
+
+[source,xml]
+----
+<dependency>
+    <groupId>org.isisaddons.module.devutils</groupId>
+    <artifactId>isis-module-devutils-dom</artifactId>
+</dependency>
+----
+
+Remove any references to:
+
+[source,xml]
+----
+<dependency>
+    <groupId>org.apache.isis.module</groupId>
+    <artifactId>isis-module-devutils</artifactId>
+</dependency>
+----
+
+or to:
+
+[source,xml]
+----
+<dependency>
+    <groupId>org.apache.isis.module</groupId>
+    <artifactId>isis-module-devutils-impl</artifactId>
+</dependency>
+----
+
+These modules are no longer required (the `org.apache.isis.module:isis-module-devutils-applib`
+and `org.apache.isis.module:isis-module-devutils-impl` submodules have been combined
+into the new `org.isisaddons.module.devutils:isis-module-devutils-dom` module).
+
+If necessary, also update any services registered in `isis.properties` (package/class names may have changed slightly).
+
+==== Publishing module
+
+In `pom.xml`, replace:
+
+[source,xml]
+----
+<dependency>
+    <groupId>org.apache.isis.module</groupId>
+    <artifactId>isis-module-publishing-jdo</artifactId>
+</dependency>
+----
+
+with:
+
+[source,xml]
+----
+<dependency>
+    <groupId>org.isisaddons.module.publishing</groupId>
+    <artifactId>isis-module-publishing-dom</artifactId>
+</dependency>
+----
+
+If necessary, also update any services registered in `isis.properties` (package/class names may have changed slightly).
+
+==== Publishing Event Serializer RO module
+
+Remove any references to:
+
+[source,xml]
+----
+<dependency>
+    <groupId>org.apache.isis.module</groupId>
+    <artifactId>isis-module-publishingeventserializer-ro</artifactId>
+</dependency>
+----
+
+This module has been merged with `org.isisaddons.module.publishing:isis-module-publishing-dom`, above.
+
+==== Settings module
+
+In `pom.xml`, replace:
+
+[source,xml]
+----
+<dependency>
+    <groupId>org.apache.isis.module</groupId>
+    <artifactId>isis-module-settings-applib</artifactId>
+</dependency>
+----
+
+with:
+
+[source,xml]
+----
+<dependency>
+    <groupId>org.isisaddons.module.settings</groupId>
+    <artifactId>isis-module-settings-dom</artifactId>
+</dependency>
+----
+
+Remove any references to:
+
+[source,xml]
+----
+<dependency>
+    <groupId>org.apache.isis.module</groupId>
+    <artifactId>isis-module-settings</artifactId>
+</dependency>
+----
+
+or to:
+
+[source,xml]
+----
+<dependency>
+    <groupId>org.apache.isis.module</groupId>
+    <artifactId>isis-module-settings-impl</artifactId>
+</dependency>
+----
+
+These modules are no longer required (the `org.apache.isis.module:isis-module-settings-applib`
+and `org.apache.isis.module:isis-module-settings-impl` submodules have been combined
+into the new `org.isisaddons.module.settings:isis-module-settings-dom` module).
+
+If necessary, also update any services registered in `isis.properties` (package/class names may have changed slightly).
+
+==== Background module
+
+In `pom.xml`, remove:
+
+[source,xml]
+----
+<dependency>
+    <groupId>org.apache.isis.module</groupId>
+    <artifactId>isis-module-background</artifactId>
+</dependency>
+----
+
+The service classes have been moved into existing `org.apache.isis.core:isis-core-runtime` Maven module (that is, already be referenced in the `pom.xml`).
+
+If necessary, also update any services registered in `isis.properties` (package/class names may have changed slightly).
+
+=== Retired `ProfileStore` component
+
+As per <a href='https://issues.apache.org/jira/browse/ISIS-802'>ISIS-802</a>, the ProfileStore component has been removed. This functionality was not surfaced or available in the Wicket or Restful Objects viewers, so there is no meaningful loss of functionality. However, Maven `pom.xml` files will require updating:
+
+Specifically, remove any dependencies on `org.apache.isis:isis-core-profilestore`:
+
+[source]
+----
+<dependency>
+    <groupId>org.apache.isis.core</groupId>
+    <artifactId>isis-core-profilestore</artifactId>
+</dependency>
+----
+
+A number of corresponding classes/interfaces have also been removed from the Isis applib:
+
+* `org.apache.isis.applib.fixtures.userprofile.UserProfileService`
+* `org.apache.isis.applib.fixtures.userprofile.UserProfileServiceAware`
+* `org.apache.isis.applib.fixtures.UserProfileFixture`
+* `org.apache.isis.applib.profiles.Profile`
+* `org.apache.isis.applib.profiles.Perspective`
+
+It is highly unlikely that any existing production code references these classes.
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/isis/blob/b538e164/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime-configuration.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime-configuration.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime-configuration.adoc
deleted file mode 100644
index b7a4e45..0000000
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime-configuration.adoc
+++ /dev/null
@@ -1,32 +0,0 @@
-= Runtime Configuration
-: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/
-
-
-Isis' own configuration properties are simple key-value pairs, typically held in the `WEBINF/isis.properties` file and other related files.  This chapter describes how to configure an Apache Isis application.
-
-[NOTE]
-====
-Configuration properties for the viewers can be found in the <<Wicket Viewer>> chapter and the <<Restful Objects Viewer>> chapter.
-====
-
-[TIP]
-====
-The configuration values are "baked" into the WAR file.  Details on how to override these configuration properties externally for different environments can be found in the <<Deployment>> chapter.
-====
-
-include::_user-guide_runtime-configuration_files.adoc[leveloffset=+1]
-
-include::_user-guide_runtime-configuration_configuring-core.adoc[leveloffset=+1]
-
-include::_user-guide_runtime-configuration_web-xml.adoc[leveloffset=+1]
-
-include::_user-guide_runtime-configuration_configuring-shiro.adoc[leveloffset=+1]
-
-include::_user-guide_runtime-configuration_configuring-datanucleus.adoc[leveloffset=+1]
-
-
-
-
-

http://git-wip-us.apache.org/repos/asf/isis/blob/b538e164/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime-configuration_configuring-core.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime-configuration_configuring-core.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime-configuration_configuring-core.adoc
deleted file mode 100644
index 8f16943..0000000
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime-configuration_configuring-core.adoc
+++ /dev/null
@@ -1,90 +0,0 @@
-= Configuring Core
-: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/
-
-This section lists the core/runtime configuration properties recognized by Apache Isis.
-
-Configuration properties for the JDO/DataNucleus objectstore can be found in the <<_configuring_datanucleus, Configuring DataNucleus>> section elsewhere in this chapter.
-
-Configuration properties for the viewers can be found in the <<Wicket Viewer>> chapter and the <<Restful Objects Viewer>> chapter.
-
-IMPORTANT: WIP...
-
-.Core Configuration Properties
-[cols="2a,1,3a", options="header"]
-|===
-|Property
-|Value +
-(_default value_)
-|Description
-
-|`isis.services`
-|`FQCN`,`FQCN2`,...
-|Fully qualified class names of classes to be instantiated as domain services.  Each entry can be optionally prefixed by "n:" specifying the relative order on the menu (corresponds to `@DomainServiceLayout#menuOrder()`).
-
-|`isis.services.` +
-`container.disableAutoFlush`
-| `true`,`false` (`_false_`)
-|Whether the `DomainObjectContainer` should automatically flush pending changes prior to querying (via `allMatches()`, `firstMatch()` and so on).
-
-|`isis.services.` +
-`translation.po.mode`
-| `read`,`write`
-|Whether to force the `TranslationService` into either read or write mode. +
-See <<_i18n, i18n support>> to learn more about the translation service.
-
-|`isis.persistor.` +
-`disableConcurrencyChecking`
-| `true`,`false` (`_false_`)
-| Disables concurrency checking globally.  Only intended for "emergency use" as a workaround while pending fix/patch to Isis itself.  (Note that there is no "datanucleus" in the property).
-
-|`isis.reflector.facet.` +
-`cssClassFa.patterns`
-|regex:fa-icon,regex2:fa-icon2,...
-|Comma separated list of key:value pairs, where the key is a regex matching action names (eg `create.*`) and the value is a link:fortawesome.github.io/Font-Awesome/icons/[font-awesome] icon name (eg `fa-plus`) to be applied (as per `@CssClassFa()`) to all action members matching the regex. +
-See <<_user-guide_how-tos_ui-hints_action-icons-and-css, UI hints>> for more details.
-
-|`isis.reflector.facet.` +
-`cssClass.patterns`
-|regex:css1,regex2:css2,...
-|Comma separated list of key:value pairs, where the key is a regex matching action names (eg `delete.*`) and the value is a link:http://getbootstrap.com/css/[Bootstrap] CSS button class (eg `btn-warning) to be applied (as per `@CssClass()`) to all action members matching the regex. +
-See <<_user-guide_how-tos_ui-hints_action-icons-and-css, UI hints>> for more details.
-
-|`isis.reflector.facets`
-|`FQCN`
-|Fully qualified class names of a custom implementation of `ProgrammingModel` interface.
-See <<_finetuning, finetuning the programming model>> for more details.
-
-|`isis.reflector.facets.` +
-`include`
-|`FQCN`,`FQCN2`,...
-|Fully qualified class names of (new, custom) facet factory classes to be included to the programming model. +
-See <<_finetuning, finetuning the programming model>> for more details.
-
-|`isis.reflector.facets.` +
-`exclude`
-|`FQCN`,`FQCN2`,...
-|Fully qualified class names of (existing, built-in) facet factory classes to be included to the programming model. +
-See <<_finetuning, finetuning the programming model>> for more details.
-
-|`isis.reflector.validator`
-|`FQCN`
-|Custom implementation of `MetaModelValidator` (in the `org.apache.isis.core.metamodel.specloader.validator` package) +
-See <<_custom_validator, Custom Validator>> to learn more.
-
-|`isis.reflector.validator.` +
-`allowDeprecated`
-| `true`,`false` (`_true_`)
-| Whether deprecated annotations or naming conventions are tolerated or not.  If not, then a metamodel validation error will be triggered, meaning the app won't boot (fail-fast).
-
-|`isis.reflector.` +
-`layoutMetadataReaders`
-|`FQCN`,`FQCN2`,...
-|Fully qualified class names of classes to be instantiated to read layout metadata, as used in for <<_dynamic_object_layout, dynamic layout>>s. +
-See <<_layout_metadata_reader, Layout Metadata Reader>> for more information.
-
-|===
-
-
-

http://git-wip-us.apache.org/repos/asf/isis/blob/b538e164/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime-configuration_configuring-datanucleus.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime-configuration_configuring-datanucleus.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime-configuration_configuring-datanucleus.adoc
deleted file mode 100644
index e1ea34f..0000000
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime-configuration_configuring-datanucleus.adoc
+++ /dev/null
@@ -1,21 +0,0 @@
-= Configuring DataNucleus
-: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/
-
-Apache Isis programmatically configures DataNucleus; any Isis properties with the prefix `isis.persistor.datanucleus.impl` are passed through directly to the JDO/DataNucleus objectstore (with the prefix stripped off, of course).
-
-DataNucleus will for itself also and read the `META-INF/persistence.xml`; at a minimum this defines the name of the "persistence unit".  n theory it could also hold mappings, though in Isis we tend to use annotations instead.
-
-Furthermore, DataNucleus will search for various other XML mapping files, eg `mappings.jdo`.  A full list can be found http://www.datanucleus.org/products/datanucleus/jdo/metadata.html[here].  The metadata in these XML can be used to override the annotations of annotated entities; see <<_overriding_jdo_annotations, Overriding JDO Annotatons>> for further discussion.
-
-
-include::_user-guide_runtime-configuration_configuring-datanucleus_properties.adoc[leveloffset=+1]
-
-include::_user-guide_runtime-configuration_configuring-datanucleus_persistence-xml.adoc[leveloffset=+1]
-
-include::_user-guide_runtime-configuration_configuring-datanucleus_eagerly-registering-entities.adoc[leveloffset=+1]
-
-include::_user-guide_runtime-configuration_configuring-datanucleus_disabling-persistence-by-reachability.adoc[leveloffset=+1]
-
-include::_user-guide_runtime-configuration_configuring-datanucleus_using-jndi-data-source.adoc[leveloffset=+1]

http://git-wip-us.apache.org/repos/asf/isis/blob/b538e164/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime-configuration_configuring-datanucleus_disabling-persistence-by-reachability.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime-configuration_configuring-datanucleus_disabling-persistence-by-reachability.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime-configuration_configuring-datanucleus_disabling-persistence-by-reachability.adoc
deleted file mode 100644
index 5c0b109..0000000
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime-configuration_configuring-datanucleus_disabling-persistence-by-reachability.adoc
+++ /dev/null
@@ -1,93 +0,0 @@
-= Disabling Persistence by Reachability
-: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/
-
-By default, JDO/DataNucleus supports the concept of http://www.datanucleus.org/products/datanucleus/jdo/orm/cascading.html[persistence-by-reachability]. That is, if
-a non-persistent entity is associated with an already-persistent entity, then DataNucleus will detect this and will automatically persist the associated object. Put another way: there is no need to call Isis' `DomainObjectContainer#persist(.)` or `DomainObjectContainer#persistIfNotAlready(.)` methods.
-
-However, convenient though this feature is, you may find that it causes performance issues.
-
-[WARNING]
-====
-DataNucleus' persistence-by-reachability may cause performance issues.  We strongly recommend that you disable it.
-====
-
-One scenario in particular where this performance issues can arise is if your entities implement the `java.lang.Comparable` interface, and you have used Isis' link:../../../reference/Utility.html[ObjectContracts] utility. The issue here is that `ObjectContracts` implementation can cause DataNucleus to recursively rehydrate a larger number of associated entities. (More detail below).
-
-We therefore recommend that you disable persistence-by-reachability by adding the following to `persistor_datanucleus.properties`:
-
-[source,ini]
-----
-isis.persistor.datanucleus.impl.datanucleus.persistenceByReachabilityAtCommit=false
-----
-
-This change has been made to the <<_simpleapp_archetype, SimpleApp Archetype>>
-
-If you do disable this feature, then you will (of course) need to ensure that you explicitly persist all entities using the `DomainObjectContainer#persist(.)` or `DomainObjectContainer#persistIfNotAlready(.)` methods.
-
-== Explanation of the issue in more detail
-
-Consider the entities:
-
-image::{_imagesdir}reference/configuration-properties/datanucleus-objectstore/party-agreementrole-agreement.png[width="750px"]
-
-
-[TIP]
-====
-[source]
-.DSL (http://yuml.me/edit/b8681268[yuml.me/b8681268])
-----
-[Party|reference]<--->*[AgreementRole|startDate]
-[AgreementRole]*<-->[Agreement|reference]
-----
-====
-
-
-In the course of a transaction, the `Agreement` entity is loaded into memory (not necessarily modified), and then new ``AgreementRole``s are associated to it.
-
-All these entities implement `Comparable` using `ObjectContracts`, and the implementation of ``AgreementRole``'s (simplified) is:
-
-[source,java]
-----
-public class AgreementRole {
-    ...
-    public int compareTo(AgreementRole other) {
-        return ObjectContracts.compareTo(this, other, "agreement","startDate","party");
-    }
-}
-----
-
-while ``Agreement``'s is implemented as:
-
-[source,java]
-----
-public class Agreement {
-    ...
-    public int compareTo(Agreement other) {
-        return ObjectContracts.compareTo(this, other, "reference");
-    }
-}
-----
-
-and ``Party``'s is similarly implemented as:
-
-[source,java]
-----
-public class Party {
-    ...
-    public int compareTo(Party other) {
-        return ObjectContracts.compareTo(this, other, "reference");
-    }
-}
-----
-
-DataNucleus's persistence-by-reachability algorithm adds the `AgreementRole` instances into a `SortedSet`, which causes `AgreementRole#compareTo()` to fire:
-
-* the evaluation of the "agreement" property delegates back to the `Agreement`, whose own `Agreement#compareTo()` uses the scalar `reference` property. As the `Agreement` is already in-memory, this does not trigger any further database queries
-
-* the evaluation of the "startDate" property is just a scalar property of the `AgreementRole`, so will already in-memory
-
-* the evaluation of the "party" property delegates back to the `Party`, whose own `Party#compareTo()` requires the uses the scalar `reference` property. However, since the `Party` is not yet in-memory, using the `reference` property triggers a database query to "rehydrate" the `Party` instance.
-
-In other words, in figuring out whether `AgreementRole` requires the persistence-by-reachability algorithm to run, it causes the adjacent associated entity `Party` to also be retrieved.
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/isis/blob/b538e164/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime-configuration_configuring-datanucleus_eagerly-registering-entities.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime-configuration_configuring-datanucleus_eagerly-registering-entities.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime-configuration_configuring-datanucleus_eagerly-registering-entities.adoc
deleted file mode 100644
index 3748ac3..0000000
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime-configuration_configuring-datanucleus_eagerly-registering-entities.adoc
+++ /dev/null
@@ -1,43 +0,0 @@
-= Eagerly Registering Entity Types
-: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/
-
-[WARNING]
-====
-From 1.6.0+ this feature may be (partly?) broken; see https://issues.apache.org/jira/browse/ISIS-847[ISIS-847].
-====
-
-Both Apache Isis and DataNucleus have their own metamodels of the domain entities. Isis builds its metamodel by walking the graph of types from the services registered using `@DomainService` or explicitly registered in `isis.properties`. The JDO objectstore then takes these types and registers them with DataNucleus.
-
-In some cases, though, not every entity type is discoverable from the API of the service actions. This is especially the case if you have lots of subtypes (where the action method specifies only the supertype). In such cases the Isis and JDO metamodels is built lazily, when an instance of that (sub)type is first encountered.
-
-Isis is quite happy for the metamodel to be lazily created, and - to be fair - DataNucleus also works well in most cases. In some cases, though, we have found that the JDBC driver (eg HSQLDB) will deadlock if DataNucleus tries to submit some DDL (for a lazily discovered type) intermingled with DML (for updating).
-
-In any case, it's probably not good practice to have DataNucleus work this way. The `RegisterEntities` service can therefore be registered in order to do the eager registration. It searches for all `@PersistenceCapable` entities under specified package(s), and registers them all.
-
-
-== Specify the Package Prefix(es)
-
-In the `persistor_datanucleus.properties`, specify the package prefix(es) of your application, to provide a hint for finding the `@PersistenceCapable` classes.
-
-The value of this property can be a comma-separated list (if there is more than one package or Maven module that holds persistable entities).
-
-
-== Integration Testing
-
-The `IsisConfigurationForJdoIntegTests`, recommended for use in <<_integration_testing, Integration Testing>> provides the `#addRegisterEntitiesPackagePrefix()` method to set up this configuration property:
-
-[source,java]
-.Integration test bootstrapping
-----
-private static class SimpleAppSystemBuilder extends IsisSystemForTest.Builder {
-    ...
-    private static IsisConfiguration testConfiguration() {
-        final IsisConfigurationForJdoIntegTests testConfiguration = new IsisConfigurationForJdoIntegTests();
-        testConfiguration.addRegisterEntitiesPackagePrefix("domainapp.dom.modules"); // <1>
-        return testConfiguration;
-    }
-}
-----
-<1> specify the package prefix(es) for integration testing.

http://git-wip-us.apache.org/repos/asf/isis/blob/b538e164/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime-configuration_configuring-datanucleus_persistence-xml.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime-configuration_configuring-datanucleus_persistence-xml.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime-configuration_configuring-datanucleus_persistence-xml.adoc
deleted file mode 100644
index 7933b17..0000000
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime-configuration_configuring-datanucleus_persistence-xml.adoc
+++ /dev/null
@@ -1,9 +0,0 @@
-= `persistence.xml`
-: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
-
-

http://git-wip-us.apache.org/repos/asf/isis/blob/b538e164/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime-configuration_configuring-datanucleus_properties.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime-configuration_configuring-datanucleus_properties.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime-configuration_configuring-datanucleus_properties.adoc
deleted file mode 100644
index a76fa6a..0000000
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime-configuration_configuring-datanucleus_properties.adoc
+++ /dev/null
@@ -1,57 +0,0 @@
-= Configuration Properties
-: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: WIP...
-
-These configuration properties are typically stored in `WEB-INF/persistor_datanucleus.properties`.  However, you can place all configuration properties into `WEB-INF/isis.properties` if you wish (the configuration properties from all config files are merged together).
-
-== Configuration Properties for Apache Isis itself
-
-
-.JDO/DataNucleus Objectstore Configuration Properties
-[cols="2a,1,3a", options="header"]
-|===
-|Property
-|Value +
-(_default value_)
-|Description
-
-|`isis.persistor.datanucleus.` +
-`RegisterEntities.packagePrefix`
-| fully qualified package names (CSV)
-| of class names; specifies the entities early rather than allow DataNucleus to find the entities lazily.  Strongly recommended (subtle issues can sometimes arise if lazy discovery is used).
-Further <<_registering_entity_types, discussion below>>.
-
-|`isis.persistor.datanucleus.` +
-`PublishingService.serializedForm`
-| zipped
-|
-
-|===
-
-
-
-== Configuration Properties passed through directly to DataNucleus.
-
-.JDO/DataNucleus Objectstore Configuration Properties
-[cols="2a,1,3a", options="header"]
-|===
-|Property
-|Value +
-(_default value_)
-|Description
-
-|`isis.persistor.datanucleus.impl.*`
-|
-| Passed through directly to Datanucleus (with `isis.persistor.datanucleus.impl` prefix stripped)
-
-|`isis.persistor.datanucleus.impl.` +
-`datanucleus.persistenceByReachabilityAtCommit`
-|`false`
-|We recommend this setting is disabled.  +
-Further <<_disabling_persistence_by_reachability, discussion below>>.
-
-|===
-

http://git-wip-us.apache.org/repos/asf/isis/blob/b538e164/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime-configuration_configuring-datanucleus_using-jndi-data-source.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime-configuration_configuring-datanucleus_using-jndi-data-source.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime-configuration_configuring-datanucleus_using-jndi-data-source.adoc
deleted file mode 100644
index 9888750..0000000
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime-configuration_configuring-datanucleus_using-jndi-data-source.adoc
+++ /dev/null
@@ -1,72 +0,0 @@
-= Using JNDI DataSource
-: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/
-
-Isis' JDO objectstore can be configured either to connect to the database using its own connection pool, or by using a container-managed datasource.
-
-
-
-== Application managed connections
-
-Using a connection pool managed directly by the application (that is, by Isis' JDO objectstore and ultimately by DataNucleus) requires a single set of configuration properties to be specified.
-
-In the `WEB-INF\persistor_datanucleus.properties` file, specify the connection driver, url, username and password.
-
-For example:
-
-[source,ini]
-----
-isis.persistor.datanucleus.impl.javax.jdo.option.ConnectionDriverName=net.sf.log4jdbc.DriverSpy
-isis.persistor.datanucleus.impl.javax.jdo.option.ConnectionURL=jdbc:log4jdbc:hsqldb:mem:test
-isis.persistor.datanucleus.impl.javax.jdo.option.ConnectionUserName=sa
-isis.persistor.datanucleus.impl.javax.jdo.option.ConnectionPassword=
-----
-
-Those configuration properties that start with the prefix `isis.persistor.datanucleus.impl.` are passed through directly to DataNucleus (with the prefix removed).
-
-
-
-== Container managed (JNDI) datasource
-
-Using a datasource managed by the servlet container requires three separate bits of configuration.
-
-Firstly, specify the name of the datasource in the `WEB-INF\persistor_datanucleus.properties` file. For example:
-
-If connection pool settings are also present in this file, they will simply be ignored. Any other configuration properties that start with the prefix `isis.persistor.datanucleus.impl.` are passed through directly to DataNucleus (with the prefix removed).
-
-Secondly, in the `WEB-INF/web.xml`, declare the resource reference:
-
-[source,xml]
-----
-<resource-ref>
-    <description>db</description>
-    <res-ref-name>jdbc/simpleapp</res-ref-name>
-    <res-type>javax.sql.DataSource</res-type>
-    <res-auth>Container</res-auth>
-</resource-ref>
-----
-
-Finally, declare the datasource as required by the servlet container. For example, if using Tomcat 7, the datasource can be specified by adding the following to `$TOMCAT_HOME/conf/context.xml`:
-
-[source,xml]
-----
-<Resource name="jdbc/simpleapp"
-  auth="Container"
-  type="javax.sql.DataSource"
-  maxActive="100"
-  maxIdle="30"
-  maxWait="10000"
-  username="sa"
-  password="p4ssword"
-  driverClassName="com.microsoft.sqlserver.jdbc.SQLServerDriver"
-  url="jdbc:sqlserver://127.0.0.1:1433;instance=.;databaseName=simpleapp"/>
-----
-
-You will also need to make sure that the JDBC driver is on the servlet container's classpath. For Tomcat, this means copying the driver to `$TOMCAT_HOME/lib`.
-
-[NOTE]
-====
-According to Tomcat's documentation, it is supposedly possible to copy the `conf/context.xml` to the name of the webapp, eg `conf/mywebapp.xml`, and scope the connection to that webapp only.  I was unable to get this working, however.
-====
-

http://git-wip-us.apache.org/repos/asf/isis/blob/b538e164/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime-configuration_configuring-shiro.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime-configuration_configuring-shiro.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime-configuration_configuring-shiro.adoc
deleted file mode 100644
index cc801a1..0000000
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime-configuration_configuring-shiro.adoc
+++ /dev/null
@@ -1,419 +0,0 @@
-= Configuring Shiro
-: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/
-
-
-Apache Isis' security mechanism is configurable, specifying an `Authenticator` and an `Authorizor` (non-public) APIs.  The Shiro security mechanism is an integration wih Apache Shiro that implements both interfaces.
-
-[TIP]
-====
-The <<_simpleapp_archetype, SimpleApp archetype>> is pre-configured to use Apache Shiro, so much of what follows is set up already.
-====
-
-== Specifying Shiro as the security mechanism
-
-To tell Apache Isis to use Shiro, update the `WEB-INF/isis.properties` file:
-
-[source,ini]
-----
-isis.authentication=shiro
-isis.authorization=shiro
-----
-
-This installs the appropriate implementation (the `ShiroAuthenticatorOrAuthorizor` class) that use Shiro's APIs to perform authentication and authorization.
-
-
-
-
-== Bootstrapping Shiro
-
-The Shiro environment (in essence, thread-locals holding the security credentials) needs to be bootstrapped using the following settings in the `WEB-INF/web.xml` file:
-
-[source,xml]
-----
-<listener>
-    <listener-class>org.apache.shiro.web.env.EnvironmentLoaderListener</listener-class>
-</listener>
-
-<filter>
-    <filter-name>ShiroFilter</filter-name>
-    <filter-class>org.apache.shiro.web.servlet.ShiroFilter</filter-class>
-</filter>
-
-<filter-mapping>
-    <filter-name>ShiroFilter</filter-name>
-    <url-pattern>/*</url-pattern>
-</filter-mapping>
-----
-
-Based on this Shiro will then read `WEB-INF/shiro.ini` file to configure its Realm definitions for authentication and authorization.
-
-
-
-
-== `WEB-INF/shiro.ini`
-
-The `shiro.ini` file (at least as configured in the <<_simpleapp_archetype, SimpleApp archetype>>) is configured to use the built-in `$iniRealm`.  This is achieved by the line:
-
-[source,ini]
-----
-securityManager.realms = $iniRealm
-----
-
-The file also (by way of example) include entries to setup an ldapRealm, but this is not wired in. For more information on LDAP, see link:./using-ldap.html[here].
-
-Specifying `$iniRealm` means that the usernames/passwords, roles and permissions are read from the `shiro.ini` file itself.
-
-* the users/passwords and their roles from the `[users]` sections;
-* the roles are mapped to permissions in the `[roles]` section.
-
-
-=== Users section
-
-The `[users]` section lists users, passwords and their roles. For example:
-
-[source,ini]
-----
-sven = pass, admin_role
-dick = pass, user_role, analysis_role, self-install_role
-bob  = pass, user_role, self-install_role
-----
-
-=== Roles section
-
-The `roles` section lists roles and their corresponding permissions. For example:
-
-[source,ini]
-----
-user_role = *:ToDoItems:*:*,\
-            *:ToDoItem:*:*,\
-            *:ToDoAppDashboard:*:*
-analysis_role = *:ToDoItemAnalysis:*:*,\
-            *:ToDoItemsByCategoryViewModel:*:*,\
-            *:ToDoItemsByDateRangeViewModel:*:*
-self-install_role = *:ToDoItemsFixturesService:install:*
-admin_role = *
-----
-
-=== Permissions format
-
-The permission format is configurable. The default format is:
-
-[source,ini]
-----
-packageName:className:memberName:r,w
-----
-
-where:
-
-* `memberName` is the property, collection or action name.
-* `r` indicates that the member is visible
-* `w` indicates that the member is usable (editable or invokable)
-
-and where each of the parts of the permission string can be wildcarded using `*`.
-
-Because these are wildcards, a '*' can be used at any level. Additionally, missing levels assume wildcards.  Thus:
-
-[source]
-----
-com.mycompany.myapp:Customer:firstName:r,w   # view or edit customer's firstName
-com.mycompany.myapp:Customer:lastName:r      # view customer's lastName only
-com.mycompany.myapp:Customer:placeOrder:*    # view and invoke placeOrder action
-com.mycompany.myapp:Customer:placeOrder      # ditto
-com.mycompany.myapp:Customer:*:r             # view all customer class members
-com.mycompany.myapp:*:*:r                    # view-only access for all classes in myapp package
-com.mycompany.myapp:*:*:*                    # view/edit for all classes in myapp package
-com.mycompany.myapp:*:*                      # ditto
-com.mycompany.myapp:*                        # ditto
-com.mycompany.myapp                          # ditto
-*                                            # view/edit access to everything
-----
-
-
-
-
-==== Using the Enhanced Isis Permission Syntax
-
-Shiro also allows the conversion to be mapped to alternative `Permission` instances; Isis provides its own `IsisPermission` which provides an extended and more flexible syntax.
-
-
-Isis defines its own extended syntax for permissions, following the format:
-
-[source,ini]
-----
-([!]?)([^/]+)[/](.+)
-----
-
-where:
-
-* the optional `!` prefix indicates this permission is a vetoing permission
-* the optional `xxx/` prefix is a permission group that scopes any vetoing permissions
-* the remainder of the string is the permission (possibly wildcarded, with :rw as optional suffix)
-
-For example:
-
-[source,ini]
-----
-user_role   = !reg/org.estatio.api,\
-              !reg/org.estatio.webapp.services.admin,\
-              reg/* ; \
-api_role    = org.estatio.api ;\
-admin_role = adm/*
-----
-
-sets up:
-* the user role with access to all permissions except those in `org.estatio.api` and `org.estatio.webapp.services.admin`
-* the api_role with access to all permissions in `org.estatio.api`
-* the admin_role with access to everything.
-
-The permission group concept is required to scope the applicability of any veto permission. This is probably best explained by an example. Suppose that a user has both `admin_role` and `user_role`; we would want the `admin_role` to trump the vetos of the `user_role`, in other words to give the user access to everything. Because of the permission groups, the two "+++!reg/...+""" vetos in user_role only veto out selected permissions granted by the "+++reg/*+++" permissions, but they do not veto the permissions granted by a different scope, namely "+++adm/*+++". The net effect is what we would want: that a user with both `admin_role` and `user_role` would have access to everything, irrespective of those two veto permissions of the `user_role`.
-
-To tell Shiro to use the Isis permission format, add the following to `shiro.ini`:
-
-[source,ini]
-----
-permissionResolver = org.apache.isis.security.shiro.authorization.IsisPermissionResolver
-xxxRealm.permissionResolver = $permissionResolver
-----
-
-where `xxxRealm` is the realm to be configured.
-
-
-
-== Multiple Realms
-
-A more sophisticated approach is to use external realms. For example, to configure two text-based realms defined, `realm1` and `realm2`, we would define a `resourcePath` for each, in the form:
-
-[source,ini]
-----
-realm1.resourcePath=classpath:webapp/realm1.ini
-----
-
-that is, the `src/main/resources/webapp/realm1.ini` file in the webapp project.
-
-The security manager for the app would then be told to use these two realms:
-
-[source,ini]
-----
-securityManager.realms = $realm1,$realm2
-----
-
-The the `[users]` and `[roles]` sections of `shiro.ini` would then be unused. Instead, you'll find these sections in both `realm1.ini` and `realm2.ini` (because both are coincidentally implementations of the same `org.apache.shiro.realm.text.IniRealm` class).
-
-
-
-
-== Configuring Shiro to use LDAP
-
-Isis ships with an implementation of http://shiro.apache.org[Apache Shiro]'s `Realm` class that allows user authentication and authorization to be performed against an LDAP server.
-
-The configuration required in the `WEB-INF/shiro.ini` file is:
-
-[source,ini]
-----
-contextFactory = org.apache.isis.security.shiro.IsisLdapContextFactory
-contextFactory.url = ldap://localhost:10389
-contextFactory.systemUsername = uid=admin,ou=system        # <1>
-contextFactory.systemPassword = secret
-contextFactory.authenticationMechanism = CRAM-MD5          # <2>
-contextFactory.systemAuthenticationMechanism = simple
-
-ldapRealm = org.apache.isis.security.shiro.IsisLdapRealm
-ldapRealm.contextFactory = $contextFactory
-
-ldapRealm.searchBase = ou=groups,o=mojo                    # <3>
-ldapRealm.groupObjectClass = groupOfUniqueNames            # <4>
-ldapRealm.uniqueMemberAttribute = uniqueMember             # <5>
-ldapRealm.uniqueMemberAttributeValueTemplate = uid={0}
-
-# optional mapping from physical groups to logical application roles
-ldapRealm.rolesByGroup = \                                 # <6>
-    LDN_USERS: user_role,\
-    NYK_USERS: user_role,\
-    HKG_USERS: user_role,\
-    GLOBAL_ADMIN: admin_role,\
-    DEMOS: self-install_role
-
-ldapRealm.permissionsByRole=\                              # <7>
-   user_role = *:ToDoItemsJdo:*:*,\
-               *:ToDoItem:*:*; \
-   self-install_role = *:ToDoItemsFixturesService:install:* ; \
-   admin_role = *
-
-securityManager.realms = $ldapRealm
-----
-<1> user accounts are searched using a dedicated service account
-<2> SASL (CRAM-MD5) authentication is used for this authentication
-<3> groups are searched under `ou=groups,o=mojo` (where `mojo` is the company name)
-<4> each group has an LDAP objectClass of `groupOfUniqueNames`
-<5> each group has a vector attribute of `uniqueMember`
-<6> groups looked up from LDAP can optionally be mapped to logical roles; otherwise groups are used as role names directly
-<7> roles are mapped in turn to permissions
-
-The value of `uniqueMember` is in the form `uid=xxx`, with `xxx` being the uid of the user
-* users searched under `ou=system`
-* users have, at minimum, a `uid` attribute and a password
-* the users credentials are used to verify their user/password
-
-The above configuration has been tested against http://directory.apache.org/apacheds/[ApacheDS], v1.5.7. This can be administered using http://directory.apache.org/studio/[Apache Directory Studio], v1.5.3.
-
-
-
-=== Using a shared role/perms path
-
-As an alternative to injecting the `permissionsByRole` property, the role/permission mapping can alternatively be specified by injecting a resource path:
-
-[source,ini]
-----
-ldapRealm.resourcePath=classpath:webapp/myroles.ini
-----
-
-where `myroles.ini` is in `src/main/resources/webapp`, and takes the form:
-
-[source,ini]
-----
- [roles]
- user_role = *:ToDoItemsJdo:*:*,\
-             *:ToDoItem:*:*
- self-install_role = *:ToDoItemsFixturesService:install:*
- admin_role = *
-----
-
-This separation of the role/mapping can be useful if Shiro is configured to support multiple realms (eg an LdapRealm based one and also an TextRealm)
-
-
-=== Active DS LDAP Configuration
-
-The screenshot below shows the ApacheDS using Apache Directory Studio. The setup here was initially base on http://krams915.blogspot.co.uk/2011/01/ldap-apache-directory-studio-basic.html[this tutorial]. However, user accounts have been moved to a separate node.
-
-==== Configure Mojo partition and nodes under Root
-
-Create a partition in order to hold the mojo node (holding the groups)
-
-image::{_imagesdir}/configuration/configuring-shiro/ldap/activeds-ldap-mojo-partition.png[ActiveDS LDAP Users]
-
-Create the `ou=groups,o=mojo` hierarchy
-
-image::{_imagesdir}/configuration/configuring-shiro/ldap/activeds-ldap-mojo-root-dse.png[ActiveDS LDAP Users]
-
-Configure SASL authentication. This means that the checking of user/password is done implicitly by virtue of Isis connecting to LDAP using these credentials.
-
-image::{_imagesdir}/configuration/configuring-shiro/ldap/activeds-ldap-sasl-authentication.png[ActiveDS LDAP Users]
-
-In order for SASL to work, it seems to be necessary to put users under `o=system`. (This is why the setup is slightly different than the tutorial mentioned above).
-
-image::{_imagesdir}/configuration/configuring-shiro/ldap/activeds-ldap-users.png[ActiveDS LDAP Users]
-
-Configure the users into the groups.
-
-image::{_imagesdir}/configuration/configuring-shiro/ldap/activeds-ldap-groups.png[ActiveDS LDAP Users]
-
-
-== Shiro Realm Mappings
-
-When configuring role based permission mapping, there can only be one of these entries per realm:
-
-[source]
-----
-realm.groupToRolesMappings = ...
-----
-
-and
-
-[source]
-----
-realm.roleToPermissionsMappings = ...
-----
-
-This forces you to put everything on one line for each of the above.
-
-This is, unfortunately, a Shiro "feature". The only solution to this is to use "\" to separate the mappings onto separate lines in the file so that it is at least maintainable.
-
-Use this technique for both group to roles mapping and role to permission mapping. If you use the '&#39; after the "," that separates the key:value pairs it is more readable.
-
-If you repeat the entries above then it's "last one wins".
-
-[WARNING]
-====
-Configuring a [roles] section instead doesn't work because that triggers Shiro to use the simple "INI" realm and not your defined realm.
-
-In an enterprise environment you are most likely going to use either an LDAP realm or the realm that comes with the http://github.com/isisaddons/isis-module-security}[Isis addons' security] module (non-ASF); so the "simple" realm in Shiro isn't much use beyond prototyping work).
-====
-
-
-
-== Configuring Shiro to use the Security Isis Addons
-
-The Isisaddons https://github.com/isisaddons/isis-module-security[security module] (not ASF) provides a complete
-security subdomain for users, roles, permissions; all persisted as JDO domain objects. It also includes a Shiro realm
-integration.
-
-See the module's README for details of how to configure an existing app to use this module. Or, look at the the
-Isisaddons https://github.com/isisaddons/isis-app-todoapp[todoapp example] (not ASF), which is preconfigured to use
-the security module.
-
-
-
-== Configuring Shiro for JDBC
-
-Something like the following should do:
-
-[source,ini]
-----
-builtInCacheManager = org.apache.shiro.cache.MemoryConstrainedCacheManager
-securityManager.cacheManager = $builtInCacheManager
-
-ps = org.apache.shiro.authc.credential.DefaultPasswordService
-pm = org.apache.shiro.authc.credential.PasswordMatcher
-pm.passwordService = $ps
-
-aa = org.apache.shiro.authc.credential.AllowAllCredentialsMatcher
-sm = org.apache.shiro.authc.credential.SimpleCredentialsMatcher
-
-jdbcRealm=org.apache.shiro.realm.jdbc.JdbcRealm
-jdbcRealm.authenticationQuery = SELECT password from users where username = ?
-jdbcRealm.userRolesQuery = select r.label from users_roles ur inner join roles r on ur.role_id = r.id where user_id = (select id from users where username = ?);
-jdbcRealm.permissionsQuery=select p.permission from roles_permissions rp inner join permissions p on rp.permission_id = p.id where rp.role_id = (select id from roles where label = ?);
-jdbcRealm.permissionsLookupEnabled=true
-
-ds = com.mysql.jdbc.jdbc2.optional.MysqlDataSource
-ds ...etc
-securityManager.realms = $jdbcRealm
-----
-
-However, we would recommend you consider using the http://github.com/isisaddons/isis-module-security}[Isis addons' security] module instead of a home-grown JDBC solution.
-
-
-
-== Accessing user/roles from domain objects
-
-Generally speaking your domain objects should be agnostic of the user/roles that are interacting with them; applying security permissions is the responsibility of the framework.
-
-Still, on very rare occasion you may have a need, in which case use the `DomainObjectContainer` service:
-
-[source,java]
-----
-final UserMemento user = container.getUser();
-final List<RoleMemento> roles = user.getRoles();
-for (RoleMemento role : roles) {
-    String roleName = role.getName();
-    ...
-}
-----
-
-Each role's `name` property encodes both the realm that provided the role, and the role identity itself.
-
-For example, in the simpleapp, if logging in as `dick` with the following entries for `realm1`:
-
-[source,ini]
-----
-dick = pass, user_role, analysis_role, self-install_role
-----
-
-then this corresponds to the roles "realm1:user_role", "realm1:self-install_role" and "realm1:analysis_role".
-
-If using the Wicket viewer, then there will also be another role which is used internally (namely "org.apache.isis.viewer.wicket.roles.USER").
-
-
-

http://git-wip-us.apache.org/repos/asf/isis/blob/b538e164/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime-configuration_files.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime-configuration_files.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime-configuration_files.adoc
deleted file mode 100644
index c5ddffe..0000000
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime-configuration_files.adoc
+++ /dev/null
@@ -1,87 +0,0 @@
-= Configuration Files
-: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/
-
-
-When running an Isis webapp, configuration properties are read from configuration files held in the `WEB-INF` directory.
-
-The `WEBINF/isis.properties` file is always read and must exist.
-
-In addition, the following other properties are searched for and if present also read:
-
-* `viewer_wicket.properties` - if the <<_wicket_viewer_2, Wicket UI (viewer)>> is in use
-
-* `viewer_restfulobjects.properties` - if the <<_restful_objects_viewer, Restful Objects REST API (viewer)>> is in use
-
-* `viewer.properties` - for any shared UI configuration
-
-* `persistor_datanucleus.properties` - assuming the JDO/DataNucleus objectstore is in use
-
-* `persistor.properties` - for any other objectstore configuration.  This typically is used to hold `JDBC` ``URL``s
-
-* `authentication_shiro.properties`, `authorization_shiro.properties`
-+
-assuming the Shiro Security is in use (but there are no security-related config properties currently; use shiro.ini for Shiro config)
-
-* `authentication.properties`, `authorization.properties` +
-+
-for any other security-related config properties (but there are none currently).
-
-You can if you wish simply store all properties in the `isis.properties` file; but we think that breaking properties out into sections is preferable.
-
-
-== Specifying other components
-
-The `isis.properties` file has three configuration properties in particular that specify the major components of Isis to use.  They are:
-
-.Core Configuration Properties
-[cols="2a,1,3a", options="header"]
-|===
-|Property
-|Value +
-(_default value_)
-|Implements
-
-|`isis.persistor`
-|`_datanucleus_`
-|`org.apache.isis.core.runtime.installerregistry.installerapi.` `PersistenceMechanismInstaller`
-
-|`isis.authentication`
-|`_shiro_` +
-`bypass`
-|`org.apache.isis.core.runtime.authentication.` `AuthenticationManagerInstaller`
-
-|`isis.authorization`
-|`_shiro_` +
-`bypass`
-|`org.apache.isis.core.runtime.authorization.` `AuthorizationManagerInstaller`
-
-|===
-
-[TIP]
-====
-The values "datanucleus", "shiro" etc are actually aliases for concrete implementations listed in Isis' `installer-registry.properties` file (in `isis-core-runtime.jar`).  It is -- at least in theory -- possible to specify a fully qualified class name to replace any of these components.  In practice only the two security APIs are actually simple enough for this to be viable.
-====
-
-As for the viewers, these are specified indirectly by way of the filters and servlets in the `web.xml` file (discussed <<_configuring_the_webapp, below>>).  However, the configuration of which viewers to initialize is declared through a context parameter:
-
-
-[source,xml]
-----
-<context-param>
-    <param-name>isis.viewers</param-name>
-    <param-value>wicket,restfulobjects</param-value>
-</context-param>
-----
-
-The net effect of this configuration is simply to ensure that the `viewer_wicket.properties` and/or the `viewer_restfulobjects.properties` files are read.
-
-
-
-== Deployment Types
-
-IMPORTANT: TODO
-
-
-

http://git-wip-us.apache.org/repos/asf/isis/blob/b538e164/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime-configuration_web-xml.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime-configuration_web-xml.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime-configuration_web-xml.adoc
deleted file mode 100644
index 8be8f26..0000000
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime-configuration_web-xml.adoc
+++ /dev/null
@@ -1,19 +0,0 @@
-= `web.xml`
-: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
-
-
-== Init Params
-
-`<isis.viewers>`
-
-== Filters
-
-
-== Servlets
-
-
-== Running Restful Objects Viewer only
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/isis/blob/b538e164/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime.adoc
new file mode 100644
index 0000000..8bc64e6
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime.adoc
@@ -0,0 +1,27 @@
+= Runtime
+: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/
+
+
+Isis' own configuration properties are simple key-value pairs, typically held in the `WEBINF/isis.properties` file and other related files.  This chapter describes how to configure an Apache Isis application.
+
+[NOTE]
+====
+Configuration properties for the viewers can be found in the <<Wicket Viewer>> chapter and the <<Restful Objects Viewer>> chapter.  Likewise, details of configuring security (Apache Shiro) can be found in the <<Security>> chapter.
+
+Also, note that by default the configuration values are part of the built WAR file.  Details on how to override these configuration properties externally for different environments can be found in the <<Deployment>> chapter.
+====
+
+include::_user-guide_runtime_configuration-files.adoc[leveloffset=+1]
+
+include::_user-guide_runtime_configuring-core.adoc[leveloffset=+1]
+
+include::_user-guide_runtime_web-xml.adoc[leveloffset=+1]
+
+include::_user-guide_runtime_configuring-datanucleus.adoc[leveloffset=+1]
+
+
+
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/b538e164/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime_configuration-files.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime_configuration-files.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime_configuration-files.adoc
new file mode 100644
index 0000000..c5ddffe
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime_configuration-files.adoc
@@ -0,0 +1,87 @@
+= Configuration Files
+: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/
+
+
+When running an Isis webapp, configuration properties are read from configuration files held in the `WEB-INF` directory.
+
+The `WEBINF/isis.properties` file is always read and must exist.
+
+In addition, the following other properties are searched for and if present also read:
+
+* `viewer_wicket.properties` - if the <<_wicket_viewer_2, Wicket UI (viewer)>> is in use
+
+* `viewer_restfulobjects.properties` - if the <<_restful_objects_viewer, Restful Objects REST API (viewer)>> is in use
+
+* `viewer.properties` - for any shared UI configuration
+
+* `persistor_datanucleus.properties` - assuming the JDO/DataNucleus objectstore is in use
+
+* `persistor.properties` - for any other objectstore configuration.  This typically is used to hold `JDBC` ``URL``s
+
+* `authentication_shiro.properties`, `authorization_shiro.properties`
++
+assuming the Shiro Security is in use (but there are no security-related config properties currently; use shiro.ini for Shiro config)
+
+* `authentication.properties`, `authorization.properties` +
++
+for any other security-related config properties (but there are none currently).
+
+You can if you wish simply store all properties in the `isis.properties` file; but we think that breaking properties out into sections is preferable.
+
+
+== Specifying other components
+
+The `isis.properties` file has three configuration properties in particular that specify the major components of Isis to use.  They are:
+
+.Core Configuration Properties
+[cols="2a,1,3a", options="header"]
+|===
+|Property
+|Value +
+(_default value_)
+|Implements
+
+|`isis.persistor`
+|`_datanucleus_`
+|`org.apache.isis.core.runtime.installerregistry.installerapi.` `PersistenceMechanismInstaller`
+
+|`isis.authentication`
+|`_shiro_` +
+`bypass`
+|`org.apache.isis.core.runtime.authentication.` `AuthenticationManagerInstaller`
+
+|`isis.authorization`
+|`_shiro_` +
+`bypass`
+|`org.apache.isis.core.runtime.authorization.` `AuthorizationManagerInstaller`
+
+|===
+
+[TIP]
+====
+The values "datanucleus", "shiro" etc are actually aliases for concrete implementations listed in Isis' `installer-registry.properties` file (in `isis-core-runtime.jar`).  It is -- at least in theory -- possible to specify a fully qualified class name to replace any of these components.  In practice only the two security APIs are actually simple enough for this to be viable.
+====
+
+As for the viewers, these are specified indirectly by way of the filters and servlets in the `web.xml` file (discussed <<_configuring_the_webapp, below>>).  However, the configuration of which viewers to initialize is declared through a context parameter:
+
+
+[source,xml]
+----
+<context-param>
+    <param-name>isis.viewers</param-name>
+    <param-value>wicket,restfulobjects</param-value>
+</context-param>
+----
+
+The net effect of this configuration is simply to ensure that the `viewer_wicket.properties` and/or the `viewer_restfulobjects.properties` files are read.
+
+
+
+== Deployment Types
+
+IMPORTANT: TODO
+
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/b538e164/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime_configuring-core.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime_configuring-core.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime_configuring-core.adoc
new file mode 100644
index 0000000..99c5618
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_runtime_configuring-core.adoc
@@ -0,0 +1,88 @@
+= Configuring Core
+: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/
+
+This section lists the core/runtime configuration properties recognized by Apache Isis.
+
+Configuration properties for the JDO/DataNucleus objectstore can be found in the <<_configuring_datanucleus, Configuring DataNucleus>> section elsewhere in this chapter.
+
+Configuration properties for the viewers can be found in the <<Wicket Viewer>> chapter and the <<Restful Objects Viewer>> chapter.
+
+
+.Core Configuration Properties
+[cols="2a,1,3a", options="header"]
+|===
+|Property
+|Value +
+(_default value_)
+|Description
+
+|`isis.services`
+|`FQCN`,`FQCN2`,...
+|Fully qualified class names of classes to be instantiated as domain services.  Each entry can be optionally prefixed by "n:" specifying the relative order on the menu (corresponds to `@DomainServiceLayout#menuOrder()`).
+
+|`isis.services.` +
+`container.disableAutoFlush`
+| `true`,`false` (`_false_`)
+|Whether the `DomainObjectContainer` should automatically flush pending changes prior to querying (via `allMatches()`, `firstMatch()` and so on).
+
+|`isis.services.` +
+`translation.po.mode`
+| `read`,`write`
+|Whether to force the `TranslationService` into either read or write mode. +
+See <<_i18n, i18n support>> to learn more about the translation service.
+
+|`isis.persistor.` +
+`disableConcurrencyChecking`
+| `true`,`false` (`_false_`)
+| Disables concurrency checking globally.  Only intended for "emergency use" as a workaround while pending fix/patch to Isis itself.  (Note that there is no "datanucleus" in the property).
+
+|`isis.reflector.facet.` +
+`cssClassFa.patterns`
+|regex:fa-icon,regex2:fa-icon2,...
+|Comma separated list of key:value pairs, where the key is a regex matching action names (eg `create.*`) and the value is a link:fortawesome.github.io/Font-Awesome/icons/[font-awesome] icon name (eg `fa-plus`) to be applied (as per `@CssClassFa()`) to all action members matching the regex. +
+See <<_user-guide_how-tos_ui-hints_action-icons-and-css, UI hints>> for more details.
+
+|`isis.reflector.facet.` +
+`cssClass.patterns`
+|regex:css1,regex2:css2,...
+|Comma separated list of key:value pairs, where the key is a regex matching action names (eg `delete.*`) and the value is a link:http://getbootstrap.com/css/[Bootstrap] CSS button class (eg `btn-warning) to be applied (as per `@CssClass()`) to all action members matching the regex. +
+See <<_user-guide_how-tos_ui-hints_action-icons-and-css, UI hints>> for more details.
+
+|`isis.reflector.facets`
+|`FQCN`
+|Fully qualified class names of a custom implementation of `ProgrammingModel` interface.
+See <<_finetuning, finetuning the programming model>> for more details.
+
+|`isis.reflector.facets.` +
+`include`
+|`FQCN`,`FQCN2`,...
+|Fully qualified class names of (new, custom) facet factory classes to be included to the programming model. +
+See <<_finetuning, finetuning the programming model>> for more details.
+
+|`isis.reflector.facets.` +
+`exclude`
+|`FQCN`,`FQCN2`,...
+|Fully qualified class names of (existing, built-in) facet factory classes to be included to the programming model. +
+See <<_finetuning, finetuning the programming model>> for more details.
+
+|`isis.reflector.validator`
+|`FQCN`
+|Custom implementation of `MetaModelValidator` (in the `org.apache.isis.core.metamodel.specloader.validator` package) +
+See <<_custom_validator, Custom Validator>> to learn more.
+
+|`isis.reflector.validator.` +
+`allowDeprecated`
+| `true`,`false` (`_true_`)
+| Whether deprecated annotations or naming conventions are tolerated or not.  If not, then a metamodel validation error will be triggered, meaning the app won't boot (fail-fast).
+
+|`isis.reflector.` +
+`layoutMetadataReaders`
+|`FQCN`,`FQCN2`,...
+|Fully qualified class names of classes to be instantiated to read layout metadata, as used in for <<_dynamic_object_layout, dynamic layout>>s. +
+See <<_layout_metadata_reader, Layout Metadata Reader>> for more information.
+
+|===
+
+


[4/9] isis git commit: ISIS-1133: summary tables for reference sections

Posted by da...@apache.org.
http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_testing_integ-test-support_typical-usage.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_testing_integ-test-support_typical-usage.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_testing_integ-test-support_typical-usage.adoc
new file mode 100644
index 0000000..1f2dd0b
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_testing_integ-test-support_typical-usage.adoc
@@ -0,0 +1,123 @@
+= Typical Usage
+: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/
+
+
+This example adapted from the link:http://github.com/isisaddons/isis-app-todoapp}[Isis addons' todoapp] (non-ASF).  The code we want to test (simplified) is:
+
+[source,java]
+----
+public class ToDoItem ... {
+
+    private boolean complete;
+    @Property( editing = Editing.DISABLED )
+    public boolean isComplete() {
+        return complete;
+    }
+    public void setComplete(final boolean complete) {
+        this.complete = complete;
+    }
+
+    @Action()
+    public ToDoItem completed() {
+        setComplete(true);
+        ...
+        return this;
+    }
+    public String disableCompleted() {
+        return isComplete() ? "Already completed" : null;
+    }
+    ...
+}
+----
+
+We typically put the bootstrapping of Isis into a superclass (`AbstractToDoIntegTest` below), then subclass as required.
+
+For this test (of the "completed()" action) we need an instance of a `ToDoItem` that is not yet complete.  Here's the setup:
+
+[source,java]
+----
+public class ToDoItemIntegTest extends AbstractToDoIntegTest {
+
+    @Inject
+    FixtureScripts fixtureScripts;                              // <1>
+    @Inject
+    ToDoItems toDoItems;                                        // <2>
+    ToDoItem toDoItem;                                          // <3>
+
+    @Before
+    public void setUp() throws Exception {
+        RecreateToDoItemsForCurrentUser fixtureScript =         // <4>
+            new RecreateToDoItemsForCurrentUser();
+        fixtureScripts.runFixtureScript(fixtureScript, null);
+        final List<ToDoItem> all = toDoItems.notYetComplete();  // <5>
+        toDoItem = wrap(all.get(0));                            // <6>
+    }
+    ...
+}
+----
+<1> the <<_fixture_scripts, `FixtureScripts`>> domain service is injected, providing us with the ability to run fixture scripts
+<2> likewise, an instance of the `ToDoItems` domain service is injected.  We'll use this to lookup...
+<3> the object under test, held as a field
+<4> the fixture script for this test; it deletes all existing todo items (for the current user only) and then recreates them
+<5> we lookup one of the just-created todo items...
+<6> and then wrap it so that our interactions with it are as if through the UI
+
+
+
+The following code tests the happy case, that a not-yet-completed `ToDoItem` can be completed by invoking the `completed()` action:
+
+[source,java]
+----
+public class ToDoItemIntegTest ... {
+    ...
+    public static class Completed extends ToDoItemIntegTest { // <1>
+        @Test
+        public void happyCase() throws Exception {
+            // given
+            assertThat(toDoItem.isComplete()).isFalse();      // <2>
+            // when
+            toDoItem.completed();
+            // then
+            assertThat(toDoItem.isComplete()).isTrue();
+        }
+        ...
+    }
+}
+----
+<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:assertj.org[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:
+
+[source,java]
+----
+        @Test
+        public void cannotCompleteIfAlreadyCompleted() throws Exception {
+            // given
+            unwrap(toDoItem).setComplete(true);                     // <1>
+            // expect
+            expectedExceptions.expectMessage("Already completed");  // <2>
+            // when
+            toDoItem.completed();
+        }
+----
+<1> we unwrap the domain object in order to set its state directly
+<2> the expectedExceptions link:http://junit.org/apidocs/org/junit/rules/ExpectedException.html[JUnit rule] (defined by a superclass) verifies that the appropiate exception is indeed thrown (in the "when")
+
+
+And what about the fact that the underlying "complete" property is disabled (the `@Disabled` annotation?).  If the `ToDoItem` is put into edit mode in the UI, the complete checkbox should remain read-only.  Here's a verify similar test that verifies this also:
+
+[source,java]
+----
+        @Test
+        public void cannotSetPropertyDirectly() throws Exception {
+            // expect
+            expectedExceptions.expectMessage("Always disabled");  // <1>
+            // when
+            toDoItem.setComplete(true);
+        }
+----
+<1> again we use the exceptedExceptions rule.
+

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_testing_integ-test-support_wrapper-factory.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_testing_integ-test-support_wrapper-factory.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_testing_integ-test-support_wrapper-factory.adoc
new file mode 100644
index 0000000..e6de1e8
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_testing_integ-test-support_wrapper-factory.adoc
@@ -0,0 +1,96 @@
+= Wrapper Factory
+: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/
+
+
+The `WrapperFactory` service is responsible for wrapping a domain object in a dynamic proxy, of the same type as the object being proxied.  And the role of this wrapper is to simulate the UI.
+
+[NOTE]
+====
+`WrapperFactory` uses link:javassist.org[javassist] to perform its magic; this is the same technology that ORMs such as link:http://hibernate.org/[Hibernate] use to manage lazy loading/dirty tracking (DataNucleus uses a different mechanism).
+====
+
+It does this by allowing through method invocations that would be allowed if the user were interacting with the domain object through one of the viewers, but throwing an exception if the user attempts to interact with the domain object in a way that would not be possible if using the UI.
+
+The mechanics are as follows:
+
+. the integration test calls the `WrapperFactory` to obtain a wrapper for the domain object under test.  This is usually done in the test's `setUp()` method.
+
+. the test calls the methods on the wrapper rather than the domain object itself
+
+. the wrapper performs a reverse lookup from the method invoked (a regular `java.lang.reflect.Method` instance) into the Isis metamodel
+
+. (like a viewer), the wrapper then performs the "see it/use it/do it" checks, checking that the member is visible, that it is enabled and (if there are arguments) that the arguments are valid
+
+. if the business rule checks pass, then the underlying member is invoked.  Otherwise an exception is thrown.
+
+The type of exception depends upon what sort of check failed.  It's straightforward enough: if the member is invisible then a `HiddenException` is thrown; if it's not usable then you'l get a `DisabledException`, if the args are not valid then catch an `InvalidException`.
+
+image::{_imagesdir}testing/wrapper-factory.png[width="600px"]
+
+Let's look in a bit more deatil at what the test can do with the wrapper.
+
+== Methods
+
+As the wrapper is intended to simulate the UI, only those methods that correspond to the "primary" methods of the domain object's members are allowed to be called.  That means:
+
+* for object properties the test can call the getter or setter method
+
+* for object collections the test can call the getter.  +
++
+If there is a supporting `addTo(...)` or `removeFrom(...)` method, then these can be called.  It can also call `add(...)` or `remove(...)` on the collection (returned by the gettter) itself. +
++
+[NOTE]
+====
+In this respect the wrapper is more functional than the <<_wicket_viewer, Wicket viewer>> (which does not expose the ability to mutate collections directly).
+====
+
+* for object actions the test can call the action method itself.
+
+As a convenience, we also allow the test to call any `defaultXxx()`, `choicesXxx()` or `autoCompleteXxx()` method.  These are often useful for obtaining a valid value to use.
+
+What the test can't call is any of the remaining supporting methods, such as `hideXxx()`, `disableXxx()` or `validateXxx`.  That's because their value is implied by the exception being thrown.
+
+The wrapper does also allow the object's `title()` method or its `toString()` method to be called, however this is of no use for objects whose title is built up using the `@Title` annotation.
+
+
+
+
+obtaining the wrapper from the proxy.
+
+
+can only invoke methods that correspond to members of the Isis metamodel.  Can't call supporting methods (such as disable, hide etc).
+
+that it receives (the method invoked)
+
+The wrapper
+
+
+
+
+* also triggers domain events
+
+
+
+[NOTE]
+====
+It isn't possible to use the `WrapperFactory` in a unit test, because there needs to be a running instance of Isis that holds the metamodel.
+====
+
+
+
+
+
+[NOTE]
+====
+The `WrapperFactory` service also provides a numer of overloads of the `wrap()` method:
+
+* `wrapNoExecute(...)` will check the business rules but suppresses the actual execution
+* `wrapSkipRules(...)` does the opposite: skip business rules but executing the action.
+
+We mention them only to say that these two methods are not of particular significance for integration tests, however they are useful when domain objects in one module need to interact (in a decoupled fashion) with domain objects in some other module.
+
+For more details, see <<_wrapper_factory, Wrapper Factory>> service.
+====
+

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_testing_overview.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_testing_overview.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_testing_overview.adoc
new file mode 100644
index 0000000..4997d99
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_testing_overview.adoc
@@ -0,0 +1,138 @@
+= Overview
+: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/
+
+
+== Unit tests vs Integ tests
+
+We divide automated tests into two broad categories:
+
+- unit tests exercise a single unit (usually a method) of a domain object, in isolation.  +
++
+Dependencies of that object are mocked out.  These are written by a developer and for a developer; they are to ensure that a particular "cog in the machine" works correctly
+
+- integration tests exercise the application as a whole, usually focusing on one particular business operation (action).  +
++
+These are tests that represent the acceptance criteria of some business story; their intent should make sense to the domain expert (even if the domain expert is "non-technical")
+
+To put it another way: integration tests are to ensure that you are *_building the right system_*, while unit tests help ensure that you are *_building the system right_*.
+
+[TIP]
+====
+Isis provides autowiring dependency injection into every domain object.  This is most useful when writing unit tests; simply mock out the service and inject into the domain object.
+====
+
+
+
+
+== Integ tests vs BDD Specs
+
+We further sub-divide integration tests into:
+
+* those that are implemented in Java and JUnit (we call these simply _"integration tests"_) +
++
+Even if a domain expert understands the intent of these tests, the actual implementation will be opaque to them.  Also, the only output from the tests is a (hopefully) green CI job
+
+* tests (or rather, specifications) that are implemented in a BDD language such as link:https://cucumber.io/[Cucumber] (we call these _"BDD specs"_) +
++
+The natural language specification then maps down onto some glue code that is used to drive the application.  But the benefits of taking a BDD approach include the fact that your domain expert will be able to read the tests/specifications, and that when you run the specs, you also get documentation of the application's behaviour ("living documentation").
+
+It's up to you whether you use BDD specs for your apps; it will depend on your development process and company culture.  But you if don't then you certainly should write integration tests: acceptance criteria for user stories should be automated!
+
+
+
+
+
+== Simulated UI (`WrapperFactory`)
+
+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.
+
+The <<_wrapper_factory, `WrapperFactory`>> domain service allows a test to wrap domain objects and thus to interact with said objects "as if" through the UI:
+
+image::{_imagesdir}testing/integ-tests.png[width="700px"]
+
+If the test invokes an action that is disabled, then the wrapper will throw an appropriate exception.  If the action is ok to invoke, it delegates through.
+
+What this means is that an Isis application can be tested end-to-end without having to deploy it onto a webserver; the whole app can be tested while running in-memory.  Although integration tests re (necessarily) slower than unit tests, they are not any harder to write (in fact, in some respects they are easier).
+
+
+
+
+
+== Given/When/Then
+
+Whatever type of test/spec you are writing, we recommend you follow the given/when/then idiom:
+
+* *given* the system is in this state (preconditions)
+* *when* I poke it with a stick
+* *then* it looks like this (postconditions)
+
+For unit tests with a mocking library (we tend to use link:http://jmock.org[JMock] but others are also fine) it can be worth considering four steps:
+
+* *given* the system is in this state
+* *expecting* these interactions (set up the mock expectations here)
+* *when* I poke it with a stick
+* *then* these interactions should have occurred.
+
+[TIP]
+.Distinguish between queries vs mutators
+====
+For mock interactions that simply retrieve some data, your test should not need to verify that it occurred.  If the system were to be refactored and starts caching some data, you don't really want your tests to start breaking because they are no longer performing a query that once they did.  If using JMock API this means using the `allowing(..)` method to set up the expectation.
+
+On the other hand mocks that mutate the state of the system you probably should assert have occurred.  If using JMock this typically means using the `oneOf(...)` method.
+====
+
+
+A good test should be 5 to 10 lines long; the test should be there to help you reason about the behaviour of the system.  Certainly if the test becomes more than 20 lines it'll be too difficult to understand.
+
+The "when" part is usually a one-liner, and in the "then" part there will often be only two or three assertions that you want to make that the system has changed as it should.
+
+For unit test the "given" part shouldn't be too difficult either: just instantiate the class under test, wire in the appropriate mocks and set up the expectations.  And if there are too many mock expectations to set up, then "listen to the tests" ... they are telling you your design needs some work.
+
+Where things get difficult though is the "given" for integration tests; which is the topic of the next section...
+
+
+
+
+== Fixture Management
+
+In the previous section we discussed using given/when/then as a form of organizing tests, and why you should keep your tests small.
+
+For integration tests though it can be difficult to keep the "given" short; there could be a lot of prerequisite data that needs to exist before you can actually exercise your system.  Moreover, however we do set up that data, but we also want to do so in a way that is resilient to the system changing over time.
+
+On a very simple system you could probably get away with using SQL to insert directly into the database, or you could use a toolkit such as link:http://dbunit.sourceforge.net/howto.html[dbunit] to upload data from flat files.  Such approaches aren't particularly maintainable though.  If in the future the domain entities (and therefore corresponding database tables) change their structure, then all of those data sets will need updating.
+
+Even more significantly, there's no way to guarantee that the data that's being loaded is logically consistent with the business behaviour of the domain objects themselves.  That is, there's nothing to stop your test from putting data into the database that would be invalid if one attempted to add it through the app.
+
+The solution that Isis provides is a small library called *_fixture scripts_*.  A fixture script is basically a wrapper for executing arbitrary work, but that work almost always invoking a business action.  These fixture scripts can then be organized either in a fairly flat structure (eg as in the http://github.com/isisaddons/isis-app-todoapp}[Isis addons' todoapp], or as a composite pattern (eg as in https://github.com/estatio/estatio/blob/ea20a6ce257acede50de6ce4fd2ff29713fcd689/estatioapp/fixture/src/main/java/org/estatio/fixture/invoice/InvoiceForLeaseItemTypeOfDiscountOneQuarterForOxfMiracle005.java#L66)[Estatio open source app].
+
+[TIP]
+====
+If you want to learn more on this topic (with live coding!), check out this https://skillsmatter.com/skillscasts/5638-to-those-whom-much-is-given-much-is-expected[presentation] given at BDD Exchange 2014.
+====
+
+
+
+
+== Fake data
+
+In any given test there are often quite a few variables involved, to initialize the state of the objects, or to act as arguments for invoking a method, or when asserting on post-conditions.  Sometimes those values are important (eg verifying that an `Order`'s state went from PENDING to SHIPPED, say), but often they aren't (a customer's name, for example) but nevertheless need to be set up (especially in integration tests).
+
+We want our tests to be easily understood, and we want the reader's eye to be drawn to the values that are significant and ignore those that are not.
+
+One way to do this is to use random (or fake) values for any insignificant data.  This in effect tells the reader that "any value will do".  Moreover, if it turns out that any data won't do, and that there's some behaviour that is sensitive to the value, then the test will start to flicker, passing and then failing depending on inputs.  This is A Good Thing&#8482;.
+
+Apache Isis does not, itself, ship with a fake data library.  However, the http://github.com/isisaddons/isis-module-fakedata}[Isis addons' fakedata] module (non-ASF) does provide exactly this capability.
+
+[TIP]
+====
+Using fake data works very well with fixture scripts; the fixture script can invoke the business action with sensible (fake/random) defaults, and only require that the essential information is passed into it by the test.
+====
+
+
+With all that said, let's look in detail at the testing features provided by Apache Isis.
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_testing_unit-test-support.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_testing_unit-test-support.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_testing_unit-test-support.adoc
index fefae90..526173f 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_testing_unit-test-support.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_testing_unit-test-support.adoc
@@ -3,21 +3,14 @@
 :_basedir: ../
 :_imagesdir: images/
 
-Isis Core provides a number of unit test helpers for you to use (if you wish) to test your domain objects.  To use, update the `pom.xml`:
+Isis Core provides a number of unit test helpers for you to use (if you wish) to unit test your domain objects.
 
-[source,xml]
-----
-<dependency>
-    <groupId>org.apache.isis.core</groupId>
-    <artifactId>isis-core-unittestsupport</artifactId>
-    <scope>test</scope> // <1>
-</dependency>
-----
-<1> Normally `test`; usual Maven scoping rules apply.
 
+== Contract Tests
 
+Contract tests ensure that all instances of a particular idiom/pattern that occur within your codebase are implemented correctly.  You could think of them as being a way to enforce a certain type of coding standard.  Implementation-wise they use link:https://code.google.com/p/reflections/[Reflections] library to scan for classes.
 
-== ``SortedSet``s Contract Test
+=== ``SortedSet``s Contract Test
 
 This contract test automatically checks that all fields of type `java.util.Collection` are declared as `java.util.SortedSet`. In other words, it precludes either `java.util.List` or `java.util.Set` from being used as a collection.
 
@@ -41,15 +34,15 @@ public class SomeDomainObject {
 }
 ----
 
-If using the JDO/DataNucleus Objectstore then we strongly recommend that you implement this test, for several reasons:
-
-* First, ``Set``s align more closely to the relational model than do `List`s. A `List` must have an additional index to specify order.
+If using DataNucleus against an RDBMS (as you probably are) then we strongly recommend that you implement this test, for several reasons:
 
-* Second, `SortedSet` is preferable to `Set` because then the order is well-defined and predictable (to an end user, to the programmer).
+* first, ``Set``s align more closely to the relational model than do `List`s. A `List` must have an additional index to specify order.
 
+* second, `SortedSet` is preferable to `Set` because then the order is well-defined and predictable (to an end user, to the programmer). +
++
 The <<ObjectContracts>> utility class substantially simplifies the task of implementing `Comparable` in your domain classes.
 
-* Third, if the relationship is bidirectional then JDO/Objectstore will automatically maintain the relationship. See link:../components/objectstores/jdo/managed-1-to-m-relationships.html[here] for further discussion.
+* third, if the relationship is bidirectional then JDO/Objectstore will automatically maintain the relationship.
 
 To use the contract test, subclass `SortedSetsContractTestAbstract`, specifying the root package to search for domain classes.
 
@@ -68,8 +61,45 @@ public class SortedSetsContractTestAll extends SortedSetsContractTestAbstract {
 
 
 
+=== Bidirectional Contract Test
+
+This contract test automatically checks that bidirectional 1:m or 1:1 associations are being maintained correctly (assuming that they follow the link:../more-advanced-topics/how-to-04-060-How-to-set-up-and-maintain-bidirectional-relationships.html[mutual registration pattern]
 
-== Injected Services Method Contract Test
+TIP: If using the link:../components/objectstores/jdo/about.html[JDO Object Store], then there is generally no need to programmatically maintain 1:m relationships (indeed it may introduce subtle errors). For more details, see link:../components/objectstores/jdo/managed-1-to-m-relationships.html[here]. Check out the link:../intro/resources/editor-templates.html[Eclipse templates] for further guidance.
+
+For example, suppose that `ParentDomainObject` and `ChildDomainObject` have a 1:m relationship (`ParentDomainObject#children` / `ChildDomainObject#parent`), and also `PeerDomainObject` has a 1:1 relationship with itself (`PeerDomainObject#next` / `PeerDomainObject#previous`).
+
+The following will exercise these relationships:
+
+[source,java]
+----
+public class BidirectionalRelationshipContractTestAll
+        extends BidirectionalRelationshipContractTestAbstract {
+
+    public BidirectionalRelationshipContractTestAll() {
+        super("org.apache.isis.core.unittestsupport.bidir",
+                ImmutableMap.<Class<?>,Instantiator>of(
+                    ChildDomainObject.class, new InstantiatorForChildDomainObject(),
+                    PeerDomainObject.class, new InstantiatorSimple(PeerDomainObjectForTesting.class)
+                ));
+        withLoggingTo(System.out);
+    }
+}
+----
+
+The first argument to the constructor scopes the search for domain objects; usually this would be something like `&quot;com.mycompany.dom&quot;`.
+
+The second argument provides a map of `Instantiator` for certain of the domain object types. This has two main purposes. First, for abstract classes, it nominates an alternative concrete class to be instantiated. Second, for classes (such as `ChildDomainObject`) that are `Comparable` and are held in a `SortedSet`), it provides the ability to ensure that different instances are unique when compared against each other. If no `Instantiator` is provided, then the contract test simply attempts to instantiates the class.
+
+If any of the supporting methods (`addToXxx()`, `removeFromXxx()`, `modifyXxx()` or `clearXxx()`) are missing, the relationship is skipped.
+
+To see what's going on (and to identify any skipped relationships), use the `withLoggingTo()` method call. If any assertion fails then the error should be descriptive enough to figure out the problem (without enabling logging).
+
+The example tests can be found https://github.com/apache/isis/tree/master/core/unittestsupport/src/test/java/org/apache/isis/core/unittestsupport/bidir[here].
+
+
+
+=== Injected Services Method Contract Test
 
 It is quite common for some basic services to be injected in a project-specific domain object superclass; for example a `ClockService` might generally be injected everywhere:
 
@@ -87,6 +117,12 @@ If a subclass inadvertantly overrides this method and provides its own `ClockSer
 
 This contract test automatically checks that the `injectXxx(...)` method, to allow for injected services, is not overridable, ie `final`.
 
+[NOTE]
+====
+This contract test is semi-obsolete; most of the time you will want to use `@javax.inject.Inject` on fields rather than the `injectXxx()` method.  The feature dates from a time before Isis supported the `@Inject` annotation.
+====
+
+
 To use the contract test, , subclass `SortedSetsContractTestAbstract`, specifying the root package to search for domain classes.
 
 For example:
@@ -102,51 +138,40 @@ public class InjectServiceMethodMustBeFinalContractTestAll extends InjectService
 }
 ----
 
+=== Value Objects Contract Test
 
+The `ValueTypeContractTestAbstract` automatically tests that a custom value type implements `equals()` and `hashCode()` correctly.
 
-
-== Bidirectional Contract Test
-
-This contract test automatically checks that bidirectional 1:m or 1:1 associations are being maintained correctly (assuming that they follow the link:../more-advanced-topics/how-to-04-060-How-to-set-up-and-maintain-bidirectional-relationships.html[mutual registration pattern]
-
-TIP: If using the link:../components/objectstores/jdo/about.html[JDO Object Store], then there is generally no need to programmatically maintain 1:m relationships (indeed it may introduce subtle errors). For more details, see link:../components/objectstores/jdo/managed-1-to-m-relationships.html[here]. Check out the link:../intro/resources/editor-templates.html[Eclipse templates] for further guidance.
-
-For example, suppose that `ParentDomainObject` and `ChildDomainObject` have a 1:m relationship (`ParentDomainObject#children` / `ChildDomainObject#parent`), and also `PeerDomainObject` has a 1:1 relationship with itself (`PeerDomainObject#next` / `PeerDomainObject#previous`).
-
-The following will exercise these relationships:
+For example, testing JDK's own `java.math.BigInteger` can be done as follows:
 
 [source,java]
 ----
-public class BidirectionalRelationshipContractTestAll
-        extends BidirectionalRelationshipContractTestAbstract {
+public class ValueTypeContractTestAbstract_BigIntegerTest extends ValueTypeContractTestAbstract<BigInteger> {
 
-    public BidirectionalRelationshipContractTestAll() {
-        super("org.apache.isis.core.unittestsupport.bidir",
-                ImmutableMap.<Class<?>,Instantiator>of(
-                    ChildDomainObject.class, new InstantiatorForChildDomainObject(),
-                    PeerDomainObject.class, new InstantiatorSimple(PeerDomainObjectForTesting.class)
-                ));
-        withLoggingTo(System.out);
+    @Override
+    protected List<BigInteger> getObjectsWithSameValue() {
+        return Arrays.asList(new BigInteger("1"), new BigInteger("1"));
+    }
+
+    @Override
+    protected List<BigInteger> getObjectsWithDifferentValue() {
+        return Arrays.asList(new BigInteger("2"));
     }
 }
 ----
 
-The first argument to the constructor scopes the search for domain objects; usually this would be something like `&quot;com.mycompany.dom&quot;`.
-
-The second argument provides a map of `Instantiator` for certain of the domain object types. This has two main purposes. First, for abstract classes, it nominates an alternative concrete class to be instantiated. Second, for classes (such as `ChildDomainObject`) that are `Comparable` and are held in a `SortedSet`), it provides the ability to ensure that different instances are unique when compared against each other. If no `Instantiator` is provided, then the contract test simply attempts to instantiates the class.
-
-If any of the supporting methods (`addToXxx()`, `removeFromXxx()`, `modifyXxx()` or `clearXxx()`) are missing, the relationship is skipped.
-
-To see what's going on (and to identify any skipped relationships), use the `withLoggingTo()` method call. If any assertion fails then the error should be descriptive enough to figure out the problem (without enabling logging).
-
-The example tests can be found https://github.com/apache/isis/tree/master/core/unittestsupport/src/test/java/org/apache/isis/core/unittestsupport/bidir[here].
-
+The example unit tests can be found https://github.com/apache/isis/tree/master/core/unittestsupport/src/test/java/org/apache/isis/core/unittestsupport/value[here].
 
 
 
 == JMock Extensions
 
-`JUnitRuleMockery2` is an extension to the JMock's `JunitRuleMockery`, providing a simpler API and also providing support for autowiring.
+`JUnitRuleMockery2` is an extension to the link:http://www.jmock.org/[JMock]'s `JunitRuleMockery`, providing a simpler API and also providing support for autowiring.
+
+[TIP]
+====
+We're fans of JMock, and we're even bigger fans of JMock's authors, Steve Freeman and Nat Pryce.  If testing is even a little bit of interest to you, check out their great link:http://www.growing-object-oriented-software.com/[GOOS] book, and check out their blogs, in particular link:http://natpryce.com/articles.html[Nat's].
+====
 
 For example, here we see that the class under test, an instance of `CollaboratingUsingSetterInjection`, is automatically wired up with its `Collaborator`:
 
@@ -170,31 +195,31 @@ public class JUnitRuleMockery2Test_autoWiring_setterInjection_happyCase {
 }
 ----
 
-The example tests can be found https://github.com/apache/isis/tree/master/core/unittestsupport/src/test/java/org/apache/isis/core/unittestsupport/jmocking[here]
+[NOTE]
+====
+Isis also includes (and automatically uses) a link:http://www.csg.ci.i.u-tokyo.ac.jp/~chiba/javassist/[Javassist]-based implementation of JMock's link:http://www.jmock.org/mocking-classes.html[`ClassImposteriser`] interface, so that you can mock out concrete classes as well as interfaces.  We've provided this rather than JMock's own cglib-based implementation (which is problematic for us given its own dependencies on link:http://asm.ow2.org/[asm]).
+====
 
 
+The example tests can be found https://github.com/apache/isis/tree/master/core/unittestsupport/src/test/java/org/apache/isis/core/unittestsupport/jmocking[here]
 
 
-== Value Objects Contract Test
 
-The `ValueTypeContractTestAbstract` automatically tests that a custom value type implements `equals()` and `hashCode()` correctly.
 
-For example, testing JDK's own `java.math.BigInteger` can be done as follows:
 
-[source,java]
-----
-public class ValueTypeContractTestAbstract_BigIntegerTest extends ValueTypeContractTestAbstract<BigInteger> {
 
-    @Override
-    protected List<BigInteger> getObjectsWithSameValue() {
-        return Arrays.asList(new BigInteger("1"), new BigInteger("1"));
-    }
+== Maven Configuration
 
-    @Override
-    protected List<BigInteger> getObjectsWithDifferentValue() {
-        return Arrays.asList(new BigInteger("2"));
-    }
-}
+Apache Isis' unit test support is automatically configured if you use the <<_simpleapp_archetype, SimpleApp archetype>>.  To set it up manually, update the `pom.xml` of your domain object model module:
+
+[source,xml]
+----
+<dependency>
+    <groupId>org.apache.isis.core</groupId>
+    <artifactId>isis-core-unittestsupport</artifactId>
+    <scope>test</scope> // <1>
+</dependency>
 ----
+<1> Normally `test`; usual Maven scoping rules apply.
+
 
-The example unit tests can be found https://github.com/apache/isis/tree/master/core/unittestsupport/src/test/java/org/apache/isis/core/unittestsupport/value[here].
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/images/testing/integ-tests.png
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/images/testing/integ-tests.png b/adocs/documentation/src/main/asciidoc/user-guide/images/testing/integ-tests.png
new file mode 100644
index 0000000..7c47d7e
Binary files /dev/null and b/adocs/documentation/src/main/asciidoc/user-guide/images/testing/integ-tests.png differ

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/images/testing/integ-tests.pptx
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/images/testing/integ-tests.pptx b/adocs/documentation/src/main/asciidoc/user-guide/images/testing/integ-tests.pptx
new file mode 100644
index 0000000..df192b8
Binary files /dev/null and b/adocs/documentation/src/main/asciidoc/user-guide/images/testing/integ-tests.pptx differ

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/images/testing/wrapper-factory.png
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/images/testing/wrapper-factory.png b/adocs/documentation/src/main/asciidoc/user-guide/images/testing/wrapper-factory.png
new file mode 100644
index 0000000..ee68cd5
Binary files /dev/null and b/adocs/documentation/src/main/asciidoc/user-guide/images/testing/wrapper-factory.png differ

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/user-guide.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/user-guide.adoc b/adocs/documentation/src/main/asciidoc/user-guide/user-guide.adoc
index efda3e4..7107ee1 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/user-guide.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/user-guide.adoc
@@ -4,34 +4,19 @@
 :_imagesdir: images/
 :numbered:
 
-include::_user-guide_core-concepts.adoc[leveloffset=+1]
-
-include::_user-guide_getting-started.adoc[leveloffset=+1]
-
-include::_user-guide_how-tos.adoc[leveloffset=+1]
-
-include::_user-guide_more-advanced.adoc[leveloffset=+1]
-
+//include::_user-guide_core-concepts.adoc[leveloffset=+1]
+//include::_user-guide_getting-started.adoc[leveloffset=+1]
+//include::_user-guide_how-tos.adoc[leveloffset=+1]
+//include::_user-guide_more-advanced.adoc[leveloffset=+1]
 include::_user-guide_reference.adoc[leveloffset=+1]
-
-include::_user-guide_wicket-viewer.adoc[leveloffset=+1]
-
-include::_user-guide_restfulobjects-viewer.adoc[leveloffset=+1]
-
-include::_user-guide_security.adoc[leveloffset=+1]
-
+//include::_user-guide_wicket-viewer.adoc[leveloffset=+1]
+//include::_user-guide_restfulobjects-viewer.adoc[leveloffset=+1]
+//include::_user-guide_security.adoc[leveloffset=+1]
 include::_user-guide_runtime.adoc[leveloffset=+1]
-
-include::_user-guide_deployment.adoc[leveloffset=+1]
-
+//include::_user-guide_deployment.adoc[leveloffset=+1]
 include::_user-guide_testing.adoc[leveloffset=+1]
-
-include::_user-guide_headless-access.adoc[leveloffset=+1]
-
-include::_user-guide_isis-addons-modules.adoc[leveloffset=+1]
-
-include::_user-guide_extending.adoc[leveloffset=+1]
-
-include::_user-guide_troubleshooting.adoc[leveloffset=+1]
-
-include::_user-guide_appendices.adoc[leveloffset=+1]
+//include::_user-guide_headless-access.adoc[leveloffset=+1]
+//include::_user-guide_isis-addons-modules.adoc[leveloffset=+1]
+//include::_user-guide_extending.adoc[leveloffset=+1]
+//include::_user-guide_troubleshooting.adoc[leveloffset=+1]
+//include::_user-guide_appendices.adoc[leveloffset=+1]

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/template/document.html.erb
----------------------------------------------------------------------
diff --git a/adocs/template/document.html.erb b/adocs/template/document.html.erb
index a1a634f..739b29d 100644
--- a/adocs/template/document.html.erb
+++ b/adocs/template/document.html.erb
@@ -82,6 +82,19 @@
     </style>
 
     <style>
+        @media only screen and (min-width: 40.063em) {
+          .top-bar {
+            .contain-to-grid .top-bar {
+                max-width: 80rem;
+            }
+          }
+        }
+        .row {
+            max-width: 80rem;
+        }
+    </style>
+
+    <style>
         .extended-quote,
         .extended-quote-first {
             margin-left: 40px;
@@ -177,6 +190,10 @@
           color: #210DDC;
         }
 
+        .top-bar h1 {
+            border-bottom: inherit;
+        }
+
         h2 {
           margin-top: 100px;
         }
@@ -230,6 +247,31 @@
         }
     </style>
 
+    <style>
+        .top-bar
+        {
+            -webkit-transition-duration: .5s;
+            transition-duration: .5s;
+
+            -webkit-transition-timing-function: cubic-bezier( 0.215, 0.610, 0.355, 1.000 );
+            transition-timing-function: cubic-bezier( 0.215, 0.610, 0.355, 1.000 );
+
+            -webkit-transition-property: -webkit-transform;
+            transition-property: transform;
+        }
+
+        /*
+        http://osvaldas.info/auto-hide-sticky-header
+        MIT license
+        */
+        .header--hidden
+        {
+            -webkit-transform: translateY( -100% );
+            -ms-transform: translateY( -100% );
+            transform: translateY( -100% );
+        }
+    </style>
+
 </script>
 
 </head>
@@ -243,8 +285,8 @@
 
 <div class="row">
 
-    <div class="fixed contain-to-grid">
-        <nav class="top-bar" data-topbar role="navigation">
+    <div class="fixed contain-to-grid header">
+        <nav class="top-bar" data-topbar role="navigation" style="max-width: 80rem">
             <ul class="title-area">
                 <li class="name">
                     <h1>
@@ -338,7 +380,7 @@
 </div>
 
 <div class="row">
-    <div class="large-12 medium-12 columns">
+    <div class="large-9 medium-9 columns">
 
         <div id="doc-content">
           <%= document.content %>
@@ -355,11 +397,7 @@
 
     </div>
 
-    <!--
-    as a column to the right
-    (previous was using foundation in a 9:3 ratio with the content, above... decided was too crammed.
-    -->
-    <div class="xlarge-3 xmedium-3 xcolumns">
+    <div class="large-3 medium-3 xcolumns">
         <div id="toc" class="<%= attr 'toc-class', 'toc2' %>">
           <%= converter.convert_with_options @document, 'outline', :toclevels => 6  %>
         </div>
@@ -416,6 +454,8 @@
 
            if (lastId !== id && id) {
                scrollTo(id);
+               $(".header").addClass("header--hidden");
+
            }
 
            window.history.pushState({}, "", window.location.origin + window.location.pathname + "#" + id);
@@ -498,6 +538,78 @@ $( document ).ready(function() {
       });
     }).call(this);
 
+
+
+	/*
+        http://osvaldas.info/auto-hide-sticky-header
+        MIT license
+	*/
+	;( function( $, window, document, undefined )
+	{
+		'use strict';
+
+		var elSelector		= '.header',
+			elClassHidden	= 'header--hidden',
+			throttleTimeout	= 500,
+			$element		= $( elSelector );
+
+		if( !$element.length ) return true;
+
+		var $window			= $( window ),
+			wHeight			= 0,
+			wScrollCurrent	= 0,
+			wScrollBefore	= 0,
+			wScrollDiff		= 0,
+			$document		= $( document ),
+			dHeight			= 0,
+
+			throttle = function( delay, fn )
+			{
+				var last, deferTimer;
+				return function()
+				{
+					var context = this, args = arguments, now = +new Date;
+					if( last && now < last + delay )
+					{
+						clearTimeout( deferTimer );
+						deferTimer = setTimeout( function(){ last = now; fn.apply( context, args ); }, delay );
+					}
+					else
+					{
+						last = now;
+						fn.apply( context, args );
+					}
+				};
+			};
+
+		$window.on( 'scroll', throttle( throttleTimeout, function()
+		{
+			dHeight			= $document.height();
+			wHeight			= $window.height();
+			wScrollCurrent	= $window.scrollTop();
+			wScrollDiff		= wScrollBefore - wScrollCurrent;
+
+			if( wScrollCurrent <= 0 ) // scrolled to the very top; element sticks to the top
+				$element.removeClass( elClassHidden );
+
+			else if( wScrollDiff > 0 && $element.hasClass( elClassHidden ) ) // scrolled up; element slides in
+				$element.removeClass( elClassHidden );
+
+			else if( wScrollDiff < 0 ) // scrolled down
+			{
+				if( wScrollCurrent + wHeight >= dHeight && $element.hasClass( elClassHidden ) ) // scrolled to the very bottom; element slides in
+					$element.removeClass( elClassHidden );
+
+				else // scrolled down; element slides out
+					$element.addClass( elClassHidden );
+			}
+
+			wScrollBefore = wScrollCurrent;
+		}));
+
+	})( jQuery, window, document );
+
+
 });
 </script>
 

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/example/application/simpleapp/integtests/src/test/java/domainapp/integtests/bootstrap/SimpleAppSystemInitializer.java
----------------------------------------------------------------------
diff --git a/example/application/simpleapp/integtests/src/test/java/domainapp/integtests/bootstrap/SimpleAppSystemInitializer.java b/example/application/simpleapp/integtests/src/test/java/domainapp/integtests/bootstrap/SimpleAppSystemInitializer.java
index bb02b37..28e9d37 100644
--- a/example/application/simpleapp/integtests/src/test/java/domainapp/integtests/bootstrap/SimpleAppSystemInitializer.java
+++ b/example/application/simpleapp/integtests/src/test/java/domainapp/integtests/bootstrap/SimpleAppSystemInitializer.java
@@ -19,12 +19,11 @@
 package domainapp.integtests.bootstrap;
 
 import org.apache.isis.core.commons.config.IsisConfiguration;
-import org.apache.isis.core.integtestsupport.IntegrationTestAbstract;
 import org.apache.isis.core.integtestsupport.IsisSystemForTest;
 import org.apache.isis.objectstore.jdo.datanucleus.DataNucleusPersistenceMechanismInstaller;
 import org.apache.isis.objectstore.jdo.datanucleus.IsisConfigurationForJdoIntegTests;
 
-public class SimpleAppSystemInitializer extends IntegrationTestAbstract {
+public class SimpleAppSystemInitializer {
 
     public static void initIsft() {
         IsisSystemForTest isft = IsisSystemForTest.getElseNull();

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/example/application/simpleapp/integtests/src/test/java/domainapp/integtests/tests/SimpleAppIntegTest.java
----------------------------------------------------------------------
diff --git a/example/application/simpleapp/integtests/src/test/java/domainapp/integtests/tests/SimpleAppIntegTest.java b/example/application/simpleapp/integtests/src/test/java/domainapp/integtests/tests/SimpleAppIntegTest.java
index 1c0bd0a..3ceef4e 100644
--- a/example/application/simpleapp/integtests/src/test/java/domainapp/integtests/tests/SimpleAppIntegTest.java
+++ b/example/application/simpleapp/integtests/src/test/java/domainapp/integtests/tests/SimpleAppIntegTest.java
@@ -18,19 +18,20 @@
  */
 package domainapp.integtests.tests;
 
-import domainapp.integtests.bootstrap.SimpleAppSystemInitializer;
-
 import org.junit.BeforeClass;
+
 import org.apache.isis.core.integtestsupport.IntegrationTestAbstract;
 import org.apache.isis.core.integtestsupport.scenarios.ScenarioExecutionForIntegration;
 
+import domainapp.integtests.bootstrap.SimpleAppSystemInitializer;
+
 public abstract class SimpleAppIntegTest extends IntegrationTestAbstract {
 
     @BeforeClass
     public static void initClass() {
         org.apache.log4j.PropertyConfigurator.configure("logging.properties");
         SimpleAppSystemInitializer.initIsft();
-        
+
         // instantiating will install onto ThreadLocal
         new ScenarioExecutionForIntegration();
     }

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/example/application/simpleapp/integtests/src/test/java/domainapp/integtests/tests/modules/simple/SimpleObjectIntegTest.java
----------------------------------------------------------------------
diff --git a/example/application/simpleapp/integtests/src/test/java/domainapp/integtests/tests/modules/simple/SimpleObjectIntegTest.java b/example/application/simpleapp/integtests/src/test/java/domainapp/integtests/tests/modules/simple/SimpleObjectIntegTest.java
index 077e9cb..5b8b6a0 100644
--- a/example/application/simpleapp/integtests/src/test/java/domainapp/integtests/tests/modules/simple/SimpleObjectIntegTest.java
+++ b/example/application/simpleapp/integtests/src/test/java/domainapp/integtests/tests/modules/simple/SimpleObjectIntegTest.java
@@ -19,35 +19,24 @@
 package domainapp.integtests.tests.modules.simple;
 
 import javax.inject.Inject;
+
 import org.junit.Before;
-import org.junit.Rule;
 import org.junit.Test;
-import org.junit.rules.ExpectedException;
+
 import org.apache.isis.applib.DomainObjectContainer;
 import org.apache.isis.applib.fixturescripts.FixtureScripts;
-import org.apache.isis.applib.services.i18n.TranslationService;
 import org.apache.isis.applib.services.wrapper.DisabledException;
 import org.apache.isis.applib.services.wrapper.InvalidException;
+
 import domainapp.dom.modules.simple.SimpleObject;
-import domainapp.dom.modules.simple.SimpleObjects;
 import domainapp.fixture.scenarios.RecreateSimpleObjects;
 import domainapp.integtests.tests.SimpleAppIntegTest;
-import static org.hamcrest.CoreMatchers.is;
-import static org.hamcrest.CoreMatchers.not;
-import static org.hamcrest.CoreMatchers.nullValue;
 import static org.assertj.core.api.Assertions.assertThat;
 
 public class SimpleObjectIntegTest extends SimpleAppIntegTest {
 
-    @Rule
-    public ExpectedException expectedException = ExpectedException.none();
-
     @Inject
     FixtureScripts fixtureScripts;
-    @Inject
-    SimpleObjects simpleObjects;
-    @Inject
-    TranslationService translationService;
 
     RecreateSimpleObjects fs;
     SimpleObject simpleObjectPojo;

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/example/application/simpleapp/integtests/src/test/java/domainapp/integtests/tests/modules/simple/SimpleObjectsIntegTest.java
----------------------------------------------------------------------
diff --git a/example/application/simpleapp/integtests/src/test/java/domainapp/integtests/tests/modules/simple/SimpleObjectsIntegTest.java b/example/application/simpleapp/integtests/src/test/java/domainapp/integtests/tests/modules/simple/SimpleObjectsIntegTest.java
index 533900a..fd3b0ff 100644
--- a/example/application/simpleapp/integtests/src/test/java/domainapp/integtests/tests/modules/simple/SimpleObjectsIntegTest.java
+++ b/example/application/simpleapp/integtests/src/test/java/domainapp/integtests/tests/modules/simple/SimpleObjectsIntegTest.java
@@ -20,36 +20,32 @@ package domainapp.integtests.tests.modules.simple;
 
 import java.sql.SQLIntegrityConstraintViolationException;
 import java.util.List;
+
 import javax.inject.Inject;
+
 import com.google.common.base.Throwables;
+
 import org.hamcrest.Description;
 import org.hamcrest.Matcher;
 import org.hamcrest.TypeSafeMatcher;
-import org.junit.Rule;
 import org.junit.Test;
-import org.junit.rules.ExpectedException;
-import org.apache.isis.applib.DomainObjectContainer;
+
 import org.apache.isis.applib.fixturescripts.FixtureScript;
 import org.apache.isis.applib.fixturescripts.FixtureScripts;
+
 import domainapp.dom.modules.simple.SimpleObject;
 import domainapp.dom.modules.simple.SimpleObjects;
 import domainapp.fixture.modules.simple.SimpleObjectsTearDown;
 import domainapp.fixture.scenarios.RecreateSimpleObjects;
 import domainapp.integtests.tests.SimpleAppIntegTest;
-import static org.hamcrest.CoreMatchers.is;
 import static org.assertj.core.api.Assertions.assertThat;
 
 public class SimpleObjectsIntegTest extends SimpleAppIntegTest {
 
-    @Rule
-    public ExpectedException expectedException = ExpectedException.none();
-
     @Inject
     FixtureScripts fixtureScripts;
     @Inject
     SimpleObjects simpleObjects;
-    @Inject
-    DomainObjectContainer container;
 
     public static class ListAll extends SimpleObjectsIntegTest {
 
@@ -116,7 +112,7 @@ public class SimpleObjectsIntegTest extends SimpleAppIntegTest {
             nextTransaction();
 
             // then
-            expectedException.expectCause(causalChainContains(SQLIntegrityConstraintViolationException.class));
+            expectedExceptions.expectCause(causalChainContains(SQLIntegrityConstraintViolationException.class));
 
             // when
             wrap(simpleObjects).create("Faz");


[5/9] isis git commit: ISIS-1133: summary tables for reference sections

Posted by da...@apache.org.
http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_auditing-service.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_auditing-service.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_auditing-service.adoc
new file mode 100644
index 0000000..27d102c
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_auditing-service.adoc
@@ -0,0 +1,13 @@
+= `AuditingService`
+: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
+
+
+
+
+== Isis Addons Implementation
+
+For 1.7.0+, see the http://github.com/isisaddons/isis-module-audit[Isis addons' Audit module] (non-ASF).

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_background-command-service.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_background-command-service.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_background-command-service.adoc
new file mode 100644
index 0000000..3111628
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_background-command-service.adoc
@@ -0,0 +1,12 @@
+= `BackgroundCommandService`
+: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
+
+
+== Isis Addons Implementation
+
+For 1.7.0+, see the http://github.com/isisaddons/isis-module-command[Isis addons' Command module] (non-ASF).
+

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_background-service.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_background-service.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_background-service.adoc
new file mode 100644
index 0000000..74c69e5
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_background-service.adoc
@@ -0,0 +1,8 @@
+= `BackgroundService`
+: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
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_bookmark-service.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_bookmark-service.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_bookmark-service.adoc
new file mode 100644
index 0000000..5d0024a
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_bookmark-service.adoc
@@ -0,0 +1,8 @@
+= `BookmarkService`
+: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
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_clock-service.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_clock-service.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_clock-service.adoc
new file mode 100644
index 0000000..1b4675d
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_clock-service.adoc
@@ -0,0 +1,8 @@
+= `ClockService`
+: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
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_command-context.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_command-context.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_command-context.adoc
new file mode 100644
index 0000000..15c250c
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_command-context.adoc
@@ -0,0 +1,8 @@
+= `CommandContext`
+: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
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_command-service.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_command-service.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_command-service.adoc
new file mode 100644
index 0000000..ab86189
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_command-service.adoc
@@ -0,0 +1,11 @@
+= `CommandService`
+: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
+
+
+== Isis Addons Implementation
+
+For 1.7.0+, see the http://github.com/isisaddons/isis-module-command[Isis addons' Command module] (non-ASF).

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_content-mapping-service.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_content-mapping-service.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_content-mapping-service.adoc
new file mode 100644
index 0000000..09d20f9
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_content-mapping-service.adoc
@@ -0,0 +1,8 @@
+= `ContentMappingService`
+: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
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_content-negotiation-service.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_content-negotiation-service.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_content-negotiation-service.adoc
new file mode 100644
index 0000000..89933f9
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_content-negotiation-service.adoc
@@ -0,0 +1,8 @@
+= `ContentNegotiationService`
+: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
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_deep-link-service.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_deep-link-service.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_deep-link-service.adoc
new file mode 100644
index 0000000..7135b31
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_deep-link-service.adoc
@@ -0,0 +1,8 @@
+= `DeepLinkService`
+: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
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_domain-object-container.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_domain-object-container.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_domain-object-container.adoc
new file mode 100644
index 0000000..53d253f
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_domain-object-container.adoc
@@ -0,0 +1,8 @@
+= `DomainObjectContainer`
+: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
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_email-notification-service.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_email-notification-service.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_email-notification-service.adoc
new file mode 100644
index 0000000..2a99016
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_email-notification-service.adoc
@@ -0,0 +1,8 @@
+= `EmailNotificationService`
+: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
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_email-service.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_email-service.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_email-service.adoc
new file mode 100644
index 0000000..6f78302
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_email-service.adoc
@@ -0,0 +1,8 @@
+= `EmailService`
+: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
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_event-bus-service.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_event-bus-service.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_event-bus-service.adoc
new file mode 100644
index 0000000..43275fe
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_event-bus-service.adoc
@@ -0,0 +1,15 @@
+= `EventBusService`
+: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
+
+## Implementation
+
+IMPORTANT: TODO
+
+## Registration
+
+The `EventBusServiceJdo` class provides the default implementation and (as of 1.6.0+) is automatically registered using `@DomainService`.  No further configuration is necessary.
+

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_exception-recognizer.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_exception-recognizer.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_exception-recognizer.adoc
new file mode 100644
index 0000000..04e7561
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_exception-recognizer.adoc
@@ -0,0 +1,8 @@
+= `ExceptionRecognizer`
+: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
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_isis-jdo-support.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_isis-jdo-support.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_isis-jdo-support.adoc
new file mode 100644
index 0000000..3c1873a
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_isis-jdo-support.adoc
@@ -0,0 +1,129 @@
+= `IsisJdoSupport`
+: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/
+
+
+The `IsisJdoSupport` service provides a number of general purpose methods for working with the JDO/DataNucleus objectstore.
+
+
+== API
+
+The API provided by `IsisJdoSupport` is:
+
+[source,java]
+----
+public interface IsisJdoSupport {
+    List<Map<String, Object>> executeSql(String sql);
+    Integer executeUpdate(String sql);
+    void deleteAll(Class<?>... pcClasses);
+    <T> T refresh(T domainObject);
+    void ensureLoaded(Collection<?> collectionOfDomainObjects);
+    PersistenceManager getJdoPersistenceManager();
+}
+----
+
+Each of these methods are discussed in more details below.
+
+
+== Executing arbitrary SQL
+
+The `executeSql(...)` method allows arbitrary queries to be submitted:
+
+[source,java]
+----
+List<Map<String, Object>> results = isisJdoSupport.executeSql("select * from custMgmt.customers");
+----
+
+The result set is automatically converted into a list of maps, where the map key is the column name.
+
+
+In a similar manner, the `executeUpdate(...)` allows arbitrary updates to be performed.
+
+[source,java]
+----
+int count = isisJdoSupport.executeUpdate("select count(*) from custMgmt.customers);
+----
+
+The returned value is the number of rows updated.
+
+
+
+== Fixture support
+
+The `deleteAll(...)` method is provided pretty much exclusively for tearing down fixture data:
+
+[source,java]
+----
+deleteAll(Order.class);
+deleteAll(CustomerAddress.class);
+deleteAll(Customer.class);
+----
+
+[NOTE]
+====
+It can occasionally be the case that Isis' internal adapter for the domain object is
+still in memory.  JDO/DataNucleus seems to bump up the version of the object prior to its deletion,
+which under normal circumstances would cause Isis to throw a concurrency exception.  Therefore
+to prevent this from happening (ie to <i>force</i> the deletion of all instances), concurrency checking
+is temporarily disabled while this method is performed.
+====
+
+
+
+== Reloading entities
+
+A http://www.datanucleus.org/products/datanucleus/jdo/orm/relationships.html[known limitation] of DataNucleus' implementation of JDO is that persisting a child entity (in a 1:n bidirectional relationship) does not cause the parent's collection to be updated.
+
+The `refresh(T domainObject)` method can be used to reload the parent object (or indeed any object).
+
+For example:
+
+[source,java]
+----
+public Order newOrder(final Customer customer) {
+    Order order = newTransientInstance(Order.class);
+    order.setCustomer(customer);
+    persist(customer);
+    getContainer().flush(); // <1>
+    isisJdoSupport.refresh(customer); // <2>
+    return order;
+}
+----
+<1> flush to database
+<2> reload parent from database
+
+
+[NOTE]
+====
+The particular example that led to this method being added was a 1:m bidirectional relationship,
+analogous to `Customer <-> * Order`.  Persisting the child `Order` object did not cause
+the parent ``Customer``'s collection of orders to be updated.  In fact, JDO does not make any
+such guarantee to do so.  Options are therefore either to maintain the collection in code, or to
+refresh the parent.
+
+====
+
+
+
+
+== Using JDO `PersistenceManager` directly
+
+Apache Isis provides a simplified API on top of only supports JDO, and so does not support all of JDO's features.  For example, Isis (currently) only supports named queries.  If you require more flexibility than this, eg for dynamically constructed queries, then the service provides access to the underlying JDO `PersistenceManager` API:
+
+[source,java]
+----
+public List<Order> findOrders(...) {
+    javax.jdo.PersistenceManager pm = isisJdoSupport.getPersistenceManager();
+
+    // knock yourself out...
+
+    return someListOfOrders;
+}
+----
+
+
+
+== Registering the Service
+
+The `IsisJdoSupportImpl` class provides the default implementation and (as of 1.6.0+) is automatically registered using `@DomainService`.  No further configuration is necessary.

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_locale-provider.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_locale-provider.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_locale-provider.adoc
new file mode 100644
index 0000000..4956f49
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_locale-provider.adoc
@@ -0,0 +1,8 @@
+= `LocaleProvider`
+: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
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_memento-service.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_memento-service.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_memento-service.adoc
new file mode 100644
index 0000000..f06a824
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_memento-service.adoc
@@ -0,0 +1,8 @@
+= `MementoService`
+: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
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_metamodel-service.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_metamodel-service.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_metamodel-service.adoc
new file mode 100644
index 0000000..cb298dc
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_metamodel-service.adoc
@@ -0,0 +1,8 @@
+= `MetamodelService`
+: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
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_publishing-service.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_publishing-service.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_publishing-service.adoc
new file mode 100644
index 0000000..93b17c1
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_publishing-service.adoc
@@ -0,0 +1,11 @@
+= `PublishingService`
+: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
+
+
+== Isis Addons Implementation
+
+For 1.7.0+, see the http://github.com/isisaddons/isis-module-publishing[Isis addons' Publishing module] (non-ASF).

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_query-results-cache.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_query-results-cache.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_query-results-cache.adoc
new file mode 100644
index 0000000..0b22d23
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_query-results-cache.adoc
@@ -0,0 +1,8 @@
+= `QueryResultsCache`
+: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
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_scratch-pad.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_scratch-pad.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_scratch-pad.adoc
new file mode 100644
index 0000000..0a11596
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_scratch-pad.adoc
@@ -0,0 +1,8 @@
+= `ScratchPad`
+: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
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_settings-service.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_settings-service.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_settings-service.adoc
new file mode 100644
index 0000000..c101412
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_settings-service.adoc
@@ -0,0 +1,48 @@
+= `SettingsService`
+: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/
+
+[NOTE]
+====
+This service (both its API and implementation) are entirely independent of Apache Isis, being part of the http://github.com/isisaddons/isis-module-settings}[Isis addons' Settings module] (non-ASF).  The service is documented here for your convenience.
+====
+
+== Application Settings
+
+=== API
+
+IMPORTANT: TODO
+
+=== Implementation
+
+In the case of `ApplicationSettingsService`, the service is implemented by `ApplicationSettingsServiceJdo`, with the `ApplicationSetting` interface implemented by a `ApplicationSettingsJdo` entity.
+
+The service also provides the ability to create list all existing settings, create new settings (of whichever datatype), update settings, and to delete settings.
+
+These actions can be hidden using security if need be.
+
+== User Settings
+
+=== API
+
+IMPORTANT: TODO
+
+=== Implementation
+
+In the case of `UserSettingsService`, the service is implemented by `UserSettingsServiceJdo`, with the `UserSetting` interface implemented by a `UserSettingsJdo` entity.
+
+As for application settings, the user settings service also provides the ability to create list all existing settings, create new settings (of whichever datatype), update settings, and to delete settings.
+
+These actions can be hidden using security if need be.
+
+
+== Registration and Configuration
+
+The `ApplicationSettingsServiceJdo` class and `UserSettingsServiceJdo` are annotated with `@DomainService` and so are automatically registered with the framework, with actions appearing on the secondary menu bar.
+
+IMPORTANT: TODO - screenshot of settings menu
+
+All actions from the services emit domain events.  If you wish to hide/disable these default actions in your application, we recommend using up a subscriber on the actions' domain events to veto their visibility/usability.
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_translation-service.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_translation-service.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_translation-service.adoc
new file mode 100644
index 0000000..0c1b16e
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_translation-service.adoc
@@ -0,0 +1,8 @@
+= `TranslationService`
+: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
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_translations-resolver.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_translations-resolver.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_translations-resolver.adoc
new file mode 100644
index 0000000..7148bc7
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_translations-resolver.adoc
@@ -0,0 +1,8 @@
+= `TranslationsResolver`
+: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
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_user-profile-service.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_user-profile-service.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_user-profile-service.adoc
new file mode 100644
index 0000000..6b56835
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_user-profile-service.adoc
@@ -0,0 +1,8 @@
+= `UserProfileService`
+: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
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_user-registration-service.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_user-registration-service.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_user-registration-service.adoc
new file mode 100644
index 0000000..ab1a666
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_user-registration-service.adoc
@@ -0,0 +1,8 @@
+= `UserRegistrationService`
+: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
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_wrapper-factory.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_wrapper-factory.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_wrapper-factory.adoc
new file mode 100644
index 0000000..75e9d25
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_wrapper-factory.adoc
@@ -0,0 +1,8 @@
+= `WrapperFactory`
+: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
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_xml-snapshot-service.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_xml-snapshot-service.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_xml-snapshot-service.adoc
new file mode 100644
index 0000000..f82a24a
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_xml-snapshot-service.adoc
@@ -0,0 +1,8 @@
+= `XmlSnapshotService`
+: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
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_security_shiro-isisaddons-security-module-realm.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_security_shiro-isisaddons-security-module-realm.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_security_shiro-isisaddons-security-module-realm.adoc
index 20c3738..7f99cb0 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_security_shiro-isisaddons-security-module-realm.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_security_shiro-isisaddons-security-module-realm.adoc
@@ -5,7 +5,7 @@
 
 
 
-The Isis Addons' https://github.com/isisaddons/isis-module-security[security module] (not ASF) provides a complete
+The https://github.com/isisaddons/isis-module-security[Isis Addons' security module] (not ASF) provides a complete
 security subdomain for users, roles, permissions; all are persisted as domain entities.
 
 What that means, of course, that they can also be administered through your Isis application.  Moreover, the set of permissions (to features) is derived completely from your application's metamodel; in essence the permissions are "type-safe".  

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_security_usage-by-isis-viewers.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_security_usage-by-isis-viewers.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_security_usage-by-isis-viewers.adoc
index 19fd054..667adde 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_security_usage-by-isis-viewers.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_security_usage-by-isis-viewers.adoc
@@ -57,7 +57,7 @@ The sign-in verification page to render is pluggable; see <<_custom_pages, exten
 
 User registration is only available if the <<_user_registration_service, `UserRegistrationService`>> is configured; this is used by the framework to actually create new instances of the user as accessed by the corresponding (Shiro) realm.
 
-Because Shiro realms are pluggable, the Isis framework does not provide default implementations of this service.  However, if you are using the Isis addons' http://github.com/isisaddons/isis-module-security}[Isis addons' security] module (non-ASF), then this module _does_ provide an implementation (that, as you might expect, creates new "user" domain entities).
+Because Shiro realms are pluggable, the Isis framework does not provide default implementations of this service.  However, if you are using the http://github.com/isisaddons/isis-module-security}[Isis addons' security] module (non-ASF), then this module _does_ provide an implementation (that, as you might expect, creates new "user" domain entities).
 
 If you are using an LDAP realm and want to enable user-self registration then you'll need to write your own implementation of this service.
 

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_testing.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_testing.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_testing.adoc
index cb7962e..3566e62 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_testing.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_testing.adoc
@@ -3,20 +3,18 @@
 :_basedir: ../
 :_imagesdir: images/
 
-IMPORTANT: TODO
 
-include::_user-guide_testing_unit-test-support.adoc[leveloffset=+1]
-
-include::_user-guide_testing_integ-test-support.adoc[leveloffset=+1]
-
-include::_user-guide_testing_bdd-spec-support.adoc[leveloffset=+1]
 
-include::_user-guide_testing_fixture-scripts.adoc[leveloffset=+1]
+If you are going to use Apache Isis for developing complex business-critical applications, then being able to write automated tests for those applications becomes massively important.  As such Apache Isis treats the topic of testing very seriously, and (though we say it ourselves) has support that goes way above what is provided by other application frameworks.
 
-include::_user-guide_testing_fake-data.adoc[leveloffset=+1]
 
+include::_user-guide_testing_overview.adoc[leveloffset=+1]
 
+include::_user-guide_testing_unit-test-support.adoc[leveloffset=+1]
 
+include::_user-guide_testing_integ-test-support.adoc[leveloffset=+1]
 
+include::_user-guide_testing_bdd-spec-support.adoc[leveloffset=+1]
 
+include::_user-guide_testing_fixture-scripts.adoc[leveloffset=+1]
 

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_testing_bdd-spec-support.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_testing_bdd-spec-support.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_testing_bdd-spec-support.adoc
index 9313dd6..36cff34 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_testing_bdd-spec-support.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_testing_bdd-spec-support.adoc
@@ -5,4 +5,356 @@
 
 IMPORTANT: TODO
 
-Support with Cucumber JVM...
\ No newline at end of file
+
+
+== Concepts
+
+The `isis-core-specsupport` and `isis-core-integtestsupport` modules provide the ability to bootstrap Isis and run either BDD specifications
+or regular integration tests.
+
+*
+
+In the case of BDD specs, these are run using https://github.com/cucumber/cucumber-jvm[Cucumber-JVM], the Java port of the original Ruby http://cukes.info[Cucumber] tool.
+
+Specifications are written in the https://github.com/cucumber/cucumber/wiki/Gherkin[Gherkin] DSL, following the https://github.com/cucumber/cucumber/wiki/Given-When-Then["given/when/then"] format. Cucumber-JVM itself is a JUnit runner, and searches for https://github.com/cucumber/cucumber/wiki/Feature-Introduction[feature files] on the classpath. These in turn are matched to http://cukes.info/step-definitions.html[step definition]s through regular expressions. It is the step definitions (the "glue") that exercise the system.
+
+*
+
+In the case of integration tests, these are run using JUnit.
+
+To untangle the above a little: in terms of lines of code to be written, the code that goes in step definitions is broadly the same as the code that goes in an integration test method. The benefit of the former is that the given/then/when scenarios feature file describe the context of the interaction, and the step definitions are reusable across scenarios.
+
+There are some key framework classes that make up the spec/integtest support; these are discussed below.
+
+=== IsisSystemForTest
+
+To support both BDD specs and integration tests, Isis provides the `IsisSystemForTest` class. This allows a complete running instance of Isis to be bootstrapped (usually with the JDO objectstore), and then held on a `ThreadLocal` from one test to another.
+
+Typically bootstrapping code is used to lazily instantiate the `IsisSystemForTest` once and once only. The mechanism for doing this is line-for-line identical in both BDD step defs and integration tests.
+
+=== ScenarioExecution
+
+Isis also provides a `ScenarioExecution` class. The purpose of this class is to provide a context under which the specification or an integration test is executing.
+
+For both BDD specs and integration tests, the `ScenarioExecution` also provides access to the configured domain services (accessible through the `service(...)` method) and the `DomainObjectContainer` (through the `container()` method).
+
+In addition, UI behaviour can be integration tested by "wrapping" each domain object in a proxy. This proxy ensures that the "see it/use it/do it" rules (ie to hide, disable, or validate) are enforced. The wrapping is performed using the `WrapperFactory`, part of the link:../reference/services/wrapper-factory.html[isis-core-wrapper] module. The `ScenarioExecution`'s `wrap()` and `unwrap()` helper methods provide access to this capability.
+
+The `ScenarioExecution` also provides the `install()` method, allowing fixtures to be installed in the normal way. If using the JDO Object store, then these fixtures the `IsisJdoSupport` service can be used to run arbitrary SQL against the underlying database (eg to truncate/delete existing tables as need be).
+
+Of relevance only to BDD specs, the `ScenarioExecution`'s `getVar()` and `putVar()` methods also allow variables to be passed from one step definition to the next. (Broadly speaking, this is the same as the "World" object in Ruby-flavoured Cucumber).
+
+Like the `IsisSystemForTest` class, the `ScenarioExecution` class also binds an instance of itself onto a `ThreadLocal`. It can then be accessed in both BDD step defs and in integration tests using `ScenarioExecution.current()` static method.
+
+=== CukeGlueAbstract and IntegrationTestAbstract
+
+The `CukeGlueAbstract` acts as a convenience superclass for writing BDD step definitions. Similarly, the `IntegrationTestAbstract` acts as a convenience subclass for writing integration tests. These two classes are very similar in that they both delegate to an underlying `ScenarioExecution`.
+
+=== Separate Glue from Specs
+
+The "glue" (step definitions) are intended to be reused across features. We therefore recommend that they reside in a separate package, and are organized by the entity type upon which they act.
+
+For example, given a feature that involves `Customer` and `Order`, have the step definitions pertaining to `Customer` reside in `CustomerGlue`, and the step definitions pertaining to `Order` reside in `OrderGlue`.
+
+The Cucumber-JVM spec runner allows you to indicate which package(s) should be recursively searched to find any glue.
+
+=== Integration- vs Unit- Scope
+
+Although BDD specs are most commonly used for end-to-end tests (ie at the same scope as an integration test), the two concerns (expressability of a test to a business person vs granularity of the test) should not be conflated. There are a couple of http://silkandspinach.net/2013/01/18/a-testing-strategy/[good] blog http://claysnow.co.uk/the-testing-iceberg/[posts] discussing http://claysnow.co.uk/living-documentation-can-be-readable-and-fast/[this]. The basic idea is to avoid the overhead of a heavy-duty integration test if possible.
+
+Isis takes inspiration from these to optionally allow BDD specs to be run at a unit scope. The scope is indicated by annotating the scenario with the `@unit` or `@integration` tags.
+
+When running under unit-level scope, the Isis system is _not_ instantiated. Instead, `ScenarioExecution` class returns JMock mocks (except for the `WrapperFactory`, if configured).
+
+Writing a BDD spec that supports both modes of operation therefore takes more effort, but the benefit is a (much) faster executing test suite. Writing to support both modes means that the developer/tester can easily check the scenario at both scopes just by altering the tag.
+
+To support unit-testing, Isis provides the `InMemoryDB` class; a glorified hashmap of "persisted" objects. Use of this utility class is optional.
+
+== Usage
+
+The following examples are taken from the https://github.com/apache/isis/tree/master/example/application/todoapp[todoapp]; in particular from that project's https://github.com/apache/isis/tree/master/example/application/todoapp/integtests/src/test/java[integration test] module.
+
+=== Root pom
+
+In the root https://github.com/apache/isis/blob/master/example/application/todoapp/pom.xml[`pom.xml`], we recommend that you update the `maven-surefire-plugin` patterns, so that BDD specs are recognised alongside unit and integration tests:
+
+[source]
+----
+<plugin>
+    <groupId>org.apache.maven.plugins</groupId>
+    <artifactId>maven-surefire-plugin</artifactId>
+    <version>2.10</version>
+    <configuration>
+        <includes>
+            <include>**/*Test.java</include>
+            <include>**/*Test_*.java</include>
+            <include>**/*Spec*.java</include>
+        </includes>
+        <excludes>
+            <exclude>**/Test*.java</exclude>
+            <exclude>**/*ForTesting.java</exclude>
+            <exclude>**/*Abstract*.java</exclude>
+        </excludes>
+        <useFile>true</useFile>
+        <printSummary>true</printSummary>
+        <outputDirectory>${project.build.directory}/surefire-reports</outputDirectory>
+    </configuration>
+</plugin>
+----
+
+=== Integration testing module
+
+Assuming you have a module for your integration tests, add in the dependencies:
+
+[source]
+----
+<dependency>
+    <groupId>org.apache.isis.core</groupId>
+    <artifactId>isis-core-specsupport</artifactId>
+</dependency>
+<dependency>
+    <groupId>org.apache.isis.core</groupId>
+    <artifactId>isis-core-integtestsupport</artifactId>
+</dependency>
+----
+
+There is no need to explicitly add in a dependency on `isis-core-wrapper`; this is done automatically.
+
+=== Writing an Integration test
+
+Integration tests should subclass from `IntegrationTestAbstract`. For example, here's a the https://github.com/apache/isis/blob/master/example/application/todoapp/integtests/src/test/java/integration/tests/actions/ToDoItemTest_completed.java[`ToDoItemTest_completed`] test which exercises of the `ToDoItem`'s `completed()` action:
+
+[source]
+----
+public class ToDoItemTest_completed  {
+
+    @BeforeClass
+    public static void initClass() {
+        PropertyConfigurator.configure("logging.properties");
+        ToDoSystemInitializer.initIsft();
+
+        // instantiating will install onto ThreadLocal
+        new ScenarioExecutionForIntegration();
+    }
+
+    private ToDoItem toDoItem;
+
+    @Before
+    public void setUp() throws Exception {
+        scenarioExecution().install(new ToDoItemsFixture());
+
+        final List<ToDoItem> all = wrap(service(ToDoItems.class)).notYetComplete();
+        toDoItem = wrap(all.get(0));
+    }
+
+    @Test
+    public void happyCase() throws Exception {
+        assertThat(toDoItem.isComplete(), is(false));
+        toDoItem.completed();
+        assertThat(toDoItem.isComplete(), is(true));
+    }
+
+    @Test
+    public void cannotCompleteIfAlreadyCompleted() throws Exception {
+        unwrap(toDoItem).setComplete(true);
+        expectedExceptions.expectMessage("Already completed");
+        toDoItem.completed();
+    }
+
+    @Test
+    public void cannotSetPropertyDirectly() throws Exception {
+        expectedExceptions.expectMessage("Always disabled");
+        toDoItem.setComplete(true);
+    }
+}
+----
+
+The https://github.com/apache/isis/blob/master/example/application/todoapp/fixture/src/main/java/fixture/todo/ToDoItemsFixture.java[ToDoItemsFixture] referenced above tears down data as well as installs new data. In this example it runs at the class level (`@BeforeClass`), but it can also run at the instance level (`@Before`).
+
+Note also that when the `ToDoItem` is wrapped, it is not possible to call `setComplete()` directly on the object; but when it is unwrapped then this call can be made as per normal.
+
+The https://github.com/apache/isis/blob/master/example/application/todoapp/integtests/src/test/java/integration/ToDoSystemInitializer.java[ToDoSystemInitializer] class referenced above is responsible for setting up the `IsisSystemForTest`. You can think of it as being broadly equivalent to the information that is in the regular `isis.properties` file:
+
+[source]
+----
+public class ToDoSystemInitializer {
+
+    public static IsisSystemForTest initIsft() {
+        IsisSystemForTest isft = IsisSystemForTest.getElseNull();
+        if(isft == null) {
+            isft = new ToDoSystemBuilder().build().setUpSystem();
+            IsisSystemForTest.set(isft);
+        }
+        return isft;
+    }
+
+    private static class ToDoSystemBuilder extends IsisSystemForTest.Builder {
+        public ToDoSystemBuilder() {
+            withLoggingAt(Level.INFO);
+            with(testConfiguration());
+            with(new DataNucleusPersistenceMechanismInstaller());
+            withServices(
+                    new ToDoItemsJdo(),
+                    new WrapperFactoryDefault(),
+                    new RegisterEntities(),
+                    new IsisJdoSupportImpl()
+                    );
+        }
+
+        private IsisConfiguration testConfiguration() {
+            // ... elided ...
+        }
+    }
+}
+----
+
+=== Writing a BDD specification
+
+BDD specifications contain a few more parts:
+
+*
+
+a `XxxSpec.feature` file, describing the feature and the scenarios (given/when/then)s that constitute its acceptance criteria
+
+*
+
+a `RunSpecs.java` class file to run the specification (all boilerplate). This will run all `.feature` files in the same package or subpackages.
+
+*
+
+one or several `XxxGlue` constituting the step definitions to be matched against. These are normally placed in a separate package(s) to the specifications; the `glue` attribute of the Cucumber-JVM JUnit runner indicates which package(s) to search in.
+
+*
+
+a system initializer class. This can be reused with any integration tests (eg the `ToDoSystemInitializer` class, shown above).
+
+You may find it more convenient to place the `.feature` files in `src/test/java`, rather than `src/test/resources`. If you wish to do this, then your integration test module's `pom.xml` must contain:
+
+[source]
+----
+<build>
+    <testResources>
+        <testResource>
+            <filtering>false</filtering>
+            <directory>src/test/resources</directory>
+        </testResource>
+        <testResource>
+            <filtering>false</filtering>
+            <directory>src/test/java</directory>
+            <includes>
+                <include>**</include>
+            </includes>
+            <excludes>
+                <exclude>**/*.java</exclude>
+            </excludes>
+        </testResource>
+    </testResources>
+</build>
+----
+
+Let's now look at the a specification for the `ToDoItem&#39;`s "completed" feature. Firstly, the https://github.com/apache/isis/blob/master/example/application/todoapp/integtests/src/test/java/integration/specs/todoitem/ToDoItemSpec_findAndComplete.feature[`ToDoItemSpec_findAndComplete.feature`]:
+
+[source]
+----
+@ToDoItemsFixture
+Feature: Find And Complete ToDo Items
+
+    @integration
+    Scenario: Todo items once completed are no longer listed
+      Given there are a number of incomplete ToDo items
+      When  I choose the first of the incomplete items
+      And   mark the item as complete
+      Then  the item is no longer listed as incomplete
+----
+
+The `@ToDoItemsFixture` is a custom tag we've specified to indicate the prerequisite fixtures to be loaded; more on this in a moment. The `@integration` tag, meanwhile, says that this feature should be run with integration-level scope. (If we wanted to run at unit-level scope, the tag would be `@unit`).
+
+The https://github.com/apache/isis/blob/master/example/application/todoapp/integtests/src/test/java/integration/specs/todoitem/RunSpecs.java[`RunSpecs`] class to run this feature (and any other features in this package or subpackages) is just boilerplate:
+
+[source]
+----
+@RunWith(Cucumber.class)
+@Cucumber.Options(
+        format = {
+                "html:target/cucumber-html-report",
+                "json:target/cucumber.json"
+        },
+        glue={"classpath:com.mycompany.integration.glue"},
+        strict = true,
+        tags = { "~@backlog", "~@ignore" })
+public class RunSpecs {
+    // intentionally empty
+}
+----
+
+The JSON formatter allows integration with enhanced reports, for example as provided by http://www.masterthought.net/section/cucumber-reporting[Masterthought.net] (screenshots at end of page). (Commented out) configuration for this is provided in the link:../intro/getting-started/simpleapp-archetype.html[simpleapp] `integtests` module's https://github.com/apache/isis/blob/07fe61ef3fb029ae36427f60da2afeeb931e4f88/example/application/simpleapp/integtests/pom.xml#L52[pom.xml].
+
+The bootstrapping of Isis can be moved into a https://github.com/apache/isis/blob/07fe61ef3fb029ae36427f60da2afeeb931e4f88/example/application/simpleapp/integtests/src/test/java/domainapp/integtests/specglue/BootstrappingGlue.java#L26[`BootstrappingGlue`] step definition:
+
+[source]
+----
+public class BootstrappingGlue extends CukeGlueAbstract {
+
+    @Before(value={"@integration"}, order=100)
+    public void beforeScenarioIntegrationScope() {
+        PropertyConfigurator.configure("logging.properties");
+        SimpleAppSystemInitializer.initIsft();
+
+        before(ScenarioExecutionScope.INTEGRATION);
+    }
+
+    @After
+    public void afterScenario(cucumber.api.Scenario sc) {
+        assertMocksSatisfied();
+        after(sc);
+    }
+
+    // bootstrapping of @unit scope omitted
+}
+----
+
+The fixture to run also lives in its own step definition, https://github.com/apache/isis/blob/07fe61ef3fb029ae36427f60da2afeeb931e4f88/example/application/simpleapp/integtests/src/test/java/domainapp/integtests/specglue/CatalogOfFixturesGlue.java#L24[`CatalogOfFixturesGlue`]:
+
+[source]
+----
+public class CatalogOfFixturesGlue extends CukeGlueAbstract {
+
+    @Before(value={"@integration", "@SimpleObjectsFixture"}, order=20000)
+    public void integrationFixtures() throws Throwable {
+        scenarioExecution().install(new RecreateSimpleObjects());
+    }
+
+}
+----
+
+Note that this is annotated with a tag (`@SimpleObjectsFixture`) so that the correct fixture runs. (We might have a whole variety of these).
+
+The step definitions pertaining to `SimpleObject` domain entity then reside in the https://github.com/apache/isis/blob/07fe61ef3fb029ae36427f60da2afeeb931e4f88/example/application/simpleapp/integtests/src/test/java/domainapp/integtests/specglue/modules/simple/SimpleObjectGlue.java#L31[`SimpleObjectGlue`] class. This is where the heavy lifting gets done:
+
+[source]
+----
+public class SimpleObjectGlue extends CukeGlueAbstract {
+
+    @Given("^there are.* (\\d+) simple objects$")
+    public void there_are_N_simple_objects(int n) throws Throwable {
+        try {
+            final List<SimpleObject> findAll = service(SimpleObjects.class).listAll();
+            assertThat(findAll.size(), is(n));
+            putVar("list", "all", findAll);
+
+        } finally {
+            assertMocksSatisfied();
+        }
+    }
+
+    @When("^I create a new simple object$")
+    public void I_create_a_new_simple_object() throws Throwable {
+        service(SimpleObjects.class).create(UUID.randomUUID().toString());
+    }
+
+}
+----
+
+== BDD Tooling
+
+To help write feature files and generate step definitions, we recommend https://github.com/rlogiacco/Natural[Roberto Lo Giacco's Eclipse plugin]. For more information, see Dan's short http://danhaywood.com/2013/07/05/cucumber-editors-in-eclipse/[blog post]. It works very well. Of interest: this is implemented using http://www.eclipse.org/Xtext/[XText].
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_testing_fake-data.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_testing_fake-data.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_testing_fake-data.adoc
deleted file mode 100644
index a31b65b..0000000
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_testing_fake-data.adoc
+++ /dev/null
@@ -1,11 +0,0 @@
-= Fake Data
-: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
-
-WARN: Isis Addons, not ASF.
-
-link:https://github.com/isisaddons/isis-module-fakedata
-

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_testing_integ-test-support.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_testing_integ-test-support.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_testing_integ-test-support.adoc
index 4f33165..c0073e3 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_testing_integ-test-support.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_testing_integ-test-support.adoc
@@ -4,27 +4,23 @@
 :_imagesdir: images/
 
 
-IMPORTANT: TODO
+As discussed in the introductory overview of this chapter, Apache Isis allows you to integration test your domain objects from within JUnit.  There are several parts to this:
 
+* configuring the Isis runtime so it can be bootstrapped (mostly boilerplate)
+* defining a base class to perform said bootstrapping
+* using fixture scripts to set up the app
+* using `WrapperFactory` so that the UI can be simulated.
 
-== Test Class
+We'll get to all that shortly, but let's start by taking a look at what a typical integration test looks like.
 
-IMPORTANT: TODO
 
+include::_user-guide_testing_integ-test-support_typical-usage.adoc[leveloffset=+1]
 
 include::_user-guide_testing_integ-test-support_bootstrapping.adoc[leveloffset=+1]
 
+include::_user-guide_testing_integ-test-support_wrapper-factory.adoc[leveloffset=+1]
 
-
-
-
-
-== WrapperFactory
-
-IMPORTANT: TODO
-
-
-
+include::_user-guide_testing_integ-test-support_maven-configuration.adoc[leveloffset=+1]
 
 
 

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_testing_integ-test-support_bootstrapping.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_testing_integ-test-support_bootstrapping.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_testing_integ-test-support_bootstrapping.adoc
index 8b83102..c987e58 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_testing_integ-test-support_bootstrapping.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_testing_integ-test-support_bootstrapping.adoc
@@ -4,41 +4,57 @@
 :_imagesdir: images/
 
 
-IMPORTANT: WIP...
+Integration tests instantiate an Isis "runtime" (as a singleton) within a JUnit test.  Because (depending on the size of your app) it takes a little time to bootstrap Isis, the framework caches the runtime on a thread-local from one test to the next.
 
+Nevertheless, we do need to bootstrap the runtime for the very first test.
+
+Since the integration tests don't depend on the `webapp` module, it's necessary to repeat all the (relevant) all the configuration in `isis.properties` and related files.  That said, in practice the relevant information isn't all that much.
+
+[NOTE]
+====
+We hope to simplify the way this works in future versions of Isis.
+====
+
+The example code in this section is taken from the app generated by the <<_simpleapp_archetype, SimpleApp archetype>>.
+
+
+
+
+== Builder
+
+The bootstrapping itself is mostly performed by a subclass of the `IsisSystemForTest.Builder` class:
 
 [source,java]
-.Integration test bootstrapping
 ----
-private static class SimpleAppSystemBuilder extends IsisSystemForTest.Builder {
+private static class SimpleAppSystemBuilder extends IsisSystemForTest.Builder {      // <1>
 
     public SimpleAppSystemBuilder() {
         withLoggingAt(org.apache.log4j.Level.INFO);
         with(testConfiguration());
-        with(new DataNucleusPersistenceMechanismInstaller());
+        with(new DataNucleusPersistenceMechanismInstaller());                        // <2>
 
-        // services annotated with @DomainService
-        withServicesIn( "domainapp" );
+        withServicesIn( "domainapp" );                                               // <3>
     }
 
     private static IsisConfiguration testConfiguration() {
-        final IsisConfigurationForJdoIntegTests testConfiguration = new IsisConfigurationForJdoIntegTests(); // <1>
+        final IsisConfigurationForJdoIntegTests testConfiguration =
+            new IsisConfigurationForJdoIntegTests();                                 // <4>
 
-        testConfiguration.addRegisterEntitiesPackagePrefix("domainapp.dom.modules");
+        testConfiguration.addRegisterEntitiesPackagePrefix("domainapp.dom.modules"); // <5>
         return testConfiguration;
     }
 }
 ----
-<1> uses `IsisConfigurationForJdoIntegTests` for in-memory HSQLDB and other standard settings, see <<_isisconfigurationforjdointegtests, below>>.
-
-The <<_simpleapp_archetype, SimpleApp archetype>> is already set up to do this.
+<1> subclass the framework-provided `IsisSystemForTest.Builder`.
+<2> equivalent to `isis.persistor=datanucleus` in `isis.properties`
+<3> specify the `isis.services` key in `isis.properties` (where "domainapp" is the base package for all classes within the app)
+<4> `IsisConfigurationForJdoIntegTests` has pre-canned configuration for using an in-memory HSQLDB and other standard settings; more on this  <<_isisconfigurationforjdointegtests, below>>.
+<5> equivalent to `isis.persistor.datanucleus.RegisterEntities.packagePrefix` key (typically in `persistor_datanucleus.properties`
 
 
 
 
-== IsisConfigurationForJdoIntegTests
-
-IMPORTANT: WIP...
+=== IsisConfigurationForJdoIntegTests
 
 Integration tests are configured programmatically, with a default set of properties to bootstrap the JDO/DataNucleus objectstore using an HSQLDB in-memory database.
 
@@ -117,3 +133,98 @@ To remove a little bit of boilerplate, the `IsisConfigurationForJdoIntegTests` c
 |
 |===
 
+
+
+
+
+== System Initializer
+
+The builder is defined and used within a class we call the system initializer that is responsible for instantiating the Isis runtime, and binding it to a thread-local.  This is performed within a static `initIsft()` method.
+
+Here's the code:
+
+[source,java]
+----
+public class SimpleAppSystemInitializer {
+    public static void initIsft() {
+        IsisSystemForTest isft = IsisSystemForTest.getElseNull();
+        if(isft == null) {
+            isft = new SimpleAppSystemBuilder()    // <1>
+                            .build()
+                            .setUpSystem();
+            IsisSystemForTest.set(isft);           // <2>
+        }
+    }
+    private static class SimpleAppSystemBuilder
+        extends IsisSystemForTest.Builder { ... }
+
+}
+----
+<1> instantiates and initializes the Isis runtime (the `IsisSystemForTest` class)
+<2> binds the runtime to a thread-local.
+
+
+
+
+== Abstract Class
+
+We recommend defining a base class for all your other classes to integration classes to inherit from.  The main responsibility of this class is tocall the system initializer, described earlier.  We only need the initialization to be performed once, so this call is performed in a `@BeforeClass` hook.
+
+The code below shows the general form:
+
+[source,java]
+----
+public abstract class SimpleAppIntegTest {
+    @BeforeClass
+    public static void initClass() {
+        org.apache.log4j.PropertyConfigurator.configure("logging.properties");   // <1>
+        SimpleAppSystemInitializer.initIsft();                                   // <2>
+        new ScenarioExecutionForIntegration();                                   // <3>
+    }
+}
+----
+<1> ensure that logging messages don't get swallowed
+<2> initialize the Isis runtime
+<3> primarily exists to support the writing of <<_bdd_spec_support, BDD specifications>>, but also enables finer-grained management of sessions/transactions (discussed below).
+
+
+
+=== `IntegrationTestAbstract`
+
+In fact, we recommend that your base class inherit from Isis' `IntegrationTestAbstract` class:
+
+[source,java]
+----
+public abstract class SimpleAppIntegTest extends IntegrationTestAbstract {
+    ...
+}
+----
+
+Although not mandatory, this provides a number of helper/convenience methods and JUnit rules:
+
+[source,java]
+----
+    @Rule
+    public IsisTransactionRule isisTransactionRule =                         // <1>
+        new IsisTransactionRule();
+    @Rule
+    public JUnitRuleMockery2 context =                                       // <2>
+        JUnitRuleMockery2.createFor(Mode.INTERFACES_AND_CLASSES);
+    @Rule
+    public ExpectedException expectedExceptions =                            // <3>
+        ExpectedException.none();
+    @Rule
+    public ExceptionRecognizerTranslate exceptionRecognizerTranslations =    // <4>
+        ExceptionRecognizerTranslate.create();
+----
+<1> ensures an Isis session/transaction running for each test
+<2> sets up a JMock context (using Isis' extension to JMock as described in <<JMock Extensions>>
+<3> standard JUnit rule for writing tests that throw exceptions
+<4> to capture messages that require translation, as described in <<_i18n_support, i18 support>>.
+
+All of these rules could be inlined in your own base class; as we say, they are a convenience.
+
+In addition, `IntegrationTestAbstract` provides a number of helper/convenience methods.  Most important amongst these are `nextSession()` and `nextTransaction()` that to allow tests to simulate multiple separate user interactions (each of which would normally occur in a separate transaction).
+
+It also provides `wrap(...)` and `unwrap(...)` which delegate to the `WrapperFactory`.  We talk about these methods in the next section
+

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_testing_integ-test-support_maven-configuration.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_testing_integ-test-support_maven-configuration.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_testing_integ-test-support_maven-configuration.adoc
new file mode 100644
index 0000000..04af875
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_testing_integ-test-support_maven-configuration.adoc
@@ -0,0 +1,22 @@
+= Maven Configuration
+: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
+
+To use, update the `pom.xml` (this is already configured by the <<_simpleapp_archetype, SimpleApp archetype>>) :
+
+[source]
+----
+<dependency>
+    <groupId>org.apache.isis.core</groupId>
+    <artifactId>isis-core-integtestsupport</artifactId>
+</dependency>
+<dependency>
+    <groupId>org.apache.isis.core</groupId>
+    <artifactId>isis-core-wrapper</artifactId>
+</dependency>
+----
+


[8/9] isis git commit: ISIS-1133: domain service toc.

Posted by da...@apache.org.
http://git-wip-us.apache.org/repos/asf/isis/blob/65d34db7/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_aaa.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_aaa.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_aaa.adoc
index 579e3ce..671a677 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_aaa.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_aaa.adoc
@@ -1,210 +1,391 @@
-// = Overview
+= Summary
 :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 - briefly discuss the different types of services
+
+== 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.
 
 .Domain Services
 [cols="2,4a,1,1", options="header"]
 |===
 
 |API
-|Impl'n +
-Maven Module
-|Impl'n +
-Class
+|Maven Module +
+Impl'n (g: a:)
+|Implementation
 |Notes
 
-|`o.a.i.applib.services.audit` +
-`AuditingService3`
-|g:`o.ia.m.audit` +
-a:`isis-module-audit`
+|<<__code_actioninvocationcontext_code, `o.a.i.applib.` +
+`services.actinv` +
+`ActionInvocationContext`>>
+|``o.a.i.core`` +
+``isis-core-applib``
+|`ActionInvocationContext`
+|API is also concrete class
+
+|<<__code_auditingservice3_code, `o.a.i.applib.` +
+`services.audit` +
+`AuditingService3`>>
+|``o.ia.m.audit`` +
+``isis-module-audit``
 |`AuditingService`
-|related services: `AuditingServiceContributions`, `AuditingServiceRepository`
-
-|`o.a.i.applib.services.background` +
-`BackgroundCommandService`
-|g:`o.ia.m.command` +
-a:`isis-module-command`
+|related services:
+`AuditingService-` +
+`Contributions`,
+`AuditingService-` +
+`Repository`
+
+|<<__code_backgroundcommandservice_code, `o.a.i.applib.` +
+`services.background` +
+`BackgroundCommandService`>>
+|``o.ia.m.command`` +
+``isis-module-command``
 |`BackgroundCommandServiceJdo`
-|related services: `BackgroundCommandServiceJdoContributions`, `BackgroundCommandServiceJdoRepository`
-
-|`o.a.i.applib.services.background` +
-`BackgroundService`
-|g:`o.a.i.core` +
-a:`isis-core-runtime`
+|related services:
+`BackgroundCommandService-` +
+`JdoContributions`,
+`BackgroundCommandService-` +
+`JdoRepository`
+
+|<<__code_backgroundservice_code, `o.a.i.applib.` +
+`services.background` +
+`BackgroundService`>>
+|``o.a.i.core`` +
+``isis-core-runtime``
 |`BackgroundServiceDefault`
-|Depends on: `BackgroundCommandService`
+|depends on: +
+`BackgroundCommandService`
 
-|`o.a.i.applib.services.bookmark` +
-`BookmarkService`
-|g:`o.a.i.core` +
-a:`isis-core-metamodel`
+|<<__code_bookmarkservice_code, `o.a.i.applib.` +
+`services.bookmark` +
+`BookmarkService`>>
+|``o.a.i.core`` +
+``isis-core-metamodel``
 |`BookmarkServiceDefault`
-|related services: `BookmarkHolderActionContributions`, `BookmarkHolderAssociationContributions`
-
-|`o.a.i.applib.services.classdiscovery` +
-|`ClassDiscoveryService`
-|g:`o.a.i.core` +
-a:`isis-core-applib`
-|`ClassDiscoveryService` +
+|related services:
+`BookmarkHolder-` ++
+`ActionContributions`,
+`BookmarkHolder-` ++
+`AssociationContributions`
+
+|<<__code_classdiscoveryservice_code, `o.a.i.applib.` +
+`services.classdiscovery` +
+`ClassDiscoveryService`>>
+|``o.a.i.core`` +
+``isis-core-applib``
+|`ClassDiscoveryService-` +
 `UsingReflections`
 |requires `org.reflections:reflections` as Maven dependency
 
-|`o.a.i.applib.services.clock` +
-`ClockService`
-|g:`o.a.i.core` +
-a:`isis-core-applib`
+|<<__code_clockservice_code, `o.a.i.applib.` +
+`services.clock` +
+`ClockService`>>
+|``o.a.i.core`` +
+``isis-core-applib``
 |`ClockService`
 |API is also a concrete class.
 
-|`o.a.i.applib.services.command` +
-`CommandContext`
-|g:`o.a.i.core` +
-a:`isis-core-applib`
+|<<__code_commandcontext_code, `o.a.i.applib.` +
+`services.command` +
+`CommandContext`>>
+|``o.a.i.core`` +
+``isis-core-applib``
 |`CommandContext`
 |API is also a concrete class. +
-Depends on: `CommandService` for persistent `Command`, else in-memory impl. used
-
-|`o.a.i.applib.services.command.spi` +
-`CommandService`
-|g:`o.ia.m.command` +
-a:`isis-module-command`
+depends on: +
+`CommandService` for persistent `Command`, else in-memory impl. used
+
+|<<__code_commandservice_code, `o.a.i.applib.` +
+`services.command.spi` +
+`CommandService`>>
+|``o.ia.m.command`` +
+``isis-module-command``
 |`CommandServiceJdo`
-|related services: `CommandServiceJdoContributions`, `CommandServiceJdoRepository`
-
-|`o.a.i.applib` +
-`DomainObjectContainer`
-|g:`o.a.i.core` +
-a:`isis-core-metamodel`
+|related services: +
+`CommandService-` ++
+`JdoContributions`,
+`CommandService-` ++
+`JdoRepository`
+
+|<<__code_deeplinkservice_code, `o.a.i.applib` +
+`services.deeplink` +
+`DeepLinkService`>>
+|``o.a.i.viewer`` +
+``isis-viewer-wicket-impl``
+|`DeepLinkServiceWicket`
+|Implementation only usable within Wicket viewer
+
+|<<__code_domainobjectcontainer_code, `o.a.i.applib` +
+`DomainObjectContainer`>>
+|``o.a.i.core`` +
+``isis-core-metamodel``
 |`DomainObjectContainerDefault`
 |
 
-|`o.a.i.applib.services.userreg` +
-`EmailNotificationService`
-|g:`o.a.i.core` +
-a:`isis-core-runtime`
-|`EmailNotificationServiceDefault`
-|depends on: `EmailService`
-
-|`o.a.i.applib.services.email` +
-`EmailService`
-|g:`o.a.i.core` +
-a:`isis-core-runtime`
+|<<__code_emailnotificationservice_code, `o.a.i.applib.` +
+`services.userreg` +
+`EmailNotificationService`>>
+|``o.a.i.core`` +
+``isis-core-runtime``
+|`EmailNotificationService-` ++
+`Default`
+|depends on: +
+a configured `EmailService`
+
+|<<__code_emailservice_code, `o.a.i.applib.` +
+`services.email` +
+`EmailService`>>
+|``o.a.i.core`` +
+``isis-core-runtime``
 |`EmailServiceDefault`
 |
 
-|`o.a.i.applib.services.eventbus` +
-`EventBusService`
-|g:`o.a.i.core` +
-a:`isis-core-objectstore-jdo-datanucleus`
+|<<__code_eventbusservice_code, `o.a.i.applib.` +
+`services.eventbus` +
+`EventBusService`>>
+|``o.a.i.core`` +
+``isis-core-objectstore-jdo-datanucleus``
 |`EventBusServiceJdo`
 |
 
-|`o.a.i.applib.services.exceprecog` +
-`ExceptionRecognizer`
-|g:`o.a.i.core` +
-a:`isis-core-applib`
-|`ExceptionRecognizerComposite` +
-`ForJdoObjectStore`
+|<<__code_eventserializer_code, `o.a.i.applib.` +
+`services.publish` +
+`EventSerializer`>>
+|``o.ia.m.publishing`` +
+``isis-module-publishing``
+|`RestfulObjects-` +
+`SpecEventSerializer`
+|
+
+|<<__code_exceptionrecognizer_code, `o.a.i.applib.` +
+`services.exceprecog` +
+`ExceptionRecognizer`>>
+|``o.a.i.core`` +
+``isis-core-applib``
+|`ExceptionRecognizer-` +
+`CompositeFor-` +
+`JdoObjectStore`
 |Extensible using composite pattern if required
 
-o.a.i.applib.fixturescripts
-FixtureScripts
-|g:`o.a.i.core`
-a:`isis-core-applib`
+|<<__code_fixturescripts_code, `o.a.i.applib.` +
+`fixturescripts` +
+`FixtureScripts`>>
+|``o.a.i.core`` +
+``isis-core-applib``
 |(abstract class)
-|depends on: `ClassDiscoveryService`
+|depends on: +
+`ClassDiscoveryService`
+
+|<<__code_guicebeanprovider_code, `o.a.i.applib.` +
+`services.guice` +
+`GuiceBeanProvider`>>
+|``o.a.i.core`` +
+``isis-viewer-wicket-impl``
+|`GuiceBeanProviderWicket`
+|
 
-|`o.a.i.applib.services.jdosupport` +
-`IsisJdoSupport`
-|g:`o.a.i.core` +
-a:`isis-core-objectstore-jdo-datanucleus`
+|<<__code_isisjdosupport_code, `o.a.i.applib.` +
+`services.jdosupport` +
+`IsisJdoSupport`>>
+|``o.a.i.core`` +
+``isis-core-objectstore-jdo-datanucleus``
 |`IsisJdoSupportImpl`
 |
 
-|`o.a.i.applib.services.memento` +
-`MementoService`
-|g:`o.a.i.core` +
-a:`isis-core-runtime`
+|<<__code_localeprovider_code, `o.a.i.applib.` +
+`services.i18n` +
+`LocaleProvider`>>
+|``o.a.i.viewer`` +
+``isis-viewer-wicket-impl``
+|`LocaleProviderWicket`
+|
+
+|<<__code_mementoservice_code, `o.a.i.applib.` +
+`services.memento` +
+`MementoService`>>
+|``o.a.i.core`` +
+``isis-core-runtime``
 |`MementoServiceDefault`
 |
 
-|`o.a.i.applib.services.publish` +
-`EventSerializer`
-|g:`o.ia.m.publishing` +
-a:`isis-module-publishing`
-|`RestfulObjectsSpecEventSerializer`
+|<<__code_metamodelservice_code, `o.a.i.applib.` +
+`services.metamodel` +
+`MetaModelService`>>
+|``o.a.i.core`` +
+``isis-core-metamodel``
+|`MetaModelServiceDefault`
 |
 
-|`o.a.i.applib.services.publish` +
-`PublishingService`
-|g:`o.ia.m.publishing` +
-a:`isis-module-publishing`
+|<<__code_publishingservice_code, `o.a.i.applib.` +
+`services.publish` +
+`PublishingService`>>
+|``o.ia.m.publishing`` +
+``isis-module-publishing``
 |`PublishingService`
-|related services: `PublishingServiceContributions`, `PublishingServiceRepository`.  +
-depends on: `EventSerializer`
+|related services:
+`PublishingService-` ++
+`Contributions`,
+`PublishingService-` ++
+`Repository`.  +
+depends on: +
+`EventSerializer`
 
-|`o.a.i.applib.services.queryresultscache` +
-`QueryResultsCache`
-|g:`o.a.i.core` +
-a:`isis-core-applib`
+|<<__code_queryresultscache_code, `o.a.i.applib.` +
+`services.` +
+`queryresultscache` +
+`QueryResultsCache`>>
+|``o.a.i.core`` +
+``isis-core-applib``
 |`QueryResultsCache`
 |API is also a concrete class
 
-|`o.a.i.applib.services.scratchpad` +
-`Scratchpad`
-|g:`o.a.i.core` +
-a:`isis-core-applib`
+|<<__code_scratchpad_code, `o.a.i.applib.` +
+`services.scratchpad` +
+`Scratchpad`>>
+|``o.a.i.core`` +
+``isis-core-applib``
 |`Scratchpad`
 |API is also a concrete class
 
-|`o.a.i.applib.services.userreg` +
-`UserRegistrationService`
-|g:`o.ia.m.security` +
-a:`isis-module-security`
-|`SecurityModuleAppUserRegistrationService`
+|<<__code_scratchpad_code, `o.a.i.applib.` +
+`services.sudo` +
+`SudoService`>>
+|``o.a.i.core`` +
+``isis-core-runtime``
+|`SudoServiceDefault`
+|API is also a concrete class
+
+|<<__code_translationservice_code, `o.a.i.applib.` +
+`services.i18n` +
+`TranslationService`>>
+|``o.a.i.core`` +
+``isis-core-runtime``
+|`TranslationServicePo`
+|related services: `TranslationServicePoMenu` +
+depends on: +
+`TranslationsResolver`, `LocaleProvider`
+
+|<<__code_translationsresolver_code, `o.a.i.applib.` +
+`services.i18n` +
+`TranslationsResolver`>>
+|``o.a.i.viewer`` +
+``isis-viewer-wicket-impl``
+|`TranslationsResolverWicket`
 |
 
-|`o.a.i.applib.services.wrapper` +
-`WrapperFactory`
-|g:`o.a.i.core` +
-a:`isis-core-wrapper`
+|<<__code_userprofileservice_code, `o.a.i.applib.` +
+`services.userprof` +
+`UserProfileService`>>
+|
+|
+|SPI only
+
+|<<__code_userregistrationservice_code, `o.a.i.applib.` +
+`services.userreg` +
+`UserRegistrationService`>>
+|``o.ia.m.security`` +
+``isis-module-security``
+|`SecurityModule-` +
+`AppUserRegistrationService`
+|depends (implicitly) on: +
+a configured `EmailService`
+
+|<<__code_wrapperfactory_code, `o.a.i.applib.` +
+`services.wrapper` +
+`WrapperFactory`>>
+|``o.a.i.core`` +
+``isis-core-wrapper``
 |`WrapperFactoryDefault`
 |
 
-|`o.a.i.applib.services.xmlsnapshot` +
-`XmlSnapshotService`
-|g:`o.a.i.core` +
-a:`isis-core-runtime`
+|<<__code_xmlsnapshotservice_code, `o.a.i.applib.` +
+`services.xmlsnapshot` +
+`XmlSnapshotService`>>
+|``o.a.i.core`` +
+``isis-core-runtime``
 |`XmlSnapshotServiceDefault`
 |
 
 |===
 
 Key:
+
 * `o.a.i` is an abbreviation for `org.apache.isis`
 * `o.ia.m` is an abbreviation for `org.isisaddons.module`
 
 
 All domain services are automatically registered (annotated with <<__code_domainservice_code, `@DomainService`>> except:
 
-`FixtureScripts`::
+* `FixtureScripts` +
++
 Subclass and either annotate with `@DomainService` or register in `isis.properties`
-`ExceptionRecognizer`::
-Register in isis.properties
+
+* `ExceptionRecognizer` +
++
+Register explicitly in isis.properties (so is extensible)
+
+
 
 
+
+== "Internal" APIs/SPIs
+
+These services definitions depend on the internals of the framework; we do not guarantee that semver will be honoured for these APIs.
+
+.Semi-public SPI
+[cols="3,3,2,2a", options="header"]
+|===
+
+|API
+|Maven Module +
+Impl'n (g: a:)
+|Implementation
+|Notes
+
+
+|<<__code_contentmappingservice_code, `o.a.i.v.ro.` +
+`rendering.service.conneg.` +
+`ContentMappingService`>>
+|
+|
+|SPI only, no default implementation.
+
+|<<__code_contentnegotiationservice_code, `o.a.i.v.ro.` +
+`rendering.service.conneg.` +
+`ContentNegotiationService`>>
+|``o.a.i.core`` +
+`isis-core-viewer-restfulobjects-rendering`
+|`ContentNegotiationService-` +
+`XRoDomainType`
+|
+
+|===
+
+Key:
+
+* `o.a.i.v.ro` is an abbreviation for `org.apache.isis.viewer.restfulobjects`
+
+
+
+
+
+== Deprecated Services
+
+There is also a number of deprecated domain services.
+
 .Deprecated Domain Services
 [cols="2,4a,1,1", options="header"]
 |===
 
 |API
-|Impl'n +
-Maven Module
-|Impl'n +
-Class
+|Maven Module +
+Impl'n (g: a:)
+|Implementation
 |Notes
 
 |`o.a.i.applib.annotation`
@@ -215,7 +396,6 @@ a:`isis-core-applib`
 |Replaced by `ActionInvocationContext`
 
 
-
 |===
 
 Key:

http://git-wip-us.apache.org/repos/asf/isis/blob/65d34db7/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_auditing-service.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_auditing-service.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_auditing-service.adoc
index 27d102c..e4626d2 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_auditing-service.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_auditing-service.adoc
@@ -1,4 +1,4 @@
-= `AuditingService`
+= `AuditingService3`
 :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/

http://git-wip-us.apache.org/repos/asf/isis/blob/65d34db7/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_class-discovery-service.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_class-discovery-service.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_class-discovery-service.adoc
new file mode 100644
index 0000000..075cf62
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_class-discovery-service.adoc
@@ -0,0 +1,8 @@
+= `ClassDiscoveryService`
+: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
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/65d34db7/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_event-serializer.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_event-serializer.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_event-serializer.adoc
new file mode 100644
index 0000000..2c20560
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_event-serializer.adoc
@@ -0,0 +1,8 @@
+= `EventSerializer`
+: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
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/65d34db7/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_fixture-scripts.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_fixture-scripts.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_fixture-scripts.adoc
new file mode 100644
index 0000000..f7cd2e2
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_fixture-scripts.adoc
@@ -0,0 +1,8 @@
+= `FixtureScripts`
+: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
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/65d34db7/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_guice-bean-provider.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_guice-bean-provider.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_guice-bean-provider.adoc
new file mode 100644
index 0000000..99f4f36
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_guice-bean-provider.adoc
@@ -0,0 +1,8 @@
+= `GuiceBeanProvider`
+: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
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/65d34db7/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_settings-service.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_settings-service.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_settings-service.adoc
deleted file mode 100644
index c101412..0000000
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_settings-service.adoc
+++ /dev/null
@@ -1,48 +0,0 @@
-= `SettingsService`
-: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/
-
-[NOTE]
-====
-This service (both its API and implementation) are entirely independent of Apache Isis, being part of the http://github.com/isisaddons/isis-module-settings}[Isis addons' Settings module] (non-ASF).  The service is documented here for your convenience.
-====
-
-== Application Settings
-
-=== API
-
-IMPORTANT: TODO
-
-=== Implementation
-
-In the case of `ApplicationSettingsService`, the service is implemented by `ApplicationSettingsServiceJdo`, with the `ApplicationSetting` interface implemented by a `ApplicationSettingsJdo` entity.
-
-The service also provides the ability to create list all existing settings, create new settings (of whichever datatype), update settings, and to delete settings.
-
-These actions can be hidden using security if need be.
-
-== User Settings
-
-=== API
-
-IMPORTANT: TODO
-
-=== Implementation
-
-In the case of `UserSettingsService`, the service is implemented by `UserSettingsServiceJdo`, with the `UserSetting` interface implemented by a `UserSettingsJdo` entity.
-
-As for application settings, the user settings service also provides the ability to create list all existing settings, create new settings (of whichever datatype), update settings, and to delete settings.
-
-These actions can be hidden using security if need be.
-
-
-== Registration and Configuration
-
-The `ApplicationSettingsServiceJdo` class and `UserSettingsServiceJdo` are annotated with `@DomainService` and so are automatically registered with the framework, with actions appearing on the secondary menu bar.
-
-IMPORTANT: TODO - screenshot of settings menu
-
-All actions from the services emit domain events.  If you wish to hide/disable these default actions in your application, we recommend using up a subscriber on the actions' domain events to veto their visibility/usability.
-
-

http://git-wip-us.apache.org/repos/asf/isis/blob/65d34db7/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_sudo-service.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_sudo-service.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_sudo-service.adoc
new file mode 100644
index 0000000..bb33642
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services_sudo-service.adoc
@@ -0,0 +1,8 @@
+= `SudoService`
+: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
+
+


[3/9] isis git commit: ISIS-1133: security chapter.

Posted by da...@apache.org.
ISIS-1133: security chapter.


Project: http://git-wip-us.apache.org/repos/asf/isis/repo
Commit: http://git-wip-us.apache.org/repos/asf/isis/commit/749ddf27
Tree: http://git-wip-us.apache.org/repos/asf/isis/tree/749ddf27
Diff: http://git-wip-us.apache.org/repos/asf/isis/diff/749ddf27

Branch: refs/heads/master
Commit: 749ddf27f34a91d34fb31fddde06787f07396df6
Parents: b538e16
Author: Dan Haywood <da...@haywood-associates.co.uk>
Authored: Thu May 14 12:08:03 2015 +0100
Committer: Dan Haywood <da...@haywood-associates.co.uk>
Committed: Thu May 14 12:08:03 2015 +0100

----------------------------------------------------------------------
 ...de_extending_wicket-viewer_custom-pages.adoc |  11 +-
 ...ce_domain-services_user-profile-service.adoc |   2 +-
 ...main-services_user-registration-service.adoc |   2 +-
 .../user-guide/_user-guide_security.adoc        |  17 +-
 ...security_configuring-isis-to-use-bypass.adoc |  15 +-
 .../_user-guide_security_shiro-jdbc-realm.adoc  |  41 ++--
 ...er-guide_security_usage-by-isis-viewers.adoc | 207 +++++++++++++++++++
 7 files changed, 257 insertions(+), 38 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/isis/blob/749ddf27/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_extending_wicket-viewer_custom-pages.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_extending_wicket-viewer_custom-pages.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_extending_wicket-viewer_custom-pages.adoc
index 608978c..de8aab4 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_extending_wicket-viewer_custom-pages.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_extending_wicket-viewer_custom-pages.adoc
@@ -16,7 +16,16 @@ Isis defines eight page types (see the `org.apache.isis.viewer.wicket.model.mode
 | Renders
 
 | SIGN_IN
-| The initial sign-in page
+| The initial sign-in (aka login) page
+
+| SIGN_UP
+| The sign-up page (if <<_user_registration, user registration>> is enabled).
+
+| SIGN_UP_VERIFY
+| The sign-up verification page (if <<_user_registration, user registration>> is enabled; as accessed by link from verification email)
+
+| PASSWORD_RESET
+| The password reset page (if enabled).
 
 | HOME
 | The home page, displaying either the welcome message or dashboard

http://git-wip-us.apache.org/repos/asf/isis/blob/749ddf27/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_user-profile-service.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_user-profile-service.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_user-profile-service.adoc
index e43dc2d..595da26 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_user-profile-service.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_user-profile-service.adoc
@@ -1,4 +1,4 @@
-= User Profile Service (SPI)
+= User Profile Service
 :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/

http://git-wip-us.apache.org/repos/asf/isis/blob/749ddf27/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_user-registration-service.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_user-registration-service.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_user-registration-service.adoc
index df32aeb..6c40ff1 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_user-registration-service.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_user-registration-service.adoc
@@ -1,4 +1,4 @@
-= User Registration Service (SPI)
+= User Registration Service
 :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/

http://git-wip-us.apache.org/repos/asf/isis/blob/749ddf27/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_security.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_security.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_security.adoc
index f0ae948..acba897 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_security.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_security.adoc
@@ -8,7 +8,9 @@ Apache Isis has built-in support for authentication and authorization:
 
 * By "authentication" we mean logging into the application using some credentials, typically a username and password.  Authentication also means looking up the set of roles to which a user belongs.
 
-* By "authorization" we mean permissions: granting roles to have access to features of the app.
+* By "authorization" we mean permissions: granting roles to have access to features (object member) of the app.
+
+Isis has two levels of permissions.  _Read_ permission means that the user can view the object member; it will be rendered in the UI.  An action with only read permission will be shown disabled ("greyed out".  _Write_ permission means that the object member can be changed.  For actions this means that they can be invoked.
 
 Isis provides an API for both authentication and authorization, and provides an implementation that integrates with link:http://shiro.apache.org[Apache Shiro].  Shiro in turn uses the concept of a _realm_ as a source for both authentication and optionally authorization.
 
@@ -28,16 +30,6 @@ A further aspect of security is auditing: recording what data was modified by wh
 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-auditing}[Isis addons' auditing] module.
 ====
 
-[IMPORTANT]
-====
-TODO:
-
-* discuss Wicket vs Restful sign-on challenges
-** the pluggable authenticationStrategy
-* discuss Wicket user-registration
-
-====
-
 
 
 include::_user-guide_security_configuring-isis-to-use-shiro.adoc[leveloffset=+1]
@@ -56,6 +48,5 @@ include::_user-guide_security_configuring-isis-to-use-bypass.adoc[leveloffset=+1
 
 include::_user-guide_security_api-for-applications.adoc[leveloffset=+1]
 
-
-
+include::_user-guide_security_usage-by-isis-viewers.adoc[leveloffset=+1]
 

http://git-wip-us.apache.org/repos/asf/isis/blob/749ddf27/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_security_configuring-isis-to-use-bypass.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_security_configuring-isis-to-use-bypass.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_security_configuring-isis-to-use-bypass.adoc
index 800fe85..f80fb37 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_security_configuring-isis-to-use-bypass.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_security_configuring-isis-to-use-bypass.adoc
@@ -4,10 +4,21 @@
 :_imagesdir: images/
 
 
-IMPORTANT: TODO
-
 The bypass security component consists of an implementation of both the `AuthenticationManager` and `AuthorizationManager` APIs, and are intended for prototyping use only.
 
 The authentication manager allows access with any credentials (in a sense, "bypassing" authentication), while the authorization manager provides access to all class members (in a sense, "bypassing" authorization).
 
+
+== Specifying bypass as the security mechanism
+
+To tell Apache Isis to bypass security, update the `WEB-INF/isis.properties` file:
+
+[source,ini]
+----
+isis.authentication=bypass
+isis.authorization=bypass
+----
+
+This installs the appropriate no-op implementations for both authentication and authorization:
+
 image::{_imagesdir}security/security-apis-impl/configure-isis-to-use-bypass.png[width="600px"]

http://git-wip-us.apache.org/repos/asf/isis/blob/749ddf27/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_security_shiro-jdbc-realm.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_security_shiro-jdbc-realm.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_security_shiro-jdbc-realm.adoc
index 31191bd..c90957d 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_security_shiro-jdbc-realm.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_security_shiro-jdbc-realm.adoc
@@ -7,15 +7,16 @@
 
 There is nothing to stop you from using some other `Realm` implementation (or indeed writing one yourself).  For example, you could use Shiro's own JDBC realm that loads user/password details from a database.
 
-If you go down this route, then the architecture is as follows:
-
-image::{_imagesdir}security/security-apis-impl/configure-shiro-to-use-custom-jdbc-realm.png[width="600px"]
-
 [WARNING]
 ====
 If you are happy to use a database then we strongly recommend you use the http://github.com/isisaddons/isis-module-security}[Isis addons' security] module instead of a vanilla JDBC; it is far more sophisticated and moreover gives you the ability to administer the system from within your Isis application.
 ====
 
+If you go down this route, then the architecture is as follows:
+
+image::{_imagesdir}security/security-apis-impl/configure-shiro-to-use-custom-jdbc-realm.png[width="600px"]
+
+
 
 
 == Shiro Configuration
@@ -46,12 +47,12 @@ We next need to tell the realm how to query the database.  Shiro supports any sc
 [source,ini]
 ----
 
-jdbcRealm.authenticationQuery =         \              # <5>
+jdbcRealm.authenticationQuery =         \              # <1>
         select password                 \
           from users                    \
          where username = ?
 
-jdbcRealm.userRolesQuery =              \              # <6>
+jdbcRealm.userRolesQuery =              \              # <2>
         select r.label                  \
           from users_roles ur           \
     inner join roles r                  \
@@ -61,7 +62,7 @@ jdbcRealm.userRolesQuery =              \              # <6>
              from users                 \
             where username = ?);        \
 
-jdbcRealm.permissionsQuery=             \               # <7>
+jdbcRealm.permissionsQuery=             \               # <3>
         select p.permission             \
           from roles_permissions rp     \
     inner join permissions p            \
@@ -71,12 +72,12 @@ jdbcRealm.permissionsQuery=             \               # <7>
              from roles                 \
             where label = ?);
 
-jdbcRealm.permissionsLookupEnabled=true                 # <8>
+jdbcRealm.permissionsLookupEnabled=true                 # <4>
 ----
-<5> query to find password for user
-<6> query to find roles for user
-<7> query to find permissions for role
-<8> enable permissions lookup
+<1> query to find password for user
+<2> query to find roles for user
+<3> query to find permissions for role
+<4> enable permissions lookup
 
 [WARNING]
 ====
@@ -87,27 +88,27 @@ We also should ensure that the passwords are not stored as plain-text:
 
 [source,ini]
 ----
-dps = org.apache.shiro.authc.credential.DefaultPasswordService   # <9>
-pm = org.apache.shiro.authc.credential.PasswordMatcher           # <10>
+dps = org.apache.shiro.authc.credential.DefaultPasswordService   # <1>
+pm = org.apache.shiro.authc.credential.PasswordMatcher           # <2>
 pm.passwordService = $dps
-jdbcRealm.credentialsMatcher = $pm                               # <11>
+jdbcRealm.credentialsMatcher = $pm                               # <3>
 ----
-<9> mechanism to encrypts password
-<10> service to match passwords
-<11> instruct JDBC realm to use password matching service when authenticating
+<1> mechanism to encrypts password
+<2> service to match passwords
+<3> instruct JDBC realm to use password matching service when authenticating
 
 
 And finally we need to tell Shiro to use the realm, in the usual fashion:
 
 [source,ini]
 ----
-securityManager.realms = $jdbcRealm                     # <12>
+securityManager.realms = $jdbcRealm
 ----
 
 Using the above configuration you will also need to setup a `DataSource`.  The details vary by servlet container, for example this is link:https://tomcat.apache.org/tomcat-8.0-doc/jndi-datasource-examples-howto.html[how to do the setup on Tomcat 8.0].
 
 [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/a/23784702/56880[this StackOverflow answer].
 ====
 

http://git-wip-us.apache.org/repos/asf/isis/blob/749ddf27/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_security_usage-by-isis-viewers.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_security_usage-by-isis-viewers.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_security_usage-by-isis-viewers.adoc
new file mode 100644
index 0000000..19fd054
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_security_usage-by-isis-viewers.adoc
@@ -0,0 +1,207 @@
+= Usage by Isis' Viewers
+: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/
+
+
+
+By and large the security mechanisms within Isis are transparent to the rest of the framework (the <<_wicket_viewer, Wicket Viewer>> and <<_restful_objects_viewer, Restful viewer>>, and the overall <<_runtime, runtime>>).
+
+That said, it is the responsibility of the viewers to ensure that there is a viewers to ensure that for each request there is a valid user session present.  The sections below explain how this works.
+
+
+
+
+== Wicket Viewer
+
+The <<_wicket_viewer, Wicket viewer>> defines a relatively small number of pages (by which we mean subclasses of link:http://ci.apache.org/projects/wicket/apidocs/6.0.x/org/apache/wicket/markup/html/WebPage.html[`org.apache.wicket.markup.html.WebPage`]):
+
+* about page
+* action prompt page
+* entity page
+* error page
+* home page
+* standalone collection page
+* value page
+* void return page
+
+All of these (except about page) are annotated with the Wicket annotation:
+
+[source,java]
+----
+@AuthorizeInstantiation("org.apache.isis.viewer.wicket.roles.USER")
+----
+
+which means that they can only be accessed by a user with an authenticated session that has this special, reserved role.  If not, Wicket will automatically redirect the user to the sign-in page.
+
+[TIP]
+====
+The sign-in page to render is pluggable; see <<_custom_pages, extensions chapter>> for details.
+====
+
+In the sign-in page the viewer calls to the Isis Authenticator API, and obtains back a user/role.  It also adds in its special reserved role (per the annotation above) and then continues on to whichever page the user was attempting to access (usually the home page).
+
+And that's really all there is to it.  When the viewer renders a domain object it queries the Isis metamodel, and suppresses from the view any object members (properties, actions etc) that are invisible.  These may be invisible because the user has no (read ) permission, or they may be invisible because of domain object logic (eg a `hideXxx()` method).  The viewer neither knows nor cares.
+
+Similarly, for those object members that _are_ visible, the viewer also checks if they are enabled or disabled.  Again, an object member will be disabled if the user does not have (write) permission, or it could be disabled because of domain object logic (eg a `disableXxx()` method).
+
+
+=== User-registration
+
+As well as providing a sign-in screen, the Wicket viewer also provides the ability for <<_user_registration, users to self-register>>.  By and large this operates outside of Isis' security mechanisms; indeed the various pages (sign-up, sign-up verification, password reset) are all rendered _without_ there being any current user session.  These pages all "reach inside" Isis framework using a mechanism similar to <<_headless_access>> in order to actually do their stuff.
+
+[TIP]
+====
+The sign-in verification page to render is pluggable; see <<_custom_pages, extensions chapter>> for details.
+====
+
+User registration is only available if the <<_user_registration_service, `UserRegistrationService`>> is configured; this is used by the framework to actually create new instances of the user as accessed by the corresponding (Shiro) realm.
+
+Because Shiro realms are pluggable, the Isis framework does not provide default implementations of this service.  However, if you are using the Isis addons' http://github.com/isisaddons/isis-module-security}[Isis addons' security] module (non-ASF), then this module _does_ provide an implementation (that, as you might expect, creates new "user" domain entities).
+
+If you are using an LDAP realm and want to enable user-self registration then you'll need to write your own implementation of this service.
+
+
+
+== Restful Objects Viewer
+
+Unlike the Wicket viewer, the <<_restful_objects_viewer, Restful Objects viewer>> does _not_ provide any sort of login page; rather it provides a pluggable authentication strategy, delegated to by the `IsisSessionFilter` filter defined in `web.xml`.  The authentication strategy is responsible for ensuring that a session is available for the REST resource.
+
+The API of `AuthenticationSessionStrategy` is simply:
+
+[source,java]
+----
+package org.apache.isis.core.webapp.auth;
+...
+public interface AuthenticationSessionStrategy {
+    AuthenticationSession lookupValid(     // <1>
+        ServletRequest servletRequest,
+        ServletResponse servletResponse);
+    void bind(                             // <2>
+        ServletRequest servletRequest,
+        ServletResponse servletResponse,
+        AuthenticationSession authSession);
+}
+
+----
+<1> returns a valid `AuthenticationSession` for the specified request, response
+<2> binds (associates the provided `AuthenticationSession`) to the request and response
+
+Here `AuthenticationSession` is Isis' internal API that represents a signed-on user.
+
+The framework provides a number of simple strategies:
+
+* `AuthenticationSessionStrategyBasicAuth` implements the HTTP basic auth protocol (the pop-up dialog box shown by the web browser)
+* `AuthenticationSessionStrategyHeader` that simply reads the user identity from an HTTP header
+* `AuthenticationSessionStrategyTrusted` that always logs in with a special "exploration" user
+
+As you can see, none of these should be considered production-quality.
+
+The strategy is configured in `web.xml`; for example:
+
+[source,xml]
+----
+<filter>
+    <filter-name>IsisSessionFilterForRestfulObjects</filter-name>
+    <filter-class>org.apache.isis.core.webapp.IsisSessionFilter</filter-class>
+    <init-param>
+        <param-name>authenticationSessionStrategy</param-name>
+        <param-value>                                           <!--1-->
+    org.apache.isis.viewer.restfulobjects.server.authentication.AuthenticationSessionStrategyBasicAuth
+        </param-value>
+    </init-param>
+    <init-param>
+        <param-name>whenNoSession</param-name>
+        <param-value>basicAuthChallenge</param-value>           <!--2-->
+    </init-param>
+</filter>
+----
+<1> configure basic auth strategy
+<2> what to do if no session was found; we indicate to issue a 401 basic authentication challenge
+
+The `IsisSessionFilter` has a further plugin point if no session was found (that is, if `AuthenticationSessionStrategy#lookupValid()` returns null), which is how to respond.  The value "basicAuthChallenge" means to return a 401, which is what triggers the web browser to pop-up the basic HTTP challenge dialog box.
+
+The above filter must then be chained before the servlet that actually handles the REST requests:
+
+[source,xml]
+----
+<filter-mapping>
+    <filter-name>IsisSessionFilterForRestfulObjects</filter-name>
+    <servlet-name>RestfulObjectsRestEasyDispatcher</servlet-name>
+</filter-mapping>
+...
+<servlet>
+    <servlet-name>RestfulObjectsRestEasyDispatcher</servlet-name>
+    <servlet-class>org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher</servlet-class>
+</servlet>
+----
+
+[NOTE]
+====
+The above `web.xml` fragments do _not_ constitute the full configuration for the Restful Objects viewer, just those parts that pertain to security.
+====
+
+
+
+=== User-registration
+
+Isis currently does not have any out-of-the-box support for user-registration for applications using only the Restful viewer.  However, in principal the pieces do exist to put together a solution.
+
+The general idea is similar to the design of the Wicket viewer; define some subsidiary resources that can operate _without_ a user session in place, and which "reach into" the framework using headless access in order to setup the user.
+
+[TIP]
+====
+An alternative approach, possibly less work and overall of more value, would be to implement `AuthenticationSessionStrategy` for oAuth, in other words allow users to use their existing Google or Facebook account.
+====
+
+The following steps sketch out the solution in a little more detail:
+
+* Define some new Restful resources (cf link:https://github.com/apache/isis/blob/master/core/viewer-restfulobjects-server/src/main/java/org/apache/isis/viewer/restfulobjects/server/resources/DomainObjectResourceServerside.java[`DomainServiceResourceServerside`] that correspond to sign-up/register page, eg `SignupResource` +
++
+[source,java]
+----
+@Path("/signup")
+public class SignupResource {
+    ...
+}
+----
+
+* Create a new subclass of `RestfulObjectsApplication`, eg "CustomRestfulObjectsApplication" and register your resources +
++
+[source,java]
+----
+public class CustomRestfulObjectsApplication extends RestfulObjectsApplication {
+    public CustomRestfulObjectsApplication() {
+        addClass(SignupResource.class);
+    }
+}
+----
+
+* Register your application class in `web.xml` instead of the default: +
++
+[source,xml]
+----
+<context-param>
+    <param-name>javax.ws.rs.Application</param-name>
+    <param-value>com.mycompany.myapp.CustomRestfulObjectsApplication</param-value>
+</context-param>
+----
+
+So far this is just standard javax.rs stuff.
+
+Next, we need to ensure that a client can hit your new resource *with* the Isis runtime in place, but without there being an Isis session.  For that....
+
+* create a subclass of the `AuthenticationSessionStrategy` that automatically returns a dummy session if the resource being accessed is "/restful/signup", say.  +
++
+You could do this by subclassing `AuthenticationSessionStrategyBasicAuth`, but then using code from `AuthenticationSessionStrategyBasicAuth` to return an "exploration" (or better, "signup") session if accessing the "/restful/signup" resource.
+
+* in the `SignUpResource` resource, you can then do a lookup of the `UserRegistrationService` in order to allow the user to be created: +
++
+[source,java]
+----
+final UserRegistrationService userRegistrationService =
+    IsisContext.getPersistenceSession().getServicesInjector().lookupService(UserRegistrationService.class);
+userRegistrationService.registerUser(userDetails);
+----
+
+Obviously the methods exposed by the `SignupResource` are up to you; ultimately they need to be able to gather information to populate the `UserDetails` object as passed to the `UserRegistrationService`.


[9/9] isis git commit: ISIS-1133: domain service toc.

Posted by da...@apache.org.
ISIS-1133: domain service toc.


Project: http://git-wip-us.apache.org/repos/asf/isis/repo
Commit: http://git-wip-us.apache.org/repos/asf/isis/commit/65d34db7
Tree: http://git-wip-us.apache.org/repos/asf/isis/tree/65d34db7
Diff: http://git-wip-us.apache.org/repos/asf/isis/diff/65d34db7

Branch: refs/heads/master
Commit: 65d34db7d41ddfad6530ae9afa617949a336f5f2
Parents: 0fd0630
Author: Dan Haywood <da...@haywood-associates.co.uk>
Authored: Fri May 15 14:33:17 2015 +0100
Committer: Dan Haywood <da...@haywood-associates.co.uk>
Committed: Fri May 15 14:33:17 2015 +0100

----------------------------------------------------------------------
 .../user-guide/_user-guide_reference.adoc       |  12 +-
 .../_user-guide_reference_addons.adoc           |  17 +
 ...-guide_reference_addons_settings-module.adoc |  49 +++
 .../_user-guide_reference_annotations.adoc      |   2 +-
 .../_user-guide_reference_annotations_aaa.adoc  |   2 +-
 .../_user-guide_reference_methods.adoc          |  19 +-
 .../_user-guide_reference_methods_aaa.adoc      | 286 +-----------
 ...r-guide_reference_methods_manpage_addTo.adoc |   8 -
 ..._reference_methods_manpage_autoComplete.adoc |   8 -
 ...guide_reference_methods_manpage_choices.adoc |   8 -
 ...r-guide_reference_methods_manpage_clear.adoc |   8 -
 ...guide_reference_methods_manpage_default.adoc |   8 -
 ...guide_reference_methods_manpage_disable.adoc |   8 -
 ...ser-guide_reference_methods_manpage_get.adoc |   8 -
 ...er-guide_reference_methods_manpage_hide.adoc |   8 -
 ...-guide_reference_methods_manpage_modify.adoc |   8 -
 ...de_reference_methods_manpage_removeFrom.adoc |   8 -
 ...ser-guide_reference_methods_manpage_set.adoc |   8 -
 ...uide_reference_methods_manpage_validate.adoc |   8 -
 ...reference_methods_manpage_validateAddTo.adoc |   8 -
 ...ence_methods_manpage_validateRemoveFrom.adoc |   8 -
 .../_user-guide_reference_mixins.adoc           |  11 +
 .../_user-guide_reference_prefixes.adoc         |  27 ++
 .../_user-guide_reference_prefixes_aaa.adoc     | 151 +++++++
 ...-guide_reference_prefixes_manpage_addTo.adoc |   8 +
 ...reference_prefixes_manpage_autoComplete.adoc |   8 +
 ...uide_reference_prefixes_manpage_choices.adoc |   8 +
 ...-guide_reference_prefixes_manpage_clear.adoc |   8 +
 ...uide_reference_prefixes_manpage_default.adoc |   8 +
 ...uide_reference_prefixes_manpage_disable.adoc |   8 +
 ...er-guide_reference_prefixes_manpage_get.adoc |   8 +
 ...r-guide_reference_prefixes_manpage_hide.adoc |   8 +
 ...guide_reference_prefixes_manpage_modify.adoc |   8 +
 ...e_reference_prefixes_manpage_removeFrom.adoc |   8 +
 ...er-guide_reference_prefixes_manpage_set.adoc |   8 +
 ...ide_reference_prefixes_manpage_validate.adoc |   8 +
 ...eference_prefixes_manpage_validateAddTo.adoc |   8 +
 ...nce_prefixes_manpage_validateRemoveFrom.adoc |   8 +
 .../_user-guide_reference_services.adoc         |  10 +-
 .../_user-guide_reference_services_aaa.adoc     | 434 +++++++++++++------
 ...ide_reference_services_auditing-service.adoc |   2 +-
 ...erence_services_class-discovery-service.adoc |   8 +
 ...ide_reference_services_event-serializer.adoc |   8 +
 ...uide_reference_services_fixture-scripts.adoc |   8 +
 ..._reference_services_guice-bean-provider.adoc |   8 +
 ...ide_reference_services_settings-service.adoc |  48 --
 ...r-guide_reference_services_sudo-service.adoc |   8 +
 47 files changed, 747 insertions(+), 587 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/isis/blob/65d34db7/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference.adoc
index 5508589..c4a4adc 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference.adoc
@@ -5,15 +5,13 @@
 
 IMPORTANT: TODO
 
-include::_user-guide_reference_methods.adoc[leveloffset=+1]
-
 include::_user-guide_reference_annotations.adoc[leveloffset=+1]
-
-include::_user-guide_reference_domain-services.adoc[leveloffset=+1]
-
+include::_user-guide_reference_prefixes.adoc[leveloffset=+1]
+include::_user-guide_reference_methods.adoc[leveloffset=+1]
+include::_user-guide_reference_services.adoc[leveloffset=+1]
 include::_user-guide_reference_value-types.adoc[leveloffset=+1]
-
 include::_user-guide_reference_applib-utility-classes.adoc[leveloffset=+1]
-
 include::_user-guide_reference_convenience-superclasses.adoc[leveloffset=+1]
+include::_user-guide_reference_mixins.adoc[leveloffset=+1]
+include::_user-guide_reference_addons.adoc[leveloffset=+1]
 

http://git-wip-us.apache.org/repos/asf/isis/blob/65d34db7/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_addons.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_addons.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_addons.adoc
new file mode 100644
index 0000000..caa04de
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_addons.adoc
@@ -0,0 +1,17 @@
+= Isis Addons
+: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/
+
+
+This section highlights a number of the addons available at http://isisaddons.org[Isis Addons] website.  Note that it is _not_ intended to be comprehensive.
+
+[NOTE]
+====
+The http://isisaddons.org[Isis Addons], while maintained by Isis committers, are entirely independent of the Apache Software Foundation.
+====
+
+
+include::_user-guide_reference_addons_settings-module.adoc[leveloffset=+1]
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/65d34db7/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_addons_settings-module.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_addons_settings-module.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_addons_settings-module.adoc
new file mode 100644
index 0000000..8355192
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_addons_settings-module.adoc
@@ -0,0 +1,49 @@
+= Settings Services
+: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/
+
+
+The http://github.com/isisaddons/isis-module-settings}[Isis addons' settings] module provides a simple way to store both global (application-level) settings as well as per-user settings.
+
+The settings service is documented here for your convenience; the full README can be found on the http://github.com/isisaddons/isis-module-settings}[github site].
+
+
+== Application Settings
+
+=== API
+
+IMPORTANT: TODO
+
+=== Implementation
+
+In the case of `ApplicationSettingsService`, the service is implemented by `ApplicationSettingsServiceJdo`, with the `ApplicationSetting` interface implemented by a `ApplicationSettingsJdo` entity.
+
+The service also provides the ability to create list all existing settings, create new settings (of whichever datatype), update settings, and to delete settings.
+
+These actions can be hidden using security if need be.
+
+== User Settings
+
+=== API
+
+IMPORTANT: TODO
+
+=== Implementation
+
+In the case of `UserSettingsService`, the service is implemented by `UserSettingsServiceJdo`, with the `UserSetting` interface implemented by a `UserSettingsJdo` entity.
+
+As for application settings, the user settings service also provides the ability to create list all existing settings, create new settings (of whichever datatype), update settings, and to delete settings.
+
+These actions can be hidden using security if need be.
+
+
+== Registration and Configuration
+
+The `ApplicationSettingsServiceJdo` class and `UserSettingsServiceJdo` are annotated with `@DomainService` and so are automatically registered with the framework, with actions appearing on the secondary menu bar.
+
+IMPORTANT: TODO - screenshot of settings menu
+
+All actions from the services emit domain events.  If you wish to hide/disable these default actions in your application, we recommend using up a subscriber on the actions' domain events to veto their visibility/usability.
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/65d34db7/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations.adoc
index 2e8d7c2..d8f34bc 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations.adoc
@@ -6,7 +6,7 @@
 IMPORTANT: TODO
 
 
-include::_user-guide_reference_annotations_aaa.adoc[]
+include::_user-guide_reference_annotations_aaa.adoc[leveloffset=+1]
 
 include::_user-guide_reference_annotations_manpage_action.adoc[leveloffset=+1]
 include::_user-guide_reference_annotations_manpage_actionlayout.adoc[leveloffset=+1]

http://git-wip-us.apache.org/repos/asf/isis/blob/65d34db7/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_aaa.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_aaa.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_aaa.adoc
index d086e8d..c8ef404 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_aaa.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_aaa.adoc
@@ -1,4 +1,4 @@
-// = Overview
+= Summary
 :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/

http://git-wip-us.apache.org/repos/asf/isis/blob/65d34db7/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods.adoc
index f16ba7c..49106b3 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods.adoc
@@ -1,26 +1,11 @@
-= Recognized Methods
+= Reserved Methods
 :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/
 
 
 
-include::_user-guide_reference_methods_aaa.adoc[]
-
-include::_user-guide_reference_methods_manpage_addTo.adoc[leveloffset=+1]
-include::_user-guide_reference_methods_manpage_autoComplete.adoc[leveloffset=+1]
-include::_user-guide_reference_methods_manpage_choices.adoc[leveloffset=+1]
-include::_user-guide_reference_methods_manpage_clear.adoc[leveloffset=+1]
-include::_user-guide_reference_methods_manpage_default.adoc[leveloffset=+1]
-include::_user-guide_reference_methods_manpage_disable.adoc[leveloffset=+1]
-include::_user-guide_reference_methods_manpage_get.adoc[leveloffset=+1]
-include::_user-guide_reference_methods_manpage_hide.adoc[leveloffset=+1]
-include::_user-guide_reference_methods_manpage_modify.adoc[leveloffset=+1]
-include::_user-guide_reference_methods_manpage_removeFrom.adoc[leveloffset=+1]
-include::_user-guide_reference_methods_manpage_set.adoc[leveloffset=+1]
-include::_user-guide_reference_methods_manpage_validate.adoc[leveloffset=+1]
-include::_user-guide_reference_methods_manpage_validateAddTo.adoc[leveloffset=+1]
-include::_user-guide_reference_methods_manpage_validateRemoveFrom.adoc[leveloffset=+1]
+include::_user-guide_reference_methods_aaa.adoc[leveloffset=+1]
 
 
 include::_user-guide_reference_methods_manpage_cssClass.adoc[leveloffset=+1]

http://git-wip-us.apache.org/repos/asf/isis/blob/65d34db7/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_aaa.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_aaa.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_aaa.adoc
index 0c245b9..ff6d049 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_aaa.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_aaa.adoc
@@ -1,218 +1,41 @@
-//= Overview
+= Summary
 :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/
 
 
-== Recognized Prefixes
-
-The table below lists the method prefixes that are recognized as part of Apache Isis' default programming model.
-
-.Recognized Method Prefixes
-[cols="2,1,1,1,1,1,4a", options="header"]
-|===
-
-|Prefix
-|Object
-|Property
-|Collection
-|Action
-|Action +
-Param
-|Description
-
-|<<__code_addto_code, `addTo...()`>>
-|
-|
-|Y
-|
-|
-|add object to a collection (nb: not currently supported by Wicket viewer) +
-See also <<__code_removefrom_code, `removeFrom...()`>>`
-
-|<<__code_autocomplete_code, `autoComplete...()`>>
-|
-|Y
-|
-|
-|Y
-|Return a list of matching elements for a property or an action parameter. +
-Alternatively, can specify for a class using <<__code_domainobject_code, `@DomainObject#autoComplete`>> +
-+
-See also choices
-
-|<<__code_choices_code, `choices...()`>>
-|
-|Y
-|
-|
-|Y
-|Provide list of choices for a property or action parameter
-See also <<__code_autocomplete_code, `autoComplete...()`>>.
-
-|<<__code_clear_code, `clear...()`>>
-|
-|Y
-|
-|
-|
-|Clear a property (set it to null). Allows business logic to be placed apart from the setter.
-See also <<__code_modify_code, `modify...()`>>
-
-
-|<<__code_default_code, `default...()`>>
-|
-|Y
-|
-|
-|Y
-|Default value for a property or an action parameter.
-
-|<<__code_disable_code, `disable...()`>>
-|Y
-|Y
-|Y
-|Y
-|
-|Disables (makes read-only) a property, a collection or an action.
-
-|<<__code_get_code, `get...()`>>
-|
-|Y
-|Y
-|
-|
-|Access the value of a property or collection. +
-See also <<__code_set_code, `set...()`>>.
-
-|<<__code_hide_code, `hide...()`>>
-|
-|Y
-|Y
-|Y
-|
-|Hides a property, a collection or an action.
-
-|<<__code_modify_code, `modify...()`>>
-|
-|Y
-|
-|
-|
-|Modify a property (set it to a non-null) value. Allows business logic to be placed apart from the setter. +
-See also <<__code_clear_code, `clear...()`>>`.
-
-|<<__code_removeFrom_code, `removeFrom...()`>>
-|
-|
-|Y
-|
-|
-|remove object from a collection (nb: not currently supported by Wicket viewer) +
-See also <<__code_addto_code, `addTo...()`>>`
-
-|<<__code_set_code, `set...()`>>
-|
-|Y
-|Y
-|
-|
-|Sets the value of a property or a collection.
-
-|<<__code_validate_code, `validate...()`>>
-|Y
-|
-|
-|Y
-|Y
-|Check that a proposed value of a property or an action parameter is valid. +
-See also <<__code_validateaddto_code, validateAddTo...()`>> and <<__code_validateremovefrom_code, `validateRemoveFrom...()`>> for collections.
-
-|<<__code_validateaddto_code, `validate +
-AddTo...()`>>
-|
-|Y
-|
-|
-|
-|Check that a proposed object to add to a collection is valid. +
-See also <<__code_validateremovefrom_code, `validateRemoveFrom...()`>>, and <<__code_validate_code, `validate...()`>> for properties and collections.
-
-|<<__code_validateremovefrom_code, `validate +
-RemoveFrom...()`>>
-|
-|Y
-|
-|
-|
-|Check that a proposed object to add to a collection is valid.
-See also <<__code_validateaddto_code, `validateAddTo...()`>>, and <<__code_validate_code, `validate...()`>> for properties and collections.
-
-|===
-
-
-
-== Reserved Methods
 
 
 The table below lists the reserved methods that are recognized as part of Apache Isis' default programming model.
 
 .Reserved Methods
-[cols="2,1,1,1,1,1,4a", options="header"]
+[cols="1,4a", options="header"]
 |===
 
 |Method
-|Object
-|Property
-|Collection
-|Action
-|Action +
-Param
 |Description
 
 |<<__code_cssClass_code, `cssClass()`>>
-|Y
-|
-|
-|
-|
 |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.
 See also <<__code_title_code, `title()`>> and <<__code_iconName_code, `iconName()`>>.
 
 |<<__code_iconName_code, `iconName()`>>
-|Y
-|
-|
-|
-|
 |Provides the name of the image to render, usually alongside the title, to represent the object. If not provided, then the class name is used to locate an image.
 See also <<__code_title_code, `title()`>> and <<__code_cssClass_code, `cssClass()`>>
 
 |<<__code_getId_code, `getId()`>>
 |Y
-|
-|
-|
-|
 |Provides an optional unique identifier of a service. +
 If not provided, the services fully-qualified class name is used.
 
 |<<__code_title_code, `title()`>>
 |Y
-|
-|
-|
-|
 |Provides a title for the object. +
 Alternatively, use the <<__code_title_code, <<__code_@Title`>> annotation. It is also possible to use `toString_code, `@Title`>> annotation. It is also possible to use `toString()`>>. +
 See also `iconName()` and <<__code_cssClass_code, `cssClass()`>>
 
 |<<__code_toString_code, `toString()`>>
 |Y
-|
-|
-|
-|
 |Used as the fallback title for an object if there is no <<__code_title_code, `title()`>> method or properties annotated with the <<__code_title_code, `@Title`>> annotation.
 
 
@@ -221,7 +44,6 @@ See also `iconName()` and <<__code_cssClass_code, `cssClass()`>>
 
 
 
-== Lifecycle callback methods
 
 The lifecycle callback methods notify a domain entity about its interaction within the persistence lifecycle.  For example, the entity is notified immediately prior to being persisted, or when it is about to be updated.
 
@@ -235,82 +57,35 @@ As an alternative, consider using Isis' event bus and domain events.
 The lifecycle methods are:
 
 .Lifecycle methods (partial support)
-[cols="2,1,1,1,1,1,4a", options="header"]
+[cols="1,4a", options="header"]
 |===
 
-|Prefix
-|Object
-|Property
-|Collection
-|Action
-|Action +
-Param
+|Method
 |Description
 
 |<<__code_created_code, `created()`>>
-|Y
-|
-|
-|
-|
-|Lifecycle callback for when the object has just been created using <<__code_newTransientInstance_code, `newTransientInstance()`>>
+|called when an object has just been created using <<__code_newTransientInstance_code, `newTransientInstance()`>>
 
 |<<__code_loaded_code, `loaded()`>>
-|Y
-|
-|
-|
-|
-|Lifecycle callback for when the (persistent) object has just been loaded from the object store.
+|called when a (persistent) object has just been loaded from the object store.
 
 |<<__code_persisted_code, `persisted()`>>
-|Y
-|
-|
-|
-|
-|Lifecycle callback for when the (persistent) object has just been persisted from the object store.
+|called when object has just been persisted from the object store.
 
 |<<__code_persisting_code, `persisting()`>>
-|Y
-|
-|
-|
-|
-|Lifecycle callback for when the (persistent) object is just about to be persisted from the object store
-
+|called when a (not-yet-persistent) object is just about to be persisted from the object store
 
 |<<__code_removed_code, `removed()`>>
-|Y
-|
-|
-|
-|
-|Lifecycle callback for when the (persistent) object has just been persisted from the object store
+|called when a (persistent) object has just been persisted from the object store
 
 |<<__code_removing_code, `removing()`>>
-|Y
-|
-|
-|
-|
-|Lifecycle callback for when the (persistent) object is just about to be deleted from the object store
+|called when a (persistent) object is just about to be deleted from the object store
 
 |<<__code_updated_code, `updated()`>>
-|Y
-|
-|
-|
-|
-|Lifecycle callback for when the (persistent) object has just been updated in the object store
+|called when a (persistent) object has just been updated in the object store
 
 |<<__code_updating_code, `updating()`>>
-|Y
-|
-|
-|
-|
-|Lifecycle callback for when the (persistent) object is just about to be updated in the object store
+|called when a (persistent) object is just about to be updated in the object store
 
 |===
 
@@ -319,39 +94,20 @@ Param
 Some lifecycle methods have been deprecated:
 
 .Deprecated lifecycle methods
-[cols="2,1,1,1,1,1,4a", options="header"]
+[cols="1,4a", options="header"]
 |===
-Prefix
-|Object
-|Property
-|Collection
-|Action
-|Action Param
-|See also
+
+|Method
+|Notes
 
 |<<__code_deleted_code, `deleted()`>>
-|Y
-|
-|
-|
-|
 |Replaced by <<__code_removed_code, `removed()`>>
 
 |<<__code_deleting_code, `deleting()`>>
-|Y
-|
-|
-|
-|
 |Replaced by removing()`
 
 |`loading`
-|Y
-|
-|
-|
-|
-|Lifecycle callback for when the (persistent) object is just about to be loaded from the object store. +
+|callback for when the (persistent) object is just about to be loaded from the object store. +
 [WARNING]
 ====
 This method is never called.
@@ -359,18 +115,10 @@ This method is never called.
 
 |<<__code_saved_code, `saved()`>>
 |Y
-|
-|
-|
-|
 |Replaced by persisted()`
 
 |<<__code_saving_code, `saving()`>>
 |Y
-|
-|
-|
-|
 |Replaced by <<__code_persisting_code, `persisting()`>>
 
 |===

http://git-wip-us.apache.org/repos/asf/isis/blob/65d34db7/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_addTo.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_addTo.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_addTo.adoc
deleted file mode 100644
index 73a8ebb..0000000
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_addTo.adoc
+++ /dev/null
@@ -1,8 +0,0 @@
-= `addTo...()`
-: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
-
-

http://git-wip-us.apache.org/repos/asf/isis/blob/65d34db7/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_autoComplete.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_autoComplete.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_autoComplete.adoc
deleted file mode 100644
index 1b4cfd1..0000000
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_autoComplete.adoc
+++ /dev/null
@@ -1,8 +0,0 @@
-= `autoComplete...()`
-: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
-
-

http://git-wip-us.apache.org/repos/asf/isis/blob/65d34db7/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_choices.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_choices.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_choices.adoc
deleted file mode 100644
index 4406b14..0000000
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_choices.adoc
+++ /dev/null
@@ -1,8 +0,0 @@
-= `choices...()`
-: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
-
-

http://git-wip-us.apache.org/repos/asf/isis/blob/65d34db7/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_clear.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_clear.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_clear.adoc
deleted file mode 100644
index a84aafc..0000000
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_clear.adoc
+++ /dev/null
@@ -1,8 +0,0 @@
-= `clear...()`
-: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
-
-

http://git-wip-us.apache.org/repos/asf/isis/blob/65d34db7/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_default.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_default.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_default.adoc
deleted file mode 100644
index 92f1658..0000000
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_default.adoc
+++ /dev/null
@@ -1,8 +0,0 @@
-= `default...()`
-: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
-
-

http://git-wip-us.apache.org/repos/asf/isis/blob/65d34db7/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_disable.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_disable.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_disable.adoc
deleted file mode 100644
index b511df5..0000000
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_disable.adoc
+++ /dev/null
@@ -1,8 +0,0 @@
-= `disable...()`
-: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
-
-

http://git-wip-us.apache.org/repos/asf/isis/blob/65d34db7/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_get.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_get.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_get.adoc
deleted file mode 100644
index a2f9f87..0000000
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_get.adoc
+++ /dev/null
@@ -1,8 +0,0 @@
-= `get...()`
-: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
-
-

http://git-wip-us.apache.org/repos/asf/isis/blob/65d34db7/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_hide.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_hide.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_hide.adoc
deleted file mode 100644
index 8918811..0000000
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_hide.adoc
+++ /dev/null
@@ -1,8 +0,0 @@
-= `hide...()`
-: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
-
-

http://git-wip-us.apache.org/repos/asf/isis/blob/65d34db7/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_modify.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_modify.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_modify.adoc
deleted file mode 100644
index acd087d..0000000
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_modify.adoc
+++ /dev/null
@@ -1,8 +0,0 @@
-= `modify...()`
-: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
-
-

http://git-wip-us.apache.org/repos/asf/isis/blob/65d34db7/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_removeFrom.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_removeFrom.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_removeFrom.adoc
deleted file mode 100644
index 14411ba..0000000
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_removeFrom.adoc
+++ /dev/null
@@ -1,8 +0,0 @@
-= `removeFrom...()`
-: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
-
-

http://git-wip-us.apache.org/repos/asf/isis/blob/65d34db7/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_set.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_set.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_set.adoc
deleted file mode 100644
index add8f0e..0000000
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_set.adoc
+++ /dev/null
@@ -1,8 +0,0 @@
-= `set...()`
-: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
-
-

http://git-wip-us.apache.org/repos/asf/isis/blob/65d34db7/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_validate.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_validate.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_validate.adoc
deleted file mode 100644
index 3135322..0000000
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_validate.adoc
+++ /dev/null
@@ -1,8 +0,0 @@
-= `validate...()`
-: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
-
-

http://git-wip-us.apache.org/repos/asf/isis/blob/65d34db7/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_validateAddTo.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_validateAddTo.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_validateAddTo.adoc
deleted file mode 100644
index fa98e27..0000000
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_validateAddTo.adoc
+++ /dev/null
@@ -1,8 +0,0 @@
-= `validateAddTo...()`
-: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
-
-

http://git-wip-us.apache.org/repos/asf/isis/blob/65d34db7/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_validateRemoveFrom.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_validateRemoveFrom.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_validateRemoveFrom.adoc
deleted file mode 100644
index 0cb8353..0000000
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_methods_manpage_validateRemoveFrom.adoc
+++ /dev/null
@@ -1,8 +0,0 @@
-= `validateRemoveFrom...()`
-: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
-
-

http://git-wip-us.apache.org/repos/asf/isis/blob/65d34db7/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_mixins.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_mixins.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_mixins.adoc
new file mode 100644
index 0000000..13634f8
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_mixins.adoc
@@ -0,0 +1,11 @@
+= Mixins
+: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
+
+== `HasTransactionId`
+
+== `HasUsername`
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/isis/blob/65d34db7/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_prefixes.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_prefixes.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_prefixes.adoc
new file mode 100644
index 0000000..2cd4338
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_prefixes.adoc
@@ -0,0 +1,27 @@
+= Recognized Method Prefixes
+: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/
+
+
+
+include::_user-guide_reference_prefixes_aaa.adoc[leveloffset=+1]
+
+include::_user-guide_reference_prefixes_manpage_addTo.adoc[leveloffset=+1]
+include::_user-guide_reference_prefixes_manpage_autoComplete.adoc[leveloffset=+1]
+include::_user-guide_reference_prefixes_manpage_choices.adoc[leveloffset=+1]
+include::_user-guide_reference_prefixes_manpage_clear.adoc[leveloffset=+1]
+include::_user-guide_reference_prefixes_manpage_default.adoc[leveloffset=+1]
+include::_user-guide_reference_prefixes_manpage_disable.adoc[leveloffset=+1]
+include::_user-guide_reference_prefixes_manpage_get.adoc[leveloffset=+1]
+include::_user-guide_reference_prefixes_manpage_hide.adoc[leveloffset=+1]
+include::_user-guide_reference_prefixes_manpage_modify.adoc[leveloffset=+1]
+include::_user-guide_reference_prefixes_manpage_removeFrom.adoc[leveloffset=+1]
+include::_user-guide_reference_prefixes_manpage_set.adoc[leveloffset=+1]
+include::_user-guide_reference_prefixes_manpage_validate.adoc[leveloffset=+1]
+include::_user-guide_reference_prefixes_manpage_validateAddTo.adoc[leveloffset=+1]
+include::_user-guide_reference_prefixes_manpage_validateRemoveFrom.adoc[leveloffset=+1]
+
+
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/65d34db7/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_prefixes_aaa.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_prefixes_aaa.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_prefixes_aaa.adoc
new file mode 100644
index 0000000..ea45d56
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_prefixes_aaa.adoc
@@ -0,0 +1,151 @@
+= Summary
+: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/
+
+
+The table below lists the method prefixes that are recognized as part of Apache Isis' default programming model.
+
+.Recognized Method Prefixes
+[cols="2,1,1,1,1,1,4a", options="header"]
+|===
+
+|Prefix
+|Object
+|Property
+|Collection
+|Action
+|Action +
+Param
+|Description
+
+|<<__code_addto_code, `addTo...()`>>
+|
+|
+|Y
+|
+|
+|add object to a collection (nb: not currently supported by Wicket viewer) +
+See also <<__code_removefrom_code, `removeFrom...()`>>`
+
+|<<__code_autocomplete_code, `autoComplete...()`>>
+|
+|Y
+|
+|
+|Y
+|Return a list of matching elements for a property or an action parameter. +
+Alternatively, can specify for a class using <<__code_domainobject_code, `@DomainObject#autoComplete`>> +
++
+See also choices
+
+|<<__code_choices_code, `choices...()`>>
+|
+|Y
+|
+|
+|Y
+|Provide list of choices for a property or action parameter
+See also <<__code_autocomplete_code, `autoComplete...()`>>.
+
+|<<__code_clear_code, `clear...()`>>
+|
+|Y
+|
+|
+|
+|Clear a property (set it to null). Allows business logic to be placed apart from the setter.
+See also <<__code_modify_code, `modify...()`>>
+
+
+|<<__code_default_code, `default...()`>>
+|
+|Y
+|
+|
+|Y
+|Default value for a property or an action parameter.
+
+|<<__code_disable_code, `disable...()`>>
+|Y
+|Y
+|Y
+|Y
+|
+|Disables (makes read-only) a property, a collection or an action.
+
+|<<__code_get_code, `get...()`>>
+|
+|Y
+|Y
+|
+|
+|Access the value of a property or collection. +
+See also <<__code_set_code, `set...()`>>.
+
+|<<__code_hide_code, `hide...()`>>
+|
+|Y
+|Y
+|Y
+|
+|Hides a property, a collection or an action.
+
+|<<__code_modify_code, `modify...()`>>
+|
+|Y
+|
+|
+|
+|Modify a property (set it to a non-null) value. Allows business logic to be placed apart from the setter. +
+See also <<__code_clear_code, `clear...()`>>`.
+
+|<<__code_removeFrom_code, `removeFrom...()`>>
+|
+|
+|Y
+|
+|
+|remove object from a collection (nb: not currently supported by Wicket viewer) +
+See also <<__code_addto_code, `addTo...()`>>`
+
+|<<__code_set_code, `set...()`>>
+|
+|Y
+|Y
+|
+|
+|Sets the value of a property or a collection.
+
+|<<__code_validate_code, `validate...()`>>
+|Y
+|
+|
+|Y
+|Y
+|Check that a proposed value of a property or an action parameter is valid. +
+See also <<__code_validateaddto_code, validateAddTo...()`>> and <<__code_validateremovefrom_code, `validateRemoveFrom...()`>> for collections.
+
+|<<__code_validateaddto_code, `validate +
+AddTo...()`>>
+|
+|Y
+|
+|
+|
+|Check that a proposed object to add to a collection is valid. +
+See also <<__code_validateremovefrom_code, `validateRemoveFrom...()`>>, and <<__code_validate_code, `validate...()`>> for properties and collections.
+
+|<<__code_validateremovefrom_code, `validate +
+RemoveFrom...()`>>
+|
+|Y
+|
+|
+|
+|Check that a proposed object to add to a collection is valid.
+See also <<__code_validateaddto_code, `validateAddTo...()`>>, and <<__code_validate_code, `validate...()`>> for properties and collections.
+
+|===
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/65d34db7/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_prefixes_manpage_addTo.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_prefixes_manpage_addTo.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_prefixes_manpage_addTo.adoc
new file mode 100644
index 0000000..73a8ebb
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_prefixes_manpage_addTo.adoc
@@ -0,0 +1,8 @@
+= `addTo...()`
+: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
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/65d34db7/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_prefixes_manpage_autoComplete.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_prefixes_manpage_autoComplete.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_prefixes_manpage_autoComplete.adoc
new file mode 100644
index 0000000..1b4cfd1
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_prefixes_manpage_autoComplete.adoc
@@ -0,0 +1,8 @@
+= `autoComplete...()`
+: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
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/65d34db7/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_prefixes_manpage_choices.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_prefixes_manpage_choices.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_prefixes_manpage_choices.adoc
new file mode 100644
index 0000000..4406b14
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_prefixes_manpage_choices.adoc
@@ -0,0 +1,8 @@
+= `choices...()`
+: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
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/65d34db7/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_prefixes_manpage_clear.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_prefixes_manpage_clear.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_prefixes_manpage_clear.adoc
new file mode 100644
index 0000000..a84aafc
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_prefixes_manpage_clear.adoc
@@ -0,0 +1,8 @@
+= `clear...()`
+: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
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/65d34db7/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_prefixes_manpage_default.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_prefixes_manpage_default.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_prefixes_manpage_default.adoc
new file mode 100644
index 0000000..92f1658
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_prefixes_manpage_default.adoc
@@ -0,0 +1,8 @@
+= `default...()`
+: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
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/65d34db7/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_prefixes_manpage_disable.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_prefixes_manpage_disable.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_prefixes_manpage_disable.adoc
new file mode 100644
index 0000000..b511df5
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_prefixes_manpage_disable.adoc
@@ -0,0 +1,8 @@
+= `disable...()`
+: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
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/65d34db7/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_prefixes_manpage_get.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_prefixes_manpage_get.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_prefixes_manpage_get.adoc
new file mode 100644
index 0000000..a2f9f87
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_prefixes_manpage_get.adoc
@@ -0,0 +1,8 @@
+= `get...()`
+: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
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/65d34db7/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_prefixes_manpage_hide.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_prefixes_manpage_hide.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_prefixes_manpage_hide.adoc
new file mode 100644
index 0000000..8918811
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_prefixes_manpage_hide.adoc
@@ -0,0 +1,8 @@
+= `hide...()`
+: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
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/65d34db7/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_prefixes_manpage_modify.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_prefixes_manpage_modify.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_prefixes_manpage_modify.adoc
new file mode 100644
index 0000000..acd087d
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_prefixes_manpage_modify.adoc
@@ -0,0 +1,8 @@
+= `modify...()`
+: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
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/65d34db7/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_prefixes_manpage_removeFrom.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_prefixes_manpage_removeFrom.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_prefixes_manpage_removeFrom.adoc
new file mode 100644
index 0000000..14411ba
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_prefixes_manpage_removeFrom.adoc
@@ -0,0 +1,8 @@
+= `removeFrom...()`
+: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
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/65d34db7/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_prefixes_manpage_set.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_prefixes_manpage_set.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_prefixes_manpage_set.adoc
new file mode 100644
index 0000000..add8f0e
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_prefixes_manpage_set.adoc
@@ -0,0 +1,8 @@
+= `set...()`
+: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
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/65d34db7/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_prefixes_manpage_validate.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_prefixes_manpage_validate.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_prefixes_manpage_validate.adoc
new file mode 100644
index 0000000..3135322
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_prefixes_manpage_validate.adoc
@@ -0,0 +1,8 @@
+= `validate...()`
+: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
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/65d34db7/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_prefixes_manpage_validateAddTo.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_prefixes_manpage_validateAddTo.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_prefixes_manpage_validateAddTo.adoc
new file mode 100644
index 0000000..fa98e27
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_prefixes_manpage_validateAddTo.adoc
@@ -0,0 +1,8 @@
+= `validateAddTo...()`
+: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
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/65d34db7/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_prefixes_manpage_validateRemoveFrom.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_prefixes_manpage_validateRemoveFrom.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_prefixes_manpage_validateRemoveFrom.adoc
new file mode 100644
index 0000000..0cb8353
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_prefixes_manpage_validateRemoveFrom.adoc
@@ -0,0 +1,8 @@
+= `validateRemoveFrom...()`
+: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
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/65d34db7/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services.adoc
index 8dfe616..e4eff00 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_services.adoc
@@ -6,13 +6,14 @@
 
 IMPORTANT: TODO
 
-include::_user-guide_reference_services_aaa.adoc[]
+include::_user-guide_reference_services_aaa.adoc[leveloffset=+1]
 
 include::_user-guide_reference_services_action-invocation-context.adoc[leveloffset=+1]
 include::_user-guide_reference_services_auditing-service.adoc[leveloffset=+1]
 include::_user-guide_reference_services_background-command-service.adoc[leveloffset=+1]
 include::_user-guide_reference_services_background-service.adoc[leveloffset=+1]
 include::_user-guide_reference_services_bookmark-service.adoc[leveloffset=+1]
+include::_user-guide_reference_services_class-discovery-service.adoc[leveloffset=+1]
 include::_user-guide_reference_services_clock-service.adoc[leveloffset=+1]
 include::_user-guide_reference_services_command-context.adoc[leveloffset=+1]
 include::_user-guide_reference_services_command-service.adoc[leveloffset=+1]
@@ -23,7 +24,10 @@ include::_user-guide_reference_services_domain-object-container.adoc[leveloffset
 include::_user-guide_reference_services_email-notification-service.adoc[leveloffset=+1]
 include::_user-guide_reference_services_email-service.adoc[leveloffset=+1]
 include::_user-guide_reference_services_event-bus-service.adoc[leveloffset=+1]
+include::_user-guide_reference_services_event-serializer.adoc[leveloffset=+1]
 include::_user-guide_reference_services_exception-recognizer.adoc[leveloffset=+1]
+include::_user-guide_reference_services_fixture-scripts.adoc[leveloffset=+1]
+include::_user-guide_reference_services_guice-bean-provider.adoc[leveloffset=+1]
 include::_user-guide_reference_services_isis-jdo-support.adoc[leveloffset=+1]
 include::_user-guide_reference_services_locale-provider.adoc[leveloffset=+1]
 include::_user-guide_reference_services_memento-service.adoc[leveloffset=+1]
@@ -31,7 +35,7 @@ include::_user-guide_reference_services_metamodel-service.adoc[leveloffset=+1]
 include::_user-guide_reference_services_publishing-service.adoc[leveloffset=+1]
 include::_user-guide_reference_services_query-results-cache.adoc[leveloffset=+1]
 include::_user-guide_reference_services_scratch-pad.adoc[leveloffset=+1]
-include::_user-guide_reference_services_settings-service.adoc[leveloffset=+1]
+include::_user-guide_reference_services_sudo-service.adoc[leveloffset=+1]
 include::_user-guide_reference_services_translation-service.adoc[leveloffset=+1]
 include::_user-guide_reference_services_translations-resolver.adoc[leveloffset=+1]
 include::_user-guide_reference_services_user-profile-service.adoc[leveloffset=+1]
@@ -39,5 +43,3 @@ include::_user-guide_reference_services_user-registration-service.adoc[leveloffs
 include::_user-guide_reference_services_wrapper-factory.adoc[leveloffset=+1]
 include::_user-guide_reference_services_xml-snapshot-service.adoc[leveloffset=+1]
 
-
-


[7/9] isis git commit: ISIS-1133: summary tables for reference sections

Posted by da...@apache.org.
ISIS-1133: summary tables for reference sections


Project: http://git-wip-us.apache.org/repos/asf/isis/repo
Commit: http://git-wip-us.apache.org/repos/asf/isis/commit/0fd0630e
Tree: http://git-wip-us.apache.org/repos/asf/isis/tree/0fd0630e
Diff: http://git-wip-us.apache.org/repos/asf/isis/diff/0fd0630e

Branch: refs/heads/master
Commit: 0fd0630ed4ab22fe5d46129c849a5dec5498f383
Parents: 749ddf2
Author: Dan Haywood <da...@haywood-associates.co.uk>
Authored: Fri May 15 12:10:15 2015 +0100
Committer: Dan Haywood <da...@haywood-associates.co.uk>
Committed: Fri May 15 12:10:15 2015 +0100

----------------------------------------------------------------------
 .../_user-guide_more-advanced_i18n.adoc         |   6 +-
 .../user-guide/_user-guide_reference.adoc       |   2 +-
 .../_user-guide_reference_annotations.adoc      |  31 ++
 .../_user-guide_reference_annotations_aaa.adoc  |  14 +
 ...de_reference_annotations_aaa_deprecated.adoc | 328 ++++++++++++++++
 ...ser-guide_reference_annotations_aaa_jee.adoc |  35 ++
 ...er-guide_reference_annotations_aaa_main.adoc |  91 +++++
 ...r-guide_reference_annotations_aaa_other.adoc |  55 +++
 ...guide_reference_annotations_aaa_partial.adoc |  43 +++
 ...de_reference_annotations_manpage_action.adoc |   8 +
 ...erence_annotations_manpage_actionlayout.adoc |   8 +
 ...eference_annotations_manpage_collection.adoc |   8 +
 ...ce_annotations_manpage_collectionlayout.adoc |   8 +
 ...de_reference_annotations_manpage_digits.adoc |   8 +
 ...erence_annotations_manpage_domainobject.adoc |   8 +
 ..._annotations_manpage_domainobjectlayout.adoc |   8 +
 ...rence_annotations_manpage_domainservice.adoc |   8 +
 ...annotations_manpage_domainservicelayout.adoc |   8 +
 ...de_reference_annotations_manpage_facets.adoc |   8 +
 ..._reference_annotations_manpage_homepage.adoc |   8 +
 ...de_reference_annotations_manpage_inject.adoc |   8 +
 ...e_annotations_manpage_membergrouplayout.adoc |   8 +
 ...ference_annotations_manpage_memberorder.adoc |   8 +
 ...reference_annotations_manpage_minlength.adoc |   8 +
 ...reference_annotations_manpage_parameter.adoc |   8 +
 ...erence_annotations_manpage_programmatic.adoc |   8 +
 ..._reference_annotations_manpage_property.adoc |   8 +
 ...ence_annotations_manpage_propertylayout.adoc |   8 +
 ...rence_annotations_manpage_requestscoped.adoc |   8 +
 ...ide_reference_annotations_manpage_title.adoc |   8 +
 ...reference_annotations_manpage_viewmodel.adoc |   8 +
 ...nce_annotations_manpage_viewmodellayout.adoc |   8 +
 .../_user-guide_reference_domain-services.adoc  |  71 ----
 ...main-services_action-invocation-context.adoc |   8 -
 ...erence_domain-services_auditing-service.adoc |  13 -
 ...ain-services_background-command-service.adoc |  11 -
 ...ence_domain-services_background-service.adoc |   8 -
 ...erence_domain-services_bookmark-service.adoc |   8 -
 ...reference_domain-services_clock-service.adoc |   8 -
 ...ference_domain-services_command-context.adoc |   8 -
 ...ference_domain-services_command-service.adoc |  11 -
 ...domain-services_content-mapping-service.adoc |   8 -
 ...in-services_content-negotiation-service.adoc |   8 -
 ...rence_domain-services_deep-link-service.adoc |   8 -
 ...domain-services_domain-object-container.adoc |   8 -
 ...ain-services_email-notification-service.adoc |   8 -
 ...reference_domain-services_email-service.adoc |   8 -
 ...rence_domain-services_event-bus-service.adoc |  15 -
 ...ce_domain-services_exception-recognizer.adoc |   8 -
 ...erence_domain-services_isis-jdo-support.adoc | 129 -------
 ...ference_domain-services_locale-provider.adoc |   8 -
 ...ference_domain-services_memento-service.adoc |   8 -
 ...rence_domain-services_metamodel-service.adoc |   8 -
 ...ence_domain-services_publishing-service.adoc |  11 -
 ...nce_domain-services_query-results-cache.adoc |   8 -
 ...e_reference_domain-services_scratch-pad.adoc |   8 -
 ...erence_domain-services_settings-service.adoc |  48 ---
 ...nce_domain-services_translation-service.adoc |   8 -
 ...e_domain-services_translations-resolver.adoc |   8 -
 ...ce_domain-services_user-profile-service.adoc |   8 -
 ...main-services_user-registration-service.adoc |   8 -
 ...ference_domain-services_wrapper-factory.adoc |   8 -
 ...ce_domain-services_xml-snapshot-service.adoc |   8 -
 .../_user-guide_reference_methods.adoc          |  29 ++
 .../_user-guide_reference_methods_aaa.adoc      | 378 +++++++++++++++++++
 ...r-guide_reference_methods_manpage_addTo.adoc |   8 +
 ..._reference_methods_manpage_autoComplete.adoc |   8 +
 ...guide_reference_methods_manpage_choices.adoc |   8 +
 ...r-guide_reference_methods_manpage_clear.adoc |   8 +
 ...uide_reference_methods_manpage_cssClass.adoc |   8 +
 ...guide_reference_methods_manpage_default.adoc |   8 +
 ...guide_reference_methods_manpage_disable.adoc |   8 +
 ...ser-guide_reference_methods_manpage_get.adoc |   8 +
 ...r-guide_reference_methods_manpage_getId.adoc |   8 +
 ...er-guide_reference_methods_manpage_hide.adoc |   8 +
 ...uide_reference_methods_manpage_iconName.adoc |   8 +
 ...-guide_reference_methods_manpage_modify.adoc |   8 +
 ...de_reference_methods_manpage_removeFrom.adoc |   8 +
 ...ser-guide_reference_methods_manpage_set.adoc |   8 +
 ...r-guide_reference_methods_manpage_title.adoc |   8 +
 ...uide_reference_methods_manpage_validate.adoc |   8 +
 ...reference_methods_manpage_validateAddTo.adoc |   8 +
 ...ence_methods_manpage_validateRemoveFrom.adoc |   8 +
 ...user-guide_reference_recognized-methods.adoc |   8 -
 .../_user-guide_reference_services.adoc         |  43 +++
 .../_user-guide_reference_services_aaa.adoc     | 223 +++++++++++
 ...ence_services_action-invocation-context.adoc |   8 +
 ...ide_reference_services_auditing-service.adoc |  13 +
 ...nce_services_background-command-service.adoc |  12 +
 ...e_reference_services_background-service.adoc |   8 +
 ...ide_reference_services_bookmark-service.adoc |   8 +
 ...-guide_reference_services_clock-service.adoc |   8 +
 ...uide_reference_services_command-context.adoc |   8 +
 ...uide_reference_services_command-service.adoc |  11 +
 ...erence_services_content-mapping-service.adoc |   8 +
 ...ce_services_content-negotiation-service.adoc |   8 +
 ...de_reference_services_deep-link-service.adoc |   8 +
 ...erence_services_domain-object-container.adoc |   8 +
 ...nce_services_email-notification-service.adoc |   8 +
 ...-guide_reference_services_email-service.adoc |   8 +
 ...de_reference_services_event-bus-service.adoc |  15 +
 ...reference_services_exception-recognizer.adoc |   8 +
 ...ide_reference_services_isis-jdo-support.adoc | 129 +++++++
 ...uide_reference_services_locale-provider.adoc |   8 +
 ...uide_reference_services_memento-service.adoc |   8 +
 ...de_reference_services_metamodel-service.adoc |   8 +
 ...e_reference_services_publishing-service.adoc |  11 +
 ..._reference_services_query-results-cache.adoc |   8 +
 ...er-guide_reference_services_scratch-pad.adoc |   8 +
 ...ide_reference_services_settings-service.adoc |  48 +++
 ..._reference_services_translation-service.adoc |   8 +
 ...eference_services_translations-resolver.adoc |   8 +
 ...reference_services_user-profile-service.adoc |   8 +
 ...ence_services_user-registration-service.adoc |   8 +
 ...uide_reference_services_wrapper-factory.adoc |   8 +
 ...reference_services_xml-snapshot-service.adoc |   8 +
 ..._shiro-isisaddons-security-module-realm.adoc |   2 +-
 ...er-guide_security_usage-by-isis-viewers.adoc |   2 +-
 .../user-guide/_user-guide_testing.adoc         |  14 +-
 .../_user-guide_testing_bdd-spec-support.adoc   | 354 ++++++++++++++++-
 .../_user-guide_testing_fake-data.adoc          |  11 -
 .../_user-guide_testing_integ-test-support.adoc |  22 +-
 ...esting_integ-test-support_bootstrapping.adoc | 139 ++++++-
 ..._integ-test-support_maven-configuration.adoc |  22 ++
 ...esting_integ-test-support_typical-usage.adoc | 123 ++++++
 ...ting_integ-test-support_wrapper-factory.adoc |  96 +++++
 .../_user-guide_testing_overview.adoc           | 138 +++++++
 .../_user-guide_testing_unit-test-support.adoc  | 153 ++++----
 .../user-guide/images/testing/integ-tests.png   | Bin 0 -> 19263 bytes
 .../user-guide/images/testing/integ-tests.pptx  | Bin 0 -> 50694 bytes
 .../images/testing/wrapper-factory.png          | Bin 0 -> 16094 bytes
 .../main/asciidoc/user-guide/user-guide.adoc    |  41 +-
 adocs/template/document.html.erb                | 128 ++++++-
 .../bootstrap/SimpleAppSystemInitializer.java   |   3 +-
 .../integtests/tests/SimpleAppIntegTest.java    |   7 +-
 .../modules/simple/SimpleObjectIntegTest.java   |  17 +-
 .../modules/simple/SimpleObjectsIntegTest.java  |  16 +-
 137 files changed, 3137 insertions(+), 681 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_more-advanced_i18n.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_more-advanced_i18n.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_more-advanced_i18n.adoc
index 02327d7..a9c3292 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_more-advanced_i18n.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_more-advanced_i18n.adoc
@@ -210,7 +210,9 @@ public interface TranslatableException {
 
 So much for the API; but as noted, it is also necessary to ensure that the required translations are recorded (by the `TranslationService`) into the `.pot` file.
 
-For this, we recommend that you ensure that all such methods are tested through _an integration test_ (not unit test). For example, here's the corresponding integration test for the "Exclamation mark" example from the simpleapp (above):
+For this, we recommend that you ensure that all such methods are tested through an <<_integration_test_support, integration test>> (not unit test).
+
+For example, here's the corresponding integration test for the "Exclamation mark" example from the simpleapp (above):
 
 [source,java]
 ----
@@ -248,6 +250,8 @@ To ensure your app is fully internationalized app, you must therefore:
 [NOTE]
 ====
 We make no apologies for this requirement: one of the reasons that we decided to implement Isis' i18n support in this way is because it encourages/requires the app to be properly tested.
+
+Behind the scenes Isis uses a JUnit rule (`ExceptionRecognizerTranslate`) to intercept any exceptions that are thrown.  These are simply passed through to the registered <<_exception_recognizer, ``ExceptionRecognizer``>>s so that any messages are recorded as requiring translation.
 ====
 
 

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference.adoc
index 57de31d..5508589 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference.adoc
@@ -5,7 +5,7 @@
 
 IMPORTANT: TODO
 
-include::_user-guide_reference_recognized-methods.adoc[leveloffset=+1]
+include::_user-guide_reference_methods.adoc[leveloffset=+1]
 
 include::_user-guide_reference_annotations.adoc[leveloffset=+1]
 

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations.adoc
index 5ad4b76..2e8d7c2 100644
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations.adoc
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations.adoc
@@ -6,3 +6,34 @@
 IMPORTANT: TODO
 
 
+include::_user-guide_reference_annotations_aaa.adoc[]
+
+include::_user-guide_reference_annotations_manpage_action.adoc[leveloffset=+1]
+include::_user-guide_reference_annotations_manpage_actionlayout.adoc[leveloffset=+1]
+include::_user-guide_reference_annotations_manpage_collection.adoc[leveloffset=+1]
+include::_user-guide_reference_annotations_manpage_collectionlayout.adoc[leveloffset=+1]
+include::_user-guide_reference_annotations_manpage_domainobject.adoc[leveloffset=+1]
+include::_user-guide_reference_annotations_manpage_domainobjectlayout.adoc[leveloffset=+1]
+include::_user-guide_reference_annotations_manpage_domainservice.adoc[leveloffset=+1]
+include::_user-guide_reference_annotations_manpage_domainservicelayout.adoc[leveloffset=+1]
+include::_user-guide_reference_annotations_manpage_parameter.adoc[leveloffset=+1]
+include::_user-guide_reference_annotations_manpage_property.adoc[leveloffset=+1]
+include::_user-guide_reference_annotations_manpage_propertylayout.adoc[leveloffset=+1]
+include::_user-guide_reference_annotations_manpage_viewmodel.adoc[leveloffset=+1]
+include::_user-guide_reference_annotations_manpage_viewmodellayout.adoc[leveloffset=+1]
+
+
+include::_user-guide_reference_annotations_manpage_facets.adoc[leveloffset=+1]
+include::_user-guide_reference_annotations_manpage_homepage.adoc[leveloffset=+1]
+include::_user-guide_reference_annotations_manpage_membergrouplayout.adoc[leveloffset=+1]
+include::_user-guide_reference_annotations_manpage_memberorder.adoc[leveloffset=+1]
+include::_user-guide_reference_annotations_manpage_programmatic.adoc[leveloffset=+1]
+include::_user-guide_reference_annotations_manpage_minlength.adoc[leveloffset=+1]
+include::_user-guide_reference_annotations_manpage_title.adoc[leveloffset=+1]
+
+
+include::_user-guide_reference_annotations_manpage_requestscoped.adoc[leveloffset=+1]
+include::_user-guide_reference_annotations_manpage_inject.adoc[leveloffset=+1]
+include::_user-guide_reference_annotations_manpage_digits.adoc[leveloffset=+1]
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_aaa.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_aaa.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_aaa.adoc
new file mode 100644
index 0000000..d086e8d
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_aaa.adoc
@@ -0,0 +1,14 @@
+// = Overview
+: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/
+
+
+
+include::_user-guide_reference_annotations_aaa_main.adoc[leveloffset=+1]
+include::_user-guide_reference_annotations_aaa_other.adoc[leveloffset=+1]
+include::_user-guide_reference_annotations_aaa_jee.adoc[leveloffset=+1]
+include::_user-guide_reference_annotations_aaa_deprecated.adoc[leveloffset=+1]
+include::_user-guide_reference_annotations_aaa_partial.adoc[leveloffset=+1]
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_aaa_deprecated.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_aaa_deprecated.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_aaa_deprecated.adoc
new file mode 100644
index 0000000..15f22d6
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_aaa_deprecated.adoc
@@ -0,0 +1,328 @@
+= Deprecated Annotations
+: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/
+
+
+
+
+.Deprecated Annotations
+[cols="2,4a,3a,1,1", options="header"]
+|===
+|Annotation
+|Purpose
+|Use instead
+|Layer
+|`.layout +
+.json`?
+
+|`@ActionOrder`
+|Order of buttons and menu items representing actions.
+|`@MemberOrder`
+|UI
+|Yes
+
+|`@ActionInteraction`
+|Enable subscribers on the Event Bus Service to either veto, validate or take further steps before/after an action has been invoked.
+|`@Action#domainEvent()`
+|Domain
+|
+
+|`@ActionSemantics`
+|Query-only, idempotent or non-idempotent.
+|`@Action#semantics()`
+|Domain
+|
+
+|`@Audited`
+|Audit changes to an object.
+|`@DomainObject#` +
+`auditing()`
+|Domain
+|
+
+|`@AutoComplete`
+|Repository method to search for entities
+|`@DomainObject` +
+`#autoCompleteRepository()`
+|UI/Domain
+|
+
+|`@Bookmarkable`
+|Whether (and how) to create a bookmark for visited object.
+|`@DomainObjectLayout` +
+`#bookmarking()`
+|UI
+|
+
+|`@Bounded`
+|Bounded (and limited) number of instances of an entity type, translates into a drop-down for any property of that type.
+|`@DomainObject#bounded()`
+|Domain
+|
+
+|`@Bulk`
+|Indicates an action is a bulk action, can be applied to multiple instances.
+|`@Action#invokeOn()`
+|UI, Domain
+|
+
+|`@CollectionInteraction`
+|Enable subscribers on the Event Bus Service to either veto, validate or take further steps before/after a collection has been added to or removed from.
+|`@Collection#domainEvent()`
+|Domain
+|
+
+|`@Command`
+|Action invocation should be reified as a command object, optionally persistable for profiling and enhanced auditing, and background/async support.
+|`@Action#command()`
+|Domain
+|
+
+|`@CssClass`
+|Allow visual representation of individual objects or object members layout to be customized by application-specific CSS.
+|`#cssClass()` attribute for: `@DomainObjectLayout`, `@PropertyLayout`, `@CollectionLayout`, `@ActionLayout` and `@ParameterLayout`
+|UI
+|Yes
+
+|`@CssClassFa`
+|So that font awesome icons can be applied to action buttons/menu items and optionally as an object icon.
+|`@ActionLayout#cssClassFa()`
+|UI
+|Yes
+
+|`@Debug`
+|Action only invokable in debug mode.
+|Use prototype mode instead (`@Action#restrictTo()`)
+|UI
+|
+
+|`@DescribedAs`
+|Provide a longer description/tool-tip of an object or object member.
+|`#describedAs()` attribute for `@DomainObjectLayout`, `@PropertyLayout`, `@CollectionLayout`, `@ActionLayout` and `@ParameterLayout`
+|UI
+|Yes
+
+|`@Disabled`
+|Object property cannot be edited, an object collection cannot be added to/removed from, or an object action cannot be invoked.
+|`#editing()` attribute for `@Property` and `@Collection#editing()`; see also `@DomainObject`
+|UI, Domain
+|Yes
+
+|`@Exploration`
+|Action available in special 'exploration' mode.
+|`@Action#restrictTo()` (combines exploration and prototyping modes).
+|UI
+|
+
+|`@FieldOrder`
+|Order of properties and collections.
+|`@MemberOrder`
+|UI
+|Yes
+
+|`@Hidden`
+|Object member is not visible, or on domain service (to indicate that none of its actions are visible).
+|For domain object members, use `@Action#hidden()`, `@Property#hidden()` or `@Collection#hidden()`. +
+For domain service, use `@DomainService(nature=DOMAIN)`
+|UI, Domain
+|Yes
+
+|`@Idempotent`
+|Whether an action is idempotent (can be invoked multiple times with same post-condition).
+|`@Action#semantics`
+|Domain
+|
+
+|`@Ignore`
+|Exclude this method from the metamodel.
+|`@Programmatic`
+|Domain
+|
+
+|`@Immutable`
+|An object's state cannot be changed (properties cannot be edited, collections cannot be added to or removed from). Actions can still be invoked.
+|`@DomainObject#editing()`
+|Domain
+|
+
+|`@Mask`
+|How to parse/render values (never properly supported)
+|(None)
+|UI/domain
+|
+
+|`@MaxLength`
+|Maximum length of a property value (strings).
+|`#maxLength()` attribute for `@Property` or `@Parameter`
+|Domain
+|
+
+|`@MemberGroups`
+|Layout of properties and collections of a domain object or view model object.
+|`@MemberGroupLayout` or dynamic layout.
+|UI
+|Yes
+
+|`@MultiLine`
+|Render string property over multiple lines (a textarea rather than a textbox).
+|`#multiLine()` attribute for `@PropertyLayout` and`@ParameterLayout`
+|UI
+|Yes
+
+|`@MustSatisfy`
+|Specify arbitrary specification constraints on a property or action parameter.
+|`#mustSatisfy()` attribute for `@Property` and `@Parameter`
+|Domain
+|
+
+|`@Named`
+|Override name inferred from class. Required for parameter names (prior to Java8).
+|`#named()` attribute for `@DomainServiceLayout`, `@DomainObjectLayout`, `@PropertyLayout`, `@CollectionLayout`, `@ActionLayout` and `@ParameterLayout`
+|UI
+|Yes
+
+|`@NotContributed`
+|Indicates that a domain service action is not rendered as an action on the (entity) types of its parameters. For 1-arg query-only actions, controls whether the domain service action is rendered as a property or collection on the entity type of its parameter.
+|Use `@DomainService#nature()` to specify whether any of the actions in a domain service should appear in the menu bars (applies at type level, not action level).
+For individual actions, use `@ActionLayout` to specify whether any individual action should be contributed only as an action or as an association (property or collection).
+|UI
+|
+
+|`@NotInServiceMenu`
+|Indicates that a domain service should not be rendered in the application menu (at top of page in Wicket viewer).
+|`@DomainService#nature()` to specify none of the actions in a domain service should appear in the menu bars
+|UI
+|
+
+|`@NotPersisted`
+|Indicates that an object property is not persisted (meaning it is excluded from view model mementos, and should not be audited).
+|`@Property#notPersisted()`
+|Domain, Persistence
+|
+
+|`@ObjectType`
+|For constructing the external identifier (URI) of an entity instance (part of its URL in both Wicket viewer and Restful Objects viewer). Also part of the toString representation of bookmarks, if using the Bookmark Service
+|`@DomainObject#objectType()`
+|Domain
+|
+
+|`@Optional`
+|Specifies that a property or action parameter is not mandatory.
+|`#optionality()` attribute for `@Property` or `@Parameter`
+|Domain
+|
+
+|`@Paged`
+|Number of instances to display in tables representing (standalone or parented) collections.
+|`#paged()` attribute for `@DomainObjectLayout` or `@CollectionLayout`
+|UI
+|Yes
+
+|`@Plural`
+|For the irregular plural form of an entity type.
+|`@DomainObjectLayout#plural()`
+|UI
+|
+
+|`@PostsAction` +
+`InvokedEvent`
+|Post a domain event to the Event Bus Service indicating that an action has been invoked.
+|`@Action#domainEvent()`
+|Domain
+|
+
+|`@PostsCollection` +
+`AddedToEvent`
+|Post a domain event to the Event Bus Service indicating that an element has been added to a collection.
+|`@Collection#domainEvent()`
+|Domain
+|
+
+|`@PostsCollection` +
+`RemovedFromEvent`
+|Post a domain event to the Event Bus Service indicating that an element has been removed from a collection.
+|`@Collection#domainEvent()`
+|Domain
+|
+
+|`@PostsProperty` +
+`ChangedEvent`
+|Post a domain event to the Event Bus Service indicating that the value of a property has changed.
+|`@Property#domainEvent()`
+|Domain
+|
+
+|`@PropertyInteraction`
+|Enable subscribers on the Event Bus Service to either veto, validate or take further steps before/after a property has been modified or cleared.
+|`@Property#domainEvent()`
+|Domain
+|
+
+|`@Prototype`
+|Indicates that an action should only be visible in 'prototype' mode.
+|`@Action#restrictTo()`
+|UI
+|Yes
+
+|`@PublishedAction`
+|Action invocation should be serialized and published by configured PublishingService (if any), eg to other systems.|`@Action#publishing()`
+|Domain
+|
+
+|`@PublishedObject`
+|Change to object should be serialized and published by configured PublishingService (if any), eg to other systems.
+|`@DomainObject#publishing()`
+|Domain
+|
+
+|`@QueryOnly`
+|Whether an action is query-only (has no side-effects).
+|`@Action#semantics()`
+|Domain
+|
+
+|`@RegEx`
+|Validate change to value of string property.
+|`#regexPattern()` for `@Property` or `@Parameter`.
+|Domain
+|
+
+|`@Render`
+|Eagerly (or lazily) render the contents of a collection.
+|`@CollectionLayout#render()`
+|UI
+|Yes
+
+|`@RenderedAsDayBefore`
+|Render dates as the day before; ie store [a,b) internally but render [a,b-1]) to end-user.
+|`#renderedAsDayBefore()` attribute for `@PropertyLayout` and `@ParameterLayout`.
+|UI
+|
+
+|`@Resolve`
+|Eagerly (or lazily) render the contents of a collection (same as `@Render)`
+|`@CollectionLayout#render()`
+|UI
+|Yes
+
+|`@SortedBy`
+|Display instances in collections in the order determined by the provided Comparator.
+|`@CollectionLayout#sortedBy()`
+|UI
+|Yes
+
+|`@TypeOf`
+|The type of entity stored within a collection, or as the result of invoking an action, if cannot be otherwise inferred, eg from generics.
+|`#typeOf()` attribute for `@Collection` and `@Action`
+|Domain
+|
+
+|`@TypicalLength`
+|The typical length of a string property, eg to determine a sensible length for a textbox.
+|`#typicalLength()` attribute for `@PropertyLayout` and `@ParameterLayout`
+|UI
+|Yes
+
+|===
+

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_aaa_jee.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_aaa_jee.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_aaa_jee.adoc
new file mode 100644
index 0000000..75015ff
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_aaa_jee.adoc
@@ -0,0 +1,35 @@
+= Java EE Annotations
+: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/
+
+
+
+.Java EE Annotations
+[cols="2,4a,1,1", options="header"]
+|===
+|Annotation
+|Purpose
+|Layer
+|`.layout +
+.json`?
+
+|<<__code_requestscoped_code_javax, `@javax.enterprise.context.RequestScoped`>>
+|Specify that a domain service has request-scope (rather than a singleton).
+|Domain
+|
+
+|<<__code_inject_code_javax, `@javax.inject.Inject`>>
+|Inject domain service into a domain object (entity or view model) or another domain service.
+|Domain
+|
+
+|<<__code_digits_code_javax, `@javax.validation.constraints.Digits`>>
+|Precision/scale for BigDecimal values.
+|Domain
+|
+
+|===
+
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_aaa_main.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_aaa_main.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_aaa_main.adoc
new file mode 100644
index 0000000..cc44f08
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_aaa_main.adoc
@@ -0,0 +1,91 @@
+= Core annotations
+: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/
+
+
+
+.Core annotations for domain objects, services and members (as of 1.8.0)
+[cols="2,4a,1,1", options="header"]
+|===
+|Annotation
+|Purpose
+|Layer
+|`.layout +
+.json`?
+
+|<<__code_action_code, `@Action`>>
+|Domain semantics for actions
+|Domain
+|
+
+|<<__code_actionlayout_code, `@ActionLayout`>>
+|User interface hints for actions
+|UI
+|Yes
+
+|<<__code_collection_code, `@Collection`>>
+|Domain semantics for collections
+|Domain
+|
+
+|<<__code_collectionlayout_code, `@CollectionLayout`>>
+|User interface hints for collections
+|UI
+|Yes
+
+|<<__code_domainobject_code, `@DomainObject`>>
+|Domain semantics for domain object (entities and optionally view models, see also `@ViewModel)`
+|Domain
+|
+
+|<<__code_domainobjectlayout_code, `@DomainObjectLayout`>>
+|User interface hints for domain object (entities and optionally view models, see also `@ViewModelLayout)`
+|UI
+|Yes
+
+|<<__code_domainservice_code, `@DomainService`>>
+|Class is a domain service (rather than an entity or view model)
+|Domain
+|
+
+|<<__code_domainservicelayout_code, `@DomainServiceLayout`>>
+|User interface hints for domain services
+|UI
+|
+
+|<<__code_parameter_code, `@Parameter`>>
+|Domain semantics for action parameters
+|Domain
+|
+
+|<<__code_propertylayout_code, `@PropertyLayout`>>
+|Layout hints for an action parameter (currently: its label position either to top or the left).
+|UI
+|Yes
+
+|<<__code_property_code, `@Property`>>
+|Domain semantics for properties
+|Domain
+|
+
+|<<__code_propertylayout_code, `@PropertyLayout`>>
+|Layout hints for a property
+|UI
+|Yes
+
+|<<__code_viewmodel_code, `@ViewModel`>>
+|Specify that a class is a view model (as opposed to an entity or domain service); equivalent to `@DomainObject(nature`=VIEW_MODEL).
+|Domain, Persistence
+|
+
+|<<__code_ViewModelLayout_code, `@ViewModelLayout`>>
+|User interface hints for view models.
+For use with `@ViewModel`. If specifying view models using `@DomainObject(nature=VIEW_MODEL)` then use `@DomainObjectLayout`)
+|UI
+|Yes
+
+|===
+
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_aaa_other.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_aaa_other.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_aaa_other.adoc
new file mode 100644
index 0000000..b71247b
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_aaa_other.adoc
@@ -0,0 +1,55 @@
+= Other Isis Annotations
+: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/
+
+
+
+.Other Isis Annotations
+[cols="2,4a,1,1", options="header"]
+|===
+|Annotation
+|Purpose
+|Layer
+|`.layout +
+.json`?
+
+|<<__code_facets_code, `@Facets`>>
+|Install arbitrary facets within the Isis metamodel.
+|(any)
+|
+
+|<<__code_homepage_code, `@HomePage`>>
+|Query-only action (on domain service) to be invoked, result of which is rendered as the user's home page.
+|UI
+|
+
+|<<__code_membergrouplayout_code, `@MemberGroupLayout`>>
+|Grouping of properties into groups, and organizing of properties, collections into columns.
+|UI
+|Yes
+
+
+|<<__code_memberorder_code, `@MemberOrder`>>
+|Ordering of properties, collections and actions, and also associating actions with either a property or a collection.
+|UI
+|Yes
+
+
+|<<__code_programmatic_code, `@Programmatic`>>
+|Ignore a public method, excluded from the Isis metamodel.
+|Domain
+|
+
+|<<__code_minlength_code, `@MinLength`>>
+|Minimum number of characters required for an auto-complete search argument.
+|UI
+|
+
+|<<__code_title_code, `@Title`>>
+|Indicates which of the object's properties should be used to build up a title for the object.
+|UI
+
+|===
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_aaa_partial.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_aaa_partial.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_aaa_partial.adoc
new file mode 100644
index 0000000..cbc33ad
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_aaa_partial.adoc
@@ -0,0 +1,43 @@
+= Incomplete/partial support
+: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/
+
+
+
+.Annotations with incomplete/partial support
+[cols="2,4a,1", options="header"]
+|===
+|Annotation
+|Purpose
+|Layer
+
+|`@Aggregated`
+|Part of an aggregate root
+|Domain, Persistence
+
+|`@Defaulted`
+|Indicates that a (value) class has a default value.
+|Domain
+
+|`@Encodable`
+|Indicates that a (value) class can be serialized/encoded.
+|Persistence
+
+|`@EqualByContent`
+|Indicates that a value class has equality semantics.
+|Domain
+
+|`@NotPersistable`
+|Indicates that a domain object may not be programmatically persisted (partly supported).
+|Domain, Persistence
+
+|`@Parseable`
+|Indicates that a (value) class can be reconstructed from a string.
+|UI, Domain
+
+|`@Value`
+|Specify that a class has value-semantics.
+|Domain
+
+|===

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_action.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_action.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_action.adoc
new file mode 100644
index 0000000..a12816b
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_action.adoc
@@ -0,0 +1,8 @@
+= `@Action`
+: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
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_actionlayout.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_actionlayout.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_actionlayout.adoc
new file mode 100644
index 0000000..12e0e63
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_actionlayout.adoc
@@ -0,0 +1,8 @@
+= `@ActionLayout`
+: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
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_collection.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_collection.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_collection.adoc
new file mode 100644
index 0000000..7d4e2c2
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_collection.adoc
@@ -0,0 +1,8 @@
+= `@Collection`
+: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
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_collectionlayout.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_collectionlayout.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_collectionlayout.adoc
new file mode 100644
index 0000000..37b1f55
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_collectionlayout.adoc
@@ -0,0 +1,8 @@
+= `@CollectionLayout`
+: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
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_digits.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_digits.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_digits.adoc
new file mode 100644
index 0000000..57fac81
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_digits.adoc
@@ -0,0 +1,8 @@
+= `@Digits` (javax)
+: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
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_domainobject.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_domainobject.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_domainobject.adoc
new file mode 100644
index 0000000..33bc0f1
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_domainobject.adoc
@@ -0,0 +1,8 @@
+= `@DomainObject`
+: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
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_domainobjectlayout.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_domainobjectlayout.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_domainobjectlayout.adoc
new file mode 100644
index 0000000..87bf7a0
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_domainobjectlayout.adoc
@@ -0,0 +1,8 @@
+= `@DomainObjectLayout`
+: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
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_domainservice.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_domainservice.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_domainservice.adoc
new file mode 100644
index 0000000..b9c58dc
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_domainservice.adoc
@@ -0,0 +1,8 @@
+= `@DomainService`
+: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
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_domainservicelayout.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_domainservicelayout.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_domainservicelayout.adoc
new file mode 100644
index 0000000..fd9e2b4
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_domainservicelayout.adoc
@@ -0,0 +1,8 @@
+= `@DomainServiceLayout`
+: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
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_facets.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_facets.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_facets.adoc
new file mode 100644
index 0000000..0cf9a83
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_facets.adoc
@@ -0,0 +1,8 @@
+= `@Facets`
+: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
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_homepage.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_homepage.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_homepage.adoc
new file mode 100644
index 0000000..bb836b2
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_homepage.adoc
@@ -0,0 +1,8 @@
+= `@HomePage`
+: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
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_inject.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_inject.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_inject.adoc
new file mode 100644
index 0000000..887ca24
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_inject.adoc
@@ -0,0 +1,8 @@
+= `@Inject` (javax)
+: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
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_membergrouplayout.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_membergrouplayout.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_membergrouplayout.adoc
new file mode 100644
index 0000000..c452aa9
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_membergrouplayout.adoc
@@ -0,0 +1,8 @@
+= `@MemberGroupLayout`
+: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
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_memberorder.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_memberorder.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_memberorder.adoc
new file mode 100644
index 0000000..c452aa9
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_memberorder.adoc
@@ -0,0 +1,8 @@
+= `@MemberGroupLayout`
+: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
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_minlength.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_minlength.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_minlength.adoc
new file mode 100644
index 0000000..4ae8092
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_minlength.adoc
@@ -0,0 +1,8 @@
+= `@MinLength`
+: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
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_parameter.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_parameter.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_parameter.adoc
new file mode 100644
index 0000000..6bcf579
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_parameter.adoc
@@ -0,0 +1,8 @@
+= `@Parameter`
+: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
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_programmatic.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_programmatic.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_programmatic.adoc
new file mode 100644
index 0000000..6872f5c
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_programmatic.adoc
@@ -0,0 +1,8 @@
+= `@Programmatic`
+: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
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_property.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_property.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_property.adoc
new file mode 100644
index 0000000..6d800fe
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_property.adoc
@@ -0,0 +1,8 @@
+= `@Property`
+: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
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_propertylayout.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_propertylayout.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_propertylayout.adoc
new file mode 100644
index 0000000..bb22a8d
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_propertylayout.adoc
@@ -0,0 +1,8 @@
+= `@PropertyLayout`
+: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
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_requestscoped.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_requestscoped.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_requestscoped.adoc
new file mode 100644
index 0000000..5f59691
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_requestscoped.adoc
@@ -0,0 +1,8 @@
+= `@RequestScoped` (javax)
+: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
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_title.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_title.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_title.adoc
new file mode 100644
index 0000000..df89289
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_title.adoc
@@ -0,0 +1,8 @@
+= `@Title`
+: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
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_viewmodel.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_viewmodel.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_viewmodel.adoc
new file mode 100644
index 0000000..606ea84
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_viewmodel.adoc
@@ -0,0 +1,8 @@
+= `@ViewModel`
+: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
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_viewmodellayout.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_viewmodellayout.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_viewmodellayout.adoc
new file mode 100644
index 0000000..95bc856
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_annotations_manpage_viewmodellayout.adoc
@@ -0,0 +1,8 @@
+= `@ViewModelLayout`
+: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
+
+

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services.adoc
deleted file mode 100644
index 799afab..0000000
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services.adoc
+++ /dev/null
@@ -1,71 +0,0 @@
-= Domain Services
-: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
-
-
-include::_user-guide_reference_domain-services_action-invocation-context.adoc[leveloffset=+1]
-
-include::_user-guide_reference_domain-services_auditing-service.adoc[leveloffset=+1]
-
-include::_user-guide_reference_domain-services_background-command-service.adoc[leveloffset=+1]
-
-include::_user-guide_reference_domain-services_background-service.adoc[leveloffset=+1]
-
-include::_user-guide_reference_domain-services_bookmark-service.adoc[leveloffset=+1]
-
-include::_user-guide_reference_domain-services_clock-service.adoc[leveloffset=+1]
-
-include::_user-guide_reference_domain-services_command-context.adoc[leveloffset=+1]
-
-include::_user-guide_reference_domain-services_command-service.adoc[leveloffset=+1]
-
-include::_user-guide_reference_domain-services_content-mapping-service.adoc[leveloffset=+1]
-
-include::_user-guide_reference_domain-services_content-negotiation-service.adoc[leveloffset=+1]
-
-include::_user-guide_reference_domain-services_deep-link-service.adoc[leveloffset=+1]
-
-include::_user-guide_reference_domain-services_domain-object-container.adoc[leveloffset=+1]
-
-include::_user-guide_reference_domain-services_email-notification-service.adoc[leveloffset=+1]
-
-include::_user-guide_reference_domain-services_email-service.adoc[leveloffset=+1]
-
-include::_user-guide_reference_domain-services_event-bus-service.adoc[leveloffset=+1]
-
-include::_user-guide_reference_domain-services_exception-recognizer.adoc[leveloffset=+1]
-
-include::_user-guide_reference_domain-services_isis-jdo-support.adoc[leveloffset=+1]
-
-include::_user-guide_reference_domain-services_locale-provider.adoc[leveloffset=+1]
-
-include::_user-guide_reference_domain-services_memento-service.adoc[leveloffset=+1]
-
-include::_user-guide_reference_domain-services_metamodel-service.adoc[leveloffset=+1]
-
-include::_user-guide_reference_domain-services_publishing-service.adoc[leveloffset=+1]
-
-include::_user-guide_reference_domain-services_query-results-cache.adoc[leveloffset=+1]
-
-include::_user-guide_reference_domain-services_scratch-pad.adoc[leveloffset=+1]
-
-include::_user-guide_reference_domain-services_settings-service.adoc[leveloffset=+1]
-
-include::_user-guide_reference_domain-services_translation-service.adoc[leveloffset=+1]
-
-include::_user-guide_reference_domain-services_translations-resolver.adoc[leveloffset=+1]
-
-include::_user-guide_reference_domain-services_user-profile-service.adoc[leveloffset=+1]
-
-include::_user-guide_reference_domain-services_user-registration-service.adoc[leveloffset=+1]
-
-include::_user-guide_reference_domain-services_wrapper-factory.adoc[leveloffset=+1]
-
-include::_user-guide_reference_domain-services_xml-snapshot-service.adoc[leveloffset=+1]
-
-
-

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_action-invocation-context.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_action-invocation-context.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_action-invocation-context.adoc
deleted file mode 100644
index cf94397..0000000
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_action-invocation-context.adoc
+++ /dev/null
@@ -1,8 +0,0 @@
-= Action Invocation Context
-: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
-
-

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_auditing-service.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_auditing-service.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_auditing-service.adoc
deleted file mode 100644
index c719fbe..0000000
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_auditing-service.adoc
+++ /dev/null
@@ -1,13 +0,0 @@
-= Auditing Service
-: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
-
-
-
-
-== Isis Addons Implementation
-
-For 1.7.0+, see the http://github.com/isisaddons/isis-module-audit[Isis addons' Audit module] (non-ASF).

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_background-command-service.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_background-command-service.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_background-command-service.adoc
deleted file mode 100644
index 2635e98..0000000
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_background-command-service.adoc
+++ /dev/null
@@ -1,11 +0,0 @@
-= Background Command 1Service
-: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
-
-
-== Isis Addons Implementation
-
-For 1.7.0+, see the http://github.com/isisaddons/isis-module-command[Isis addons' Command module] (non-ASF).

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_background-service.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_background-service.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_background-service.adoc
deleted file mode 100644
index 18cc669..0000000
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_background-service.adoc
+++ /dev/null
@@ -1,8 +0,0 @@
-= Background Service
-: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
-
-

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_bookmark-service.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_bookmark-service.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_bookmark-service.adoc
deleted file mode 100644
index a3386ef..0000000
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_bookmark-service.adoc
+++ /dev/null
@@ -1,8 +0,0 @@
-= Bookmark Service
-: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
-
-

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_clock-service.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_clock-service.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_clock-service.adoc
deleted file mode 100644
index 150e9ff..0000000
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_clock-service.adoc
+++ /dev/null
@@ -1,8 +0,0 @@
-= Clock Service
-: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
-
-

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_command-context.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_command-context.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_command-context.adoc
deleted file mode 100644
index 1abc606..0000000
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_command-context.adoc
+++ /dev/null
@@ -1,8 +0,0 @@
-= Command Context
-: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
-
-

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_command-service.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_command-service.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_command-service.adoc
deleted file mode 100644
index 8d34b8d..0000000
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_command-service.adoc
+++ /dev/null
@@ -1,11 +0,0 @@
-= Command Service
-: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
-
-
-== Isis Addons Implementation
-
-For 1.7.0+, see the http://github.com/isisaddons/isis-module-command[Isis addons' Command module] (non-ASF).

http://git-wip-us.apache.org/repos/asf/isis/blob/0fd0630e/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_content-mapping-service.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_content-mapping-service.adoc b/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_content-mapping-service.adoc
deleted file mode 100644
index 4455517..0000000
--- a/adocs/documentation/src/main/asciidoc/user-guide/_user-guide_reference_domain-services_content-mapping-service.adoc
+++ /dev/null
@@ -1,8 +0,0 @@
-= Content Mapping Service
-: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
-
-