- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 29 of file Permission.java.
◆ check()
boolean org.turro.security.Permission.check |
( |
| ) |
|
Definition at line 47 of file Permission.java.
49 for(String role : roles) {
50 if(role.contains(
":")) {
55 if(hasAnyRoleKey(role)) {
61 if(supplier !=
null) {
62 return supplier.get();
◆ from() [1/4]
static Permission org.turro.security.Permission.from |
( |
IContact |
contact, |
|
|
String... |
roles |
|
) |
| |
|
static |
Definition at line 87 of file Permission.java.
88 return new Permission(contact, roles);
◆ from() [2/4]
static Permission org.turro.security.Permission.from |
( |
IContact |
contact, |
|
|
Supplier< Boolean > |
supplier |
|
) |
| |
|
static |
Definition at line 91 of file Permission.java.
92 return new Permission(contact, supplier);
◆ from() [3/4]
static Permission org.turro.security.Permission.from |
( |
String... |
roles | ) |
|
|
static |
Definition at line 79 of file Permission.java.
80 return new Permission(Application.getUser(), roles);
◆ from() [4/4]
static Permission org.turro.security.Permission.from |
( |
Supplier< Boolean > |
supplier | ) |
|
|
static |
Definition at line 83 of file Permission.java.
84 return new Permission(Application.getUser(), supplier);
The documentation for this class was generated from the following file: