Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2061 | es | 1 | package pt.estgp.es.exemplos.hibernate.security.example; |
2 | |||
3 | import pt.estgp.es.exemplos.hibernate.security.logic.HasRole; |
||
4 | import pt.estgp.es.exemplos.hibernate.security.logic.IsAuthenticated; |
||
5 | import pt.estgp.es.exemplos.hibernate.security.logic.PrintParameterExample; |
||
6 | |||
7 | /** |
||
8 | * Created by jorgemachado on 23/10/18. |
||
9 | */ |
||
10 | public class ServiceExample |
||
11 | { |
||
12 | |||
13 | |||
14 | @IsAuthenticated |
||
15 | public void servicoDeTesteAutenticado() |
||
16 | { |
||
17 | 1.5.0/docs/api/java/lang/System.html">System.out.println("Entrou no servico autenticado"); |
||
18 | } |
||
19 | |||
20 | @HasRole(role = "admin,ci") |
||
21 | @PrintParameterExample(paramName = "frase") |
||
22 | public void servicoDeTesteComRoleAdmin(1.5.0/docs/api/java/lang/String.html">String frase) |
||
23 | { |
||
24 | 1.5.0/docs/api/java/lang/System.html">System.out.println("Entrou no servico de roles: " + frase); |
||
25 | } |
||
26 | } |