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 2016/12/14 08:45:51 UTC
isis git commit: ISIS-1540: further updates website/documentation for
1.13.2
Repository: isis
Updated Branches:
refs/heads/master 9c5adbadb -> e5055c056
ISIS-1540: further updates website/documentation for 1.13.2
Project: http://git-wip-us.apache.org/repos/asf/isis/repo
Commit: http://git-wip-us.apache.org/repos/asf/isis/commit/e5055c05
Tree: http://git-wip-us.apache.org/repos/asf/isis/tree/e5055c05
Diff: http://git-wip-us.apache.org/repos/asf/isis/diff/e5055c05
Branch: refs/heads/master
Commit: e5055c0560d17545fad877f4097be8e7c61b246a
Parents: 9c5adba
Author: Dan Haywood <da...@haywood-associates.co.uk>
Authored: Wed Dec 14 08:45:44 2016 +0000
Committer: Dan Haywood <da...@haywood-associates.co.uk>
Committed: Wed Dec 14 08:45:44 2016 +0000
----------------------------------------------------------------------
.../guides/_rgant-DomainObject_mixinMethod.adoc | 2 +-
.../src/main/asciidoc/guides/_rgant-Mixin.adoc | 3 ++-
.../main/asciidoc/guides/_rgant-Mixin_method.adoc | 2 +-
.../_rgfis_spi_AuthenticationSessionProvider.adoc | 2 +-
.../asciidoc/guides/_rgsvc_api_SudoService.adoc | 17 +++++++----------
.../asciidoc/guides/_ugbtb_decoupling_mixins.adoc | 11 +++++------
.../guides/_ugvw_configuration-properties.adoc | 12 ++++++------
7 files changed, 23 insertions(+), 26 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/isis/blob/e5055c05/adocs/documentation/src/main/asciidoc/guides/_rgant-DomainObject_mixinMethod.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/guides/_rgant-DomainObject_mixinMethod.adoc b/adocs/documentation/src/main/asciidoc/guides/_rgant-DomainObject_mixinMethod.adoc
index 8ceab6e..7a82f19 100644
--- a/adocs/documentation/src/main/asciidoc/guides/_rgant-DomainObject_mixinMethod.adoc
+++ b/adocs/documentation/src/main/asciidoc/guides/_rgant-DomainObject_mixinMethod.adoc
@@ -1,5 +1,5 @@
[[_rgant-DomainObject_mixinMethod]]
-= `mixinMethod()` (`1.13.2-SNAPSHOT`)
+= `mixinMethod()`
: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/e5055c05/adocs/documentation/src/main/asciidoc/guides/_rgant-Mixin.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/guides/_rgant-Mixin.adoc b/adocs/documentation/src/main/asciidoc/guides/_rgant-Mixin.adoc
index 3e24e96..765ab7e 100644
--- a/adocs/documentation/src/main/asciidoc/guides/_rgant-Mixin.adoc
+++ b/adocs/documentation/src/main/asciidoc/guides/_rgant-Mixin.adoc
@@ -27,8 +27,9 @@ The table below summarizes the annotation's attributes.
|xref:rgant.adoc#_rgant-Mixin_method[`method()`]
|Method name within the mixin
-|(As of `1.13.2-SNAPSHOT`) How to recognize the "reserved" method name, meaning that the mixin's own name will be inferred from the mixin type.
+|How to recognize the "reserved" method name, meaning that the mixin's own name will be inferred from the mixin type.
Typical examples are "exec", "execute", "invoke", "apply" and so on.
+The default "reserved" method name is `$$`.
|===
http://git-wip-us.apache.org/repos/asf/isis/blob/e5055c05/adocs/documentation/src/main/asciidoc/guides/_rgant-Mixin_method.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/guides/_rgant-Mixin_method.adoc b/adocs/documentation/src/main/asciidoc/guides/_rgant-Mixin_method.adoc
index 1c22ddd..21bb51b 100644
--- a/adocs/documentation/src/main/asciidoc/guides/_rgant-Mixin_method.adoc
+++ b/adocs/documentation/src/main/asciidoc/guides/_rgant-Mixin_method.adoc
@@ -1,5 +1,5 @@
[[_rgant-Mixin_method]]
-= `method()` (`1.13.2-SNAPSHOT`)
+= `method()`
: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/e5055c05/adocs/documentation/src/main/asciidoc/guides/_rgfis_spi_AuthenticationSessionProvider.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/guides/_rgfis_spi_AuthenticationSessionProvider.adoc b/adocs/documentation/src/main/asciidoc/guides/_rgfis_spi_AuthenticationSessionProvider.adoc
index 1d23104..496b58b 100644
--- a/adocs/documentation/src/main/asciidoc/guides/_rgfis_spi_AuthenticationSessionProvider.adoc
+++ b/adocs/documentation/src/main/asciidoc/guides/_rgfis_spi_AuthenticationSessionProvider.adoc
@@ -31,4 +31,4 @@ isisSessionFactory.getCurrentSession().getAuthenticationSession();
----
-(As of `1.13.2-SNAPSHOT`), if xref:rgsvc.adoc#_rgsvc_api_SudoService[`SudoService`] has been used to temporarily override the user and/or roles, then this service will report the overridden values.
+If xref:rgsvc.adoc#_rgsvc_api_SudoService[`SudoService`] has been used to temporarily override the user and/or roles, then this service will report the overridden values.
http://git-wip-us.apache.org/repos/asf/isis/blob/e5055c05/adocs/documentation/src/main/asciidoc/guides/_rgsvc_api_SudoService.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/guides/_rgsvc_api_SudoService.adoc b/adocs/documentation/src/main/asciidoc/guides/_rgsvc_api_SudoService.adoc
index f43eeb1..8a67b14 100644
--- a/adocs/documentation/src/main/asciidoc/guides/_rgsvc_api_SudoService.adoc
+++ b/adocs/documentation/src/main/asciidoc/guides/_rgsvc_api_SudoService.adoc
@@ -29,13 +29,10 @@ public interface SudoService {
----
which will run the provided block of code (a `Runnable` or a `Callable`) in a way such that calls to
-`UserService#getUser()` will return the specified user (and roles, if specified)
+`UserService#getUser()` will return the specified user (and roles, if specified).
+(If roles are not specified, then the roles of the current user are preserved).
-As of `1.13.2-SNAPSHOT`:
-
-* if roles are not specified, then the roles of the current user are preserved.
-
-* the current user/role reported by the internal xref:rgfis.adoc#_rgfis_spi_AuthenticationSessionProvider[`AuthenticationSessionProvider`] will also return the specified user/roles.
+The current user/role reported by the internal xref:rgfis.adoc#_rgfis_spi_AuthenticationSessionProvider[`AuthenticationSessionProvider`] will also return the specified user/roles.
[IMPORTANT]
====
@@ -71,9 +68,9 @@ protected void execute(final ExecutionContext ec) {
[[_rgsvc_api_SudoService_ACCESS-ALL-ROLE]]
-=== ACCESS_ALL_ROLE" (`1.13.2-SNAPSHOT`)
+=== ACCESS_ALL_ROLE
-When `sudo(...)` is called the "effective user" is reported by both xref:rgsvc.adoc#_rgsvc_api_UserService[`UserService`] and (as of `1.13.2-SNAPSHOT`) by xref:rgfis.adoc#_rgfis_spi_AuthenticationSessionProvider[`AuthenticationSessionProvider`], but does not propagate through to the xref:ugsec.adoc#[Shiro security mechanism].
+When `sudo(...)` is called the "effective user" is reported by both xref:rgsvc.adoc#_rgsvc_api_UserService[`UserService`] and by xref:rgfis.adoc#_rgfis_spi_AuthenticationSessionProvider[`AuthenticationSessionProvider`], but does not propagate through to the xref:ugsec.adoc#[Shiro security mechanism].
These continue to be evaluated according to the permissions of the current user.
This can be a problem in certain use cases.
@@ -105,9 +102,9 @@ In the future this service may be used more deeply, eg to propagate permissions
-== SPI (`1.13.2-SNAPSHOT`)
+== SPI
-The `SudoService.Spi` service (`1.13.2-SNAPSHOT`) allows implementations of `SudoService` to notify other services/components that the effective user and roles are different.
+The `SudoService.Spi` service allows implementations of `SudoService` to notify other services/components that the effective user and roles are different.
The default implementation of xref:rgsvc.adoc#_rgsvc_api_UserService[`UserService`] has been refactored to leverage this SPI.
[source,java]
http://git-wip-us.apache.org/repos/asf/isis/blob/e5055c05/adocs/documentation/src/main/asciidoc/guides/_ugbtb_decoupling_mixins.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/guides/_ugbtb_decoupling_mixins.adoc b/adocs/documentation/src/main/asciidoc/guides/_ugbtb_decoupling_mixins.adoc
index 499733a..f580c7a 100644
--- a/adocs/documentation/src/main/asciidoc/guides/_ugbtb_decoupling_mixins.adoc
+++ b/adocs/documentation/src/main/asciidoc/guides/_ugbtb_decoupling_mixins.adoc
@@ -134,7 +134,7 @@ public class DocumentHolder_documents {
<1> using "$$" as the reserved method name
<2> supporting methods as usual
-As of `1.13.2-SNAPSHOT`, "$" is also recognized as a separator between the mixin type and mixin name.
+The character "$" is also recognized as a separator between the mixin type and mixin name.
This is useful for mixins implemented as nested static types, discussed below.
@@ -152,7 +152,7 @@ For example:
public class Customer {
@Mixin
- public static class _placeOrder { // <1>
+ public static class placeOrder { // <1>
private final Customer customer;
public documents(Customer customer) { this.customer = customer; } // <2>
@@ -167,13 +167,12 @@ public class Customer {
}
}
----
-<1> must start with an "_" (the effective name of the class is `Customer$_placeOrder`.
+<1> Prior to `1.13.2`, had to be prefixed by an "_"; this is no longer required because "$" is also recognized as a way of parsing the class name in order to infer the mixin's name (eg `Customer$placeOrder`).
<2> typically contributed to concrete class
<3> using the "$$" reserved name
<4> supporting methods as usual
-As of `1.13.2-SNAPSHOT`, the leading "_" can be omitted because "$" is also recognized as an identifier.
Moreover, the mixin class can be capitalized if desired.
Thus:
@@ -199,14 +198,14 @@ public class Customer {
----
-In other words, all of the following are allowed (in `1.13.2-SNAPSHOT`):
+In other words, all of the following are allowed:
* `public static class Documents { ... }`
* `public static class documents { ... }`
* `public static class _Documents { ... }`
* `public static class _documents { ... }`
-(As of `1.13.2-SNAPSHOT`), the reserved method name "$$" can also be changed using xref:rgant.adoc#_rgant_Mixin_method[`@Mixin#method()`] or xref:rgant.adoc#_rgant_DomainObject_mixinMethod[`@DomainObject#mixinMethod()`].
+The reserved method name "$$" can also be changed using xref:rgant.adoc#_rgant_Mixin_method[`@Mixin#method()`] or xref:rgant.adoc#_rgant_DomainObject_mixinMethod[`@DomainObject#mixinMethod()`].
http://git-wip-us.apache.org/repos/asf/isis/blob/e5055c05/adocs/documentation/src/main/asciidoc/guides/_ugvw_configuration-properties.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/guides/_ugvw_configuration-properties.adoc b/adocs/documentation/src/main/asciidoc/guides/_ugvw_configuration-properties.adoc
index 84628e2..b383470 100644
--- a/adocs/documentation/src/main/asciidoc/guides/_ugvw_configuration-properties.adoc
+++ b/adocs/documentation/src/main/asciidoc/guides/_ugvw_configuration-properties.adoc
@@ -126,13 +126,13 @@ for further details).
`preventDoubleClickForFormSubmit`
| `true`,`false` +
(`_true_`)
-| (`1.13.2-SNAPSHOT`) Whether to disable a form submit button after it has been clicked, to prevent users causing an error if they do a double click.
+| Whether to disable a form submit button after it has been clicked, to prevent users causing an error if they do a double click.
|`isis.viewer.wicket.` +
`preventDoubleClickForNoArgAction`
| `true`,`false` +
(`_true_`)
-| (`1.13.2-SNAPSHOT`) Whether to disable a no-arg action button after it has been clicked, to prevent users causing an error if they do a double click.
+| Whether to disable a no-arg action button after it has been clicked, to prevent users causing an error if they do a double click.
|`isis.viewer.wicket.` +
`regularCase`
@@ -144,7 +144,7 @@ for further details).
`replaceDisabledTagWithReadonlyTag`
| `true`,`false` +
(`_true_`)
-| (`1.13.2-SNAPSHOT`) Whether to replace 'disabled' tag with 'readonly' (for link:https://www.w3.org/TR/2014/REC-html5-20141028/forms.html#the-readonly-attribute[w3 spec]-compliant browsers such as for Firefox and Chrome 54+) which prevent copy from 'disabled' fields.
+| Whether to replace 'disabled' tag with 'readonly' (for link:https://www.w3.org/TR/2014/REC-html5-20141028/forms.html#the-readonly-attribute[w3 spec]-compliant browsers such as for Firefox and Chrome 54+) which prevent copy from 'disabled' fields.
|`isis.viewer.wicket.` +
`rememberMe.cookieKey`
@@ -169,7 +169,7 @@ This configuration property therefore allows a private key to be specified, bake
If no value is set then, in production, a random UUID will be used as the encryption key.
The net effect of this fallback behaviour is that 'rememberMe' will work, but only until the webapp is restarted (after which the end-user will have to log in again.
-In prototype mode, though, (as of `1.13.2-SNAPSHOT`), a fixed key will still be used; this saves the developer having to login each time.
+In prototype mode, though, a fixed key will still be used; this saves the developer having to login each time.
|`isis.viewer.wicket.` +
`rememberMe.suppress`
@@ -224,13 +224,13 @@ In prototype mode, though, (as of `1.13.2-SNAPSHOT`), a fixed key will still be
`useIndicatorForFormSubmit`
| `true`,`false` +
(`_true_`)
-| (`1.13.2-SNAPSHOT`) Whether to show an indicator for a form submit button that it has been clicked.
+| Whether to show an indicator for a form submit button that it has been clicked.
|`isis.viewer.wicket.` +
`useIndicatorForNoArgAction`
| `true`,`false` +
(`_true_`)
-| (`1.13.2-SNAPSHOT`) Whether to show an indicator for a no-arg action button that it has been clicked.
+| Whether to show an indicator for a no-arg action button that it has been clicked.
|`isis.viewer.wicket.` +
`wicketSourcePlugin`