README.md 1.26 KB
Newer Older
Matija Obreza's avatar
Matija Obreza committed
1
2
3
4
5
6
7
8
9
10
# Application Blocks

This library provides common data model, utilities and services shared across most applications.

The libraries do not export any dependencies, your `pom.xml` will have to declare those yourself:

* commons-lang3
* commons-collections4
* slf4j-log4j12 and jcl-over-slf4j if you're using Log4j

Matija Obreza's avatar
Matija Obreza committed
11
12
13
14
## Releases

https://gitlab.croptrust.org/genesys-pgr/application-blocks/tags?utf8=%E2%9C%93&search=application-blocks

Matija Obreza's avatar
Matija Obreza committed
15
16
17
18
19
20
21
22
23

## Core

The **core** provides common data models: `BasicModel`, `VersionedModel`, `AuditedVersionedModel`, etc.

```xml
<dependency>
    <groupId>org.genesys-pgr</groupId>
    <artifactId>application-blocks-core</artifactId>
24
    <version>2.0</version>
Matija Obreza's avatar
Matija Obreza committed
25
26
27
28
29
30
31
32
33
34
35
</dependency>
```

## Security

The **security** module provides generic `User` declaration, ACL model and services compatible with spring-security.

```xml
<dependency>
  <groupId>org.genesys-pgr</groupId>
  <artifactId>application-blocks-security</artifactId>
36
  <version>2.0</version>
Matija Obreza's avatar
Matija Obreza committed
37
38
39
40
41
42
43
44
45
46
47
</dependency>
```

## Audit log

The **auditlog** provides the model and services to capture changes to JPA entities. Envers seemed too complicated.

```xml
<dependency>
    <groupId>org.genesys-pgr</groupId>
    <artifactId>application-blocks-auditlog</artifactId>
48
    <version>2.0</version>
Matija Obreza's avatar
Matija Obreza committed
49
50
</dependency>
```