Subversion Repositories bacoAlunos

Rev

Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

package pt.estgp.es.exemplos.hibernate.security.example;


import pt.estgp.es.exemplos.hibernate.security.logic.HasRole;
import pt.estgp.es.exemplos.hibernate.security.logic.IsAuthenticated;
import pt.estgp.es.exemplos.hibernate.security.logic.PrintParameterExample;

/**
 * Created by jorgemachado on 23/10/18.
 */

public class ServiceExample
{


    @IsAuthenticated
    public void servicoDeTesteAutenticado()
    {
        1.5.0/docs/api/java/lang/System.html">System.out.println("Entrou no servico autenticado");
    }

    @HasRole(role = "admin")
    @PrintParameterExample(paramName = "frase")
    public void servicoDeTesteComRoleAdmin(1.5.0/docs/api/java/lang/String.html">String frase)
    {
        1.5.0/docs/api/java/lang/System.html">System.out.println("Entrou no servico de roles: " + frase);
    }
}