Skip to content
This repository has been archived by the owner on Dec 8, 2019. It is now read-only.

BorzdeG/ru.itbasis.utils.spring-boot-starter-security-accessrole

Repository files navigation

Adding to the Spring application permissions for simple classes, and for the enum-classes that implement the interface IAccessRole.

An example of the work can be seen in the test class CoreAccessRole, CustomAccessRole and TestEntity

How to work with the kernel

To work just connect the module to implement IAccessRole interface and add an annotation @AccessRole or its derivatives.

An example of the work can be seen in the test class CoreAccessRole, CustomAccessRole

How to work with the module in collaboration with Hibernate

To work just connect the module and configure application Hibernate EntityManager. An example of the work can be seen in the test class TestEntity.

Roles are stored in the database in one line with the division of roles names comma to the same column and in the form of separate lines using annotations @ElementCollection


In the plans:

  1. Add the preservation of the entity into a separate database table to be able to bind through the field "id" records

  2. Add examples as individual modules