Skip to content

Commit 52008dc

Browse files
committed
merge master
2 parents 6af4af3 + fceec30 commit 52008dc

File tree

20 files changed

+305
-165
lines changed

20 files changed

+305
-165
lines changed

CHANGELOG.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,18 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7-
## [0.4.0] - 2019-03-14
7+
## [0.6.0] - 2019-05-14
8+
9+
### Added
10+
- Support for CUBA 7
11+
- `WithEntitySharingSupport` interface for CUBA 7 UI browse screens as a replacement for `@Shareable`
12+
13+
### Dependencies
14+
- CUBA 7.0.x
15+
- declarative-controllers 0.8.0
16+
- entity-soft-reference 0.5.0
17+
18+
## [0.5.0] - 2019-03-14
819

920
### Dependencies
1021
- CUBA 6.10.x

README.md

Lines changed: 39 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ This CUBA component gives users a mailbox for user to user and system to user me
1414

1515
| Platform Version | Add-on Version |
1616
| ---------------- | -------------- |
17+
| 7.0.x | 0.6.x |
1718
| 6.10.x | 0.5.x |
1819
| 6.9.x | 0.4.x |
1920
| 6.8.x | 0.1.x - 0.3.x |
@@ -32,10 +33,6 @@ dependencies {
3233
}
3334
```
3435

35-
### NOTE: BREAKING CHANGE in 0.3.0
36-
There is a breaking change if you update from 0.2.0 to 0.3.0. The mechanism how the record references are stored to a message
37-
changed. It can be resolved with manual action. See [CHANGELOG.md](https://github.com/mariodavid/cuba-component-user-inbox/blob/master/CHANGELOG.md) for more information.
38-
3936
### NOTE: Dependency: declarative-controllers
4037
This application component requires `declarative-controllers` as another dependency you have to add to your application.
4138

@@ -81,9 +78,10 @@ Therefore there is another option to send a Message. In this case it is a messag
8178

8279
This is comparable of sending a email with a link that points to a particular customer / order etc. in your application together with the information from the sender.
8380

84-
##### Share entity instances
81+
##### Share entity instances (CUBA 6 Screens)
8582

86-
The way to send context-based messages is to use the `@Shareable` annotation. The annotation is used in any Entity browse / editor screen.
83+
The way to send context-based messages is to use the `@Shareable` annotation for CUBA 6 based screens (AbstractLookup / AbstractEditor).
84+
The annotation is used in any Entity browse / editor screen.
8785

8886
Example:
8987

@@ -107,6 +105,41 @@ The `@Shareable` annotations can be customized through the following attributes:
107105

108106
more information on this topic can be found here: [balvi/declarative-controllers](https://github.com/balvi/cuba-component-declarative-controllers)
109107

108+
109+
##### Share entity instances (CUBA 7 Screens)
110+
111+
The way to send context-based messages is to use the `WithEntitySharingSupport` interface.
112+
The interface can be used in any Entity browse screen. It requires to specify the table component as well as the buttonsPanel of the table.
113+
114+
115+
Example:
116+
117+
```
118+
import de.diedavids.cuba.userinbox.web.WithEntitySharingSupport
119+
120+
public class CustomerBrowse extends StandardLookup<Customer> implements WithEntitySharingSupport {
121+
122+
@Inject
123+
protected GroupTable<Customer> customersTable;
124+
125+
126+
@Inject
127+
protected ButtonsPanel buttonsPanel;
128+
129+
@Override
130+
public Table getListComponent() {
131+
return customersTable;
132+
}
133+
134+
@Override
135+
public ButtonsPanel getButtonsPanel() {
136+
return buttonsPanel;
137+
}
138+
}
139+
```
140+
141+
This interface will create a button in the buttonsPanel of the table and add the share button after the default CUBA buttons.
142+
110143
### Send system messages (programmatically)
111144

112145
The other way to send a message to a user is that the developer defines points in the application, where it is useful to notify some user

0 commit comments

Comments
 (0)