From c23ef0cc6d9b0bb92a277835a5d05dcd07e1741f Mon Sep 17 00:00:00 2001 From: Pekka Helenius Date: Tue, 6 Oct 2020 23:55:46 +0300 Subject: [PATCH] Update layout, update class description Signed-off-by: Pekka Helenius --- .../service/session/BookStoreAuthorities.java | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/bookstore/src/main/java/com/fjordtek/bookstore/service/session/BookStoreAuthorities.java b/bookstore/src/main/java/com/fjordtek/bookstore/service/session/BookStoreAuthorities.java index 3df78fa..da70565 100644 --- a/bookstore/src/main/java/com/fjordtek/bookstore/service/session/BookStoreAuthorities.java +++ b/bookstore/src/main/java/com/fjordtek/bookstore/service/session/BookStoreAuthorities.java @@ -12,10 +12,12 @@ import org.springframework.stereotype.Component; * * This class gets Spring Environment key property values from * Spring property sources and inserts them into publicly -* accessible class attributes. +* accessible class attributes. Attributes are related to +* database authorities. *

* The attribute values of this class are primarily used, -* for instance, within @PreAuthorize annotations. +* for instance, within @PreAuthorize annotations and +* in Thymeleaf HTML template files. * * @author Pekka Helenius */ @@ -26,7 +28,12 @@ public class BookStoreAuthorities { @Autowired private Environment env; - public String ADMIN, HELPDESK, SALES, USER; + public String + ADMIN, + HELPDESK, + SALES, + USER + ; @PostConstruct private void constructAuthorities() {