You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomee.apache.org by GitBox <gi...@apache.org> on 2019/03/31 22:32:54 UTC

[GitHub] [tomee] alexferreiradev commented on a change in pull request #445: Tomee 2494

alexferreiradev commented on a change in pull request #445: Tomee 2494
URL: https://github.com/apache/tomee/pull/445#discussion_r270688487
 
 

 ##########
 File path: examples/testing-security/README.adoc
 ##########
 @@ -58,6 +59,8 @@ public class Movie {
 
 == Movies
 
+After, we created a DAO class. Look that we used the security anotations to set the need roles to use each DAO action. For example, adition of a movie is able to a user that has "Manager" or "Employee" `ROLE`, but to remove a movie the user need to has Manager `ROLE`.
+Criamos outra classe DAO para Filme. Observe que utilizamos as anotações para dizer as roles necessárias para utilização de cada ação disponível. Por exemplo, adicionar um filme é possível para um usuário que tenha a `ROLE` "Manager" ou "Employee", mas a remoção de um filme pode ser feita somente por quem tem a `ROLE` Manager.
 
 Review comment:
   I corrected that. Thanks for review.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services