Browse Source

Update layout, update class description

Signed-off-by: Pekka Helenius <fincer89@hotmail.com>
v0.0.3-alpha
Pekka Helenius 4 years ago
parent
commit
c23ef0cc6d
1 changed files with 10 additions and 3 deletions
  1. +10
    -3
      bookstore/src/main/java/com/fjordtek/bookstore/service/session/BookStoreAuthorities.java

+ 10
- 3
bookstore/src/main/java/com/fjordtek/bookstore/service/session/BookStoreAuthorities.java View File

@ -12,10 +12,12 @@ import org.springframework.stereotype.Component;
* *
* This class gets Spring Environment key property values from * This class gets Spring Environment key property values from
* Spring property sources and inserts them into publicly * Spring property sources and inserts them into publicly
* accessible class attributes.
* accessible class attributes. Attributes are related to
* database authorities.
* <p> * <p>
* The attribute values of this class are primarily used, * 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 * @author Pekka Helenius
*/ */
@ -26,7 +28,12 @@ public class BookStoreAuthorities {
@Autowired @Autowired
private Environment env; private Environment env;
public String ADMIN, HELPDESK, SALES, USER;
public String
ADMIN,
HELPDESK,
SALES,
USER
;
@PostConstruct @PostConstruct
private void constructAuthorities() { private void constructAuthorities() {


Loading…
Cancel
Save