Пример #1
0
 public boolean isDeletable() {
   Security security = new Security();
   return security.check(OperationsType.DELETE, sessionBean.getUser(), profile);
 }
Пример #2
0
 public boolean isVisible() {
   Security security = new Security();
   return security.check(OperationsType.READ, sessionBean.getUser(), profile);
 }
Пример #3
0
 @Override
 public boolean isVisible() {
   Security security = new Security();
   return security.check(OperationsType.READ, sb.getUser(), collection);
 }
Пример #4
0
 @Override
 public boolean isDeletable() {
   Security security = new Security();
   return security.check(OperationsType.DELETE, sb.getUser(), collection);
 }
Пример #5
0
 /**
  * true if current {@link User} can UPDATE the {@link CollectionImeji}
  *
  * @return
  */
 public boolean isEditable() {
   Security security = new Security();
   return security.check(OperationsType.UPDATE, sessionBean.getUser(), collection);
 }