コード例 #1
0
 protected Boolean isUser() {
   return requestOwner != null
       && (requestOwner.getType().equals("user") || requestOwner.getType().equals("admin"));
 }
コード例 #2
0
 protected Boolean isAdmin() {
   return requestOwner != null && requestOwner.getType().equals("admin");
 }