title: Play Framework 2.4 authorization
body: <p>I have a class (Account) that represents the user's system. Account contains a field role. It is the enum that contains three cases.
  Account class</p>
  
  <pre><code>public class Account extends Model {
  
  @Id
  @Email
  public String email;
  
  @Required
  @NotNull
  public String password;
  
  @Required
  @NotNull
  public String firstName;
  
  @Required
  @NotNull
  public String lastName;
  
  @Required
  public String phone;
  
  public MyRole role;
  </code></pre>
  
  <p>MyRole</p>
  
  <pre><code>public enum MyRole {
  
  ADMIN,
  TEACHER,
  USER
  
  }
  </code></pre>
  
  <p>How can I implement an authorization?</p>