Exemplo n.º 1
0
 public boolean isVisible() {
   Security security = new Security();
   return security.check(OperationsType.READ, sessionBean.getUser(), image);
 }
Exemplo n.º 2
0
 public boolean isDeletable() {
   Security security = new Security();
   return security.check(OperationsType.DELETE, sessionBean.getUser(), image);
 }
Exemplo n.º 3
0
 public boolean isEditable() {
   Security security = new Security();
   return security.check(OperationsType.UPDATE, sessionBean.getUser(), image)
       && image != null
       && !image.getProperties().getStatus().equals(Status.WITHDRAWN);
 }